Commit Graph

384 Commits

Author SHA1 Message Date
Ted Sanders
cb1986a398 adds comment for openai package 2023-06-16 16:06:16 -07:00
Ted Sanders
83ebad77b8 adds periods to list to be consistent with others 2023-06-16 16:03:54 -07:00
Ted Sanders
fbeaf34deb rewrites intro points to be more consistent with one another 2023-06-16 16:02:01 -07:00
Ted Sanders
8a5a5e6761 be -> feel 2023-06-16 15:48:36 -07:00
Ted Sanders
7efd0c890f changes web URL to relative link 2023-06-16 15:47:18 -07:00
Ted Sanders
55b5c25573 the model -> GPT 2023-06-16 15:46:50 -07:00
Ted Sanders
e2f6018b57 the -> an 2023-06-16 15:39:49 -07:00
Ted Sanders
f206d5f3ec makes title formatting consistent with other examples 2023-06-16 15:39:04 -07:00
Ted Sanders
af43f516b9 fixes link and removes empty cell 2023-06-16 10:29:01 -07:00
colin-openai
dda999154d Merge pull request #417 from michaelskyuan/main
Add notebook with Redis hybrid VSS queries examples
2023-06-16 08:41:40 +01:00
simonpfish
6fc4fe9498 address feedback 2023-06-15 21:53:12 -07:00
simonpfish
354e2c28cb add search augmentation notebook 2023-06-15 11:49:19 -07:00
Ted Sanders
d48cc6c896 Ted/remove eval from function calling examples (#518)
* replaces eval with json.loads for better code safety

* fixes link to be relative, not URL
2023-06-15 11:22:59 -07:00
joe-at-openai
c1c2d96e35 fix finish_reason 2023-06-14 11:06:42 -07:00
joe-at-openai
ca51ea2c40 integrate improvements to original function calling notebook + factor out arxiv example into new notebook 2023-06-14 10:48:11 -07:00
colin-openai
537ad41561 Merge pull request #498 from pycui/pcui/fix-ask-db-func-spec
Fix ask_database in call functions with chat model example
2023-06-14 08:19:39 +01:00
joe-at-openai
8797a8070a Merge pull request #499 from openai/joe/remove-incorrect-model-name
fix incorrect model name
2023-06-13 17:43:52 -07:00
joe-at-openai
d3337df7a8 fix incorrect model name 2023-06-13 17:27:32 -07:00
Piaoyang Cui
f1d55808f0 Fix ask_database in call functions with chat model example 2023-06-13 15:41:58 -07:00
Atty Eleti
d340e142bf Fix finish_reason in function calling cookbook 2023-06-13 12:06:31 -07:00
Logan Kilpatrick
23877c2c88 Rename How_to_call_functions_with_Chat_models.ipynb to How_to_call_functions_with_chat_models.ipynb 2023-06-13 12:53:43 -05:00
colin-openai
e4eb6efc29 Rename How_to_call_functions_with_chat_models.ipynb to How_to_call_functions_with_Chat_models.ipynb
Renaming file
2023-06-13 10:06:15 -07:00
Colin Jarvis
8b19156cc6 Removed papers 2023-06-13 18:01:34 +01:00
Colin Jarvis
eb8f2e1e10 Merge branch 'function_calls' of https://github.com/openai/openai-cookbook into function_calls 2023-06-13 17:59:11 +01:00
Colin Jarvis
9642ca5e17 Fixed a couple small bugs in functions notebook 2023-06-13 17:59:09 +01:00
Ted Sanders
43b9a5abdc tool -> function in a few places 2023-06-13 09:56:56 -07:00
Ted Sanders
a066826827 fixes function name 2023-06-13 09:55:53 -07:00
Colin Jarvis
737f4406ee Commit of function calling notebook 2023-06-13 17:48:30 +01:00
Gerardo Lecaros
70d089929f Adding cookbook for using DALL-E from Azure OpenAI (#491)
* Add dalle notebook

* Fix

* Some small adjustments

* Smaller adjustments

* change flow of the notebook

* feedback

* more

* readme

* fixing typo

---------

Co-authored-by: Christian Mürtz <t-cmurtz@microsoft.com>
2023-06-12 14:01:49 -07:00
Michael Yuan
6ce07ae71d implemented batcher for openai embeddings 2023-05-24 18:44:04 -04:00
Domenico Manna
efae0d4bc1 Add ability to store row-level metadata
This metadata field allows non API parameters to be stored which could
be useful for when the results need to be associated with an external
source. For example, if the user has several rows of text data within a
database, and they want to calculate embeddings for each row, they can
now use the metadata field to save the row id so that when they parse
the results back, they know which embedding corresponds to which
database row.
2023-05-23 17:19:18 -04:00
isabelaconstantin
76638b2639 Fix mutable default argument in APIRequest class 2023-05-23 19:46:45 +03:00
Krista Pratico
629d78245f [Azure] add example snippet on how to refresh AAD tokens (#435)
* add how to refresh aad tokens example

* remove accidental config
2023-05-22 17:09:33 -07:00
Gerardo Lecaros
f1af65cd2d Updating azure samples to point to the latest API version (#425)
* Updating to use api version 2023-05-15

* Removing authoring references from azure samples as it is not yet present.
2023-05-22 16:09:29 -07:00
Ted Sanders
09a6f77e3d Merge pull request #411 from anshulsharmas/main
Added kusto vector database sample
2023-05-22 16:07:13 -07:00
arno756
5742ee35a5 Adding SingleStoreDB as a vector database with Python notebook (#402)
* SingleStoreDB folder

* Readme

* Readme with notebook

* S2DB notebook

* Update README.md

* Delete OpenAI_wikipedia semantic_search.ipynb

* Add files via upload

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md
2023-05-22 16:05:50 -07:00
Sebastian Witalec
873d5ec5fa Add Generative Search to Weaviate examples + fix authentication examples (#398)
* add Weaviate authentication to client configuration

* add a cookbook for generative search

* fix name
2023-05-22 16:02:28 -07:00
Ted Sanders
5163c71492 Merge pull request #437 from openai/ted/update-unit-testing-example
updates unit test writing example to use gpt-3.5-turbo
2023-05-19 16:50:02 -07:00
Ted Sanders
3ac21700bf updates unit test writing example to use gpt-3.5-turbo 2023-05-19 16:49:12 -07:00
colin-openai
8127428f39 Initial commit of DALL-E and Segment Anything notebook (#406)
* Initial commit of DALL-E and Segment Anything notebook

* Add example images and changed wording of the notebook

* Updated comments and added base images

* minor text amendments

* fix typo

* makes bullets more consistent

* converts title DALLE to DALL·E

* converts DALL-E to DALL·E

* update original DALL-E notebook title

* makes time of writing explicit

* makes intro bullets more consistent

* clarifies which version of Pytorch is appropriate

* moves setup instructions into setup section (to help clarify that they do not need to be done separately from the notebook)

* explains size of model checkpoint file

* code linting

* added more background info in the introduction for folks unfamiliar with segment anything

* adds period to sentence

* updates table of contents with new DALL·E guide

---------

Co-authored-by: Ted Sanders <ted@openai.com>
2023-05-19 11:18:54 -07:00
Changgeng Zhao
5cc4c660f3 Add Hologres as a vector database with python notebook example (#404)
Co-authored-by: 长更 <zhaochanggeng.zcg@alibaba-inc.com>
2023-05-19 11:16:27 -07:00
Ted Sanders
def4ac085c Merge pull request #424 from jamescalam/gpt-4-example-fix
added data creation loop
2023-05-18 17:03:13 -07:00
Ted Sanders
47f8b30e9c Merge pull request #423 from eltociear/patch-4
docs: fix typo in QA_with_Langchain_Qdrant_and_OpenAI.ipynb
2023-05-16 16:27:01 -07:00
Michael Yuan
7be3b146cf Changes and additions in response to PR comments 2023-05-16 13:30:14 -04:00
Michael Yuan
4e22d695c8 Changes and additions in response to PR comments 2023-05-16 13:27:16 -04:00
Michael Yuan
ff64125156 Changes and additions in response to PR comments 2023-05-16 12:56:57 -04:00
James Briggs
7d92616379 added data creation loop 2023-05-15 18:10:02 +08:00
colin-openai
1815c41536 Merge pull request #415 from joeywhelan/feature-redisqna
Add Redis Q&A example
2023-05-14 20:47:25 +01:00
colin-openai
cbcc741307 Merge pull request #408 from joeywhelan/feature-redisjson
Add Redis JSON w/VSS examples
2023-05-14 20:46:27 +01:00
Ikko Eltociear Ashimine
de52bcc4d7 docs: fix typo in QA_with_Langchain_Qdrant_and_OpenAI.ipynb
futher -> further
2023-05-14 13:34:02 +09:00
joeywhelan
534e5041d4 Fix redisqna 2023-05-12 13:35:16 -06:00
joeywhelan
151a348947 Fix redisjson 2023-05-12 12:04:19 -06:00
Ted Sanders
0c1e9c1080 Merge pull request #374 from wangxuqi/analyticdb_langchain_example
Add QA with Langchain of AnalyticDB  vector store and OpenAI example.
2023-05-12 10:25:31 -07:00
Michael Yuan
fcdc92d6ad Redis hybrid VSS queries notebook 2023-05-11 19:25:59 -04:00
joeywhelan
43fceef9ee Add Redis Q&A example 2023-05-11 13:48:24 -06:00
Anshul Sharma
9bb626470c kusto vector sample added 2023-05-11 11:06:34 +08:00
joeywhelan
d509f4a933 Add Redis JSON w/VSS examples 2023-05-10 12:51:06 -06:00
Ted Sanders
16868fa4ce fixes grammar 2023-05-08 17:15:58 -07:00
xuqi.wxq
2691ec8bb0 Add QA with Langchain of AnalyticDB vector store and OpenAI example. 2023-05-06 11:09:56 +08:00
Ted Sanders
43a2b00114 Merge pull request #391 from joeywhelan/fix-redisclients
Fix Redis supported client list
2023-05-05 15:27:46 -07:00
aiqinxuancai
4b869a71a3 Update How_to_count_tokens_with_tiktoken.ipynb (#368)
* Update How_to_count_tokens_with_tiktoken.ipynb

add c# tiktoken lib.

* Update How_to_count_tokens_with_tiktoken.ipynb

fix format.

* Update How_to_count_tokens_with_tiktoken.ipynb

fix format.
2023-05-05 13:09:05 -07:00
Ted Sanders
9d5fe7fee0 polishes wording in a few places 2023-05-05 13:06:43 -07:00
joeywhelan
9b64c8a988 Fix Redis supported client list 2023-05-03 15:46:46 -06:00
colin-openai
4e11955316 Merge pull request #390 from acatav/agent_with_langchain_pinecone_docs
[Pinecone]: Add link for creating Pinecone API key and environment variable to pinecone init
2023-05-03 11:32:15 +01:00
Amnon Catav
d55f0c0823 add links to pinecone and add env var to index 2023-05-02 21:55:33 +03:00
liuliu
37fd3a6052 fix: some typo and add execution command sample (#299)
* fix: some typo and add execution command sample

* fix: some typo and add execution command sample

1. hybrid-search-with-weaviate-and-openai.ipynb

* fix: some typo and add execution command sample

1. question-answering-with-weaviate-and-openai.ipynb
2023-05-02 10:43:44 -07:00
colin-openai
ded5b0cb3e Merge pull request #356 from openai/conversational_agent_with_tools
Merge conversational LLM with tools example using LangChain
2023-05-02 09:36:56 +01:00
Colin Jarvis
57177d219c Made further wording changes 2023-05-02 09:36:09 +01:00
Colin Jarvis
1a57363d32 Fixing merge issues 2023-05-02 09:30:35 +01:00
Colin Jarvis
54d9af7d1f Fixing merge conflicts 2023-05-02 09:21:39 +01:00
Colin Jarvis
0cd137a542 Pushing renamed notebook with changed wording based on Ted's comments 2023-05-02 09:18:38 +01:00
Ted Sanders
5c540ace7e Merge pull request #361 from eltociear/patch-3
Update Getting_started_with_AnalyticDB_and_OpenAI.ipynb
2023-05-01 16:51:11 -07:00
qingdi
5a46af4f53 🌟 MyScale VectorStore Support (#377)
* add myscale notebook

* add myscale to vector database notebook
2023-05-01 16:46:51 -07:00
Ted Sanders
b3f6045d28 Merge pull request #369 from wey-gu/patch-1
chore: fixed broken URL in markdown
2023-05-01 11:01:22 -07:00
jiangying
df3bc473f0 add jtokkit to How_to_count_tokens_with_tiktoken.ipynb 2023-04-28 12:24:51 +08:00
Wey Gu
6b64060412 chore: fixed broken URL in markdown 2023-04-24 16:25:15 +08:00
Ted Sanders
35193e07c1 removes old references to query and doc models 2023-04-20 21:38:35 -07:00
Ted Sanders
8b9cdaedbf Merge pull request #336 from Hannibal046/patch-2
Fix bugs at api_request_parallel_processor.py
2023-04-20 19:14:01 -07:00
Ikko Eltociear Ashimine
7b5682a584 Update Getting_started_with_AnalyticDB_and_OpenAI.ipynb
PostgresSQL -> PostgreSQL
2023-04-21 03:32:55 +09:00
joe-at-openai
a38da6894b More updates to preamble and code comments 2023-04-18 10:57:56 -07:00
joe-at-openai
f8a588dd6e Update preamble and code comments 2023-04-18 10:46:25 -07:00
Alice Chen
3fd80b7312 [Fix] Typo and grammar fix in Question_answering_using_embeddings.ipynb 2023-04-18 13:32:33 +08:00
Colin Jarvis
899c038f7e Added wget URL for zipped podcasts 2023-04-17 09:31:35 -07:00
Colin Jarvis
256ef8267a Initial commit of conversational agent with TODO remaining 2023-04-17 07:44:11 -07:00
Eugene Yan
fea69be4cd Update the section token count from 1,000 to 1,600
This resolves the mismatch between the values in markdown cell and code cell.
2023-04-15 13:01:02 -07:00
Ted Sanders
0c957691a5 updates example command to be consistent with text 2023-04-14 15:53:42 -07:00
Ted Sanders
0d27d7b69b updates README table of contents 2023-04-14 12:52:53 -07:00
Ted Sanders
a73cda8959 Merge pull request #344 from openai/ted/update-qa-example
updates Q&A example to use gpt-3.5-turbo
2023-04-14 12:39:52 -07:00
Ted Sanders
8c5d01329c updates Q&A example to use gpt-3.5-turbo 2023-04-14 12:38:42 -07:00
Logan Kilpatrick
9dcc24051e Merge pull request #341 from jasonbosco/add-typesense-readme
Add README for Typesense
2023-04-14 12:44:21 -05:00
colin-openai
f9e2dbd5a9 Merge pull request #238 from liuliuOD/fix/vector_databases
fix: about spelling and command
2023-04-14 04:35:50 -07:00
Jason Bosco
e6aa588a03 Add README for Typesense 2023-04-14 11:29:44 +05:30
Hannibal046
8c1c86e2de Update api_request_parallel_processor.py
fixed bug for non-serializable Error
2023-04-12 23:05:05 +08:00
Ted Sanders
7563fa2768 Merge pull request #325 from bricker/patch-1
Typo fix in Multiclass_classification_for_transactions.ipynb
2023-04-11 19:30:21 -07:00
James Briggs
e143a98c99 update wget to new langchain docs url 2023-04-10 17:57:47 +07:00
Bryan Ricker
59f62def48 Typo fix in Multiclass_classification_for_transactions.ipynb 2023-04-09 15:36:55 -07:00
Ted Sanders
5fd5207192 Merge pull request #321 from wangxuqi/add_analyticdb_vector_database_example
Add getting started with AnalyticDB distributed vector database example
2023-04-07 10:28:30 -07:00
xuqi.wxq
476dd97517 Add getting started with AnalyticDB distributed vector database and OpenAI example. 2023-04-07 12:49:39 +08:00
Anton Troynikov
73577ed68f Add Chroma to Vector Database examples (#262)
* Vector store notebook

* HyDE with Chroma

* Cleaner text

* add swyx edits

* Cleaned up text / outputs

* Spelling nits

* Fixed comment format

---------

Co-authored-by: swyx <shawnthe1@gmail.com>
2023-04-06 16:30:10 -07:00
liuliu
b3b3a1d90d fix: typo, grammar and link
1. examples/.../zilliz/Getting_started_with_Zilliz_and_OpenAI.ipynb
2023-03-31 14:18:39 +08:00
liuliu
d7902c06e0 fix: typo and grammar
1. examples/.../zilliz/Filtered_search_with_Zilliz_and_OpenAI.ipynb
2023-03-31 14:01:55 +08:00
liuliu
524c139bc1 revert: spelling adjustment in examples/
1. a -> an in getting-started-with-redis-and-openai.ipynb
2023-03-29 09:53:06 +08:00
Andriy Mulyar
d8cdb1c3d8 Visualizing Embeddings with Atlas (#152)
* Embedding visualization in Atlas

* Updated Atlas Visualization Example

* Atlas for Embedding Visualization: removed extra outputs

* Rename Atlas_for_visualizing_embeddings.ipynb to Visualizing_embeddings_with_Atlas.ipynb
2023-03-28 16:11:05 -07:00
Jason Bosco
637cc3f87e Add Typesense example to vector databases (#277)
* Add Typesense example to vector databases

* Fix typo

* Add to intro section
2023-03-28 15:37:41 -07:00
Filip Haltmayer
3905d2fea0 Zilliz integration and Milvus bugfixes (#259)
* integrating zilliz and fixing milvus bugs

Signed-off-by: Filip Haltmayer <filip.haltmayer@zilliz.com>

* Adding Milvus and Zilliz notebooks

Signed-off-by: Filip Haltmayer <filip.haltmayer@zilliz.com>

* cleaned outputs of shared notebook

Signed-off-by: Filip Haltmayer <filip.haltmayer@zilliz.com>

---------

Signed-off-by: Filip Haltmayer <filip.haltmayer@zilliz.com>
2023-03-28 15:36:24 -07:00
Christian Mürtz
9d4e6e31c6 [Azure] Chat completions example (#271)
* Added notebook for chat completions on Azure

* Added pointer from README
2023-03-28 13:25:34 -07:00
Ted Sanders
1d17959dd7 Merge pull request #280 from jamescalam/pinecone-updates
Pinecone updates
2023-03-28 10:24:49 -07:00
dmitry-brazhenko
3c53f34e01 added sharptoken as exampel 2023-03-28 17:31:14 +02:00
Ted Sanders
f571555953 updates description of token counting function 2023-03-25 00:14:45 -07:00
James Briggs
927f677b78 added new notebooks 2023-03-25 11:33:55 +07:00
Ted Sanders
9d61d44e64 updates chat guide with gpt-4 and updates token counting function 2023-03-24 21:28:14 -07:00
Ted Sanders
867d6a3afa updates token counting guide 2023-03-24 21:09:25 -07:00
James Briggs
053740c958 add colab link 2023-03-24 23:46:03 +07:00
James Briggs
27766e15c3 add pinecone readme 2023-03-24 23:41:58 +07:00
Herobs
deed48a1e3 Add chat endpoint support (#244)
* add chat endpoint support

* supplement comment
2023-03-22 13:21:36 -07:00
Swastik Banerjee
da56bd7b54 fix iteration error (#208)
* fix iteration error

array iteration error: sentences up till max_len of token exceeds should be returned

* split list once instead of twice

split list once instead of twice and take parsed string up till max token length is exceeded
2023-03-21 14:45:56 -07:00
Ted Sanders
3f2ec8c9e5 Merge pull request #250 from eltociear/patch-2
Fix typo in Embedding_long_inputs.ipynb
2023-03-20 15:35:38 -07:00
Ted Sanders
6ee7a82ac4 updates token counting function to work with gpt-4 2023-03-20 10:55:35 -07:00
Ikko Eltociear Ashimine
594338b692 Fix typo in Embedding_long_inputs.ipynb
programatically -> programmatically
2023-03-19 21:38:17 +09:00
liuliu
34367ad85d docs: create a block to show how to export parameter to environment in terminal 2023-03-17 17:32:13 +08:00
liuliu
b50ac7dff8 fix: add space in block of python
1. !pip -> ! pip
2023-03-17 17:31:12 +08:00
liuliu
5238623cbf fix: docker-compose up command
1. docker compose -> docker-compose
2023-03-17 17:30:19 +08:00
liuliu
6bf85caa6f docs: fix minor spelling issue 2023-03-17 17:29:58 +08:00
liuliu
8d933edd75 docs: create a block to show how to export parameter to environment in terminal 2023-03-17 14:56:01 +08:00
liuliu
87cc560699 docs: create a block to show how to export parameter to environment in terminal 2023-03-17 14:34:08 +08:00
liuliu
14256c178d docs: highlight tool name and modify spell
1. highlight "Qdrant"
2. modify "REST" to "RESTful"
2023-03-17 14:31:20 +08:00
liuliu
d33481caf6 fix: remove unused package import
1. datetime is unused
2023-03-17 14:05:40 +08:00
liuliu
e3c3e43703 doc: highlight text and tool name
1. cannot: highlight to enhance the importance
2. Pinecone
2023-03-17 14:03:01 +08:00
liuliu
dd5143a8d6 docs: complete the missing symbol * that should be paired in pinecone/Gen_QA.ipynb 2023-03-17 14:00:18 +08:00
Ted Sanders
2f46e2dac9 fixes test/train bug 2023-03-16 18:57:46 -07:00
Ted Sanders
6f10ddbb1e Merge pull request #228 from MrZilinXiao/main
fix prompt list counter
2023-03-16 17:21:10 -07:00
Ted Sanders
c55c313df5 Merge pull request #227 from liuliuOD/fix/dalle
docs: update dalle example file
2023-03-16 17:19:30 -07:00
Ted Sanders
761ca0428a Merge pull request #226 from liuliuOD/fix/fine-tuned_qa
fix: made some spelling and semantic adjustments
2023-03-16 17:18:25 -07:00
Ted Sanders
0536047f7a Merge pull request #192 from kacperlukawski/qdrant-in-docs
List Qdrant among the other vector databases
2023-03-16 16:45:48 -07:00
Zilin Xiao
45b2fcd27f fix prompt list counter 2023-03-16 13:49:46 +08:00
liuliu
b4a9f68d32 docs: update dalle/Image_generations_edits_and_variations_with_DALL-E.ipynb
1. add a terminal command sample about how to export OPENAI_API_KEY to environment
2023-03-16 13:45:03 +08:00
liuliu
75b5033ae0 docs: correct the opposite meaning
1. "to increase the coherence of the text, and the frequency of breaks within the text." -> "to increase the coherence of the text, and decrease the frequency of breaks within the text."
2023-03-16 10:46:18 +08:00
liuliu
6f2aee77e0 docs: fix minor spelling issue
1. "to ensure that the examples from the traing set don't feature within the test set." -> "to ensure that the examples from the training set don't feature within the test set."
2023-03-16 10:24:37 +08:00
liuliu
c5b6ae80e2 Fix minor spelling issue
the examples from the traing set -> the examples from the training set
2023-03-15 15:06:25 +08:00
BasedLukas
9a9b170dce Fix minor spelling issue
we check that he separator > we check that the separator
2023-03-13 13:26:13 +01:00
colin-openai
37da276cb7 Merge pull request #202 from dandv/patch-1
Weaviate: update links, minor corrections
2023-03-10 01:04:30 -08:00
colin-openai
cc4043f031 Merge pull request #133 from filip-halt/milvus_merge
Adding Milvus vector db
2023-03-10 01:02:25 -08:00
Dan Dascalescu
957504a268 Weaviate: update links, minor corrections 2023-03-09 13:43:24 +01:00
Logan Kilpatrick
03db70b77e Merge pull request #194 from shizhediao/patch-1
Update Gen_QA.ipynb
2023-03-08 12:37:14 -06:00
shizhediao
aac7223fce Update Gen_QA.ipynb 2023-03-07 19:53:22 +08:00
Kacper Łukawski
bb3f2a0102 List Qdrant among the other vector databases 2023-03-07 09:49:34 +01:00
ethanknights
7b221bcbc8 rm trailing cell 2023-03-05 16:08:01 +00:00
ethanknights
f94b992f33 company typo 2023-03-05 16:06:11 +00:00
Logan Kilpatrick
f31fae1e0b Merge pull request #172 from eltociear/patch-1
fix typo in Gen_QA.ipynb
2023-03-03 13:20:30 -06:00
colin-openai
39802a24f7 Merge pull request #140 from kacperlukawski/qdrant-notebooks
Add Qdrant notebooks
2023-03-03 08:55:27 -08:00