Skip to content

refactor(deps): migrate langchain-community from 0.2.10 to 0.4.1#213

Open
s0wa48 wants to merge 2 commits intoPolymarket:mainfrom
s0wa48:deps/upgrade-langchain-community-0.4.1
Open

refactor(deps): migrate langchain-community from 0.2.10 to 0.4.1#213
s0wa48 wants to merge 2 commits intoPolymarket:mainfrom
s0wa48:deps/upgrade-langchain-community-0.4.1

Conversation

@s0wa48
Copy link

@s0wa48 s0wa48 commented Mar 3, 2026

Changes

Dependency version bump

  • Updated langchain-community from 0.2.10 to 0.4.1 in requirements.txt

Breaking change: Chroma vectorstore import moved

  • In langchain-community 0.3+, the Chroma vectorstore was removed from langchain_community.vectorstores.chroma and fully migrated to the standalone langchain-chroma package.
  • Updated agents/connectors/chroma.py to import Chroma from langchain_chroma instead of the deprecated langchain_community.vectorstores.chroma.
  • The langchain-chroma package (langchain-chroma==0.1.2) was already present in requirements.txt, so no additional dependency changes are required.

Migration details

  • Before: from langchain_community.vectorstores.chroma import Chroma
  • After: from langchain_chroma import Chroma
  • All call sites (Chroma.from_documents(...), Chroma(persist_directory=..., embedding_function=...), .similarity_search_with_score(...)) remain compatible — the API surface of langchain_chroma.Chroma is identical to the old community version.

This PR was auto-generated by Gittensor upgrade bot using Claude AI


Note

Low Risk
Low risk import-only change, but it can break runtime if langchain_chroma isn’t installed or differs from the previous langchain_community implementation.

Overview
Updates PolymarketRAG to import Chroma from the standalone langchain_chroma package instead of langchain_community.vectorstores.chroma, aligning with newer LangChain packaging.

Written by Cursor Bugbot for commit 969564f. This will update automatically on new commits. Configure here.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

@s0wa48
Copy link
Author

s0wa48 commented Mar 3, 2026

Reverted langchain-community from 0.4.1 back to 0.2.10 to resolve the version conflict. langchain-community==0.4.1 requires langchain-core>=1.0.1,<2.0.0, which is incompatible with the 0.2.x versions of langchain-core, langchain, langchain-openai, langgraph, and other ecosystem packages pinned in requirements.txt. Upgrading langchain-community to 0.4.x would require a coordinated upgrade of the entire langchain ecosystem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant