Log in
Log into community
Find answers from the community
View all posts
Related posts
Was this helpful?
π
π
π
Powered by
Hall
Inactive
Updated last year
0
Follow
hi there! how can i add the source of
hi there! how can i add the source of
Inactive
0
Follow
At a glance
a
alvarojauna
last year
Β·
hi there! how can i add the source of the obtained embeddings in the final prompt? I mean, the pages where information is obtained from PDF
T
a
5 comments
Share
Open in Discord
T
Teemu
last year
You can do
Plain Text
Copy
print(response.source_nodes)
T
Teemu
last year
That's where they're contained, there is also the CitationQueryEngine if you want the references to be in the LLM response:
https://docs.llamaindex.ai/en/stable/examples/query_engine/citation_query_engine.html
a
alvarojauna
last year
yes, but i was thinking about the llm response containing the filepath and pages not that way
a
alvarojauna
last year
do u thinks there is any way?
T
Teemu
last year
The retrieved source nodes will have the information, you can phrase your prompt to ask for these details if you want them in the LLM response (if you don't want to just print them directly)
Add a reply
Sign up and join the conversation on Discord
Join on Discord