janus.embedding.database#

Attributes#

log

Classes#

ChromaEmbeddingDatabase

Singleton holding a Chroma ClientAPI object.

Functions#

Module Contents#

janus.embedding.database.log#
janus.embedding.database.uri_to_path(uri)#
class janus.embedding.database.ChromaEmbeddingDatabase#

Bases: object

Singleton holding a Chroma ClientAPI object.

Example usage: ``` # Connects to default persistent db directory chroma_client = ChromaEmbeddingDatabase() chroma_client.list_collections()

langchain_collection = langchain.vectorstores.Chroma(

collection_name=”janus”, client=chroma_client, embedding_function=…

)#

Instantiates or returns a Chroma ClientAPI object as configured by the provided path.

param path:

The path to the ChromaDB. Can be either a string of a URL or path or a Path object.

returns:

A Chroma ClientAPI object.

client = None#
common_settings#