VectorRecord
- vector (List[float]): The numerical representation of the vector.
- id (str, optional): A unique identifier for the vector. If not provided, an random uuid will be assigned.
- payload (Optional[Dict[str, Any]], optional): Any additional metadata or information related to the vector. (default: :obj:
None)
VectorDBQuery
- query_vector (List[float]): The numerical representation of the query vector.
- top_k (int, optional): The number of top similar vectors to retrieve from the database. (default: :obj:
1)
init
- query_vector (List[float]): The numerical representation of the query vector.
- top_k (int, optional): The number of top similar vectors to retrieve from the database. (default: :obj:
1)
VectorDBQueryResult
- record (VectorRecord): The target vector record.
- similarity (float): The similarity score between the query vector and the record.
create
VectorDBQueryResult instance.
VectorDBStatus
- vector_dim (int): The dimension of stored vectors.
- vector_count (int): The number of stored vectors.
BaseVectorStorage
add
- records (List[VectorRecord]): List of vector records to be saved. **kwargs (Any): Additional keyword arguments.
delete
- ids (List[str]): List of unique identifiers for the vectors to be deleted. **kwargs (Any): Additional keyword arguments.
status
query
- query (VectorDBQuery): The query object containing the search vector and the number of top similar vectors to retrieve. **kwargs (Any): Additional keyword arguments.
clear
load
client
get_payloads_by_vector
BaseVectorStorage.query.
Parameters:
- vector (List[float]): The search vector.
- top_k (int): The number of top similar vectors.