Eugene Yurtsev
de0b48c41a
docs: Upgrade examples with RunnableWithMessageHistory to langgraph memory ( #26855 )
...
This PR updates the documentation examples that used
RunnableWithMessageHistory to show how to achieve the same
implementation with langgraph memory.
Some of the underlying PRs (not all of them):
- docs[patch]: update chatbot tutorial and migration guide (#26780 )
- docs[patch]: update chatbot memory how-to (#26790 )
- docs[patch]: update chatbot tools how-to (#26816 )
- docs: update chat history in rag how-to (#26821 )
- docs: update trim messages notebook (#26793 )
- docs: clean up imports in how to guide for rag qa with chat history
(#26825 )
- docs[patch]: update conversational rag tutorial (#26814 )
---------
Co-authored-by: ccurme <chester.curme@gmail.com >
Co-authored-by: Vadym Barda <vadym@langchain.dev >
Co-authored-by: mercyspirit <ziying.qiu@gmail.com >
Co-authored-by: aqiu7 <aqiu7@gatech.edu >
Co-authored-by: John <43506685+Coniferish@users.noreply.github.com >
Co-authored-by: Erick Friis <erick@langchain.dev >
Co-authored-by: William FH <13333726+hinthornw@users.noreply.github.com >
Co-authored-by: Subhrajyoty Roy <subhrajyotyroy@gmail.com >
Co-authored-by: Rajendra Kadam <raj.725@outlook.com >
Co-authored-by: Christophe Bornet <cbornet@hotmail.com >
Co-authored-by: Devin Gaffney <itsme@devingaffney.com >
Co-authored-by: Bagatur <22008038+baskaryan@users.noreply.github.com >
2024-09-27 20:04:30 +00:00
ccurme
44eddd39d6
infra[patch]: update notebooks workflow ( #26956 )
...
Addressing some lingering comments from
https://github.com/langchain-ai/langchain/pull/26944 , adding parameters
for
- python version
- working directory

2024-09-27 15:39:14 -04:00
ccurme
67df944dfb
infra: add CI job for running tutorial notebooks ( #26944 )
2024-09-27 18:29:49 +00:00
Erick Friis
9eb26c5f9d
infra: api docs build ref experimental ( #26950 )
2024-09-27 10:21:07 -07:00
Erick Friis
135164e1ee
infra: api docs build ref update ( #26949 )
2024-09-27 10:12:10 -07:00
Erick Friis
c38ea7a069
infra: api docs build ( #26948 )
2024-09-27 09:47:43 -07:00
Christophe Bornet
f4e738bb40
core: Add ruff rules for PIE ( #26939 )
...
All auto-fixes.
2024-09-27 12:08:35 -04:00
ccurme
836c2a4ae0
docs: update memory integrations page ( #26912 )
2024-09-27 10:02:09 -04:00
ccurme
39987ebd91
openai[patch]: update deprecation target in API ref ( #26921 )
2024-09-27 08:42:31 -04:00
Subhrajyoty Roy
7f37fd8b80
community[patch]: callback before yield for cloudflare ( #26927 )
...
**Description:** Moves yield to after callback for `_stream` function
for the cloudfare workersai model in the community llm package
**Issue:** #16913
2024-09-27 08:42:01 -04:00
Youshin Kim
2d9a09dfa4
Fix typo in mlflow code example in mlflow.py ( #26931 )
...
- [x] PR title: Fix typo in code example in mlflow.py
- In libs/community/langchain_community/chat_models/mlflow.py
2024-09-27 12:41:39 +00:00
Subhrajyoty Roy
7037ba0f06
community[patch]: callback before yield for mlx pipeline ( #26928 )
...
**Description:** Moves yield to after callback for `_stream` function
for the MLX pipeline model in the community llm package
**Issue:** #16913
2024-09-27 08:41:34 -04:00
Subhrajyoty Roy
adcfecdb67
community[patch]: callback before yield for textgen ( #26929 )
...
**Description:** Moves callback to before yield for `_stream` and
`_astream` function for the textgen model in the community llm package
**Issue:** #16913
2024-09-27 08:41:13 -04:00
Subhrajyoty Roy
5f2cc4ecb2
community[patch]: callback before yield for titan takeoff ( #26930 )
...
**Description:** Moves yield to after callback for `_stream` function
for the titan takeoff model in the community llm package
**Issue:** #16913
2024-09-27 08:40:22 -04:00
Emmanuel Sciara
c6350d636e
core[fix]: using async rate limiter methods in async code ( #26914 )
...
**Description:** Replaced blocking (sync) rate_limiter code in async
methods.
**Issue:** #26913
**Dependencies:** N/A
**Twitter handle:** no need 🤗
2024-09-26 20:44:28 +00:00
Eugene Yurtsev
02f5962cf1
docs: add api referencs to langgraph ( #26877 )
...
Add api references to langgraph
2024-09-26 15:21:10 -04:00
Abhi Agarwal
696114e145
community: add sqlite-vec vectorstore ( #25003 )
...
**Description**:
Adds a vector store integration with
[sqlite-vec](https://alexgarcia.xyz/sqlite-vec/ ), the successor to
sqlite-vss that is a single C file with no external dependencies.
Pretty straightforward, just copy-pasted the sqlite-vss integration and
made a few tweaks and added integration tests. Only question is whether
all documentation should be directed away from sqlite-vss if it is
defacto deprecated (cc @asg017).
---------
Co-authored-by: Erick Friis <erick@langchain.dev >
Co-authored-by: philippe-oger <philippe.oger@adevinta.com >
2024-09-26 17:37:10 +00:00
Erick Friis
8bc12df2eb
voyageai: new models ( #26907 )
...
Co-authored-by: fzowl <zoltan@voyageai.com >
Co-authored-by: fzowl <160063452+fzowl@users.noreply.github.com >
2024-09-26 17:07:10 +00:00
Eugene Yurtsev
2a0d9d05fb
docs: Fix trim_messages invocations in the memory migration guide ( #26902 )
...
Should only be start_on="human", not start_on=("human", "ai")
2024-09-26 17:02:30 +00:00
Erick Friis
7a99a4d4f8
infra: fix experimental in dco imports check ( #26905 )
2024-09-26 09:51:58 -07:00
Subhrajyoty Roy
ba467f1a36
community[patch]: callback before yield for gigachat ( #26881 )
...
**Description:** Moves yield to after callback for `_stream` and
`_astream` function for the gigachat model in the community llm package
**Issue:** #16913
2024-09-26 12:47:28 -04:00
Subhrajyoty Roy
11e703a97e
community[patch]: callback before yield for google palm ( #26882 )
...
**Description:** Moves yield to after callback for `_stream` function
for the google palm model in the community package
**Issue:** #16913
2024-09-26 12:47:05 -04:00
Julius Stopforth
121e79b1f0
core: Fix IndexError
when trim_messages
invoked with empty list ( #26896 )
...
This prevents `trim_messages` from raising an `IndexError` when invoked
with `include_system=True`, `strategy="last"`, and an empty message
list.
Fixes #26895
Dependencies: none
2024-09-26 11:29:58 -04:00
ccurme
7091a1a798
openai[patch]: increase token limit in azure integration tests ( #26901 )
...
`test_json_mode` occasionally runs into this
2024-09-26 14:31:33 +00:00
Erick Friis
2ea5f60cc5
experimental: migrate to external repo ( #26879 )
...
security scanners can't distinguish monorepo sources from each other.
this will resolve issues for folks trying to use e.g. langchain-core but
getting security issues from experimental flagged!
langchain-openai==0.2.1
2024-09-25 19:02:19 -07:00
Bagatur
c750600d3d
infra: update release secrets ( #26878 )
2024-09-26 00:12:31 +00:00
Jack Peplinski
edf879d321
docs: update extraction_examples.ipynb ( #26874 )
...
The `Without examples 😿 ` and `With examples 😻 ` should have different
outputs to illustrate their point.
See v0.2 docs.
https://python.langchain.com/docs/how_to/extraction_examples/#without-examples-
If no one reviews your PR within a few days, please @-mention one of
baskaryan, efriis, eyurtsev, ccurme, vbarda, hwchase17.
2024-09-25 17:26:42 -04:00
Erick Friis
6f3c8313ba
community: bump langchain version ( #26876 )
langchain-community==0.3.1
2024-09-25 12:58:24 -07:00
Erick Friis
e068407f18
community: bump core versoin ( #26875 )
2024-09-25 12:57:16 -07:00
Eugene Yurtsev
25cb44c9ee
0.3.1 release community ( #26872 )
...
Release for 0.3.1
---------
Co-authored-by: Erick Friis <erick@langchain.dev >
2024-09-25 19:38:53 +00:00
Erick Friis
9a31ad6f60
langchain: release 0.3.1 ( #26868 )
langchain==0.3.1
2024-09-25 11:43:54 -07:00
Erick Friis
ef2ab26113
core: release 0.3.6 ( #26863 )
langchain-core==0.3.6
2024-09-25 11:05:53 -07:00
ccurme
87e21493f7
docs[patch]: remove deprecated loaders from feature tables ( #26709 )
2024-09-25 12:53:32 -04:00
ccurme
a0010063e8
docs[patch]: add guide for loading web pages ( #26708 )
2024-09-25 12:03:42 -04:00
Bagatur
eaffa92c1d
openai[patch]: Release 0.2.1 ( #26858 )
2024-09-25 15:55:49 +00:00
Rajendra Kadam
51c4393298
community[patch]: Fix validation error in SettingsConfigDict across multiple Langchain modules ( #26852 )
...
- **Description:** This pull request addresses the validation error in
`SettingsConfigDict` due to extra fields in the `.env` file. The issue
is prevalent across multiple Langchain modules. This fix ensures that
extra fields in the `.env` file are ignored, preventing validation
errors.
**Changes include:**
- Applied fixes to modules using `SettingsConfigDict`.
- **Issue:** NA, similar
https://github.com/langchain-ai/langchain/issues/26850
- **Dependencies:** NA
2024-09-25 10:02:14 -04:00
Devin Gaffney
d502858412
Update main README.md to reference latest version of documentation ( #26854 )
...
Update README.md to point at latest docs
2024-09-25 09:44:18 -04:00
Eugene Yurtsev
27c12146c8
docs[patch]: In conceptual docs explain constraints on ToolMessage ( #26792 )
...
Minor clarification
2024-09-25 09:34:45 -04:00
Christophe Bornet
3a1b9259a7
core: Add ruff rules for comprehensions (C4) ( #26829 )
2024-09-25 09:34:17 -04:00
Rajendra Kadam
7e5a9c317f
community[minor]: [Pebblo] Enhance PebbloSafeLoader to take anonymize flag ( #26812 )
...
- **Description:** The flag is named `anonymize_snippets`. When set to
true, the Pebblo server will anonymize snippets by redacting all
personally identifiable information (PII) from the snippets going into
VectorDB and the generated reports
- **Issue:** NA
- **Dependencies:** NA
- **docs**: Updated
2024-09-25 09:33:06 -04:00
Rajendra Kadam
92003b3724
community[patch]: [SharePointLoader] Fix validation error in _O365Settings due to extra fields in .env file ( #26851 )
...
**Description:** Fix validation error in _O365Settings by ignoring extra
fields in .env file
**Issue:** https://github.com/langchain-ai/langchain/issues/26850
**Dependencies:** NA
2024-09-25 09:31:59 -04:00
Subhrajyoty Roy
b61fb98466
community[patch]: callback before yield for friendli ( #26842 )
...
**Description:** Moves yield to after callback for `_stream` and
`_astream` function for the friendli model in the community package
**Issue:** #16913
2024-09-25 09:31:12 -04:00
ccurme
13acf9e6b0
langchain[patch]: add deprecation warnings ( #26853 )
2024-09-25 09:26:44 -04:00
William FH
82b5b77940
[Core] Add more interops tests ( #26841 )
...
To test that the client propagates both ways
2024-09-24 20:18:20 -07:00
William FH
9b6ac41442
[Core] Inherit tracing metadata & tags ( #26838 )
2024-09-24 19:33:12 -07:00
Erick Friis
3796e143f8
docs: remove one more print from build ( #26834 )
2024-09-24 22:40:16 +00:00
Erick Friis
95269366ae
docs: make build less verbose ( #26833 )
2024-09-24 22:30:05 +00:00
Erick Friis
425c0f381f
experimental: release 0.3.1 ( #26830 )
langchain-experimental==0.3.1
langchain-unstructured==0.1.5
2024-09-24 15:03:05 -07:00
John
6c3ea262c8
partners/unstructured: release 0.1.5 ( #26831 )
...
**Description:** update package version to support loading URLs #26670
**Issue:** #26697
2024-09-24 15:02:53 -07:00
mercyspirit
0414be4b80
experimental[major]: CVE-2024-46946 fix ( #26783 )
...
Description: Resolve CVE-2024-46946 by switching out sympify with
parse_expr with a very specific allowed set of operations.
https://nvd.nist.gov/vuln/detail/cve-2024-46946
Sympify uses eval which makes it vulnerable to code execution.
parse_expr is limited to specific expressions.
Bandit results

---------
Co-authored-by: aqiu7 <aqiu7@gatech.edu >
Co-authored-by: Eugene Yurtsev <eugene@langchain.dev >
Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com >
2024-09-24 21:37:56 +00:00