implement settings
This commit is contained in:
parent
8f157ed72e
commit
eb7d02833d
4 changed files with 8 additions and 14 deletions
|
|
@ -44,12 +44,6 @@ class Config:
|
|||
qdrant_url: str = os.getenv("QDRANT_URL", None)
|
||||
qdrant_api_key: str = os.getenv("QDRANT_API_KEY", None)
|
||||
|
||||
db_path = str = os.getenv("COGNEE_DB_PATH", "databases")
|
||||
db_name: str = os.getenv("DB_NAME", "cognee.db")
|
||||
db_host: str = os.getenv("DB_HOST", "localhost")
|
||||
db_port: str = os.getenv("DB_PORT", "5432")
|
||||
db_user: str = os.getenv("DB_USER", "cognee")
|
||||
db_password: str = os.getenv("DB_PASSWORD", "cognee")
|
||||
|
||||
sqlalchemy_logging: bool = os.getenv("SQLALCHEMY_LOGGING", True)
|
||||
|
||||
|
|
|
|||
0
cognee/infrastructure/databases/graph/GraphConfig.py
Normal file
0
cognee/infrastructure/databases/graph/GraphConfig.py
Normal file
0
cognee/infrastructure/databases/vector/VectorConfig.py
Normal file
0
cognee/infrastructure/databases/vector/VectorConfig.py
Normal file
|
|
@ -36,14 +36,14 @@ async def main():
|
|||
"""
|
||||
|
||||
|
||||
dataset_name = "cs_explanations"
|
||||
await cognee.add(
|
||||
[
|
||||
text_1,
|
||||
text_2
|
||||
],
|
||||
dataset_name
|
||||
)
|
||||
# dataset_name = "cs_explanations"
|
||||
# await cognee.add(
|
||||
# [
|
||||
# text_1,
|
||||
# text_2
|
||||
# ],
|
||||
# dataset_name
|
||||
# )
|
||||
|
||||
await cognee.cognify([ "cs_explanations"])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue