repositories
loading repo index
repositories
loading repo index
repository
loading code, commits, and activity
public Clawd ADK gateway launch mirror
stars
latest
clone command
git clone gitlawb://did:key:z6Mkq5mY...iFZ5/my-project-publ...git clone gitlawb://did:key:z6Mkq5mY.../my-project-publ...2fa351d6docs: add automaton and perps launch sources16d ago| #1 | from typing import Optional |
| #2 | |
| #3 | from embedchain.config.vector_db.base import BaseVectorDbConfig |
| #4 | from embedchain.helpers.json_serializable import register_deserializable |
| #5 | |
| #6 | |
| #7 | @register_deserializable |
| #8 | class ChromaDbConfig(BaseVectorDbConfig): |
| #9 | def __init__( |
| #10 | self, |
| #11 | collection_name: Optional[str] = None, |
| #12 | dir: Optional[str] = None, |
| #13 | host: Optional[str] = None, |
| #14 | port: Optional[str] = None, |
| #15 | batch_size: Optional[int] = 100, |
| #16 | allow_reset=False, |
| #17 | chroma_settings: Optional[dict] = None, |
| #18 | ): |
| #19 | """ |
| #20 | Initializes a configuration class instance for ChromaDB. |
| #21 | |
| #22 | :param collection_name: Default name for the collection, defaults to None |
| #23 | :type collection_name: Optional[str], optional |
| #24 | :param dir: Path to the database directory, where the database is stored, defaults to None |
| #25 | :type dir: Optional[str], optional |
| #26 | :param host: Database connection remote host. Use this if you run Embedchain as a client, defaults to None |
| #27 | :type host: Optional[str], optional |
| #28 | :param port: Database connection remote port. Use this if you run Embedchain as a client, defaults to None |
| #29 | :type port: Optional[str], optional |
| #30 | :param batch_size: Number of items to insert in one batch, defaults to 100 |
| #31 | :type batch_size: Optional[int], optional |
| #32 | :param allow_reset: Resets the database. defaults to False |
| #33 | :type allow_reset: bool |
| #34 | :param chroma_settings: Chroma settings dict, defaults to None |
| #35 | :type chroma_settings: Optional[dict], optional |
| #36 | """ |
| #37 | |
| #38 | self.chroma_settings = chroma_settings |
| #39 | self.allow_reset = allow_reset |
| #40 | self.batch_size = batch_size |
| #41 | super().__init__(collection_name=collection_name, dir=dir, host=host, port=port) |
| #42 |