Reputation: 839
I would like to use Langchain for a chat that answers based on documents we make available to a model with Langhchain. However, I would also like to give answers within the chat that make references/citations to the respective document, from which they got the information from.
Ideally, I also would like to self-host a model that is used by Langchain, i.e., I do not want to rely on a proprietary service.
Is such a thing possible? If so, how?
Upvotes: 1
Views: 2917
Reputation: 81
If you're looking to add inline citations in the reply, it is possible.
You can use citations agent from langchain here.
In llama index there is a similar feature too here.
Upvotes: 1