Find answers from the community

Updated 7 months ago

Hi folks, I'm following the starter

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
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
Interesting. Thanks!
And if I wanted to increment sources with page numbers, where should I look?
Does that depend on the parser for each type of document?
Add a reply
Sign up and join the conversation on Discord