Skip to content

VectorStoreSearchResults

A page of search results from the vector store.

Example Usage

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

let value: VectorStoreSearchResults = {
  object: "vector_store.search_results.page",
  searchQuery: "<value>",
  data: [
    {
      fileId: "<id>",
      filename: "example.file",
      score: 1682.41,
      content: [
        {
          type: "text",
          text: "<value>",
        },
      ],
    },
  ],
  hasMore: true,
  nextPage: "<value>",
};

Fields

FieldTypeRequiredDescription
object"vector_store.search_results.page"✔️The object type, which is always 'vector_store.search_results.page'.
searchQuerystring✔️The query that was used for the search.
datacomponents.VectorSearchResult[]✔️Array of search results.
hasMoreboolean✔️Whether there are more results available.
nextPagestring✔️Cursor for the next page of results, or null if no more results.