-
Notifications
You must be signed in to change notification settings - Fork 17.4k
Comparing changes
Open a pull request
base repository: langchain-ai/langchain
base: v0.1.11
head repository: langchain-ai/langchain
compare: v0.1.12
Commits on Mar 5, 2024
-
anthropic[minor]: add tool calling (#18554)
Erick Friis authoredMar 5, 2024 Configuration menu - View commit details
-
Copy full SHA for 4ac2cb4 - Browse repository at this point
Copy the full SHA 4ac2cb4View commit details -
docs: anthropic multimodal (#18586)
Erick Friis authoredMar 5, 2024 Configuration menu - View commit details
-
Copy full SHA for 07f23c2 - Browse repository at this point
Copy the full SHA 07f23c2View commit details -
marked MatchingEngine as deprecated (#18585)
Thank you for contributing to LangChain! - [ ] **PR title**: "community: deprecate vectorstores.MatchingEngine" - [ ] **PR message**: - **Description:** announced a deprecation since this integration has been moved to langchain_google_vertexai
Configuration menu - View commit details
-
Copy full SHA for 04d134d - Browse repository at this point
Copy the full SHA 04d134dView commit details -
Configuration menu - View commit details
-
Copy full SHA for c8a171a - Browse repository at this point
Copy the full SHA c8a171aView commit details -
Add precedence for input params over env variables in neo4j integratiβ¦
β¦on (#18581) input parameters take precedence over env variables
Configuration menu - View commit details
-
Copy full SHA for 3532488 - Browse repository at this point
Copy the full SHA 3532488View commit details -
Configuration menu - View commit details
-
Copy full SHA for 449d878 - Browse repository at this point
Copy the full SHA 449d878View commit details -
mongodb[minor]: Add MongoDB LLM Cache (#17470)
# Description - **Description:** Adding MongoDB LLM Caching Layer abstraction - **Issue:** N/A - **Dependencies:** None - **Twitter handle:** @mongodb Checklist: - [x] PR title: Please title your PR "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" - [x] PR Message (above) - [x] Pass lint and test: Run `make format`, `make lint` and `make test` from the root of the package(s) you've modified to check that you're passing lint and testing. See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/ - [ ] 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. 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, @hwchase17. --------- Co-authored-by: Jib <jib@byblack.us>
Configuration menu - View commit details
-
Copy full SHA for f92f7d2 - Browse repository at this point
Copy the full SHA f92f7d2View commit details -
mongodb[patch]: Migrate MongoDBChatMessageHistory (#18590)
## **Description** Migrate the `MongoDBChatMessageHistory` to the managed `langchain-mongodb` partner-package ## **Dependencies** None ## **Twitter handle** @mongodb ## **tests and docs** - [x] Migrate existing integration test - [x ]~ Convert existing integration test to a unit test~ Creation is out of scope for this ticket - [x ] ~Considering delaying work until #17470 merges to leverage the `MockCollection` object. ~ - [x] **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/ --------- Co-authored-by: Erick Friis <erick@langchain.dev>
Configuration menu - View commit details
-
Copy full SHA for 9da1e0c - Browse repository at this point
Copy the full SHA 9da1e0cView commit details -
airbyte[patch]: release 0.1.1, python 3.9 compat (#18597)
Erick Friis authoredMar 5, 2024 Configuration menu - View commit details
-
Copy full SHA for 48e303e - Browse repository at this point
Copy the full SHA 48e303eView commit details -
langchain-mongodb: add unit tests for MongoDBChatMessageHistory (#18599)
## Description Adding in Unit Test variation for `MongoDBChatMessageHistory` package Follow-up to #18590 - [x] **Add tests and docs**: Unit test is what's being added - [x] **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/
Configuration menu - View commit details
-
Copy full SHA for fc35262 - Browse repository at this point
Copy the full SHA fc35262View commit details -
community:update telegram notebook (#18569)
**Description:** modified the user_name to username to conform with the expected inputs to TelegramChatApiLoader **Issue:** Current code fails in langchain-community 0.0.24 <loader = TelegramChatApiLoader( chat_entity="<CHAT_URL>", # recommended to use Entity here api_hash="<API HASH >", api_id="<API_ID>", user_name="", # needed only for caching the session. )>
Configuration menu - View commit details
-
Copy full SHA for 96cd509 - Browse repository at this point
Copy the full SHA 96cd509View commit details -
core[patch]: deprecate hwchase17/langchain-hub, address path traversal (
#18600) Deprecates the old langchain-hub repository. Does *not* deprecate the new https://smith.langchain.com/hub @PinkDraconian has correctly raised that in the event someone is loading unsanitized user input into the `try_load_from_hub` function, they have the ability to load files from other locations in github than the hwchase17/langchain-hub repository. This PR adds some more path checking to that function and deprecates the functionality in favor of the hub built into LangSmith.
Erick Friis authoredMar 5, 2024 Configuration menu - View commit details
-
Copy full SHA for e1924b3 - Browse repository at this point
Copy the full SHA e1924b3View commit details -
docs:Update function "run" to "invoke" in smart_llm.ipynb (#18568)
This patch updates function "run" to "invoke" in smart_llm.ipynb. Without this patch, you see following warning. LangChainDeprecationWarning: The function `run` was deprecated in LangChain 0.1.0 and will be removed in 0.2.0. Use invoke instead. Signed-off-by: Masanari Iida <standby24x7@gmail.com> Signed-off-by: Masanari Iida <standby24x7@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for a277973 - Browse repository at this point
Copy the full SHA a277973View commit details -
Remove neo4j bloom labels from graph schema (#18564)
Neo4j tools use particular node labels and relationship types to store metadata, but are irrelevant for text2cypher or graph generation, so we want to ignore them in the schema representation.
Configuration menu - View commit details
-
Copy full SHA for ea51cda - Browse repository at this point
Copy the full SHA ea51cdaView commit details -
community[patch]: Invoke callback prior to yielding token (titan_takeβ¦
Configuration menu - View commit details
-
Copy full SHA for 4570b47 - Browse repository at this point
Copy the full SHA 4570b47View commit details -
docs:
providers
update 5 (#18550)Added missed sections. Added descriptions.
Configuration menu - View commit details
-
Copy full SHA for bd49931 - Browse repository at this point
Copy the full SHA bd49931View commit details -
anthropic[patch]: fix argument integration test (#18605)
Erick Friis authoredMar 5, 2024 Configuration menu - View commit details
-
Copy full SHA for 1831733 - Browse repository at this point
Copy the full SHA 1831733View commit details -
anthropic[patch]: handle lists in function calling (#18609)
Erick Friis authoredMar 5, 2024 Configuration menu - View commit details
-
Copy full SHA for e169ee8 - Browse repository at this point
Copy the full SHA e169ee8View commit details -
ai21[patch]: AI21 Labs Contextual Answers support (#18270)
Description: Added support for AI21 Labs model - Contextual Answers Dependencies: ai21, ai21-tokenizer Twitter handle: https://github.com/AI21Labs --------- Co-authored-by: Asaf Gardin <asafg@ai21.com> Co-authored-by: Erick Friis <erick@langchain.dev>
Configuration menu - View commit details
-
Copy full SHA for 2744155 - Browse repository at this point
Copy the full SHA 2744155View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1569b19 - Browse repository at this point
Copy the full SHA 1569b19View commit details -
nvidia-trt[patch]: add TritonTensorRTLLM(verbose_client=False) (#16848)
- **Description:** adding verbose flag to TritonTensorRTLLM, - **Issue:** nope, - **Dependencies:** not any, - **Twitter handle:**
Configuration menu - View commit details
-
Copy full SHA for d039dcb - Browse repository at this point
Copy the full SHA d039dcbView commit details -
community[patch], langchain[minor]: Add retriever self_query and scorβ¦
β¦e_threshold in DingoDB (#18106)
Configuration menu - View commit details
-
Copy full SHA for 6a08134 - Browse repository at this point
Copy the full SHA 6a08134View commit details -
docs: Update elasticsearch README (#18497)
Update Elasticsearch README with information on how to start a deployment. Also make some cosmetic changes to the [Elasticsearch docs](https://python.langchain.com/docs/integrations/vectorstores/elasticsearch). Follow up on #17467
Configuration menu - View commit details
-
Copy full SHA for 81e9ab6 - Browse repository at this point
Copy the full SHA 81e9ab6View commit details -
docs: fix link and missing package (#18405)
**Issue:** fix broken links and missing package on colab example
Configuration menu - View commit details
-
Copy full SHA for f4bb33b - Browse repository at this point
Copy the full SHA f4bb33bView commit details -
community[minor]: use jq schema for content_key in json_loader (#18003)
### Description Changed the value specified for `content_key` in JSONLoader from a single key to a value based on jq schema. I created [similar PR](#11255) before, but it has several conflicts because of the architectural change associated stable version release, so I re-create this PR to fit new architecture. ### Why For json data like the following, specify `.data[].attributes.message` for page_content and `.data[].attributes.id` or `.data[].attributes.attributes. tags`, etc., the `content_key` must also parse the json structure. <details> <summary>sample json data</summary> ```json { "data": [ { "attributes": { "message": "message1", "tags": [ "tag1" ] }, "id": "1" }, { "attributes": { "message": "message2", "tags": [ "tag2" ] }, "id": "2" } ] } ``` </details> <details> <summary>sample code</summary> ```python def metadata_func(record: dict, metadata: dict) -> dict: metadata["source"] = None metadata["id"] = record.get("id") metadata["tags"] = record["attributes"].get("tags") return metadata sample_file = "sample1.json" loader = JSONLoader( file_path=sample_file, jq_schema=".data[]", content_key=".attributes.message", ## content_key is parsable into jq schema is_content_key_jq_parsable=True, ## this is added parameter metadata_func=metadata_func ) data = loader.load() data ``` </details> ### Dependencies none ### Twitter handle [kzk_maeda](https://twitter.com/kzk_maeda)
Configuration menu - View commit details
-
Copy full SHA for 60c5d96 - Browse repository at this point
Copy the full SHA 60c5d96View commit details -
community[minor]: add Yuque document loader (#17924)
This pull request support loading documents from Yuque with Langchain. Yuque is a professional cloud-based knowledge base for team collaboration in documentation. Website: https://www.yuque.com OpenAPI: https://www.yuque.com/yuque/developer/openapi
Configuration menu - View commit details
-
Copy full SHA for ad48f55 - Browse repository at this point
Copy the full SHA ad48f55View commit details -
docs: minor spelling errors (#18429)
Description: Noticed spelling errors. 'Colab' mispelt as 'Collab'. https://python.langchain.com/docs/use_cases Dependencies: n/a
Configuration menu - View commit details
-
Copy full SHA for 539a13d - Browse repository at this point
Copy the full SHA 539a13dView commit details -
Configuration menu - View commit details
-
Copy full SHA for f77f7dc - Browse repository at this point
Copy the full SHA f77f7dcView commit details
Commits on Mar 6, 2024
-
community[patch]: Improve amadeus tool and doc (#18509)
Description: This pull request addresses two key improvements to the langchain repository: **Fix for Crash in Flight Search Interface**: Previously, the code would crash when encountering a failure scenario in the flight ticket search interface. This PR resolves this issue by implementing a fix to handle such scenarios gracefully. Now, the code handles failures in the flight search interface without crashing, ensuring smoother operation. **Documentation Update for Amadeus Toolkit**: Prior to this update, examples provided in the documentation for the Amadeus Toolkit were unable to run correctly due to outdated information. This PR includes an update to the documentation, ensuring that all examples can now be executed successfully. With this update, users can effectively utilize the Amadeus Toolkit with accurate and functioning examples. These changes aim to enhance the reliability and usability of the langchain repository by addressing issues related to error handling and ensuring that documentation remains up-to-date and actionable. Issue: #17375 Twitter Handle: SingletonYxx
Configuration menu - View commit details
-
Copy full SHA for dc81dba - Browse repository at this point
Copy the full SHA dc81dbaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0809046 - Browse repository at this point
Copy the full SHA 0809046View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8bc347c - Browse repository at this point
Copy the full SHA 8bc347cView commit details -
elasticsearch: add
ElasticsearchRetriever
(#18587)Implement [Retriever](https://python.langchain.com/docs/modules/data_connection/retrievers/) interface for Elasticsearch. I opted to only expose the `body`, which gives you full flexibility, and none the other 68 arguments of the [search method](https://elasticsearch-py.readthedocs.io/en/v8.12.1/api/elasticsearch.html#elasticsearch.Elasticsearch.search). Added a user agent header for usage tracking in Elastic Cloud. --------- Co-authored-by: Erick Friis <erick@langchain.dev>
Configuration menu - View commit details
-
Copy full SHA for ee7a795 - Browse repository at this point
Copy the full SHA ee7a795View commit details -
Configuration menu - View commit details
-
Copy full SHA for 29f1619 - Browse repository at this point
Copy the full SHA 29f1619View commit details -
docs: structured_output (#18608)
- **Description:** Fixed some typos and copy errors in the Beta Structured Output docs - **Issue:** N/A - **Dependencies:** Docs only - **Twitter handle:** @psvann Co-authored-by: P.S. Vann <psvann@yahoo.com>
Configuration menu - View commit details
-
Copy full SHA for d7dd3cd - Browse repository at this point
Copy the full SHA d7dd3cdView commit details -
community[patch]: Implement lazy_load() for EverNoteLoader (#18538)
Covered by `test_evernote_loader.py`
Configuration menu - View commit details
-
Copy full SHA for a6b5d45 - Browse repository at this point
Copy the full SHA a6b5d45View commit details -
community[patch]: Implement lazy_load() for CubeSemanticLoader (#18535)
Covered by `test_cube_semantic.py`
Configuration menu - View commit details
-
Copy full SHA for 7d6de96 - Browse repository at this point
Copy the full SHA 7d6de96View commit details -
docs:
providers
update (#18527)Added missed pages. Added links and descriptions. Foratted to the consistent form.
Configuration menu - View commit details
-
Copy full SHA for 114d64d - Browse repository at this point
Copy the full SHA 114d64dView commit details -
infra: reorder api docs build steps (#18618)
Erick Friis authoredMar 6, 2024 Configuration menu - View commit details
-
Copy full SHA for f3e2828 - Browse repository at this point
Copy the full SHA f3e2828View commit details -
community[patch]: Databricks SerDe uses cloudpickle instead of pickle (β¦
β¦#18607) - **Description:** Databricks SerDe uses cloudpickle instead of pickle when serializing a user-defined function transform_input_fn since pickle does not support functions defined in `__main__`, and cloudpickle supports this. - **Dependencies:** cloudpickle>=2.0.0 Added a unit test.
Configuration menu - View commit details
-
Copy full SHA for 81985b3 - Browse repository at this point
Copy the full SHA 81985b3View commit details -
community[minor]: Implement lazy_load() for GitbookLoader (#18670)
Integration test: `tests/integration_tests/document_loaders/test_gitbook.py`
Configuration menu - View commit details
-
Copy full SHA for 20794bb - Browse repository at this point
Copy the full SHA 20794bbView commit details -
community[minor]: Implement lazy_load() for FacebookChatLoader (#18669)
Integration test: `tests/integration_tests/document_loaders/test_facebook_chat.py`
Configuration menu - View commit details
-
Copy full SHA for 623dfcc - Browse repository at this point
Copy the full SHA 623dfccView commit details -
community[minor]: Implement lazy_load() for SitemapLoader (#18667)
Integration tests: `test_sitemap.py` and `test_docusaurus.py`
Configuration menu - View commit details
-
Copy full SHA for ae167fb - Browse repository at this point
Copy the full SHA ae167fbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2d96803 - Browse repository at this point
Copy the full SHA 2d96803View commit details -
community[minor]: Implement lazy_load() for ArxivLoader (#18664)
Integration tests: `tests/integration_tests/utilities/test_arxiv.py` and `tests/integration_tests/document_loaders/test_arxiv.py`
Configuration menu - View commit details
-
Copy full SHA for 1100f8d - Browse repository at this point
Copy the full SHA 1100f8dView commit details -
Docs: Revamp Extraction Use Case (#18588)
Revamp the extraction use case documentation --------- Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for a4a6978 - Browse repository at this point
Copy the full SHA a4a6978View commit details -
Use Case: Extraction set temperature to 0, qualify a statement (#18672)
Minor changes: 1) Set temperature to 0 (important) 2) Better qualify one of the statements with confidence
Configuration menu - View commit details
-
Copy full SHA for b9f3c7a - Browse repository at this point
Copy the full SHA b9f3c7aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4cbfeeb - Browse repository at this point
Copy the full SHA 4cbfeebView commit details -
community[minor]: Implement lazy_load() for WikipediaLoader (#18680)
Integration test: `tests/integration_tests/document_loaders/test_wikipedia.py`
Configuration menu - View commit details
-
Copy full SHA for f414f5c - Browse repository at this point
Copy the full SHA f414f5cView commit details -
community: Implement lazy_load() for WhatsAppChatLoader (#18677)
Integration test: `tests/integration_tests/document_loaders/test_whatsapp_chat.py`
Configuration menu - View commit details
-
Copy full SHA for ed36f9f - Browse repository at this point
Copy the full SHA ed36f9fView commit details -
community: Implement lazy_load() for SlackDirectoryLoader (#18675)
Integration tests: `tests/integration_tests/document_loaders/test_slack.py`
Configuration menu - View commit details
-
Copy full SHA for 302985f - Browse repository at this point
Copy the full SHA 302985fView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we canβt render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v0.1.11...v0.1.12