Eugene Yurtsev
03aa6c19fa
LANGCHAIN PACKAGE CHANGES
2024-07-31 11:09:51 -04:00
Eugene Yurtsev
dcea8b20a5
MANUAL (LANGCHAIN): Update pydantic imports
2024-07-31 09:29:42 -04:00
Eugene Yurtsev
9a9db37e74
MANUAL: Add required fields in schema and fix comparison test for AIMessage in test_runnables.py
2024-07-31 09:21:50 -04:00
Eugene Yurtsev
52960f792e
MANUAL: Schema remapping
2024-07-31 09:04:55 -04:00
Eugene Yurtsev
8a507e816e
MANUAL: Restore one more missing RootModel instead of __custom_root_model_ check
2024-07-30 16:52:26 -04:00
Eugene Yurtsev
8a11819583
MANUAL: Fix one prompt test
2024-07-30 16:41:35 -04:00
Eugene Yurtsev
5d6266f3ca
Remove accidentally commmitted test
2024-07-30 16:01:54 -04:00
Eugene Yurtsev
5810a4b90c
Remove accidentally committed test
2024-07-30 16:01:12 -04:00
Eugene Yurtsev
a2e9c45303
MANUAL: Fix input schema into Runnable Lambdas that comes from ast traversal
2024-07-30 16:00:00 -04:00
Eugene Yurtsev
16108c94e2
MANUAL: Replace __custom_root_type with issubclass(obj, RootModel) check
2024-07-30 15:32:22 -04:00
Eugene Yurtsev
0de8e86282
MANUAL: Handle Unserializable attributes on RootModel + schema generator
2024-07-30 15:09:59 -04:00
Eugene Yurtsev
a828f8c2a1
MANUAL: Update create_schea_from_function for tools
2024-07-30 13:47:02 -04:00
Eugene Yurtsev
84db231f1e
MANUAL: Exclude verbose from representation?
2024-07-30 12:40:24 -04:00
Eugene Yurtsev
054edda0c5
MANUAL: Test optional subset model re-write add =None to optionals
2024-07-30 12:32:40 -04:00
Eugene Yurtsev
bda6650d7a
MANUAL: Fix REPR for ToolMessage
2024-07-30 12:11:27 -04:00
Eugene Yurtsev
fe9d818fe5
MANUAL: Update Serializable to handle default factory for is field useful
2024-07-30 12:06:29 -04:00
Eugene Yurtsev
0482a810bc
STASHED CHANGES
2024-07-30 11:52:46 -04:00
Eugene Yurtsev
3a76e0f2ae
MANUAL: Fix RunnableAssign parameterization
2024-07-30 10:19:32 -04:00
Eugene Yurtsev
fef70302fa
STASHED CHANGE
2024-07-29 17:25:23 -04:00
Eugene Yurtsev
72eab997c0
MANUAL: Add missing AnyID import
2024-07-29 16:49:50 -04:00
Eugene Yurtsev
ffcb025567
MANUAL: Update @pre_init decorator to work with pydantic 2
2024-07-29 15:03:32 -04:00
Eugene Yurtsev
1d9fb23517
MANUAL: Fix REPR for Document in a test
2024-07-29 14:54:45 -04:00
Eugene Yurtsev
45422703fa
MANUAL Handle AnyID in unit tests
2024-07-29 14:45:50 -04:00
Eugene Yurtsev
01e5621d28
qxqxqx
2024-07-16 16:12:39 -04:00
Eugene Yurtsev
20e5695ef9
MANUAL: Update create_model to use new RootModel (INCOMPLETE)
2024-07-16 14:54:09 -04:00
Eugene Yurtsev
5c108706dd
MANUAL: Force model_rebuild, bring Optional into scope
2024-07-16 11:53:04 -04:00
Eugene Yurtsev
edf848ce9d
MANUAL: Update serializable to handle excluded fields correctly
2024-07-16 11:30:29 -04:00
Eugene Yurtsev
209bf78167
MANUAL: Add Optional for model_rebuild for StrOutputParser
2024-07-16 11:21:49 -04:00
Eugene Yurtsev
0ae0175d4e
MANUAL: Update create subset model
2024-07-16 11:20:59 -04:00
Eugene Yurtsev
28abed9b0a
MANUAL: Replace config in tools. Determine why it inherits from Serializable?
2024-07-16 11:20:18 -04:00
Eugene Yurtsev
ba34dd1017
MANUAL: Update BaseLanaguageModel with model_config = ConfigDict(arbitrary_types_allowed=True)
2024-07-16 11:19:17 -04:00
Eugene Yurtsev
c77f2a4d99
x
2024-07-16 11:17:41 -04:00
Eugene Yurtsev
25ba40fcf2
Use model_rebuild instead of update_forward_references
2024-07-16 11:15:51 -04:00
Eugene Yurtsev
5ba3d79d75
Update to import from pydantic instead of langchain_core.pydantic_v1
2024-07-16 11:14:37 -04:00
Eugene Yurtsev
6a6fb56b43
auto config update
2024-07-16 11:12:27 -04:00
frob
c59e663365
community[patch]: Fix docstring for ollama parameter "keep_alive" ( #23973 )
...
Fix doc-string for ollama integration
2024-07-16 14:48:38 +00:00
Mazen Ramadan
0c1889c713
docs: fix parameter typo in scrapfly loader docs ( #24307 )
...
Fixed wrong parameter typo in
[ScrapflyLoader](https://github.com/langchain-ai/langchain/blob/master/libs/community/langchain_community/document_loaders/scrapfly.py )
docs, where `ignore_scrape_failures` is used instead of
`continue_on_failure`.
- Description: Fix wrong param typo in ScrapflyLoader docs.
2024-07-16 14:48:13 +00:00
Leonid Ganeline
5fcf2ef7ca
core: docstrings documents ( #23506 )
...
Added missed docstrings. Formatted docstrings to the consistent form.
2024-07-16 10:43:54 -04:00
Rafael Pereira
77dd327282
Docs: Fix Concepts Integration Tools Link ( #24301 )
...
- **Description:** This PR fix concepts integrations tools link.
- **Issue:** Fixes issue #24112
---------
Co-authored-by: ccurme <chester.curme@gmail.com >
2024-07-16 10:29:30 -04:00
Rahul Raghavendra Choudhury
f5a38772a8
community[patch]: Update TavilySearch to use TavilyClient instead of the deprecated Client ( #24270 )
...
On using TavilySearchAPIRetriever with any conversation chain getting
error :
`TypeError: Client.__init__() got an unexpected keyword argument
'api_key'`
It is because the retreiver class is using the depreciated `Client`
class, `TavilyClient` need to be used instead.
---------
Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com >
Co-authored-by: Eugene Yurtsev <eugene@langchain.dev >
2024-07-16 13:35:28 +00:00
Shenhai Ran
5f2dea2b20
core[patch]: Add encoding options when create prompt template from a file ( #24054 )
...
- Uses default utf-8 encoding for loading prompt templates from file
---------
Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com >
2024-07-16 09:35:09 -04:00
Chen Xiabin
69b1603173
baidu qianfan AiMessage with usage_metadata ( #24288 )
...
add usage_metadata to qianfan AIMessage. Thanks
2024-07-16 09:30:50 -04:00
amcastror
d83164f837
Update retrievers.ipynb ( #24289 )
...
Thank you for contributing to LangChain!
- [ ] **PR title**: "package: description"
- Where "package" is whichever of langchain, community, core,
experimental, etc. is being modified. Use "docs: ..." for purely docs
changes, "templates: ..." for template changes, "infra: ..." for CI
changes.
- Example: "community: add foobar LLM"
- [ ] **PR message**: ***Delete this entire checklist*** and replace
with
- **Description:** a description of the change
- **Issue:** the issue # it fixes, if applicable
- **Dependencies:** any dependencies required for this change
- **Twitter handle:** if your PR gets announced, and you'd like a
mention, we'll gladly shout you out!
- [ ] **Add tests and docs**: If you're adding a new integration, please
include
1. a test for the integration, preferably unit tests that do not rely on
network access,
2. an example notebook showing its use. It lives in
`docs/docs/integrations` directory.
- [ ] **Lint and test**: Run `make format`, `make lint` and `make test`
from the root of the package(s) you've modified. See contribution
guidelines for more: https://python.langchain.com/docs/contributing/
Additional guidelines:
- Make sure optional dependencies are imported within a function.
- Please do not add dependencies to pyproject.toml files (even optional
ones) unless they are required for unit tests.
- Most PRs should not touch more than one package.
- Changes should be backwards compatible.
- If you are adding something to community, do not re-import it in
langchain.
If no one reviews your PR within a few days, please @-mention one of
baskaryan, efriis, eyurtsev, ccurme, vbarda, hwchase17.
2024-07-16 13:30:41 +00:00
Leonid Ganeline
198b85334f
core[patch]: docstrings langchain_core/ files update ( #24285 )
...
Added missed docstrings. Formatted docstrings to the consistent form.
2024-07-16 09:21:51 -04:00
Dobiichi-Origami
7aeaa1974d
community[patch]: change the class of qianfan_ak and qianfan_sk parameters ( #24293 )
...
- **Description:** we changed the class of two parameters to fix a bug,
which causes validation failure when using QianfanEmbeddingEndpoint
2024-07-16 09:17:48 -04:00
Tibor Reiss
1c753d1e81
core[patch]: Update typing for template format to include jinja2 as a Literal ( #24144 )
...
Fixes #23929 via adjusting the typing
2024-07-16 09:09:42 -04:00
Jacob Lee
6716379f0c
docs[patch]: Fix rendering issue in code splitter page ( #24291 )
2024-07-15 23:08:21 -07:00
Jacob Lee
58fdb070fa
docs[patch]: Update intro diagram ( #24290 )
...
CC @agola11
2024-07-15 22:04:42 -07:00
Erick Friis
1d7a3ae7ce
infra: add test deps to add_dependents ( #24283 )
2024-07-15 15:48:53 -07:00
Erick Friis
d2f671271e
langchain: fix extended test ( #24282 )
2024-07-15 15:29:48 -07:00