openai-cookbook
openai-cookbook copied to clipboard
Examples and guides for using the OpenAI API
Hey team - here's an example notebook for using signal processing methods to improve the OpenAI embeddings' ability to encode long documents. Full paper can be found here: https://jagilley.github.io/fft-embed.html Let...
Line 137 of crawl.py throws an exception when a question mark is in the URL. This character is not allowed in Windows file names. Replacing line 137 with something like...
Propose the following change: - "For example, if you were you can try more..." -> "For example, you can try more..." I think that "wanted" instead of "were" was originally...
I get the following error POST http://localhost:3000/api/search-file-chunks 500 (Internal Server Error)
1. Use regex to match the API endpoint component. 2. Add support for the chat/completions endpoint. 3. Replace eval with `json.loads` for more robustness and safety.
Today I found that the calculation was wrong when I was calculating the token size for `gpt-3.5-turbo`
Adding two Milvus notebook examples that show how to use Milvus and OpenAi and how to use Milvus and OpenAI for hybrid search.
This PR fixes a bug with Milvus index within the shared ipynb notebook.
Flask sets up its logger and doesn't touch the root python logger. This patch centralizes the logging code in app.py and copies the default flask logger config to the root...