Find answers from the community

Updated last year

Hi all! I have started looking at llama_

At a glance
Hi all! I have started looking at llama_index, read the docs, familiarised with the concepts etc. I have started to implement a demo that loads some csv data into a dataframe using PandasQueryEngine (from the llama-hub). It works well so far, but I want it to enhance it so I can ask questions about the document and more generally to the OpenAI model for more general / follow up questions. I haven't found a clear example on how to do this. Do you know of any tutorial or notebook showing how to achieve this?
E
L
e
4 comments
maybe PandasQueryEngine isn't the best option if you want something conversational, but you can still use the llamahub loaders
Probably the best optin is to combine the pandas query engine with an agent
Thanks! - yes, I managed to get it working following the chatbots example:
  • Putting the PandasQueryEngine in a QueryEngineTool
  • Creating a subquery engine and putting it in another QueryEngineTool
  • Combining both in an OpenAIAgent.
And it seems to be working as I was expecting
Add a reply
Sign up and join the conversation on Discord