Skip to content

SearchTextResult

Individual search result.

Example Usage

typescript
import { SearchTextResult } from "@meetkai/mka1/models/components";

let value: SearchTextResult = {
  text: "Wireless noise-cancelling headphones with 30-hour battery life",
  group: "electronics_q1_2026",
  score: 0.9321,
};

Fields

FieldTypeRequiredDescription
textstring✔️Matching text content
groupstring✔️Group identifier associated with this text
scorenumber✔️Relevance score (higher = better). Hybrid mode returns LanceDB's _relevance_score directly. During the FTS rebuild debounce window the server falls back to vector-only search and reports 1 / (1 + _distance) instead, which is in (0, 1].