Skip to content

Topic tags are generated and stored but never surfaced (no read path) #573

Description

@andyne13

Summary

Enabling topic tagging on a preset produces no visible tags. Tagging runs and writes to the topic_tags Postgres table, but nothing ever reads them back.

Details

  • Write path works: topic_tag_stageindexer_actor._replace_topic_tags_if_neededtopic_tag_repo.bulk_insert (table topic_tags, document-level).
  • Read path is missing:
    • topic_tag_repo.get_by_document / search exist but are never called anywhere.
    • No API route exposes topic tags.
    • No search / document / chunk response includes them.
    • The admin UI only configures tagging (presets.tsx) — there is no view that displays generated tags.

So tags are write-only; they never reach a user.

Suggested fix

Add a read path — an API endpoint and/or fold tags into the document/search responses — and surface them in the admin UI (e.g. on the document detail view).

Area: full-stack (backend read endpoint + admin-ui display).

Metadata

Metadata

Assignees

No one assigned

    Labels

    admin-uiAdmin UIbugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions