Log in
Log into community
Find answers from the community
View all posts
Related posts
Was this helpful?
π
π
π
Powered by
Hall
Inactive
Updated 4 months ago
0
Follow
Response
Response
Inactive
0
Follow
At a glance
p
paapi
4 months ago
Β·
Hello, I am working with llama index with chromadb to get response from query, while I get response i am trying to get what document it is referring to i tried this:
if hasattr(response, 'metadata'):
document_info = str(response.metadata)
find = re.findall(r"'page_label': '[^']
'
,
'file
_name
'
:
'
[
^
'
]
'", document_info)
print('\n'+'=' * 60+'\n')
print('Context Information')
print(str(find))
print('\n'+'=' * 60+'\n')
L
p
4 comments
Share
Open in Discord
L
Logan M
4 months ago
You probably want to check response.source_nodes instead
p
paapi
4 months ago
Ohh because by doing what I did it gives me doc even if I just have hi as my query
p
paapi
4 months ago
I am still getting same issue whenever I have query which is not related to any documents I still get same issue
p
paapi
4 months ago
I get response of the file regardless
Add a reply
Sign up and join the conversation on Discord
Join on Discord