Skip to content

Semantic search and Ask Collate miss topics whose match is only in schema fields #37523

Closed

Description

@fmcardoso

Affected module

Search / Discovery (backend: vector / hybrid search indexing)

Describe the bug

Semantic (vector) search, hybrid search and Ask Collate cannot find a messaging topic, for example a Kafka topic, when the matching information is only in the topic's schema fields.

The vector chunk documents built for a topic (VectorDocBuilder) hold the topic's name, display name and description. They hold none of messageSchema.schemaFields, so a field's name and description are never embedded and never reach the LLM context. Tables don't have this problem because their column names and descriptions are already embedded.

Example: a corporate-actions topic has a generic description, and the only mention of stock splits is in its fields. One is a type field described as "Type of event, e.g. stock split or dividend"; another is a nested field such as payload.ratio described as "Ratio of the stock split, e.g. 2:1". Asking "which Kafka topics carry stock split information?" either doesn't return the topic or ranks it low, and the answer can't quote the field that matches. Fields nested inside a struct are never found.

To Reproduce

  1. Create a Kafka topic with a generic description and a message schema in which only one field description mentions the concept, e.g. a top-level field event_type described as "Type of event, e.g. stock split or dividend". Add a nested field under a struct whose description also mentions it.
  2. Enable semantic search (embeddings on) and run Search Indexing for topic.
  3. In Ask Collate, ask "Which Kafka topics contain information about stock splits?", or run a semantic/hybrid search for it.
  4. The topic is missing or ranks low, and the answer does not cite the field. Querying the chunk index shows that textToEmbed and textToLLMContext for the topic hold no field names or descriptions.

Expected behavior

The topic's schema fields, including nested ones, are part of the embedded text and the LLM context, the same way a table's columns are. A question answered by a field description finds the topic near the top, and the answer can quote that field. Topics without a schema should be unaffected.

OpenMetadata version

2.0.x (also on main)

Additional context

Other entity types with field-like schemas that are missing from the vector text in the same way, as possible follow-ups:

  • dashboard data model columns
  • container data model columns
  • search index fields
  • API endpoint request and response schemas
  • ML model features
  • nested table columns

Pre-submission checklist

  • I searched for duplicate issues.
  • I removed credentials, hostnames, emails, and other sensitive data from logs and config.

Activity

  1. self-assigned this
    on Nov 11, 2026
  2. added
    bug
    on Nov 11, 2026
  3. moved this to In Review / QA 👀 in Shippingon Nov 11, 2026
  4. fmcardoso commented on Nov 11, 2026

    @fmcardoso
    MemberAuthor

    Target: main (2.1.0) and a backport to 2.0 (2.0.8). Release field holds the earliest.

  5. moved this from In Review / QA 👀 to Done ✅ in Shippingon Nov 12, 2026
  6. added a commit that references this issue on Nov 12, 2026
    3ea4bcf
  7. added a commit that references this issue on Nov 12, 2026
    683e671
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

  • Status
    Done ✅
  • Status
    Done ✅

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions