From c96d0ada033f687f147ad93975e5941bcc5b028f Mon Sep 17 00:00:00 2001 From: DFFM-maker Date: Fri, 26 Dec 2025 13:14:27 +0100 Subject: [PATCH] postgress version connect --- .gitignore | 2 +- app.py | 2 +- docker-compose.yml | 2 +- requirements.txt | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index b4d08883..0e4b355f 100644 --- a/.gitignore +++ b/.gitignore @@ -2,5 +2,5 @@ __pycache__/ *.pyc .aider* -workspaces/ +workspaces/* qdrant_storage/ \ No newline at end of file diff --git a/app.py b/app.py index 290e04ee..a4c9b99b 100644 --- a/app.py +++ b/app.py @@ -15,7 +15,7 @@ from chainlit.data.sql_alchemy import SQLAlchemyDataLayer DATABASE_URL = "postgresql+asyncpg://user:password@postgres:5432/ai_station" # Attiviamo il salvataggio su DB -cl.data_layer = SQLAlchemyDataLayer(url=DATABASE_URL) +cl.data_layer = SQLAlchemyDataLayer(conn_string=DATABASE_URL) # - # --- CONFIGURAZIONE HARD-CODED --- diff --git a/docker-compose.yml b/docker-compose.yml index 9e64ae6c..608816ed 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -32,7 +32,7 @@ services: ports: - "5432:5432" volumes: - - postgres-data:/var/lib/postgresql + - postgres-data:/var/lib/postgresql/data networks: - ai-station-net diff --git a/requirements.txt b/requirements.txt index 90d9ddc9..204b6082 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ -chainlit +chainlit==1.3.2 ollama asyncpg psycopg2-binary -qdrant-client +qdrant-client>=1.10.0 sqlalchemy \ No newline at end of file