response.source_nodes
. But you.com
and perpexity.ai
add inline citations. How to determine which line is coming from which source document. Should I do text/keyword matching to determine this? We might have false attributions by this approach..paper-qa
based on langchain
asks the LLM in the prompt itself to specify the citation. See this prompt: https://github.com/whitead/paper-qa/blob/7173e053767d9102b6685bb6b65eafcf5ebf4a7f/paperqa/qaprompts.py#L19. It has "...For each sentence in your answer, indicate which sources most support it ..".