You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Direct knowledge base file referencing in chat (@mention or inline picker) #1337
Description:
Currently users can attach external files via the chat attach button, and the system correctly RAGs the knowledge base when asked. However there is no way to directly reference a specific knowledge base document inline in a chat message — for example @filename style referencing as seen in IDE tools like Cursor or Codeium.
Use case: A user wants to ask a question specifically about "Q3 Report.pdf" from the knowledge base without uploading it again externally. There is no mechanism to do this explicitly.
Expected: An inline referencing mechanism (e.g. @ picker or /kb/ command) allowing users to pin or cite a specific knowledge base document within a chat prompt.
Current behavior: Knowledge base is RAGged automatically but cannot be explicitly targeted per document in a single message.
Triaged — valid feature, keeping open. There's currently no inline knowledge-base reference (@-mention / / picker) in the chat composer; KB grounding happens automatically via RAG, and the only manual path is the attach-upload button. A Cursor-style inline picker to pin a specific KB document to a prompt is a reasonable addition. Assigned to me.
Feature request (@mention / inline picker to reference a specific knowledge-base file directly in chat). This is a net-new input affordance: a mention/autocomplete in the chat composer that resolves to a KB document and injects it into the turn's context. Non-trivial (composer UI + KB search/picker + context injection). Keeping as a tracked feature; will scope against the existing attachment/RAG context pipeline. Keeping assigned.
Scoping (M/L, net-new composer feature). Three pieces:
Composer autocomplete. Add an @-trigger popover to the chat composer (features/chat/components/chat-input.tsx) — on @ + query, show a KB document picker.
KB search. Back the picker with document search — reuse convex/documents/list_documents_paginated.ts (+ its search arg) scoped to the org / current project.
Per-turn context injection. On send, resolve each mention to its document and inject that document's content as context for that turn only (mirrors how attachments are folded in via process_attachments.ts), with a visible chip in the composer.
No backend gap — document listing/search already exists; the work is the composer autocomplete + wiring the selected docs into the turn's context. Worth a dedicated branch validated against a running stack (the injection path touches retrieval). Leaving open as a tracked feature.
Activity
yannickmonney commentedon May 31, 2026
Triaged — valid feature, keeping open. There's currently no inline knowledge-base reference (@-mention /
/picker) in the chat composer; KB grounding happens automatically via RAG, and the only manual path is the attach-upload button. A Cursor-style inline picker to pin a specific KB document to a prompt is a reasonable addition. Assigned to me.yannickmonney commentedon Jun 1, 2026
Feature request (
@mention/ inline picker to reference a specific knowledge-base file directly in chat). This is a net-new input affordance: a mention/autocomplete in the chat composer that resolves to a KB document and injects it into the turn's context. Non-trivial (composer UI + KB search/picker + context injection). Keeping as a tracked feature; will scope against the existing attachment/RAG context pipeline. Keeping assigned.yannickmonney commentedon Jun 2, 2026
Scoping (M/L, net-new composer feature). Three pieces:
@-trigger popover to the chat composer (features/chat/components/chat-input.tsx) — on@+ query, show a KB document picker.convex/documents/list_documents_paginated.ts(+ itssearcharg) scoped to the org / current project.process_attachments.ts), with a visible chip in the composer.No backend gap — document listing/search already exists; the work is the composer autocomplete + wiring the selected docs into the turn's context. Worth a dedicated branch validated against a running stack (the injection path touches retrieval). Leaving open as a tracked feature.