-
Notifications
You must be signed in to change notification settings - Fork 904
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: remove cozo completely, and integrate postgres
- Loading branch information
1 parent
7ab2bb1
commit 7798826
Showing
30 changed files
with
131 additions
and
272 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,6 @@ | |
|
||
with workflow.unsafe.imports_passed_through(): | ||
import msgpack as msgpack | ||
|
||
import os | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,24 +51,15 @@ | |
s3_secret_key: str | None = env.str("S3_SECRET_KEY", default=None) | ||
|
||
|
||
# Cozo | ||
# ---- | ||
cozo_host: str = env.str("COZO_HOST", default="http://127.0.0.1:9070") | ||
cozo_auth: str = env.str("COZO_AUTH_TOKEN", default=None) | ||
summarization_model_name: str = env.str( | ||
"SUMMARIZATION_MODEL_NAME", default="gpt-4-turbo" | ||
) | ||
do_verify_developer: bool = env.bool("DO_VERIFY_DEVELOPER", default=True) | ||
do_verify_developer_owns_resource: bool = env.bool( | ||
"DO_VERIFY_DEVELOPER_OWNS_RESOURCE", default=True | ||
) | ||
|
||
# PostgreSQL | ||
# ---- | ||
db_dsn: str = env.str( | ||
"DB_DSN", | ||
pg_dsn: str = env.str( | ||
"PG_DSN", | ||
default="postgres://postgres:[email protected]:5432/postgres?sslmode=disable", | ||
) | ||
summarization_model_name: str = env.str( | ||
"SUMMARIZATION_MODEL_NAME", default="gpt-4-turbo" | ||
) | ||
|
||
query_timeout: float = env.float("QUERY_TIMEOUT", default=90.0) | ||
|
||
|
@@ -156,8 +147,6 @@ def _parse_optional_int(val: str | None) -> int | None: | |
environment: Dict[str, Any] = dict( | ||
debug=debug, | ||
multi_tenant_mode=multi_tenant_mode, | ||
cozo_host=cozo_host, | ||
cozo_auth=cozo_auth, | ||
sentry_dsn=sentry_dsn, | ||
temporal_endpoint=temporal_endpoint, | ||
temporal_task_queue=temporal_task_queue, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.