Module vectorstores (0.3.0)

API documentation for vectorstores module.

Classes

FirestoreVectorStore

FirestoreVectorStore(
    collection: google.cloud.firestore_v1.collection.CollectionReference | str,
    embedding_service: langchain_core.embeddings.embeddings.Embeddings,
    client: typing.Optional[google.cloud.firestore_v1.client.Client] = None,
    content_field: str = "content",
    metadata_field: str = "metadata",
    embedding_field: str = "embedding",
    distance_strategy: typing.Optional[
        google.cloud.firestore_v1.base_vector_query.DistanceMeasure
    ] = DistanceMeasure.COSINE,
    filters: typing.Optional[google.cloud.firestore_v1.base_query.BaseFilter] = None,
)

Interface for vector store.