Sample Scripts
Question Answering
How to use Embeddings API for Natural Language Question Answering via any LLM
To use the Embeddings API, please go through the detailed information about the API and its parameters from the Documentation.
If you don’t have an API key, please send your request - API Access Request Form.
Example
Below is a Python example demonstrating how to perform a question-answering:
Function to get similar filings chunks
Function to Generate Answers Using OpenAI GPT Model
Key Points
- Replace YOUR_API_KEY_HERE with your actual API key in the Authorization header.
- Replace YOUR_OPEN_AI_KEY_HERE with your actual OpenAI API key.
- Modify the query parameter to suit your specific question.
- Adjust the filters to target specific document types or time periods as needed.