Skip to content

[Feature]: Navigate Inline Citation Chips to Exact Source Regions in Original Document Preview #223

Description

@kaiyu96

Problem statement

Knowhere can generate citations at a page and region level, yet users need a direct way to inspect the exact evidence behind each citation. The current citation interaction should support navigation from an answer to the relevant location in the original document, with a clear and temporary visual highlight to help users quickly verify the cited content.

Affected area

Other

Proposed solution

Each generated citation generates one chip, corresponding to a specific referenced location on a specific page. When a user clicks a chip, the center canvas navigates to the original document preview and scrolls to the referenced location on that page. The referenced location is displayed on the frontend with a semi-transparent rectangular highlight: color #8E51FF, opacity 25%, and border radius 8px. Each time a citation chip is clicked, the rectangle flashes twice, remains visible for 3 seconds, and then gradually fades out.

Image

Alternatives considered

No response

Compatibility and migration notes

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions