Examples
Context-Aware Agent
The Context-Aware Agent enhances the capabilities of standard LLM agents by incorporating relevant context from a retriever for each query. This allows the agent to provide more informed and specific responses based on the available information.
Usage
Here's a simple example of how to use the Context-Aware Agent:
In this example, the Context-Aware Agent uses the retriever to fetch relevant context for each query, allowing it to provide more accurate and informed responses based on the indexed documents.
Key Components
contextRetriever
: A retriever (e.g., from a VectorStoreIndex) that fetches relevant documents or passages for each query.
Available Context-Aware Agents
OpenAIContextAwareAgent
: A context-aware agent using OpenAI's models.
Edit on GitHub
Last updated on