We use cookies on our website.
Docs
API Reference
Schema
VectorDBInsert, VectorDBGetSimilar

VectorDBInsert, VectorDBGetSimilar

VectorDBInsert

Represents the data to be inserted into the vector database. The embedding is not required if the database can embed the data itself.

Attributes

  • id (str): The id of the data.
  • text (str): The text of the data.
  • embedding (List[Any], optional): The embedding of the data. Defaults to None.
  • meta (dict, optional): Any metadata related to the text. Defaults to None.

VectorDBGetSimilar

Represents the data to be used to get similar data from the vector database. Provide either the text or the embedding.

Attributes

  • text (str, optional): The text you want to vector search for. Defaults to None.
  • embedding (List[Any], optional): The embedding you want to vector search for. Defaults to None.
  • n_results (int, optional): The number of results to return. Defaults to 5.