feat: Optionally include the filename in the RAG context #4462

Closed
opened 2025-11-11 15:54:44 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @alphafalcon on GitHub (Mar 17, 2025).

Check Existing Issues

  • I have searched the existing issues and discussions.

Problem Description

I'm trying to use the RAG functionality to search my obsidian.md knowledge base. However, a lot of context for the content of a note is in the path and filename.
For example, when asking to retrieve a phone number for Jane Doe, which is located inside a note "People/Jane Doe.md" the model responds with the phone number, but notes that there is no information about a Jane Doe in the provided context, probably because the context transmitted to the LLM only contains a <source_id> tag

Desired Solution you'd like

The model should optionally be provided with metadata about the files, allowing it to more precisely identify relevant material.

Alternatives Considered

No response

Additional Context

No response

Originally created by @alphafalcon on GitHub (Mar 17, 2025). ### Check Existing Issues - [x] I have searched the existing issues and discussions. ### Problem Description I'm trying to use the RAG functionality to search my obsidian.md knowledge base. However, a lot of context for the content of a note is in the path and filename. For example, when asking to retrieve a phone number for Jane Doe, which is located inside a note "People/Jane Doe.md" the model responds with the phone number, but notes that there is no information about a Jane Doe in the provided context, probably because the context transmitted to the LLM only contains a <source_id> tag ### Desired Solution you'd like The model should optionally be provided with metadata about the files, allowing it to more precisely identify relevant material. ### Alternatives Considered _No response_ ### Additional Context _No response_
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#4462