Find answers from the community

Updated 8 months ago

Hello, I've been using the

Hello, I've been using the SSQLAutoVectorQueryEngine and I've found an issue that is semi-dynamic in nature. Can anyone help me with trying to get it solved?
L
t
20 comments
Whats the issue?
I am using the code provided by llamaindex
and getting an error only sometime bc a filter operator is being selected that does not exist within the vectordb
I'll send screen shots
Attachments
LlamaIndex_error_screenshot.png
LlamaIndex__no_error_SQL_screenshot.png
LlamaIndex__no_error_SQL_Vector_screenshot.png
so its the same query for every response
sometimes it works and uses only the sql table
sometimes it works and uses both sql table and vectordb
but then it also fails bc sometimes it uses this "Filter operator function" and none of the filter operators exist
Right -- not every vector db supports every filter operation, so if the LLM decides to write an unsupported opreation, there's not much that can be done about it

Maybe it should be retrying, or the prompt should be customized for the db you are using
so this may be a novice question but the code itself doesn't have any prompts to the llm only descriptions of the data contained within the individual engines
do you have a recommendation of where I could place a prompt like this
or have an idea on which vectordb i could use that would support all these filter operators
i tried chroma and pinecone already but both have the same issue
Optionally you can just subclass the retriever to post-process generated filters
so is there a way to just remove the llm's ability/decision path to use filter operators?
as in it will never choose to use filter operators
You could do that if you just override the class yea
Add a reply
Sign up and join the conversation on Discord