Log in
Log into community
Find answers from the community
View all posts
Related posts
Did this answer your question?
π
π
π
Powered by
Hall
Inactive
Updated 11 months ago
0
Follow
hi there! how can i add the source of
hi there! how can i add the source of
Inactive
0
Follow
a
alvarojauna
11 months ago
Β·
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
11 months ago
You can do
Plain Text
Copy
print(response.source_nodes)
T
Teemu
11 months ago
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
11 months ago
yes, but i was thinking about the llm response containing the filepath and pages not that way
a
alvarojauna
11 months ago
do u thinks there is any way?
T
Teemu
11 months ago
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