Skip to content

[RAG] Always surface attached file context to the model#35

Merged
StanislavKozachenko merged 1 commit into
mainfrom
feat-rag-file-awareness
Mar 31, 2026
Merged

[RAG] Always surface attached file context to the model#35
StanislavKozachenko merged 1 commit into
mainfrom
feat-rag-file-awareness

Conversation

@StanislavKozachenko

Copy link
Copy Markdown
Owner

Ensure the model always knows which files are attached to the conversation.

Key changes

  • GET /api/chat — fetch file name alongside id when checking for attachments
  • System prompt — always inject attached file names even when vector search returns no chunks; previously the model received no file context if similarity search came back empty
  • RAG chunks — appended to the base file notice rather than replacing it

Closes #32

@vercel

vercel Bot commented Mar 31, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
chatbot Ready Ready Preview, Comment Mar 31, 2026 1:24pm

@StanislavKozachenko StanislavKozachenko self-assigned this Mar 31, 2026
@StanislavKozachenko StanislavKozachenko merged commit ca26709 into main Mar 31, 2026
6 checks passed
@StanislavKozachenko StanislavKozachenko deleted the feat-rag-file-awareness branch March 31, 2026 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RAG: always surface attached file context to the model

1 participant