Replies: 1 comment 2 replies
-
Hi @mfgering, nice to know you're happy with Django AI Assistant! To assist you properly, could you please provide some clarification on what you're trying to achieve? Are you looking to use the "contexts" IDs for debugging? Or should the end user see that? For debugging, the best is to use Langsmith. To configure it, all you need is setting For the end user, you're looking to add "citations" to the response. It's doable with Langchain, but may require some changes to the About "massaging the response", it would require change to Let me know what you're looking for and I can change the lib to put more extension points for you! |
Beta Was this translation helpful? Give feedback.
-
[Edit: Added screen caps of current UI]
I love this package and django, but I need some advice for how to use RAG more effectively in my app.
I have overriden get_retriever(), and it is working ok. But, I'd like to know which docs the llm used in its answer. My current approach is to prepend a string to each split, i.e., "idx: <rest of chunk", and
to have instructions for identifying these at the end of the answer.
Here is an example system_message with rag context:
Here is an example response:
Several questions:
Many thanks!
Screen cap of an answer:
Beta Was this translation helpful? Give feedback.
All reactions