Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiple: langchain 0.2 in master #21191

Merged
merged 79 commits into from
May 8, 2024
Merged

multiple: langchain 0.2 in master #21191

merged 79 commits into from
May 8, 2024

Conversation

eyurtsev
Copy link
Collaborator

@eyurtsev eyurtsev commented May 2, 2024

0.2rc

migrations

  • Move memory
  • Move remaining retrievers
  • graph_qa chains
  • some dependency from evaluation code potentially on math utils
  • Move openapi chain from langchain.chains.api.openapi to langchain_community.chains.openapi
  • Migrate langchain.chains.ernie_functions to langchain_community.chains.ernie_functions
  • migrate langchain/chains/llm_requests.py to langchain_community.chains.llm_requests
  • Moving langchain_community.cross_enoders.base:BaseCrossEncoder -> langchain_community.retrievers.document_compressors.cross_encoder:BaseCrossEncoder (namespace not ideal, but it needs to be moved to langchain to avoid circular deps)
  • unit tests langchain -- add pytest.mark.community to some unit tests that will stay in langchain
  • unit tests community -- move unit tests that depend on community to community
  • mv integration tests that depend on community to community
  • mypy checks

Prior to release:

  • Run mypy migration through community

Other todo

  • Make deprecation warnings not noisy (need to use warn deprecated and check that things are implemented properly)
  • Update deprecation messages with timeline for code removal (likely we actually won't be removing things until 0.4 release) -- will give people more time to transition their code.
  • Add information to deprecation warning to show users how to migrate their code base using langchain-cli
  • Remove any unnecessary requirements in langchain (e.g., is SQLALchemy required?)

Copy link

vercel bot commented May 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
langchain ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 8, 2024 8:31pm

@eyurtsev
Copy link
Collaborator Author

eyurtsev commented May 2, 2024

#21080

@eyurtsev eyurtsev changed the title [WIP]: 0.2rc Branch for 0.2rc1 May 3, 2024
@eyurtsev eyurtsev requested a review from baskaryan May 3, 2024 20:05
@prrao87
Copy link
Contributor

prrao87 commented May 6, 2024

@eyurtsev, I believe there should be no merge conflicts per #21218 now (I compared with the master branch). If you think there needs to be anything else addressed, let me know.

@eyurtsev
Copy link
Collaborator Author

eyurtsev commented May 6, 2024

@prrao87 apologies I did not mean for you to make any changes in your PR -- i was am using this to keep track of merge conflicts that I'll have to resolve

@efriis efriis temporarily deployed to Scheduled testing May 8, 2024 04:43 — with GitHub Actions Inactive
@efriis efriis marked this pull request as ready for review May 8, 2024 20:19
@dosubot dosubot bot added the size:XXL This PR changes 1000+ lines, ignoring generated files. label May 8, 2024
@dosubot dosubot bot added the 🤖:refactor A large refactor of a feature(s) or restructuring of many files label May 8, 2024
@efriis efriis changed the title Branch for 0.2rc1 multiple: langchain 0.2 in master May 8, 2024
@eyurtsev eyurtsev merged commit f92006d into master May 8, 2024
60 checks passed
@eyurtsev eyurtsev deleted the eugene/0.2rc branch May 8, 2024 20:46
kyle-cassidy pushed a commit to kyle-cassidy/langchain that referenced this pull request May 10, 2024
0.2rc 

migrations

- [x] Move memory
- [x] Move remaining retrievers
- [x] graph_qa chains
- [x] some dependency from evaluation code potentially on math utils
- [x] Move openapi chain from `langchain.chains.api.openapi` to
`langchain_community.chains.openapi`
- [x] Migrate `langchain.chains.ernie_functions` to
`langchain_community.chains.ernie_functions`
- [x] migrate `langchain/chains/llm_requests.py` to
`langchain_community.chains.llm_requests`
- [x] Moving `langchain_community.cross_enoders.base:BaseCrossEncoder`
->
`langchain_community.retrievers.document_compressors.cross_encoder:BaseCrossEncoder`
(namespace not ideal, but it needs to be moved to `langchain` to avoid
circular deps)
- [x] unit tests langchain -- add pytest.mark.community to some unit
tests that will stay in langchain
- [x] unit tests community -- move unit tests that depend on community
to community
- [x] mv integration tests that depend on community to community
- [x] mypy checks

Other todo

- [x] Make deprecation warnings not noisy (need to use warn deprecated
and check that things are implemented properly)
- [x] Update deprecation messages with timeline for code removal (likely
we actually won't be removing things until 0.4 release) -- will give
people more time to transition their code.
- [ ] Add information to deprecation warning to show users how to
migrate their code base using langchain-cli
- [ ] Remove any unnecessary requirements in langchain (e.g., is
SQLALchemy required?)

---------

Co-authored-by: Erick Friis <erick@langchain.dev>
kyle-cassidy pushed a commit to kyle-cassidy/langchain that referenced this pull request May 16, 2024
0.2rc 

migrations

- [x] Move memory
- [x] Move remaining retrievers
- [x] graph_qa chains
- [x] some dependency from evaluation code potentially on math utils
- [x] Move openapi chain from `langchain.chains.api.openapi` to
`langchain_community.chains.openapi`
- [x] Migrate `langchain.chains.ernie_functions` to
`langchain_community.chains.ernie_functions`
- [x] migrate `langchain/chains/llm_requests.py` to
`langchain_community.chains.llm_requests`
- [x] Moving `langchain_community.cross_enoders.base:BaseCrossEncoder`
->
`langchain_community.retrievers.document_compressors.cross_encoder:BaseCrossEncoder`
(namespace not ideal, but it needs to be moved to `langchain` to avoid
circular deps)
- [x] unit tests langchain -- add pytest.mark.community to some unit
tests that will stay in langchain
- [x] unit tests community -- move unit tests that depend on community
to community
- [x] mv integration tests that depend on community to community
- [x] mypy checks

Other todo

- [x] Make deprecation warnings not noisy (need to use warn deprecated
and check that things are implemented properly)
- [x] Update deprecation messages with timeline for code removal (likely
we actually won't be removing things until 0.4 release) -- will give
people more time to transition their code.
- [ ] Add information to deprecation warning to show users how to
migrate their code base using langchain-cli
- [ ] Remove any unnecessary requirements in langchain (e.g., is
SQLALchemy required?)

---------

Co-authored-by: Erick Friis <erick@langchain.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖:refactor A large refactor of a feature(s) or restructuring of many files size:XXL This PR changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants