Find answers from the community

Updated 11 months ago

Hi Everyone, Just a doubt, but does the

Hi Everyone, Just a doubt, but does the llama index only give answers based on data present in a vector database or a structured database? What If I want to run some general query eg "How many planets solar system have ", It gives me error :

"Transformed query given SQL response: None
I'm sorry, but there is no information available about Sony in the query results."

I want to run generalized queries too. I'm using SQLAutoVectorQueryEngine.

" query_engine_llm = SQLAutoVectorQueryEngine(
sql_tool, vector_tool, selector = LLMSingleSelector.from_defaults(), service_context=service_context
)"

Any help or guidance?
L
c
4 comments
The default prompts tell it to only use the context provided, so thats kind of expected

You might need to update the prompt templates for your query engines
@Logan M : Can I define a separate Custom Engine for just llm and then use the selector to choose between base query and document-specific query.?

but then again, How will the code work with selector
You could define a custom query engine and do that yea. You would probably use a router query engine to wrap all that and route queries to the appropriate query engine
Add a reply
Sign up and join the conversation on Discord