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 LanceDBConfig(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 | allow_reset=True, |
| #16 | ): |
| #17 | """ |
| #18 | Initializes a configuration class instance for LanceDB. |
| #19 | |
| #20 | :param collection_name: Default name for the collection, defaults to None |
| #21 | :type collection_name: Optional[str], optional |
| #22 | :param dir: Path to the database directory, where the database is stored, defaults to None |
| #23 | :type dir: Optional[str], optional |
| #24 | :param host: Database connection remote host. Use this if you run Embedchain as a client, defaults to None |
| #25 | :type host: Optional[str], optional |
| #26 | :param port: Database connection remote port. Use this if you run Embedchain as a client, defaults to None |
| #27 | :type port: Optional[str], optional |
| #28 | :param allow_reset: Resets the database. defaults to False |
| #29 | :type allow_reset: bool |
| #30 | """ |
| #31 | |
| #32 | self.allow_reset = allow_reset |
| #33 | super().__init__(collection_name=collection_name, dir=dir, host=host, port=port) |
| #34 |