Skip to content

Conversation

@abrookins
Copy link
Collaborator

@abrookins abrookins commented Nov 13, 2025

This PR adds support for LangChain v1. Standing on the shoulders of #89 and #92.

- Update langchain-core from ^0.3 to ^1.0 in main dependencies
- Replace git-based dependencies with PyPI releases for all groups
- Update langchain-openai to ^1.0 across all dependency groups
- Maintain compatibility with existing Redis and other dependencies

This addresses issue #86 by enabling compatibility with LangChain v1.0+
- Update version in pyproject.toml from 0.2.4 to 1.0.0
- Update version in version.py from 0.2.0 to 1.0.0
- Major version bump indicates breaking change compatibility with LangChain v1
- Update cache.ipynb: langchain.globals -> langchain_core.globals, langchain.schema -> langchain_core.outputs
- Update vectorstores.ipynb: langchain.docstore.document -> langchain_core.documents
- Update kitchensink.ipynb: langchain.globals -> langchain_core.globals
- Update langgraph_self_rag.ipynb: langchain.text_splitter -> langchain_text_splitters

These changes ensure documentation examples work with LangChain v1
@abrookins abrookins changed the title feat: Add LangChain v1 support Add LangChain v1 support Nov 13, 2025
@abrookins abrookins requested a review from Copilot November 13, 2025 23:51
Copilot finished reviewing on behalf of abrookins November 13, 2025 23:53
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR successfully adds support for LangChain v1 by updating dependencies and fixing compatibility issues throughout the codebase.

Key Changes:

  • Updated core dependencies from LangChain v0.3 to v1.0 (langchain-core and langchain-openai)
  • Bumped package version to 1.0.0 to reflect the major update
  • Updated minimum Python version requirement from 3.9 to 3.10

Reviewed Changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
libs/redis/pyproject.toml Updated dependencies to use LangChain v1.0 and changed Python version requirement to >=3.10
libs/redis/poetry.lock Regenerated lock file with LangChain v1.0 dependencies and updated package versions
libs/redis/langchain_redis/version.py Updated version string from 0.2.0 to 1.0.0
libs/redis/docs/vectorstores.ipynb Updated import from langchain.docstore.document to langchain_core.documents
libs/redis/docs/langgraph_self_rag.ipynb Updated import from langchain.text_splitter to langchain_text_splitters
libs/redis/docs/kitchensink.ipynb Updated import from langchain.globals to langchain_core.globals
libs/redis/docs/chat_history.ipynb Reorganized imports to improve code style
libs/redis/docs/cache.ipynb Updated imports from langchain.globals and langchain.schema to langchain_core equivalents

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@abrookins abrookins requested a review from bsbodden November 14, 2025 00:30
@abrookins
Copy link
Collaborator Author

Ready for review 🫡

Copy link
Collaborator

@tylerhutcherson tylerhutcherson left a comment

Choose a reason for hiding this comment

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

lgtm, left a few comments on the markdowns and the package versioning

- Update Python requirement from >=3.9 to >=3.10 to match LangChain v1 requirements
- Regenerate poetry.lock with new dependency constraints
- This ensures compatibility with LangChain v1 which requires Python 3.10+
- Remove Python 3.9 support (EOL October 2025)
- Add Python 3.13 support
- Update test, lint, and compile integration test workflows
- Aligns with LangChain v1 Python 3.10+ requirement
- Create detailed migration documentation for v0.3.0 upgrade (LangChain
  v1)
- Include step-by-step migration instructions
- Add troubleshooting section and FAQ
- Include before/after code examples
@abrookins abrookins force-pushed the feature/langchain-v1-support branch from 53b8312 to f2e73b2 Compare November 15, 2025 01:03
@abrookins abrookins merged commit 8535371 into main Nov 15, 2025
15 checks passed
@abrookins abrookins deleted the feature/langchain-v1-support branch November 15, 2025 01:24
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.

3 participants