Apache Airflow & llama-index>=0.10.0 Error #11841
-
Hello everyone. I've been writing ETL processes to store my raw data as llama-index Documents in a postgres database using Apache Airflow dags. In apache airflow I have set its default database to postgres and I've been using pgvector image as my postgres database. Previously when I was using The airflow-init service error is
I've been trying many times with different airflow versions (ranging from 2.7.3 to the latest 2.8.2) but none was working. Anyone have any idea how this could be resolved? Note: Here's my latest ETL processes with airflow if you wanted to have a look https://github.com/TogetherCrew/airflow-dags/tree/feat/upgrade-llama-index-dependency |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hey @amindadgar, great to see you back! Ran into another quirky tech puzzle, I see? Let's dive into this one together. Based on the error message you provided, it seems like the issue is related to SQLAlchemy's The You can try to set the from sqlalchemy import create_engine
engine = create_engine(
SQL_ALCHEMY_CONN,
executemany_mode='batch', # or None
connect_args=connect_args,
**engine_args,
future=True
) Regarding the changes in If the issue persists after trying the above solution, please provide more details about your SQLAlchemy engine configuration and the exact changes you made when upgrading to For more information about SQLAlchemy's Sources
|
Beta Was this translation helpful? Give feedback.
-
I think I found the error. The problem is not related to llama-index and apache airflow should update their sqlalchemy dependency. |
Beta Was this translation helpful? Give feedback.
I think I found the error.
airflow=2.8.2
supportssqlalchemy<2.0.0
andllama-index-vector-stores-postgres==0.1.2
supportssqlalchemy>=2.0.0
. I don't know why no conflict error happened when installingllama-index-vector-stores-postgres==0.1.2
but in any case another error was rasing because of assigning a deprecated value to executemany_mode of sqlalchemyThe problem is not related to llama-index and apache airflow should update their sqlalchemy dependency.