Describe the bug
When using a Custom Retriever with Qdrant that correctly formats metadata (e.g. {{metadata.docname}}, {{metadata.url}}, etc.), the metadata is not preserved when passing through the Retriever Tool into an Agent.
The Custom Retriever works correctly when used standalone (output = text or document), but when connected to a Retriever Tool and used inside an Agent, only the pageContent is returned and metadata is lost.
This breaks use cases where metadata is required (e.g. file names, URLs, blob type, citations).
To Reproduce
- Create a Qdrant vector store with documents that include metadata (docname, url, blobType, etc.)
- Add a Custom Retriever node with the following result format:
{{context}}
[FileName]: {{metadata.docname}}
Url: {{metadata.url}}
blobType: {{metadata.blobType}}
- Connect:
Qdrant → Custom Retriever → Retriever Tool → Agent
- Ask a question to the agent
- Observe the response
Expected behavior
The agent response should preserve metadata from the Custom Retriever.
Example:
Some document content...
[FileName]: document.pdf
Url: https://...
blobType: application/pdf
Screenshots
Flow
No response
Use Method
None
Flowise Version
Flowise 3.1.1
Operating System
Windows
Browser
Chrome
Additional context
No response
Describe the bug
When using a Custom Retriever with Qdrant that correctly formats metadata (e.g. {{metadata.docname}}, {{metadata.url}}, etc.), the metadata is not preserved when passing through the Retriever Tool into an Agent.
The Custom Retriever works correctly when used standalone (output = text or document), but when connected to a Retriever Tool and used inside an Agent, only the pageContent is returned and metadata is lost.
This breaks use cases where metadata is required (e.g. file names, URLs, blob type, citations).
To Reproduce
{{context}}
[FileName]: {{metadata.docname}}
Url: {{metadata.url}}
blobType: {{metadata.blobType}}
Qdrant → Custom Retriever → Retriever Tool → Agent
Expected behavior
The agent response should preserve metadata from the Custom Retriever.
Example:
Some document content...
[FileName]: document.pdf
Url: https://...
blobType: application/pdf
Screenshots
Flow
No response
Use Method
None
Flowise Version
Flowise 3.1.1
Operating System
Windows
Browser
Chrome
Additional context
No response