Find answers from the community

Updated 2 years ago

https gpt index readthedocs io en stable

At a glance

The community member is using the ContextRetrieverOpenAIAgent from the provided example and wants to get context injection from different chunks of data in their index. The first example uses query engine tools, while the second one uses a retriever. The community member is asking how these two approaches differ and which one they should use.

In the comments, another community member explains that both examples are actually pretty similar - you give an agent some tools, plus a retriever, and then ask a question. The agent uses the retriever you provided as context for which tool to use.

Useful resources
https://gpt-index.readthedocs.io/en/stable/examples/agent/openai_agent_context_retrieval.html#use-uber-10-q-as-context-use-calculator-as-tool
I am using ContextRetrieverOpenAIAgent from this example, I want to get context injection from different chunks of data from my index. The first example uses query engine tools and 2nd one uses retriever for this. How do they differ and which one should I use, thank you.
L
1 comment
Both examples are actually pretty similar

You give an agents some tools, plus a retriever, and then ask a question

The agent uses the retriever you provided as context for which tool to use
Add a reply
Sign up and join the conversation on Discord