openai-cookbook
openai-cookbook copied to clipboard
Examples and guides for using the OpenAI API
I have added handling for the last chunk in the split_into_sentences function. Previously, the function did not account for the last chunk, which could lead to incomplete sentences in the...
Adding the Milvus vector database into the vector database examples. Milvus is one of the most popular Vector DBs that is fully open source. This pr adds in its usage...
From reading the code sample in the notebook below this change I can see that these 2 functions (compute_doc_embeddings and load_embeddings) were supposed to return the same "shape". This PR...
when running "Customizing_embeddings" code, the snli_embedding_cache.pkl is missing
recieve -> receive
  This is the code. Are there any mistakes? Why do you keep reporting this error? Is the server not open?
Tidy two of the Azure example notebooks.
Since yesterday I'm getting loads of these errors when using the embeddings API: gaierror(8, 'nodename nor servname provided, or not known')), ClientConnectorError(ConnectionKey(host='api.openai.com', port=443, is_ssl=True This happens on more than 50%...
InvalidRequestError: Unrecognized request argument supplied: example ''' code: response = openai.Completion.create( engine="text-davinci-003", prompt="Write a catchy slogan for a product.\n", examples=[ { "input": "A toothpaste that whitens your teeth and freshens...