RAG Quick Start Guide
OpenAI Chat Completions
Use Exa’s /chat/completions endpoint as a drop-in replacement for your OpenAI chat completions code. This will send queries to Exa’s /answer
endpoint
See the full /answer endpoint reference here.
Get Started
Get your Exa API key
1
An example of your existing openai chat completions code
python
2
Replace the base URL with api.exa.ai
Exa will parse through your messages and send only the last message to the
/answer
endpoint.python