Document Q&A

How it Works
  • The first 20 paragraphs of the document will be considered for embedding.
  • In each paragraph, only the first 1000 characters will be considered for embedding.
  • The question embedding will be used to find top 3 matching paragraphs using cosine similary
  • Matching paragraphs will be passed along with the question to the OpenAI chat completions API to generate an answer.