Repository navigation
Description
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
- 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_typedescribed as "Type of event, e.g. stock split or dividend". Add a nested field under a struct whose description also mentions it. - Enable semantic search (embeddings on) and run Search Indexing for
topic. - In Ask Collate, ask "Which Kafka topics contain information about stock splits?", or run a semantic/hybrid search for it.
- The topic is missing or ranks low, and the answer does not cite the field. Querying the chunk index shows that
textToEmbedandtextToLLMContextfor 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
fmcardoso commentedon Nov 11, 2026
Target: main (2.1.0) and a backport to 2.0 (2.0.8). Release field holds the earliest.
Fixes open-metadata#37523: Embed topic schema fields in vector chunk …
[2.0] Fixes #37523: Embed topic schema fields in vector chunk text (#…