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 7 months ago
0
Follow
Hi folks, I'm following the starter
Hi folks, I'm following the starter
Inactive
0
Follow
A
Artur
7 months ago
ยท
Hi folks, I'm following the starter tutorial here.
https://docs.llamaindex.ai/en/latest/getting_started/starter_example/#query-your-data
I noticed from the logs that the default prompt template intentionally tells the AI to not mention source reference.
How would I go about changing the default prompt? That is, I'd like to ask the AI to cite its references.
L
A
4 comments
Share
Open in Discord
L
Logan M
7 months ago
You can access sources on the response object
response.source_nodes
Alternatively, you can update the prompt here
btw, its not meant to prevent citaitons, but to prevent saying things like "From the provided context, <blah>"
https://docs.llamaindex.ai/en/stable/examples/prompts/prompt_mixin/#accessing-prompts
A
Artur
7 months ago
Interesting. Thanks!
A
Artur
7 months ago
And if I wanted to increment sources with page numbers, where should I look?
A
Artur
7 months ago
Does that depend on the parser for each type of document?
Add a reply
Sign up and join the conversation on Discord
Join on Discord