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.base_config import BaseConfig |
| #4 | |
| #5 | |
| #6 | class BaseVectorDbConfig(BaseConfig): |
| #7 | def __init__( |
| #8 | self, |
| #9 | collection_name: Optional[str] = None, |
| #10 | dir: str = "db", |
| #11 | host: Optional[str] = None, |
| #12 | port: Optional[str] = None, |
| #13 | **kwargs, |
| #14 | ): |
| #15 | """ |
| #16 | Initializes a configuration class instance for the vector database. |
| #17 | |
| #18 | :param collection_name: Default name for the collection, defaults to None |
| #19 | :type collection_name: Optional[str], optional |
| #20 | :param dir: Path to the database directory, where the database is stored, defaults to "db" |
| #21 | :type dir: str, optional |
| #22 | :param host: Database connection remote host. Use this if you run Embedchain as a client, defaults to None |
| #23 | :type host: Optional[str], optional |
| #24 | :param host: Database connection remote port. Use this if you run Embedchain as a client, defaults to None |
| #25 | :type port: Optional[str], optional |
| #26 | :param kwargs: Additional keyword arguments |
| #27 | :type kwargs: dict |
| #28 | """ |
| #29 | self.collection_name = collection_name or "embedchain_store" |
| #30 | self.dir = dir |
| #31 | self.host = host |
| #32 | self.port = port |
| #33 | # Assign additional keyword arguments |
| #34 | if kwargs: |
| #35 | for key, value in kwargs.items(): |
| #36 | setattr(self, key, value) |
| #37 |