runtime error
Exit code: 1. Reason: connection = pool._invoke_creator(self) File "/usr/local/lib/python3.10/site-packages/sqlalchemy/engine/create.py", line 643, in connect return dialect.connect(*cargs, **cparams) File "/usr/local/lib/python3.10/site-packages/sqlalchemy/engine/default.py", line 616, in connect return self.loaded_dbapi.connect(*cargs, **cparams) File "/usr/local/lib/python3.10/site-packages/psycopg2/__init__.py", line 122, in connect conn = _connect(dsn, connection_factory=connection_factory, **kwasync) sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) could not translate host name "db" to address: Name or service not known (Background on this error at: https://sqlalche.me/e/20/e3q8) The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/app/main.py", line 10, in <module> from app.config import debug_mode, RAG_HOST, RAG_PORT, CHUNK_SIZE, CHUNK_OVERLAP, PDF_EXTRACT_IMAGES, VECTOR_DB_TYPE, \ File "/app/app/config.py", line 265, in <module> vector_store = get_vector_store( File "/app/app/services/vector_store/factory.py", line 24, in get_vector_store return AsyncPgVector( File "/usr/local/lib/python3.10/site-packages/langchain_core/_api/deprecation.py", line 216, in warn_if_direct_instance return wrapped(self, *args, **kwargs) File "/usr/local/lib/python3.10/site-packages/langchain_community/vectorstores/pgvector.py", line 347, in __init__ self.__post_init__() File "/usr/local/lib/python3.10/site-packages/langchain_community/vectorstores/pgvector.py", line 354, in __post_init__ self.create_vector_extension() File "/usr/local/lib/python3.10/site-packages/langchain_community/vectorstores/pgvector.py", line 392, in create_vector_extension raise Exception(f"Failed to create vector extension: {e}") from e Exception: Failed to create vector extension: (psycopg2.OperationalError) could not translate host name "db" to address: Name or service not known (Background on this error at: https://sqlalche.me/e/20/e3q8)
Container logs:
Fetching error logs...