Commit Graph

409 Commits

Author SHA1 Message Date
Stefano Lottini
931a32e3a9 Fix spelling error + misplaced copypaste in the CQL notebook (#728) 2023-09-22 10:48:55 -07:00
Cathy Chen
487913a10b Add description and rename Obtain_dataset, and throw error when fine tuned model not available (#727) 2023-09-20 14:50:59 -07:00
Will DePue
61de0c3b02 Improve code_search and get_embedding notebooks. (#717)
Co-authored-by: Simón Fishman <simonpfish@gmail.com>
2023-09-15 16:54:29 -07:00
Nirant
57ecc44a0f 5x Error Reduction in RAG with gpt-3.5-turbo-0613 Finetuning (#678) 2023-09-12 09:09:23 +01:00
Farzad Sunavala
792d0a2b31 Add Azure Cognitive Search vector database (#569)
* get started azuresearch

* master docs reference

* pablo comments

* replace placeholders with "_"

* azs latest sdk updates

* deep dive link

* openai feedback

* not print the whole vector in console

* cleanup outputs

* cleanup outputs pip
2023-09-11 16:34:15 -07:00
dongqqcom
c0b73ad88f Add Tair to examples of vector database (#609)
* Add Tair to examples of vector database

* remove hardcoding API keys

* Update examples/vector_databases/tair/Getting_started_with_Tair_and_OpenAI.ipynb

Co-authored-by: Simón Fishman <simonpfish@gmail.com>

* fix: input api key by getpass

* update: input api key by getpass

* update: Adding output of code cells

---------

Co-authored-by: Simón Fishman <simonpfish@gmail.com>
2023-09-11 15:16:00 -07:00
Krista Pratico
02ca6194d0 [azure] bring your own data example (#654)
* initial commit for bring your own data notebook

* fix words

* add version

* add output from stream

* address review feedback

* edit intro
2023-09-11 15:12:37 -07:00
Puneet Dhiman
d835b8dfef Correct spelling mistake in Search_reranking_with_cross-encoders.ipynb (#675) 2023-09-11 15:10:17 -07:00
Stefano Lottini
b46cba2a23 Updates to CassIO notebook (#684) 2023-09-11 14:59:09 -07:00
Steven Pousty
3f567dad34 small typoe fix (#688) 2023-09-11 14:57:09 -07:00
Simón Fishman
68772a70ae add descriptions to fine-tuning dataprep notebook (#673) 2023-09-02 08:26:55 -07:00
Simón Fishman
3119e772b9 clarify title (#672) 2023-09-01 10:14:11 -07:00
Will DePue
6fa65ef615 Update Customizing_embeddings.ipynb to be delete long cache output. (#667)
* patch

* remove print statement

---------

Co-authored-by: simonpfish <simonpfish@gmail.com>
2023-08-29 17:50:15 -07:00
Stefano Lottini
f3990b8a8f Add Cassandra/Astra DB to the vector databases README (#665)
* Add Cassandra/Astra DB to the vector databases overall README

* Linking to a basic quickstart instead
2023-08-29 15:20:51 -07:00
Liam Thompson
cafe312611 Add elasticsearch examples to vector databases folder (#622)
* Add Elasticsearch to vector databases, add notebooks

* Update prompt

* Make intro verbiage more neutral

* Add semantic search notebook outputs

* Add RAG notebook output

* Update query

* Remove unreadable vector output
2023-08-29 10:54:08 -07:00
Stefano Lottini
dc5bf03450 Add Astra DB (/Cassandra) to vector databases with example notebooks (#655)
* first commit for the Astra DB / Cassandra notebooks

* add json with quotes

* towards the final cassIO pilot notebook

* small changes to the copy

* cassIO pilot completed and its readme done

* fix silly markdown error

* fix silly markdown error 2

* astra vector link change and vector search picture improved

* added link to docs for connecting to Cassandra cluster

* CQL version of the flow

* revised readme

* final adjustments around metrics/distances

* links' final version assumes files in openai's main branch

* Add ref to QA+vector general guide; fix prompt; clarified conclusion paragraph; typos
2023-08-29 10:27:49 -07:00
recordcrash
d9b4acd1b8 Fix UTF-8 encoding in Chat_finetuning_data_prep.ipynb (#648) 2023-08-28 18:12:30 -07:00
Eliah Kagan
1b3ef07d3e Add Tiktokenizer link in "How to count tokens" (#604)
This adds a link to Tiktokenizer webapp as another tool, in
addition to the OpenAI Tokenizer.
2023-08-28 10:28:19 -07:00
Viet Hoang Tran Duong
7e40a56075 fix undefined variables in fine tune example (#660)
`create_user_message` and `test_df` are not defined.
2023-08-25 13:03:06 -07:00
Simón Fishman
c6c92acb2b update titles (#653) 2023-08-22 16:32:43 -07:00
Simón Fishman
bda60c1008 more fine-tuning improvements (#652)
* more fine-tuning improvements

* add links to other resources
2023-08-22 16:27:08 -07:00
Simón Fishman
3fac4b95d2 small improvements to the fine-tuning cookbook (#651) 2023-08-22 15:30:03 -07:00
simonpfish
aa2b5ba709 update fine-tuning cookbook 2023-08-22 13:48:39 -07:00
Michael Wu
d639ac8f27 add ft data prep notebook (#647) 2023-08-22 12:24:42 -07:00
colin-openai
20d802b13b Pushing cookbook for fine-tuning via ChatCompletion (#646)
* Pushing cookbook for fine-tuning via ChatCompletion

* Add correct file

* Fixed bug with create_prompt function and refactored files
2023-08-22 12:24:22 -07:00
aalmaksour82
1100f84e0d Fixed JSON formatting bug in arxiv_functions (#562) 2023-08-18 09:26:04 +01:00
Ikko Eltociear Ashimine
0a857e9c5e Fix typo in redis-hybrid-query-examples.ipynb (#642)
bellow -> below
2023-08-17 03:21:48 -07:00
Simón Fishman
7719400ef0 fix date typo (#640) 2023-08-16 17:38:48 -07:00
Shyamal H Anadkat
a0f7f529b9 Adds reference to SummEval (#639) 2023-08-16 14:20:22 -07:00
Simón Fishman
f11682c22b various minor improvements (#638) 2023-08-16 10:53:54 -07:00
Shyamal H Anadkat
b8d9b8c8a8 adds notebook on abstractive summarization eval (#637) 2023-08-16 10:25:42 -07:00
prestontuggle
dd1b8980e9 adds one function calling notebook (#629)
* adds one function calling notebook

* reordered imports and ran all cells

* fixed comma error
2023-08-11 20:34:29 -04:00
prestontuggle
0a9a070436 adds two Whisper guides (#628)
* adds two Whisper guides

* polishing

* fixes function argument misordering

---------

Co-authored-by: Ted Sanders <ted@openai.com>
2023-08-11 16:11:19 -04:00
Shantanu Nair
4619f366e8 Fix function description (#626) 2023-08-09 10:34:59 -07:00
Anton Troynikov
ab3e8524aa Update notebooks (#598) 2023-07-24 15:59:33 -07:00
richzw
39f1776c1a add tiktoken-go to How_to_count_tokens_with_tiktoken.ipynb (#605) 2023-07-24 15:54:52 -07:00
Krista Pratico
f7266e7e4f [azure] add functions notebook sample (#595)
* add azure functions notebook sample

* update api key to use env var + note use of env vars over config in code across azure samples
2023-07-21 16:38:49 -07:00
ancri
35b88b80ac consolidate Embedding.create calls into one (#543) 2023-07-20 20:20:04 -07:00
Tomas Dulka
8f24e11b2a replace eval with safer literal_eval (#561) 2023-07-17 16:40:54 -07:00
Sebastian Witalec
ac094dd124 fix markdown typo on a link (#591) 2023-07-17 15:53:44 -07:00
Alex Dhillon
2351ec31bf simplify pretty print (#575) 2023-07-16 14:22:46 -07:00
Yoav Farhi
9db10b5805 Update the actual number of results used in generating the final answer (#587)
The comment mentions 20, but it actually uses 5
2023-07-13 10:47:49 -07:00
Moiz Sajid
04a203089c Updated README.md in examples/vector_databases (#581)
Added the links to the missing vector databases
2023-07-12 12:28:45 -07:00
Ikko Eltociear Ashimine
2a1b6c30a8 Fix typo in QA_with_Langchain_AnalyticDB_and_OpenAI.ipynb (#582)
futher -> further
2023-07-12 12:28:14 -07:00
Jason M
aadfcd040d Update How_to_call_functions_with_chat_models.ipynb (#545)
Updates "min" parameter to "multiplier". Should run the same.
2023-07-11 17:38:33 -07:00
liuchengshan-lcs
a667fce73f Add getting started with PolarDB vector database and OpenAI example. (#489) 2023-07-11 17:13:26 -07:00
Douglas Blank
d6acc8894f Added notebook example for visualizing embeddings in Kangas (#469)
* Added notebook example for visualizing embeddings in Kangas

Plots UMAP projection space, one per row, in open source Kangas DataGrid.

For more information about Kangas, see: https://github.com/comet-ml/kangas

* Moved notebook to third_party_examples
2023-07-11 17:11:16 -07:00
Eli
015a401dcf Enhancements and Refactoring of Python Code Extraction Methods (#467)
* Refactor and enhance code extraction methods.

* Use f-strings to print filepaths, improving readability.
2023-07-11 17:08:37 -07:00
Ted Sanders
50ae26c0e4 fixes token counting in translate_latex_book.ipynb (#579)
* fixes token counting in translate_latex_book.ipynb

* adds back comment
2023-07-11 17:00:38 -07:00
sun zhun
71b33d8a71 Update How_to_handle_rate_limits.ipynb (#554)
Replace deprecated model "code-cushman-001" with "gpt-3.5-turbo".
2023-06-29 22:23:39 -07:00
Kacper Łukawski
645ec14ea2 Refactor Qdrant notebooks (#556)
* Upgrade Qdrant to 1.3.0

* Adapt the descriptions and run the missing cells
2023-06-29 07:47:18 -07:00
colin-openai
497c145cc0 Splitting Vector Databases into individual cookbooks (#529)
* Initial commit of vector database cookbooks split out individually

* Moved notebooks to each provider's named folder and updated the README

* Removed vector DB overall cookbook in favour of individual directories
2023-06-28 01:37:01 -07:00
colin-openai
5d0014ef38 Initial commit of reranking with cross-encoder cookbook (#483)
* Initial commit of reranking with cross-encoder cookbook

* Added logit bias for Yes and No in this case

* Reran end-to-end

* Updated based on Ted's comments

* Rerun with Ted's comments
2023-06-28 00:59:23 -07:00
Filip Haltmayer
e20d05ea14 update to token for zilliz (#552)
Signed-off-by: Filip Haltmayer <filip.haltmayer@zilliz.com>
2023-06-27 12:53:26 -07:00
prestontuggle
1fdce84deb Adds Whisper Prompting Guide (#551) 2023-06-27 14:24:26 -04:00
Elmira Ghorbani
3c4335fd6d create/check data dir for arxiv's papers (#531) 2023-06-26 03:53:55 -07:00
Michael Yuan
6cfc645229 Fix wget download updated parameters (#538) 2023-06-26 01:45:57 -07:00
Ted Sanders
4a565cdebb Ted/update token counting 0613 (#541)
* updates tiktoken counting function

* slight rewording

* updates ChatGPT guide with new models
2023-06-23 16:45:32 -07:00
Avery Khoo
a9f8eb3518 Update How_to_count_tokens_with_tiktoken.ipynb (#511)
Add support for gpt-3.5-*-0613 models
2023-06-23 16:10:30 -07:00
Stéphane G
14fff371a1 Fix typo in Question_answering_using_a_search_API.ipynb (#539)
"This answer which will be used to..." --> "This answer will be used to..."
2023-06-22 16:46:08 -07:00
Simon Suo
62bf5cb61f Add example notebook for financial document analysis with LlamaIndex (#481)
* add notebook

* add pypdf install

* move
2023-06-22 13:40:49 -07:00
Matthew
4dca53fda7 fixed typo (#523) 2023-06-20 15:46:46 -07:00
Simón Posada Fishman
9940792921 Merge pull request #519 from openai/simon/search_aug
Add search augmentation notebook
2023-06-16 17:37:56 -07:00
simonpfish
d4524aa079 rename image file 2023-06-16 17:37:40 -07:00
simonpfish
bec1987484 dummy key naming 2023-06-16 17:23:28 -07:00
simonpfish
3b0718f930 deduplicate search results 2023-06-16 17:21:56 -07:00
Ted Sanders
87186ebc2e renames dummy key 2023-06-16 17:03:29 -07:00
Ted Sanders
447ffbc674 cleaned up notebook 2023-06-16 17:02:42 -07:00
Ted Sanders
85b5846514 change embedding dimensions 2023-06-16 16:45:39 -07:00
Ted Sanders
55e638a153 polishes text 2023-06-16 16:37:32 -07:00
Ted Sanders
3e4cbf5f13 removes extra period from et al. 2023-06-16 16:36:29 -07:00
Ted Sanders
e56364d126 changes search date to June 2023 2023-06-16 16:34:58 -07:00
Ted Sanders
03e74bb9a4 joins run-on sentence 2023-06-16 16:09:11 -07:00
Ted Sanders
181b606eaf adds missing apostrophe 2023-06-16 16:08:14 -07:00
Ted Sanders
0fb6c1438e cuts trailing spaces 2023-06-16 16:07:35 -07:00
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