The Embeddings and Chat Completions APIs are a great combination to use when building a question-answering or chatbot application.
Here's how you can get started:
Gather all of the information you need for your knowledge base. Use our Embeddings endpoint to make document embeddings for each section.
When a user asks a question, turn it into a query embedding and use it to find the most relevant sections from your knowledge base.
Use the relevant context from your knowledge base to create a prompt for the Chat Completions endpoint, which can generate an answer for your user.
We encourage you to take a look at our detailed notebook that provides step-by-step instructions on setting up embeddings and the Chat Completions API.
If you run into any issues or have questions, don't hesitate to join our
Community Forum for help.
We're excited to see what you build!