Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions core/python/rag-vector-search/data_ingestion/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ readme = "README.md"
requires-python = ">=3.11,<3.14"
dependencies = [
"backoff>=2.2.0",
"bigframes>=2.0.0",
"docker>=7.0.0",
"google-cloud-aiplatform>=1.80.0",
"google-cloud-bigquery>=3.0.0",
"google-cloud-pipeline-components>=2.19.0",
"google-cloud-vectorsearch>=0.4.0",
"kfp>=1.4.0",
"langchain-text-splitters>=0.3.0",
"markdownify>=0.14.0",
"pandas<3",
"bigframes>=2.46.0",
"docker>=7.2.0",
"google-cloud-aiplatform>=1.163.0",
"google-cloud-bigquery>=3.42.2",
"google-cloud-pipeline-components>=2.22.0",
"google-cloud-vectorsearch>=0.11.1",
"kfp>=2.17.0",
"langchain-text-splitters>=1.1.2",
"markdownify>=1.2.3",
"pandas<4",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bumping pandas to <4 allows pandas 3.x, which is incompatible with swifter 1.4.0 and will cause runtime AttributeError or ImportError when process_data.py attempts to import and use swifter. Please revert to pandas<3 to ensure compatibility.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Upgrading pandas to <4 resolves to pandas 3.x, which is incompatible with swifter 1.4.0 and will cause runtime errors in process_data due to removed deprecated features in pandas 3.0. Please keep pandas pinned to <3 or update swifter to a version that supports pandas 3.0.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bumping this to pandas<4 causes an environment mismatch with the @component decorators in process_data.py and ingest_data.py, which are hardcoded to pandas<3. We should align the decorator requirements with this pyproject.toml update to prevent runtime discrepancies on Vertex AI.

"swifter>=1.4.0",
]

Expand Down
Loading
Loading