Find answers from the community

Home
Members
coder_004
c
coder_004
Offline, last seen 3 months ago
Joined September 25, 2024
c
coder_004
·

Source

Any idea how to print the Source of the documents in the answer based on the query.

Eg.

Data:: 'id': '1409.1556',
'title': 'Very Deep Convolutional Networks for Large-Scale Image Recognition',
'summary': 'In this work we investigate the effect of the convolutional network depth..........................'
'source': 'http://arxiv.org/pdf/1409.1556',
'authors': ['Karen Simonyan', 'Andrew Zisserman'],


Query :: give me summary of 'Very Deep Convolutional Networks for Large-Scale Image Recognition''

Desired Result :: The paper titled "Very Deep Convolutional Networks for Large-Scale Image Recognition" discusses..........

'source': 'http://arxiv.org/pdf/1409.1556',
'authors': ['Karen Simonyan', 'Andrew Zisserman'],

Please let me know
1 comment
L
when trying to integrate the llama index with Chainlit, it gives me error message of

" File "app.py", line 152, in main
for token in response.response_gen:
AttributeError: 'Response' object has no attribute 'response_gen' "


def load_service_context(llm):
chunk_size = 1024

service_context = ServiceContext.from_defaults(chunk_size=chunk_size, llm=llm, callback_manager=CallbackManager([cl.LlamaIndexCallbackHandler()]),)
return service_context

def load_sql_auto_vector_query_engine(sql_tool, vector_tool, service_context):
query_engine = SQLAutoVectorQueryEngine(
sql_tool, vector_tool, service_context=service_context
)
return query_engine


guidance and help will be appreciated. 😄
3 comments
c
L
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.
11 comments
c
a
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?
4 comments
L
c