Hi, I implemented the following workflow:ottomator-agents/n8n-agentic-rag-agent at main · coleam00/ottomator-agents · GitHub (which I found via the following video: https://www.youtube.com/watch?v=mQt1hOjBH9o ) .
This is fascinating & works in a small test of mine!
I want to modify it, to ALWAYS give the source file & URL, so that the user can verify the answer and may find additional informationen.
I tried to modify the RAG prompt with the following:
When presenting source information, always include both:
Source File: the exact title of the document you retrieved information from
Source URL: the exact value from the url field, shown as plain text
Never generate or guess a URL. . If you do not have access to the url, leave it out or indicate it is missing.
(here is my complete system message: pastebin *dot* com/qwFCcxiy - sorry, as a new user I can only post 2 links in a post…)
The result is unfortunately, that it always mentioned the file name, but not the URL.
E.g.
Question:
Was was I in Balve?
Response:
You were in Balve on the 5th April 2025.
Source File: kb1.txt
Source URL: missing
Can someone point me in the right direction?