Add project tools and contributing guidelines (#281)

This commit is contained in:
ma-raza
2023-07-16 14:08:05 +10:00
committed by GitHub
parent 3f71050c47
commit ac68986404
20 changed files with 352 additions and 22 deletions

View File

@@ -3,10 +3,12 @@ import os
from chromadb.utils import embedding_functions
from embedchain.config.BaseConfig import BaseConfig
class InitConfig(BaseConfig):
"""
Config to initialize an embedchain `App` instance.
"""
def __init__(self, log_level=None, ef=None, db=None, host=None, port=None, id=None):
"""
:param log_level: Optional. (String) Debug level
@@ -21,10 +23,11 @@ class InitConfig(BaseConfig):
if db is None:
from embedchain.vectordb.chroma_db import ChromaDB
self.db = ChromaDB(ef=self.ef)
self.db = ChromaDB(ef=ef)
else:
self.db = db
self.ef = ef
self.host = host
self.port = port

View File

@@ -1,5 +1,5 @@
from .AddConfig import AddConfig
from .BaseConfig import BaseConfig
from .ChatConfig import ChatConfig
from .InitConfig import InitConfig
from .QueryConfig import QueryConfig
from .AddConfig import AddConfig # noqa: F401
from .BaseConfig import BaseConfig # noqa: F401
from .ChatConfig import ChatConfig # noqa: F401
from .InitConfig import InitConfig # noqa: F401
from .QueryConfig import QueryConfig # noqa: F401