Vectorstore Backends

Vectorstore backends: the vector database products that Smarter supports.

get_backend() returns the backend of a vectorstore.

smarter.apps.vectorstore.backends.get_backend(vectorstore, embeddings=None)[source]

The backend of a vectorstore.

Parameters:
  • vectorstore (VectorstoreMeta) – The vectorstore.

  • embeddings (Embeddings | None) – The embeddings model, or None for a backend that does not embed.

Return type:

SmarterVectorstoreBackend

Returns:

An instance of the backend class of the vectorstore’s backend.

Raises:

SmarterConfigurationError – If the backend is not supported.