Skip to content

VectorSearchResult

A single search result from a vector store search.

Example Usage

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

let value: VectorSearchResult = {
  fileId: "<id>",
  filename: "example.file",
  score: 7713.87,
  content: [],
};

Fields

FieldTypeRequiredDescription
fileIdstring✔️The ID of the file containing this result.
filenamestring✔️The name of the file.
scorenumber✔️The relevance score of this result.
attributesRecord<string, components.VectorSearchResultAttributes>File attributes.
contentcomponents.VectorSearchResultContent[]✔️Array of content items.