-
I am using Pandas and SQL query engine for sturctured data. Do we have any other query engines and retrievers for structured data? |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 19 replies
-
Some of the best query engines and retrievers for structured data besides Pandas and SQL are:
|
Beta Was this translation helpful? Give feedback.
-
@dosu Thank you. Is there any vector database I can save structured data and use 'pandas' query engine or pandas query pipe line? I did see more accuracy via pandas. |
Beta Was this translation helpful? Give feedback.
-
@dosu Can you give me sample code to save my pandas dataframe in the 'Faiss' vector database? |
Beta Was this translation helpful? Give feedback.
-
@dosu getting error 'AttributeError: 'RecursiveRetriever' object has no attribute 'query'' |
Beta Was this translation helpful? Give feedback.
-
@dosu... thank you. It did work. But I have to do slight change in the code...
|
Beta Was this translation helpful? Give feedback.
-
@dosu... what if we try it out with this: |
Beta Was this translation helpful? Give feedback.
To resolve the
AttributeError: 'RecursiveRetriever' object has no attribute 'query'
error, you need to ensure that theRecursiveRetriever
is correctly wrapped in aQueryEngineTool
before being passed to theRouterQueryEngine
. TheRouterQueryEngine
expects a sequence ofQueryEngineTool
objects, which have aquery
method.Here's an example of how you can wrap your
RecursiveRetriever
in aQueryEngineTool
and use it with theRouterQueryEngine
: