Eugene Yurtsev
c306364b06
langchain[patch]: Update more code to use langchain community as an optional dependency ( #21170 )
...
More code to use langchain community as an optional dependency
2024-05-02 09:05:48 -04:00
Eugene Yurtsev
94a838740e
langchain[patch]: Migrate more code in utils to use optional langchain import ( #21166 )
...
Moving is interactive util to avoid circular deps
2024-05-01 17:18:42 -04:00
Eugene Yurtsev
23fdd320bc
langchain[patch]: Migrate more code to use optional community in agents namespace ( #21167 )
2024-05-01 16:25:44 -04:00
Eugene Yurtsev
44602bdc20
langchain[patch],community[minor]: Move load_tools to community ( #21158 )
...
Move load tools to community
2024-05-01 16:05:41 -04:00
Eugene Yurtsev
9932f49b3e
langchain[patch]: Migrate llms to use optional community imports ( #21101 )
2024-05-01 16:04:45 -04:00
Eugene Yurtsev
57e8e70daa
langchain[patch]: Migrate chat models to optional community imports ( #21090 )
...
Migrate chat models to optional community imports
2024-05-01 16:04:12 -04:00
Eugene Yurtsev
2914abd747
langchain[patch]: Fix how the serializable test identifies serializable objects ( #21165 )
...
dir() will not work if we're using optional imports. The only way to do this is by using contents of __all__
2024-05-01 15:56:11 -04:00
Eugene Yurtsev
23c5d87311
langchain[patch]: Migrate utils to use optional langchain_community ( #21163 )
...
Migrate utils to use optional imports from langchain community
2024-05-01 15:24:02 -04:00
Eugene Yurtsev
bec3eee3fa
langchain[patch]: Migrate retrievers to use optional langchain community imports ( #21155 )
2024-05-01 14:44:44 -04:00
Eugene Yurtsev
43110daea5
langchain[patch]: Update some agent tool kits to handle community import as optional ( #21157 )
...
A few things that were not caught by the migration script
2024-05-01 14:22:54 -04:00
Eugene Yurtsev
59f10ab3e0
langchain[patch]: Migrate embeddings to optional imports ( #21099 )
2024-05-01 13:47:37 -04:00
Eugene Yurtsev
2f709d94d7
langchain[patch]: Migrate vectorstores to use optional langchain community imports ( #21150 )
2024-05-01 13:33:37 -04:00
Eugene Yurtsev
7230e430db
langchain[patch]: Migrate top level files to use optional langchain community ( #21152 )
...
Migrate a few top level files to treat langchain community as an optional dependency
2024-05-01 13:23:03 -04:00
Eugene Yurtsev
7a39fe60da
langchain[patch]: Migrate utilities to handle langchain community as optional ( #21149 )
2024-05-01 13:09:34 -04:00
Eugene Yurtsev
b879184595
langchain[patch]: embedddings distance move import of openai embeddings into local scope ( #21148 )
2024-05-01 12:51:51 -04:00
Eugene Yurtsev
0e5bf16d00
langchain[patch]: Migrate document loaders to use optional langchain community imports ( #21095 )
2024-05-01 11:26:25 -04:00
Eugene Yurtsev
1ce1a10f2b
langchain[patch],community[minor]: Move graph index creator ( #20795 )
...
Move graph index creator to community
2024-05-01 10:04:30 -04:00
Eugene Yurtsev
aa0bc7467c
langchain[patch]: Migrate agents module into optional imports for community ( #21088 )
2024-05-01 09:36:03 -04:00
Eugene Yurtsev
86ff8a3fb4
langchain[patch]: Update docstore module to use optional imports from community ( #21091 )
2024-05-01 09:35:05 -04:00
Eugene Yurtsev
d640605694
langchain[patch]: Migrate chat loaders to optional community imports ( #21089 )
...
Migrate chat loaders to optional community imports
2024-05-01 09:34:44 -04:00
Eugene Yurtsev
2fcab9acd9
langchain[patch]: Upgrade storage to treat langchain community as optional ( #21105 )
2024-05-01 09:33:31 -04:00
Erick Friis
14422a4220
langchain: fix core dep ( #21128 )
2024-04-30 14:55:12 -07:00
Erick Friis
6c938da302
langchain: release 0.1.17 ( #21125 )
2024-04-30 14:43:59 -07:00
Eugene Yurtsev
bf95414758
langchain[minor]: enhance unit test to test imports recursively ( #21122 )
2024-04-30 17:05:53 -04:00
Eugene Yurtsev
e4f51f59a2
langchain[patch]: Migrate tools to treat community imports as optional ( #21117 )
...
Migrate tools to treat community imports as optional
2024-04-30 16:26:18 -04:00
Eugene Yurtsev
9e788f09c6
langchain[patch]: Migrate output parsers to support optional community imports ( #21103 )
...
Migrate output parsers
2024-04-30 16:24:29 -04:00
Eugene Yurtsev
3853fe9f64
langchain[patch]: Migrate graphs to use optional community imports ( #21100 )
...
Migrate graphs to use optional community imports.
2024-04-30 16:24:06 -04:00
Eugene Yurtsev
8658d52587
langchain[patch]: Upgrade prompts to optional imports ( #21078 )
...
Upgrades prompts module to use optional imports.
This code was generated with a migration script, but had to be adjusted
manually a bit.
Testing in preparation for applying this code modification across the
rest of the modules in langchain package to reverse the dependency
between langchain community and langchain.
2024-04-30 16:23:39 -04:00
Eugene Yurtsev
9b6d04a187
langchain[patch]: Migrate document transformers ( #21098 )
...
Migrate document transformers
2024-04-30 16:20:02 -04:00
Eugene Yurtsev
aec13a6123
langchain[patch]: Migrate callbacks module to use optional imports for community ( #21086 )
2024-04-30 16:19:13 -04:00
Eugene Yurtsev
3c064a757f
core[minor],langchain[patch],community[patch]: Move storage interfaces to core ( #20750 )
...
* Move storage interface to core
* Move in memory and file system implementation to core
2024-04-30 13:14:26 -04:00
Charlie Marsh
8f38b7a725
multiple: Remove unnecessary Ruff suppression comments ( #21050 )
...
## Summary
I ran `ruff check --extend-select RUF100 -n` to identify `# noqa`
comments that weren't having any effect in Ruff, and then `ruff check
--extend-select RUF100 -n --fix` on select files to remove all of the
unnecessary `# noqa: F401` violations. It's possible that these were
needed at some point in the past, but they're not necessary in Ruff
v0.1.15 (used by LangChain) or in the latest release.
Co-authored-by: Erick Friis <erick@langchain.dev >
2024-04-30 17:13:48 +00:00
Eugene Yurtsev
c8f18a2524
langchain[patch]: Update import handling in adapters
( #21079 )
2024-04-30 10:55:29 -04:00
Eugene Yurtsev
845d8e0025
langchain[patch]: Update handling of deprecation warnings ( #21083 )
...
Chains should not be emitting deprecation warnings.
2024-04-30 10:30:23 -04:00
Christophe Bornet
5c77f45b06
community[minor]: Add async methods to CassandraCache and CassandraSemanticCache ( #20654 )
2024-04-30 10:27:44 -04:00
Leonid Ganeline
08d08d7c83
docs: langchain docstrings updates ( #21032 )
...
Added missed docstings. Formatted docstrings into a consistent format.
2024-04-29 17:40:44 -04:00
Eugene Yurtsev
f479a337cc
langchain[patch]: replace deprecated imports with imports from langchain_core ( #21033 )
...
* Output of running the migration script.
* Ran only against langchain code itself and not the unit tests.
2024-04-29 15:34:31 -04:00
Eugene Yurtsev
82d4afcac0
langchain[minor]: Code to handle dynamic imports ( #20893 )
...
Proposing to centralize code for handling dynamic imports. This allows treating langchain-community as an optional dependency.
---
The proposal is to scan the code base and to replace all existing imports with dynamic imports using this functionality.
2024-04-29 15:34:03 -04:00
Naveen Tatikonda
8bbdb4f6a0
community[patch]: Add OpenSearch as semantic cache ( #20254 )
...
### Description
Use OpenSearch vector store as Semantic Cache.
### Twitter Handle
**@OpenSearchProj**
---------
Signed-off-by: Naveen Tatikonda <navtat@amazon.com >
Co-authored-by: Harish Tatikonda <harishtatikonda@Harishs-MacBook-Air.local >
Co-authored-by: EC2 Default User <ec2-user@ip-172-31-31-155.ec2.internal >
Co-authored-by: Bagatur <22008038+baskaryan@users.noreply.github.com >
Co-authored-by: Bagatur <baskaryan@gmail.com >
2024-04-27 00:20:24 +00:00
Leonid Kuligin
893a924b90
core[minor], community[patch], langchain[patch]: move BaseChatLoader to core ( #19607 )
...
Thank you for contributing to LangChain!
- [ ] **PR title**: "core: move BaseChatLoader and BaseToolkit from
community"
- [ ] **PR message**: move BaseChatLoader and BaseToolkit
---------
Co-authored-by: Bagatur <baskaryan@gmail.com >
2024-04-26 21:45:51 +00:00
ccurme
bf16cefd18
langchain: deprecate create_structured_output_runnable ( #20933 )
2024-04-26 14:00:40 -04:00
ccurme
891ae37437
langchain: support PineconeVectorStore in self query retriever ( #20905 )
...
`langchain_pinecone.Pinecone` is deprecated in favor of
`PineconeVectorStore`, and is currently a subclass of
`PineconeVectorStore`.
```python
@deprecated(since="0.0.3", removal="0.2.0", alternative="PineconeVectorStore")
class Pinecone(PineconeVectorStore):
"""Deprecated. Use PineconeVectorStore instead."""
pass
```
2024-04-25 20:54:58 +00:00
Bagatur
5b83130855
core[minor], langchain[patch], community[patch]: mv StructuredQuery ( #20849 )
...
mv StructuredQuery to core
2024-04-25 09:40:26 -07:00
Ivaylo Bratoev
7c5063ef60
infra: fix how Poetry is installed in the dev container ( #20521 )
...
Currently, when a new dev container is created, poetry does not work in
it with the error "No module named 'rapidfuzz'".
Install Poetry outside the project venv so that poetry and project
dependencies do not get mixed. Use pipx to install poetry securely in
its own isolated environment.
Issue: #12237
Twitter handle: https://twitter.com/ibratoev
Co-authored-by: Bagatur <22008038+baskaryan@users.noreply.github.com >
2024-04-24 17:33:25 -07:00
ccurme
481d3855dc
patch: remove usage of llm, chat model __call__ ( #20788 )
...
- `llm(prompt)` -> `llm.invoke(prompt)`
- `llm(prompt=prompt` -> `llm.invoke(prompt)` (same with `messages=`)
- `llm(prompt, callbacks=callbacks)` -> `llm.invoke(prompt,
config={"callbacks": callbacks})`
- `llm(prompt, **kwargs)` -> `llm.invoke(prompt, **kwargs)`
2024-04-24 19:39:23 -04:00
Nikita Pokidyshev
9e983c9500
langchain[patch]: fix agent_token_buffer_memory not working with openai tools ( #20708 )
...
- **Description:** fix a bug in the agent_token_buffer_memory
- **Issue:** agent_token_buffer_memory was not working with openai tools
- **Dependencies:** None
- **Twitter handle:** @pokidyshef
2024-04-24 15:51:58 -07:00
Alex Lee
243ba71b28
langchain[patch]: add aprep_output
method to langchain/chains/base.py
( #20748 )
...
## Description
Add `aprep_output` method to `langchain/chains/base.py`. Some downstream
`ChatMessageHistory` objects that use async connections require an async
way to append to the context.
It turned out that `ainvoke()` was calling `prep_output` which is
synchronous.
---------
Co-authored-by: Bagatur <22008038+baskaryan@users.noreply.github.com >
2024-04-24 22:16:25 +00:00
Eugene Yurtsev
d8aa72f51d
core[minor],langchain[patch]: Move base indexing interface and logic to core ( #20667 )
...
This PR moves the interface and the logic to core.
The following changes to namespaces:
`indexes` -> `indexing`
`indexes._api` -> `indexing.api`
Testing code is intentionally duplicated for now since it's testing
different
implementations of the record manager (in-memory vs. SQL).
Common logic will need to be pulled out into the test client.
A follow up PR will move the SQL based implementation outside of
LangChain.
2024-04-24 13:18:42 -04:00
Eugene Yurtsev
a7c347ab35
langchain[patch]: Update evaluation logic that instantiates a default LLM ( #20760 )
...
Favor langchain_openai over langchain_community for evaluation logic.
---------
Co-authored-by: ccurme <chester.curme@gmail.com >
2024-04-23 16:09:32 -04:00
Eugene Yurtsev
72f720fa38
langchain[major]: Remove default instantations of LLMs from VectorstoreToolkit ( #20794 )
...
Remove default instantiation from vectorstore toolkit.
2024-04-23 16:09:14 -04:00