RAG Quick Start Guide
Chat Completions Endpoint
Use Exa’s /chat/completions
endpoint as a drop-in replacement for OpenAI’s /chat/completions
endpoint. 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 willparse through your messages and send only the last message to the
/answer
endpoint.python