| Name | Type | Description |
|---|---|---|
texts* | list[str] | List of texts to add to the collection. |
collection_name | str | Default: _LANGCHAIN_DEFAULT_COLLECTION_NAMEName of the collection to create. |
persist_directory | str | None | Default: None |
host | str | None | Default: None |
port | int | None | Default: None |
ssl | bool | Default: False |
headers | dict[str, str] | None | Default: None |
chroma_cloud_api_key | str | None | Default: None |
tenant | str | None | Default: None |
database | str | None | Default: None |
embedding | Embeddings | None | Default: None |
metadatas | list[dict] | None | Default: None |
ids | list[str] | None | Default: None |
client_settings | chromadb.config.Settings | None | Default: None |
client | chromadb.ClientAPI | None | Default: None |
collection_metadata | dict | None | Default: None |
collection_configuration | CreateCollectionConfiguration | None | Default: None |
kwargs | Any | Default: {} |
Create a Chroma vectorstore from a raw documents.
If a persist_directory is specified, the collection will be persisted there. Otherwise, the data will be ephemeral in-memory.
Directory to persist the collection.
Hostname of a deployed Chroma server.
Connection port for a deployed Chroma server. Default is 8000.
Whether to establish an SSL connection with a deployed Chroma server. Default is False.
HTTP headers to send to a deployed Chroma server.
Chroma Cloud API key.
Tenant ID. Required for Chroma Cloud connections. Default is 'default_tenant' for local Chroma servers.
Database name. Required for Chroma Cloud connections. Default is 'default_database'.
Embedding function.
List of metadatas.
List of document IDs.
Chroma client settings.
Chroma client. Documentation: https://docs.trychroma.com/reference/python/client
Collection configurations.
Index configuration for the collection.
Additional keyword arguments to initialize a Chroma client.