Skip to content

Direct knowledge base file referencing in chat (@mention or inline picker) #1337

Closed

Description

@dev-bitrupt

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.

Activity

  1. added
    priority: low
    improvement
    service: platform
    on Apr 10, 2026
  2. yannickmonney commented on May 31, 2026

    @yannickmonney
    Contributor

    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.

  3. yannickmonney commented on Jun 1, 2026

    @yannickmonney
    Contributor

    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.

  4. yannickmonney commented on Jun 2, 2026

    @yannickmonney
    Contributor

    Scoping (M/L, net-new composer feature). Three pieces:

    1. Composer autocomplete. Add an @-trigger popover to the chat composer (features/chat/components/chat-input.tsx) — on @ + query, show a KB document picker.
    2. KB search. Back the picker with document search — reuse convex/documents/list_documents_paginated.ts (+ its search arg) scoped to the org / current project.
    3. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

improvementpriority: lowservice: platform

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions