-
Notifications
You must be signed in to change notification settings - Fork 15.8k
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
Image prompt template #14263
Image prompt template #14263
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
c55106a
to
8616e59
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return base64.b64encode(image_file.read()).decode("utf-8") | ||
|
||
|
||
def image_to_data_url(image_path: str) -> str: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could also make these accessible as an instance of ImagePromptValue.to_b64_string
etc.
if "input_variables" not in kwargs: | ||
kwargs["input_variables"] = [] | ||
|
||
overlap = set(kwargs["input_variables"]) & set(("url", "path", "detail")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These actually aren't required to be blocked out now that I'm using the fstring format to infer again
this type of prompt wouldn't work anymore i take it? prompt = ChatPromptTemplate.from_messages([
("system", "foo bar"),
("human", [
"{question}",
{"text": "{second_question}"},
# image with var name 'first_image' and no preset values
{"image_url": "{first_image}"},
# image with var name 'second_image' and preset "detail" level
{"image_url": {"variable_name": "second_image", "detail": "low"}},
# constant image, not a var
{"type": "image_url", "image_url": {"url": "https://python.langchain.com/assets/images/langchain_stack-f195a2c417953cb5828f76e5f9039c9f.png"}}]),
]) |
^ this one wouldn't work right now. Is that a preferable format? |
Support [LLaVA](https://ollama.ai/library/llava): * Upgrade Ollama * `ollama pull llava` Ensure compatibility with [image prompt template](#14263) --------- Co-authored-by: jacoblee93 <[email protected]>
Support [LLaVA](https://ollama.ai/library/llava): * Upgrade Ollama * `ollama pull llava` Ensure compatibility with [image prompt template](#14263) --------- Co-authored-by: jacoblee93 <[email protected]>
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | Type | Update | |---|---|---|---|---|---|---|---| | [@types/node](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node) ([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node)) | [`20.11.5` -> `20.11.16`](https://renovatebot.com/diffs/npm/@types%2fnode/20.11.5/20.11.16) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2fnode/20.11.16?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2fnode/20.11.16?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2fnode/20.11.5/20.11.16?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2fnode/20.11.5/20.11.16?slim=true)](https://docs.renovatebot.com/merge-confidence/) | dependencies | patch | | [@types/react](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react) ([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react)) | [`18.2.48` -> `18.2.55`](https://renovatebot.com/diffs/npm/@types%2freact/18.2.48/18.2.55) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2freact/18.2.55?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2freact/18.2.55?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2freact/18.2.48/18.2.55?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2freact/18.2.48/18.2.55?slim=true)](https://docs.renovatebot.com/merge-confidence/) | dependencies | patch | | [@types/react-dom](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-dom) ([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom)) | [`18.2.18` -> `18.2.19`](https://renovatebot.com/diffs/npm/@types%2freact-dom/18.2.18/18.2.19) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2freact-dom/18.2.19?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2freact-dom/18.2.19?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2freact-dom/18.2.18/18.2.19?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2freact-dom/18.2.18/18.2.19?slim=true)](https://docs.renovatebot.com/merge-confidence/) | dependencies | patch | | [@types/uuid](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/uuid) ([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/uuid)) | [`9.0.7` -> `9.0.8`](https://renovatebot.com/diffs/npm/@types%2fuuid/9.0.7/9.0.8) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2fuuid/9.0.8?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2fuuid/9.0.8?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2fuuid/9.0.7/9.0.8?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2fuuid/9.0.7/9.0.8?slim=true)](https://docs.renovatebot.com/merge-confidence/) | devDependencies | patch | | [ai](https://sdk.vercel.ai/docs) ([source](https://togithub.com/vercel/ai)) | [`2.2.31` -> `2.2.33`](https://renovatebot.com/diffs/npm/ai/2.2.31/2.2.33) | [![age](https://developer.mend.io/api/mc/badges/age/npm/ai/2.2.33?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/ai/2.2.33?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/ai/2.2.31/2.2.33?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/ai/2.2.31/2.2.33?slim=true)](https://docs.renovatebot.com/merge-confidence/) | dependencies | patch | | [ai-jsx](https://ai-jsx.com) ([source](https://togithub.com/fixie-ai/ai-jsx)) | [`^0.28.2` -> `^0.29.0`](https://renovatebot.com/diffs/npm/ai-jsx/0.28.2/0.29.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/ai-jsx/0.29.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/ai-jsx/0.29.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/ai-jsx/0.28.2/0.29.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/ai-jsx/0.28.2/0.29.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | dependencies | minor | | flask ([changelog](https://flask.palletsprojects.com/changes/)) | `3.0.1` -> `3.0.2` | [![age](https://developer.mend.io/api/mc/badges/age/pypi/flask/3.0.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/flask/3.0.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/flask/3.0.1/3.0.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/flask/3.0.1/3.0.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | dependencies | patch | | [langchain](https://togithub.com/langchain-ai/langchain) | `0.1.1` -> `0.1.5` | [![age](https://developer.mend.io/api/mc/badges/age/pypi/langchain/0.1.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/langchain/0.1.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/langchain/0.1.1/0.1.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/langchain/0.1.1/0.1.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | dependencies | patch | | [langchain](https://togithub.com/langchain-ai/langchainjs/tree/main/langchain/) ([source](https://togithub.com/langchain-ai/langchainjs)) | [`0.1.5` -> `0.1.16`](https://renovatebot.com/diffs/npm/langchain/0.1.5/0.1.16) | [![age](https://developer.mend.io/api/mc/badges/age/npm/langchain/0.1.16?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/langchain/0.1.16?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/langchain/0.1.5/0.1.16?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/langchain/0.1.5/0.1.16?slim=true)](https://docs.renovatebot.com/merge-confidence/) | dependencies | patch | | [numexpr](https://togithub.com/pydata/numexpr) | `2.8.8` -> `2.9.0` | [![age](https://developer.mend.io/api/mc/badges/age/pypi/numexpr/2.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/numexpr/2.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/numexpr/2.8.8/2.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/numexpr/2.8.8/2.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | dependencies | minor | | [openai](https://togithub.com/openai/openai-python) | `1.9.0` -> `1.11.1` | [![age](https://developer.mend.io/api/mc/badges/age/pypi/openai/1.11.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/openai/1.11.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/openai/1.9.0/1.11.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/openai/1.9.0/1.11.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | dependencies | minor | | [openai](https://togithub.com/openai/openai-node) | [`4.25.0` -> `4.26.1`](https://renovatebot.com/diffs/npm/openai/4.25.0/4.26.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/openai/4.26.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/openai/4.26.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/openai/4.25.0/4.26.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/openai/4.25.0/4.26.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | dependencies | minor | | [postcss](https://postcss.org/) ([source](https://togithub.com/postcss/postcss)) | [`8.4.33` -> `8.4.35`](https://renovatebot.com/diffs/npm/postcss/8.4.33/8.4.35) | [![age](https://developer.mend.io/api/mc/badges/age/npm/postcss/8.4.35?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/postcss/8.4.35?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/postcss/8.4.33/8.4.35?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/postcss/8.4.33/8.4.35?slim=true)](https://docs.renovatebot.com/merge-confidence/) | dependencies | patch | | [postcss](https://postcss.org/) ([source](https://togithub.com/postcss/postcss)) | [`8.4.33` -> `8.4.35`](https://renovatebot.com/diffs/npm/postcss/8.4.33/8.4.35) | [![age](https://developer.mend.io/api/mc/badges/age/npm/postcss/8.4.35?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/postcss/8.4.35?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/postcss/8.4.33/8.4.35?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/postcss/8.4.33/8.4.35?slim=true)](https://docs.renovatebot.com/merge-confidence/) | devDependencies | patch | | [pre-commit/action](https://togithub.com/pre-commit/action) | `v3.0.0` -> `v3.0.1` | [![age](https://developer.mend.io/api/mc/badges/age/github-tags/pre-commit%2faction/v3.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/github-tags/pre-commit%2faction/v3.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/github-tags/pre-commit%2faction/v3.0.0/v3.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/github-tags/pre-commit%2faction/v3.0.0/v3.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | action | patch | | [pydantic](https://togithub.com/pydantic/pydantic) ([changelog](https://docs.pydantic.dev/latest/changelog/)) | `2.5.3` -> `2.6.1` | [![age](https://developer.mend.io/api/mc/badges/age/pypi/pydantic/2.6.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/pydantic/2.6.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/pydantic/2.5.3/2.6.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/pydantic/2.5.3/2.6.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | dependencies | minor | | [python-dotenv](https://togithub.com/theskumar/python-dotenv) | `1.0.0` -> `1.0.1` | [![age](https://developer.mend.io/api/mc/badges/age/pypi/python-dotenv/1.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/python-dotenv/1.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/python-dotenv/1.0.0/1.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/python-dotenv/1.0.0/1.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | dependencies | patch | | [slackapi/slack-github-action](https://togithub.com/slackapi/slack-github-action) | `v1.24.0` -> `v1.25.0` | [![age](https://developer.mend.io/api/mc/badges/age/github-tags/slackapi%2fslack-github-action/v1.25.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/github-tags/slackapi%2fslack-github-action/v1.25.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/github-tags/slackapi%2fslack-github-action/v1.24.0/v1.25.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/github-tags/slackapi%2fslack-github-action/v1.24.0/v1.25.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | action | minor | --- ### Release Notes <details> <summary>vercel/ai (ai)</summary> ### [`v2.2.33`](https://togithub.com/vercel/ai/releases/tag/ai%402.2.33) [Compare Source](https://togithub.com/vercel/ai/compare/[email protected]@2.2.33) ##### Patch Changes - [`8542ae7`](https://togithub.com/vercel/ai/commit/8542ae7): react/use-assistant: add onError handler - [`97039ff`](https://togithub.com/vercel/ai/commit/97039ff): OpenAIStream: Add support for the Azure OpenAI client library ### [`v2.2.32`](https://togithub.com/vercel/ai/releases/tag/ai%402.2.32) [Compare Source](https://togithub.com/vercel/ai/compare/[email protected]@2.2.32) ##### Patch Changes - [`7851fa0`](https://togithub.com/vercel/ai/commit/7851fa0): StreamData: add `annotations` and `appendMessageAnnotation` support </details> <details> <summary>langchain-ai/langchain (langchain)</summary> ### [`v0.1.5`](https://togithub.com/langchain-ai/langchain/releases/tag/v0.1.5) [Compare Source](https://togithub.com/langchain-ai/langchain/compare/v0.1.4...v0.1.5) #### What's Changed - openai\[patch]: Explicitly support embedding dimensions by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/16596](https://togithub.com/langchain-ai/langchain/pull/16596) - google-vertexai\[patch]: Release 0.0.3 by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/16597](https://togithub.com/langchain-ai/langchain/pull/16597) - openai\[patch]: Release 0.0.5 by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/16598](https://togithub.com/langchain-ai/langchain/pull/16598) - Fixed tool names snake_case by [@​jatinchawda1503](https://togithub.com/jatinchawda1503) in [https://github.com/langchain-ai/langchain/pull/16397](https://togithub.com/langchain-ai/langchain/pull/16397) - core\[patch]: Update in code documentation for runnable with message history by [@​eyurtsev](https://togithub.com/eyurtsev) in [https://github.com/langchain-ai/langchain/pull/16585](https://togithub.com/langchain-ai/langchain/pull/16585) - fix: inconsistent results with `RecursiveCharacterTextSplitter`'s `add_start_index=True` by [@​antoniolanza1996](https://togithub.com/antoniolanza1996) in [https://github.com/langchain-ai/langchain/pull/16583](https://togithub.com/langchain-ai/langchain/pull/16583) - Langchain-community : EdenAI chat integration. by [@​Daggx](https://togithub.com/Daggx) in [https://github.com/langchain-ai/langchain/pull/16377](https://togithub.com/langchain-ai/langchain/pull/16377) - core: expand docstring for RunnableParallel by [@​ccurme](https://togithub.com/ccurme) in [https://github.com/langchain-ai/langchain/pull/16600](https://togithub.com/langchain-ai/langchain/pull/16600) - google-vertexai\[patch]: streaming bug by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/16603](https://togithub.com/langchain-ai/langchain/pull/16603) - community: Add Baichuan Text Embedding Model and Baichuan Inc introduction by [@​baichuan-assistant](https://togithub.com/baichuan-assistant) in [https://github.com/langchain-ai/langchain/pull/16568](https://togithub.com/langchain-ai/langchain/pull/16568) - Docs: Fix typo in XML agent documentation by [@​CallumCM](https://togithub.com/CallumCM) in [https://github.com/langchain-ai/langchain/pull/16645](https://togithub.com/langchain-ai/langchain/pull/16645) - community: Added support for Ollama's num_predict option in ChatOllama by [@​micahparker](https://togithub.com/micahparker) in [https://github.com/langchain-ai/langchain/pull/16633](https://togithub.com/langchain-ai/langchain/pull/16633) - community\[patch]: Update documentation to use 'model_id' rather than 'model_name' to match actual API by [@​xiaokuili](https://togithub.com/xiaokuili) in [https://github.com/langchain-ai/langchain/pull/16615](https://togithub.com/langchain-ai/langchain/pull/16615) - community: youtube loader transcript format by [@​sydneyidler](https://togithub.com/sydneyidler) in [https://github.com/langchain-ai/langchain/pull/16625](https://togithub.com/langchain-ai/langchain/pull/16625) - Update openai_tools.ipynb by [@​tryumanshow](https://togithub.com/tryumanshow) in [https://github.com/langchain-ai/langchain/pull/16618](https://togithub.com/langchain-ai/langchain/pull/16618) - Accept message-like things in Chat models, LLMs and MessagesPlaceholder by [@​nfcampos](https://togithub.com/nfcampos) in [https://github.com/langchain-ai/langchain/pull/16418](https://togithub.com/langchain-ai/langchain/pull/16418) - Community: Ionic Tool by [@​stewartjarod](https://togithub.com/stewartjarod) in [https://github.com/langchain-ai/langchain/pull/16649](https://togithub.com/langchain-ai/langchain/pull/16649) - In stream_event and stream_log handle closed streams by [@​nfcampos](https://togithub.com/nfcampos) in [https://github.com/langchain-ai/langchain/pull/16661](https://togithub.com/langchain-ai/langchain/pull/16661) - \[Fix] Fix Cassandra Document loader default page content mapper by [@​cbornet](https://togithub.com/cbornet) in [https://github.com/langchain-ai/langchain/pull/16273](https://togithub.com/langchain-ai/langchain/pull/16273) - infra: delete old CI workflows by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/16680](https://togithub.com/langchain-ai/langchain/pull/16680) - \[community] fix anthropic streaming by [@​hwchase17](https://togithub.com/hwchase17) in [https://github.com/langchain-ai/langchain/pull/16682](https://togithub.com/langchain-ai/langchain/pull/16682) - docs: Fix broken link in CONTRIBUTING.md by [@​derenrich](https://togithub.com/derenrich) in [https://github.com/langchain-ai/langchain/pull/16681](https://togithub.com/langchain-ai/langchain/pull/16681) - WebBaseLoader: Add Cookie Support to Fetch Method by [@​Jalmeida1994](https://togithub.com/Jalmeida1994) in [https://github.com/langchain-ai/langchain/pull/16673](https://togithub.com/langchain-ai/langchain/pull/16673) - docs `DeepInfra` provider page update by [@​leo-gan](https://togithub.com/leo-gan) in [https://github.com/langchain-ai/langchain/pull/16665](https://togithub.com/langchain-ai/langchain/pull/16665) - community: Ollama - Pass headers to post request in async method by [@​zhxu73](https://togithub.com/zhxu73) in [https://github.com/langchain-ai/langchain/pull/16660](https://togithub.com/langchain-ai/langchain/pull/16660) - Community: MLflowCallbackHandler -- Move textstat and spacy as optional dependency by [@​serena-ruan](https://togithub.com/serena-ruan) in [https://github.com/langchain-ai/langchain/pull/16657](https://togithub.com/langchain-ai/langchain/pull/16657) - community: apply embedding functions during query if defined by [@​Rijul1204](https://togithub.com/Rijul1204) in [https://github.com/langchain-ai/langchain/pull/16646](https://togithub.com/langchain-ai/langchain/pull/16646) - Error when importing packages from pydantic \[docs] by [@​ARKA1112](https://togithub.com/ARKA1112) in [https://github.com/langchain-ai/langchain/pull/16564](https://togithub.com/langchain-ai/langchain/pull/16564) - Image prompt template by [@​hinthornw](https://togithub.com/hinthornw) in [https://github.com/langchain-ai/langchain/pull/14263](https://togithub.com/langchain-ai/langchain/pull/14263) - Add async methods to AstraDBLoader by [@​cbornet](https://togithub.com/cbornet) in [https://github.com/langchain-ai/langchain/pull/16652](https://togithub.com/langchain-ai/langchain/pull/16652) - robocorp: release 0.0.2 by [@​efriis](https://togithub.com/efriis) in [https://github.com/langchain-ai/langchain/pull/16706](https://togithub.com/langchain-ai/langchain/pull/16706) - infra: move release workflow back by [@​efriis](https://togithub.com/efriis) in [https://github.com/langchain-ai/langchain/pull/16707](https://togithub.com/langchain-ai/langchain/pull/16707) - docs: remove iprogress warnings by [@​Yelinz](https://togithub.com/Yelinz) in [https://github.com/langchain-ai/langchain/pull/16697](https://togithub.com/langchain-ai/langchain/pull/16697) - Use Postponed Evaluation of Annotations in Astra and Cassandra doc loaders by [@​cbornet](https://togithub.com/cbornet) in [https://github.com/langchain-ai/langchain/pull/16694](https://togithub.com/langchain-ai/langchain/pull/16694) - Community: Update Ionic Shopping Docs by [@​owensims1](https://togithub.com/owensims1) in [https://github.com/langchain-ai/langchain/pull/16700](https://togithub.com/langchain-ai/langchain/pull/16700) - Core: fix Anthropic json issue in streaming by [@​tmin97](https://togithub.com/tmin97) in [https://github.com/langchain-ai/langchain/pull/16670](https://togithub.com/langchain-ai/langchain/pull/16670) - community: Wikidata tool support by [@​derenrich](https://togithub.com/derenrich) in [https://github.com/langchain-ai/langchain/pull/16691](https://togithub.com/langchain-ai/langchain/pull/16691) - Update `n_gpu_layers`"s description by [@​169](https://togithub.com/169) in [https://github.com/langchain-ai/langchain/pull/16685](https://togithub.com/langchain-ai/langchain/pull/16685) - core: expand docstring for RunnableGenerator by [@​ccurme](https://togithub.com/ccurme) in [https://github.com/langchain-ai/langchain/pull/16672](https://togithub.com/langchain-ai/langchain/pull/16672) - docs: Syntax correction according to langchain version update in 'Retry Parser' tutorial example by [@​ash-hun](https://togithub.com/ash-hun) in [https://github.com/langchain-ai/langchain/pull/16699](https://togithub.com/langchain-ai/langchain/pull/16699) - community: Fixed schema discrepancy in from_texts function for weaviate vectorstore by [@​pashva](https://togithub.com/pashva) in [https://github.com/langchain-ai/langchain/pull/16693](https://togithub.com/langchain-ai/langchain/pull/16693) - Update Slack agent toolkit by [@​rlancemartin](https://togithub.com/rlancemartin) in [https://github.com/langchain-ai/langchain/pull/16732](https://togithub.com/langchain-ai/langchain/pull/16732) - langchain: pubmed tool path update in doc by [@​j-space-b](https://togithub.com/j-space-b) in [https://github.com/langchain-ai/langchain/pull/16716](https://togithub.com/langchain-ai/langchain/pull/16716) - community: Added integrations for ThirdAI's NeuralDB with Retriever and VectorStore frameworks by [@​benitoThree](https://togithub.com/benitoThree) in [https://github.com/langchain-ai/langchain/pull/15280](https://togithub.com/langchain-ai/langchain/pull/15280) - langchain-community: fix unicode escaping issue with SlackToolkit by [@​taimo3810](https://togithub.com/taimo3810) in [https://github.com/langchain-ai/langchain/pull/16616](https://togithub.com/langchain-ai/langchain/pull/16616) - langchain_community: Update documentation for installing llama-cpp-python on windows by [@​blacksmithop](https://togithub.com/blacksmithop) in [https://github.com/langchain-ai/langchain/pull/16666](https://togithub.com/langchain-ai/langchain/pull/16666) - fix(experimental): missing resolution strategy in anonymization by [@​mspronesti](https://togithub.com/mspronesti) in [https://github.com/langchain-ai/langchain/pull/16653](https://togithub.com/langchain-ai/langchain/pull/16653) - Implement TTL for DynamoDBChatMessageHistory by [@​brnaba-aws](https://togithub.com/brnaba-aws) in [https://github.com/langchain-ai/langchain/pull/15478](https://togithub.com/langchain-ai/langchain/pull/15478) - core\[patch]: Release 0.1.17 by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/16737](https://togithub.com/langchain-ai/langchain/pull/16737) - templates: Ionic Shopping Assistant by [@​stewartjarod](https://togithub.com/stewartjarod) in [https://github.com/langchain-ai/langchain/pull/16648](https://togithub.com/langchain-ai/langchain/pull/16648) - community: Add missing async similarity_distance_threshold handling in RedisVectorStoreRetriever by [@​HugoMichard](https://togithub.com/HugoMichard) in [https://github.com/langchain-ai/langchain/pull/16359](https://togithub.com/langchain-ai/langchain/pull/16359) - community: Milvus supports add & delete texts by ids by [@​jaelgu](https://togithub.com/jaelgu) in [https://github.com/langchain-ai/langchain/pull/16256](https://togithub.com/langchain-ai/langchain/pull/16256) - docs: Added illustration of using RetryOutputParser with LLMChain by [@​Kirushikesh](https://togithub.com/Kirushikesh) in [https://github.com/langchain-ai/langchain/pull/16722](https://togithub.com/langchain-ai/langchain/pull/16722) - community:To adapt more parameters related to MemorySearchPayload for the search method of ZepChatMessageHistory by [@​ElliotChina](https://togithub.com/ElliotChina) in [https://github.com/langchain-ai/langchain/pull/15441](https://togithub.com/langchain-ai/langchain/pull/15441) - Feat: support OpenAIAssistantRunnable async by [@​chyroc](https://togithub.com/chyroc) in [https://github.com/langchain-ai/langchain/pull/15302](https://togithub.com/langchain-ai/langchain/pull/15302) - langchain, community: Implement Ontotext GraphDB QA Chain by [@​nelly-hateva](https://togithub.com/nelly-hateva) in [https://github.com/langchain-ai/langchain/pull/16019](https://togithub.com/langchain-ai/langchain/pull/16019) - Harrison/activeloop ai tql deprecation by [@​hwchase17](https://togithub.com/hwchase17) in [https://github.com/langchain-ai/langchain/pull/14634](https://togithub.com/langchain-ai/langchain/pull/14634) - Add Connery Tool and Toolkit by [@​machulav](https://togithub.com/machulav) in [https://github.com/langchain-ai/langchain/pull/14506](https://togithub.com/langchain-ai/langchain/pull/14506) - Added annotations support to AOAI by [@​shayben](https://togithub.com/shayben) in [https://github.com/langchain-ai/langchain/pull/13704](https://togithub.com/langchain-ai/langchain/pull/13704) - PR: "docs: Remove accidental extra \`\`\` in QuickStart doc." by [@​gthank](https://togithub.com/gthank) in [https://github.com/langchain-ai/langchain/pull/16740](https://togithub.com/langchain-ai/langchain/pull/16740) - Update OctoAI LLM, Embedding and documentation by [@​AI-Bassem](https://togithub.com/AI-Bassem) in [https://github.com/langchain-ai/langchain/pull/16710](https://togithub.com/langchain-ai/langchain/pull/16710) - docs\[minor]: LCEL rewrite of chatbot use-case by [@​jacoblee93](https://togithub.com/jacoblee93) in [https://github.com/langchain-ai/langchain/pull/16414](https://togithub.com/langchain-ai/langchain/pull/16414) - docs\[patch]: Lower temperature in chatbot usecase notebooks for consistency by [@​jacoblee93](https://togithub.com/jacoblee93) in [https://github.com/langchain-ai/langchain/pull/16750](https://togithub.com/langchain-ai/langchain/pull/16750) - \<langchain_community\llms\chatglm.py>: \<Correcting "history"> by [@​hulitaitai](https://togithub.com/hulitaitai) in [https://github.com/langchain-ai/langchain/pull/16729](https://togithub.com/langchain-ai/langchain/pull/16729) - community: Add new fields in metadata for qdrant vector store by [@​killinsun](https://togithub.com/killinsun) in [https://github.com/langchain-ai/langchain/pull/16608](https://togithub.com/langchain-ai/langchain/pull/16608) - core\[patch]: preserve inspect.iscoroutinefunction with [@​beta](https://togithub.com/beta) decorator by [@​Lord-Haji](https://togithub.com/Lord-Haji) in [https://github.com/langchain-ai/langchain/pull/16440](https://togithub.com/langchain-ai/langchain/pull/16440) - community: add support for callable filters in FAISS by [@​thiswillbeyourgithub](https://togithub.com/thiswillbeyourgithub) in [https://github.com/langchain-ai/langchain/pull/16190](https://togithub.com/langchain-ai/langchain/pull/16190) - community: Add Baichuan LLM to community by [@​baichuan-assistant](https://togithub.com/baichuan-assistant) in [https://github.com/langchain-ai/langchain/pull/16724](https://togithub.com/langchain-ai/langchain/pull/16724) - Add async methods for the AstraDB VectorStore by [@​cbornet](https://togithub.com/cbornet) in [https://github.com/langchain-ai/langchain/pull/16391](https://togithub.com/langchain-ai/langchain/pull/16391) - adding parameter for changing the language in SpacyEmbeddings by [@​MarinaPlius](https://togithub.com/MarinaPlius) in [https://github.com/langchain-ai/langchain/pull/15743](https://togithub.com/langchain-ai/langchain/pull/15743) - community: Add ChatGLM3 by [@​169](https://togithub.com/169) in [https://github.com/langchain-ai/langchain/pull/15265](https://togithub.com/langchain-ai/langchain/pull/15265) - Fix rephrase step in chatbot use case by [@​jacoblee93](https://togithub.com/jacoblee93) in [https://github.com/langchain-ai/langchain/pull/16763](https://togithub.com/langchain-ai/langchain/pull/16763) - \[partners]: langchain-robocorp ease dependency version by [@​rihardsgravis](https://togithub.com/rihardsgravis) in [https://github.com/langchain-ai/langchain/pull/16765](https://togithub.com/langchain-ai/langchain/pull/16765) - robocorp: release 0.0.3 by [@​efriis](https://togithub.com/efriis) in [https://github.com/langchain-ai/langchain/pull/16789](https://togithub.com/langchain-ai/langchain/pull/16789) - Report which file was errored on in DirectoryLoader by [@​alex-dr](https://togithub.com/alex-dr) in [https://github.com/langchain-ai/langchain/pull/16790](https://togithub.com/langchain-ai/langchain/pull/16790) - docs: add csv use case by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/16756](https://togithub.com/langchain-ai/langchain/pull/16756) - Fix Dep Recommendation by [@​hinthornw](https://togithub.com/hinthornw) in [https://github.com/langchain-ai/langchain/pull/16793](https://togithub.com/langchain-ai/langchain/pull/16793) - core\[patch]: Update doc-string in base callback managers by [@​eyurtsev](https://togithub.com/eyurtsev) in [https://github.com/langchain-ai/langchain/pull/15885](https://togithub.com/langchain-ai/langchain/pull/15885) - community\[patch]: undo create_sql_agent breaking by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/16797](https://togithub.com/langchain-ai/langchain/pull/16797) - community: add the ability to load existing transcripts from AssemblyAI by their id. by [@​RaphaelFavero](https://togithub.com/RaphaelFavero) in [https://github.com/langchain-ai/langchain/pull/16051](https://togithub.com/langchain-ai/langchain/pull/16051) - openai\[minor]: change to secretstr by [@​efriis](https://togithub.com/efriis) in [https://github.com/langchain-ai/langchain/pull/16803](https://togithub.com/langchain-ai/langchain/pull/16803) - infra: remove unnecessary tests on partner packages by [@​efriis](https://togithub.com/efriis) in [https://github.com/langchain-ai/langchain/pull/16808](https://togithub.com/langchain-ai/langchain/pull/16808) - nvidia-trt: remove tritonclient all extra dep by [@​efriis](https://togithub.com/efriis) in [https://github.com/langchain-ai/langchain/pull/16749](https://togithub.com/langchain-ai/langchain/pull/16749) - langchain\[minor],community\[minor]: Add async methods in BaseLoader by [@​cbornet](https://togithub.com/cbornet) in [https://github.com/langchain-ai/langchain/pull/16634](https://togithub.com/langchain-ai/langchain/pull/16634) - core(minor): Add bulk add messages to BaseChatMessageHistory interface by [@​eyurtsev](https://togithub.com/eyurtsev) in [https://github.com/langchain-ai/langchain/pull/15709](https://togithub.com/langchain-ai/langchain/pull/15709) - nomic: init pkg by [@​efriis](https://togithub.com/efriis) in [https://github.com/langchain-ai/langchain/pull/16853](https://togithub.com/langchain-ai/langchain/pull/16853) - Add async methods to BaseStore by [@​cbornet](https://togithub.com/cbornet) in [https://github.com/langchain-ai/langchain/pull/16669](https://togithub.com/langchain-ai/langchain/pull/16669) - core\[patch]: Release 0.1.18 by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/16870](https://togithub.com/langchain-ai/langchain/pull/16870) - commmunity\[patch]: Release 0.0.17 by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/16871](https://togithub.com/langchain-ai/langchain/pull/16871) - langchain\[patch]: Release 0.1.5 by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/16881](https://togithub.com/langchain-ai/langchain/pull/16881) - infra: bump langchain min test reqs by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/16882](https://togithub.com/langchain-ai/langchain/pull/16882) #### New Contributors - [@​antoniolanza1996](https://togithub.com/antoniolanza1996) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16583](https://togithub.com/langchain-ai/langchain/pull/16583) - [@​Daggx](https://togithub.com/Daggx) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16377](https://togithub.com/langchain-ai/langchain/pull/16377) - [@​CallumCM](https://togithub.com/CallumCM) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16645](https://togithub.com/langchain-ai/langchain/pull/16645) - [@​micahparker](https://togithub.com/micahparker) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16633](https://togithub.com/langchain-ai/langchain/pull/16633) - [@​xiaokuili](https://togithub.com/xiaokuili) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16615](https://togithub.com/langchain-ai/langchain/pull/16615) - [@​sydneyidler](https://togithub.com/sydneyidler) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16625](https://togithub.com/langchain-ai/langchain/pull/16625) - [@​tryumanshow](https://togithub.com/tryumanshow) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16618](https://togithub.com/langchain-ai/langchain/pull/16618) - [@​stewartjarod](https://togithub.com/stewartjarod) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16649](https://togithub.com/langchain-ai/langchain/pull/16649) - [@​derenrich](https://togithub.com/derenrich) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16681](https://togithub.com/langchain-ai/langchain/pull/16681) - [@​Jalmeida1994](https://togithub.com/Jalmeida1994) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16673](https://togithub.com/langchain-ai/langchain/pull/16673) - [@​zhxu73](https://togithub.com/zhxu73) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16660](https://togithub.com/langchain-ai/langchain/pull/16660) - [@​Rijul1204](https://togithub.com/Rijul1204) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16646](https://togithub.com/langchain-ai/langchain/pull/16646) - [@​ARKA1112](https://togithub.com/ARKA1112) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16564](https://togithub.com/langchain-ai/langchain/pull/16564) - [@​owensims1](https://togithub.com/owensims1) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16700](https://togithub.com/langchain-ai/langchain/pull/16700) - [@​ash-hun](https://togithub.com/ash-hun) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16699](https://togithub.com/langchain-ai/langchain/pull/16699) - [@​pashva](https://togithub.com/pashva) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16693](https://togithub.com/langchain-ai/langchain/pull/16693) - [@​benitoThree](https://togithub.com/benitoThree) made their first contribution in [https://github.com/langchain-ai/langchain/pull/15280](https://togithub.com/langchain-ai/langchain/pull/15280) - [@​taimo3810](https://togithub.com/taimo3810) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16616](https://togithub.com/langchain-ai/langchain/pull/16616) - [@​brnaba-aws](https://togithub.com/brnaba-aws) made their first contribution in [https://github.com/langchain-ai/langchain/pull/15478](https://togithub.com/langchain-ai/langchain/pull/15478) - [@​HugoMichard](https://togithub.com/HugoMichard) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16359](https://togithub.com/langchain-ai/langchain/pull/16359) - [@​jaelgu](https://togithub.com/jaelgu) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16256](https://togithub.com/langchain-ai/langchain/pull/16256) - [@​Kirushikesh](https://togithub.com/Kirushikesh) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16722](https://togithub.com/langchain-ai/langchain/pull/16722) - [@​ElliotChina](https://togithub.com/ElliotChina) made their first contribution in [https://github.com/langchain-ai/langchain/pull/15441](https://togithub.com/langchain-ai/langchain/pull/15441) - [@​nelly-hateva](https://togithub.com/nelly-hateva) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16019](https://togithub.com/langchain-ai/langchain/pull/16019) - [@​machulav](https://togithub.com/machulav) made their first contribution in [https://github.com/langchain-ai/langchain/pull/14506](https://togithub.com/langchain-ai/langchain/pull/14506) - [@​shayben](https://togithub.com/shayben) made their first contribution in [https://github.com/langchain-ai/langchain/pull/13704](https://togithub.com/langchain-ai/langchain/pull/13704) - [@​gthank](https://togithub.com/gthank) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16740](https://togithub.com/langchain-ai/langchain/pull/16740) - [@​hulitaitai](https://togithub.com/hulitaitai) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16729](https://togithub.com/langchain-ai/langchain/pull/16729) - [@​killinsun](https://togithub.com/killinsun) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16608](https://togithub.com/langchain-ai/langchain/pull/16608) - [@​Lord-Haji](https://togithub.com/Lord-Haji) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16440](https://togithub.com/langchain-ai/langchain/pull/16440) - [@​MarinaPlius](https://togithub.com/MarinaPlius) made their first contribution in [https://github.com/langchain-ai/langchain/pull/15743](https://togithub.com/langchain-ai/langchain/pull/15743) - [@​alex-dr](https://togithub.com/alex-dr) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16790](https://togithub.com/langchain-ai/langchain/pull/16790) - [@​RaphaelFavero](https://togithub.com/RaphaelFavero) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16051](https://togithub.com/langchain-ai/langchain/pull/16051) **Full Changelog**: https://github.com/langchain-ai/langchain/compare/v0.1.4...v0.1.5 ### [`v0.1.4`](https://togithub.com/langchain-ai/langchain/releases/tag/v0.1.4) [Compare Source](https://togithub.com/langchain-ai/langchain/compare/v0.1.3...v0.1.4) #### What's Changed - Minor nit on HyDE by [@​rlancemartin](https://togithub.com/rlancemartin) in [https://github.com/langchain-ai/langchain/pull/16478](https://togithub.com/langchain-ai/langchain/pull/16478) - template: fix azure params in retrieval agent by [@​efriis](https://togithub.com/efriis) in [https://github.com/langchain-ai/langchain/pull/16257](https://togithub.com/langchain-ai/langchain/pull/16257) - cli\[patch]: add integration tests to default makefile by [@​efriis](https://togithub.com/efriis) in [https://github.com/langchain-ai/langchain/pull/16479](https://togithub.com/langchain-ai/langchain/pull/16479) - feat(llms): support more tasks in HuggingFaceHub LLM and remove deprecated dep by [@​mspronesti](https://togithub.com/mspronesti) in [https://github.com/langchain-ai/langchain/pull/14406](https://togithub.com/langchain-ai/langchain/pull/14406) - Fixed typo on quickstart.ipynb by [@​dudgeon](https://togithub.com/dudgeon) in [https://github.com/langchain-ai/langchain/pull/16482](https://togithub.com/langchain-ai/langchain/pull/16482) - community: SQLStrStore/SQLDocStore provide an easy SQL alternative to `InMemoryStore` to persist data remotely in a SQL storage by [@​gcheron](https://togithub.com/gcheron) in [https://github.com/langchain-ai/langchain/pull/15909](https://togithub.com/langchain-ai/langchain/pull/15909) - community: Fix Baichuan Chat. by [@​baichuan-assistant](https://togithub.com/baichuan-assistant) in [https://github.com/langchain-ai/langchain/pull/15207](https://togithub.com/langchain-ai/langchain/pull/15207) - community: normalize bedrock embeddings by [@​dmenini](https://togithub.com/dmenini) in [https://github.com/langchain-ai/langchain/pull/15103](https://togithub.com/langchain-ai/langchain/pull/15103) - feat: adding paygo api support for Azure ML / Azure AI Studio by [@​santiagxf](https://togithub.com/santiagxf) in [https://github.com/langchain-ai/langchain/pull/14560](https://togithub.com/langchain-ai/langchain/pull/14560) - community: Improve mlflow callback by [@​serena-ruan](https://togithub.com/serena-ruan) in [https://github.com/langchain-ai/langchain/pull/15691](https://togithub.com/langchain-ai/langchain/pull/15691) - Include scores in MongoDB Atlas QA chain results by [@​NoahStapp](https://togithub.com/NoahStapp) in [https://github.com/langchain-ai/langchain/pull/14666](https://togithub.com/langchain-ai/langchain/pull/14666) - langchain\[patch]: In HTMLHeaderTextSplitter set default encoding to utf-8 by [@​i-w-a](https://togithub.com/i-w-a) in [https://github.com/langchain-ai/langchain/pull/16372](https://togithub.com/langchain-ai/langchain/pull/16372) - langchain: Extract \_aperform_agent_action from \_aiter_next_step from AgentExecutor by [@​gianfrancodemarco](https://togithub.com/gianfrancodemarco) in [https://github.com/langchain-ai/langchain/pull/15707](https://togithub.com/langchain-ai/langchain/pull/15707) - community:Adding Konko Completion endpoint by [@​shivanimodi16](https://togithub.com/shivanimodi16) in [https://github.com/langchain-ai/langchain/pull/15570](https://togithub.com/langchain-ai/langchain/pull/15570) - docs: Updated integration docs structure for chat/anthropic by [@​L-cloud](https://togithub.com/L-cloud) in [https://github.com/langchain-ai/langchain/pull/16268](https://togithub.com/langchain-ai/langchain/pull/16268) - Add KDBAI vector store by [@​bu2kx](https://togithub.com/bu2kx) in [https://github.com/langchain-ai/langchain/pull/12797](https://togithub.com/langchain-ai/langchain/pull/12797) - Docs: Fix version in which astream_events was released by [@​eyurtsev](https://togithub.com/eyurtsev) in [https://github.com/langchain-ai/langchain/pull/16481](https://togithub.com/langchain-ai/langchain/pull/16481) - \[langchain]: allow passing client with OpenAIAssistantRunnable by [@​kristapratico](https://togithub.com/kristapratico) in [https://github.com/langchain-ai/langchain/pull/16486](https://togithub.com/langchain-ai/langchain/pull/16486) - community: Fix MlflowCallback with none artifacts_dir by [@​serena-ruan](https://togithub.com/serena-ruan) in [https://github.com/langchain-ai/langchain/pull/16487](https://togithub.com/langchain-ai/langchain/pull/16487) - langchain: Minor Fix: Enable Passing custom_headers for Authentication in GraphQL Agent/Tool by [@​zendegani](https://togithub.com/zendegani) in [https://github.com/langchain-ai/langchain/pull/16413](https://togithub.com/langchain-ai/langchain/pull/16413) - Feature: Add iFlyTek Spark LLM chat model support by [@​vsxd](https://togithub.com/vsxd) in [https://github.com/langchain-ai/langchain/pull/13389](https://togithub.com/langchain-ai/langchain/pull/13389) - community: Load list of files using UnstructuredFileLoader by [@​raunakshrivastava7](https://togithub.com/raunakshrivastava7) in [https://github.com/langchain-ai/langchain/pull/16216](https://togithub.com/langchain-ai/langchain/pull/16216) - \[community]\[cohere] Update cohere rerank and comparison docs by [@​BeatrixCohere](https://togithub.com/BeatrixCohere) in [https://github.com/langchain-ai/langchain/pull/16198](https://togithub.com/langchain-ai/langchain/pull/16198) - \[community]\[document loaders]\[surrealdb] fix for asyncio by [@​lalanikarim](https://togithub.com/lalanikarim) in [https://github.com/langchain-ai/langchain/pull/16092](https://togithub.com/langchain-ai/langchain/pull/16092) - Community: added 'conversational' as a valid task for hugginface endopoint models by [@​alessioserra](https://togithub.com/alessioserra) in [https://github.com/langchain-ai/langchain/pull/15761](https://togithub.com/langchain-ai/langchain/pull/15761) - Refactor: use SecretStr for yandex embedding by [@​chyroc](https://togithub.com/chyroc) in [https://github.com/langchain-ai/langchain/pull/15463](https://togithub.com/langchain-ai/langchain/pull/15463) - Remove double line by [@​nfcampos](https://togithub.com/nfcampos) in [https://github.com/langchain-ai/langchain/pull/16426](https://togithub.com/langchain-ai/langchain/pull/16426) - community: avoid KeyError when language not in LANGUAGE_SEGMENTERS by [@​dzlab](https://togithub.com/dzlab) in [https://github.com/langchain-ai/langchain/pull/15212](https://togithub.com/langchain-ai/langchain/pull/15212) - community: Fix error message when litellm is not installed by [@​jeremi](https://togithub.com/jeremi) in [https://github.com/langchain-ai/langchain/pull/16316](https://togithub.com/langchain-ai/langchain/pull/16316) - docs: typo in tool use quickstart page by [@​Tipwheal](https://togithub.com/Tipwheal) in [https://github.com/langchain-ai/langchain/pull/16494](https://togithub.com/langchain-ai/langchain/pull/16494) - Docs: Add streaming section by [@​eyurtsev](https://togithub.com/eyurtsev) in [https://github.com/langchain-ai/langchain/pull/16468](https://togithub.com/langchain-ai/langchain/pull/16468) - added a few suggestions for sql docs by [@​fpingham](https://togithub.com/fpingham) in [https://github.com/langchain-ai/langchain/pull/16508](https://togithub.com/langchain-ai/langchain/pull/16508) - Update SQL agent toolkit docs by [@​rlancemartin](https://togithub.com/rlancemartin) in [https://github.com/langchain-ai/langchain/pull/16409](https://togithub.com/langchain-ai/langchain/pull/16409) - CI: Update issue template by [@​eyurtsev](https://togithub.com/eyurtsev) in [https://github.com/langchain-ai/langchain/pull/16517](https://togithub.com/langchain-ai/langchain/pull/16517) - docs: rm output by [@​efriis](https://togithub.com/efriis) in [https://github.com/langchain-ai/langchain/pull/16519](https://togithub.com/langchain-ai/langchain/pull/16519) - CI: redirect feature requests to ideas in discussions by [@​eyurtsev](https://togithub.com/eyurtsev) in [https://github.com/langchain-ai/langchain/pull/16522](https://togithub.com/langchain-ai/langchain/pull/16522) - CI: more update to ideas template by [@​eyurtsev](https://togithub.com/eyurtsev) in [https://github.com/langchain-ai/langchain/pull/16524](https://togithub.com/langchain-ai/langchain/pull/16524) - langchain-google-vertexai: more verbose mypy config by [@​jamesbraza](https://togithub.com/jamesbraza) in [https://github.com/langchain-ai/langchain/pull/16307](https://togithub.com/langchain-ai/langchain/pull/16307) - Adds progress bar to VertexAIEmbeddings by [@​ugm2](https://togithub.com/ugm2) in [https://github.com/langchain-ai/langchain/pull/14542](https://togithub.com/langchain-ai/langchain/pull/14542) - docs:Updated integration docs structure for chat/google_vertex_ai_palm by [@​manokhina](https://togithub.com/manokhina) in [https://github.com/langchain-ai/langchain/pull/16201](https://togithub.com/langchain-ai/langchain/pull/16201) - CI: Fix ideas template by [@​eyurtsev](https://togithub.com/eyurtsev) in [https://github.com/langchain-ai/langchain/pull/16529](https://togithub.com/langchain-ai/langchain/pull/16529) - CI: more updates to feature request template by [@​eyurtsev](https://togithub.com/eyurtsev) in [https://github.com/langchain-ai/langchain/pull/16531](https://togithub.com/langchain-ai/langchain/pull/16531) - CI: Update q-a template by [@​eyurtsev](https://togithub.com/eyurtsev) in [https://github.com/langchain-ai/langchain/pull/16532](https://togithub.com/langchain-ai/langchain/pull/16532) - CI: more qa template changes by [@​eyurtsev](https://togithub.com/eyurtsev) in [https://github.com/langchain-ai/langchain/pull/16533](https://togithub.com/langchain-ai/langchain/pull/16533) - Updated comments about `n_gpu_layers` in the Metal section by [@​169](https://togithub.com/169) in [https://github.com/langchain-ai/langchain/pull/16501](https://togithub.com/langchain-ai/langchain/pull/16501) - Added a better error message when location is not supported by [@​lkuligin](https://togithub.com/lkuligin) in [https://github.com/langchain-ai/langchain/pull/16535](https://togithub.com/langchain-ai/langchain/pull/16535) - community: VectorStore integration for SAP HANA Cloud Vector Engine by [@​MartinKolbAtWork](https://togithub.com/MartinKolbAtWork) in [https://github.com/langchain-ai/langchain/pull/16514](https://togithub.com/langchain-ai/langchain/pull/16514) - community: added support for Guardrails for Amazon Bedrock by [@​harelix](https://togithub.com/harelix) in [https://github.com/langchain-ai/langchain/pull/15099](https://togithub.com/langchain-ai/langchain/pull/15099) - anthropic\[patch]: allow pop by field name by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/16544](https://togithub.com/langchain-ai/langchain/pull/16544) - core: consolidate conditional in BaseTool by [@​arnob-sengupta](https://togithub.com/arnob-sengupta) in [https://github.com/langchain-ai/langchain/pull/16530](https://togithub.com/langchain-ai/langchain/pull/16530) - langchain\[patch]: oai tools output parser nit by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/16540](https://togithub.com/langchain-ai/langchain/pull/16540) - docs: `Hugging Face` update by [@​leo-gan](https://togithub.com/leo-gan) in [https://github.com/langchain-ai/langchain/pull/16490](https://togithub.com/langchain-ai/langchain/pull/16490) - docs: allow pdf download of api ref by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/16550](https://togithub.com/langchain-ai/langchain/pull/16550) - community: Add OCI Generative AI integration by [@​raveharpaz](https://togithub.com/raveharpaz) in [https://github.com/langchain-ai/langchain/pull/16548](https://togithub.com/langchain-ai/langchain/pull/16548) - exa: init pkg by [@​efriis](https://togithub.com/efriis) in [https://github.com/langchain-ai/langchain/pull/16553](https://togithub.com/langchain-ai/langchain/pull/16553) - langchain-google-vertexai: perserving grounding metadata by [@​jamesbraza](https://togithub.com/jamesbraza) in [https://github.com/langchain-ai/langchain/pull/16309](https://togithub.com/langchain-ai/langchain/pull/16309) - added logic for method get_num_tokens() by [@​Adi8885](https://togithub.com/Adi8885) in [https://github.com/langchain-ai/langchain/pull/16205](https://togithub.com/langchain-ai/langchain/pull/16205) - langchain\[patch]: Fix doc-string grammar by [@​anders-ahsman](https://togithub.com/anders-ahsman) in [https://github.com/langchain-ai/langchain/pull/16543](https://togithub.com/langchain-ai/langchain/pull/16543) - core\[patch]: passthrough BaseRetriever.invoke(\*\*kwargs) by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/16551](https://togithub.com/langchain-ai/langchain/pull/16551) - community: YandexGPT models - add sleep_interval by [@​tyumentsev4](https://togithub.com/tyumentsev4) in [https://github.com/langchain-ai/langchain/pull/16566](https://togithub.com/langchain-ai/langchain/pull/16566) - langchain : Fix message type lookup in Anthropic Partners by [@​L-cloud](https://togithub.com/L-cloud) in [https://github.com/langchain-ai/langchain/pull/16563](https://togithub.com/langchain-ai/langchain/pull/16563) - Use official code url by [@​169](https://togithub.com/169) in [https://github.com/langchain-ai/langchain/pull/16560](https://togithub.com/langchain-ai/langchain/pull/16560) - Fix broken urls by [@​169](https://togithub.com/169) in [https://github.com/langchain-ai/langchain/pull/16559](https://togithub.com/langchain-ai/langchain/pull/16559) - community: Add LiteLLM Router Integration by [@​bburgin](https://togithub.com/bburgin) in [https://github.com/langchain-ai/langchain/pull/15588](https://togithub.com/langchain-ai/langchain/pull/15588) - core\[patch], community\[patch], openai\[patch]: consolidate openai tool… by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/16485](https://togithub.com/langchain-ai/langchain/pull/16485) - docs: output parser nits by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/16588](https://togithub.com/langchain-ai/langchain/pull/16588) - openai\[patch]: accept function_call dict in bind_functions by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/16483](https://togithub.com/langchain-ai/langchain/pull/16483) - docs: rag citations by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/16549](https://togithub.com/langchain-ai/langchain/pull/16549) - core\[patch]: Release 0.1.16 by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/16589](https://togithub.com/langchain-ai/langchain/pull/16589) - openai\[patch]: Release 0.0.4 by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/16590](https://togithub.com/langchain-ai/langchain/pull/16590) - community\[patch]: Release 0.0.16 by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/16591](https://togithub.com/langchain-ai/langchain/pull/16591) - langchain\[patch]: Release 0.1.4 by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/16592](https://togithub.com/langchain-ai/langchain/pull/16592) - infra: move indexing documentation test by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/16595](https://togithub.com/langchain-ai/langchain/pull/16595) #### New Contributors - [@​dudgeon](https://togithub.com/dudgeon) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16482](https://togithub.com/langchain-ai/langchain/pull/16482) - [@​gcheron](https://togithub.com/gcheron) made their first contribution in [https://gi </details> --- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on Monday" in timezone America/Chicago, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/autoblocksai/autoblocks-examples). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNzAuMCIsInVwZGF0ZWRJblZlciI6IjM3LjE3My4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [langchain](https://togithub.com/langchain-ai/langchain) | `==0.0.354` -> `==0.1.5` | [![age](https://developer.mend.io/api/mc/badges/age/pypi/langchain/0.1.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/langchain/0.1.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/langchain/0.0.354/0.1.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/langchain/0.0.354/0.1.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>langchain-ai/langchain (langchain)</summary> ### [`v0.1.5`](https://togithub.com/langchain-ai/langchain/releases/tag/v0.1.5) [Compare Source](https://togithub.com/langchain-ai/langchain/compare/v0.1.4...v0.1.5) #### What's Changed - openai\[patch]: Explicitly support embedding dimensions by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/16596](https://togithub.com/langchain-ai/langchain/pull/16596) - google-vertexai\[patch]: Release 0.0.3 by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/16597](https://togithub.com/langchain-ai/langchain/pull/16597) - openai\[patch]: Release 0.0.5 by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/16598](https://togithub.com/langchain-ai/langchain/pull/16598) - Fixed tool names snake_case by [@​jatinchawda1503](https://togithub.com/jatinchawda1503) in [https://github.com/langchain-ai/langchain/pull/16397](https://togithub.com/langchain-ai/langchain/pull/16397) - core\[patch]: Update in code documentation for runnable with message history by [@​eyurtsev](https://togithub.com/eyurtsev) in [https://github.com/langchain-ai/langchain/pull/16585](https://togithub.com/langchain-ai/langchain/pull/16585) - fix: inconsistent results with `RecursiveCharacterTextSplitter`'s `add_start_index=True` by [@​antoniolanza1996](https://togithub.com/antoniolanza1996) in [https://github.com/langchain-ai/langchain/pull/16583](https://togithub.com/langchain-ai/langchain/pull/16583) - Langchain-community : EdenAI chat integration. by [@​Daggx](https://togithub.com/Daggx) in [https://github.com/langchain-ai/langchain/pull/16377](https://togithub.com/langchain-ai/langchain/pull/16377) - core: expand docstring for RunnableParallel by [@​ccurme](https://togithub.com/ccurme) in [https://github.com/langchain-ai/langchain/pull/16600](https://togithub.com/langchain-ai/langchain/pull/16600) - google-vertexai\[patch]: streaming bug by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/16603](https://togithub.com/langchain-ai/langchain/pull/16603) - community: Add Baichuan Text Embedding Model and Baichuan Inc introduction by [@​baichuan-assistant](https://togithub.com/baichuan-assistant) in [https://github.com/langchain-ai/langchain/pull/16568](https://togithub.com/langchain-ai/langchain/pull/16568) - Docs: Fix typo in XML agent documentation by [@​CallumCM](https://togithub.com/CallumCM) in [https://github.com/langchain-ai/langchain/pull/16645](https://togithub.com/langchain-ai/langchain/pull/16645) - community: Added support for Ollama's num_predict option in ChatOllama by [@​micahparker](https://togithub.com/micahparker) in [https://github.com/langchain-ai/langchain/pull/16633](https://togithub.com/langchain-ai/langchain/pull/16633) - community\[patch]: Update documentation to use 'model_id' rather than 'model_name' to match actual API by [@​xiaokuili](https://togithub.com/xiaokuili) in [https://github.com/langchain-ai/langchain/pull/16615](https://togithub.com/langchain-ai/langchain/pull/16615) - community: youtube loader transcript format by [@​sydneyidler](https://togithub.com/sydneyidler) in [https://github.com/langchain-ai/langchain/pull/16625](https://togithub.com/langchain-ai/langchain/pull/16625) - Update openai_tools.ipynb by [@​tryumanshow](https://togithub.com/tryumanshow) in [https://github.com/langchain-ai/langchain/pull/16618](https://togithub.com/langchain-ai/langchain/pull/16618) - Accept message-like things in Chat models, LLMs and MessagesPlaceholder by [@​nfcampos](https://togithub.com/nfcampos) in [https://github.com/langchain-ai/langchain/pull/16418](https://togithub.com/langchain-ai/langchain/pull/16418) - Community: Ionic Tool by [@​stewartjarod](https://togithub.com/stewartjarod) in [https://github.com/langchain-ai/langchain/pull/16649](https://togithub.com/langchain-ai/langchain/pull/16649) - In stream_event and stream_log handle closed streams by [@​nfcampos](https://togithub.com/nfcampos) in [https://github.com/langchain-ai/langchain/pull/16661](https://togithub.com/langchain-ai/langchain/pull/16661) - \[Fix] Fix Cassandra Document loader default page content mapper by [@​cbornet](https://togithub.com/cbornet) in [https://github.com/langchain-ai/langchain/pull/16273](https://togithub.com/langchain-ai/langchain/pull/16273) - infra: delete old CI workflows by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/16680](https://togithub.com/langchain-ai/langchain/pull/16680) - \[community] fix anthropic streaming by [@​hwchase17](https://togithub.com/hwchase17) in [https://github.com/langchain-ai/langchain/pull/16682](https://togithub.com/langchain-ai/langchain/pull/16682) - docs: Fix broken link in CONTRIBUTING.md by [@​derenrich](https://togithub.com/derenrich) in [https://github.com/langchain-ai/langchain/pull/16681](https://togithub.com/langchain-ai/langchain/pull/16681) - WebBaseLoader: Add Cookie Support to Fetch Method by [@​Jalmeida1994](https://togithub.com/Jalmeida1994) in [https://github.com/langchain-ai/langchain/pull/16673](https://togithub.com/langchain-ai/langchain/pull/16673) - docs `DeepInfra` provider page update by [@​leo-gan](https://togithub.com/leo-gan) in [https://github.com/langchain-ai/langchain/pull/16665](https://togithub.com/langchain-ai/langchain/pull/16665) - community: Ollama - Pass headers to post request in async method by [@​zhxu73](https://togithub.com/zhxu73) in [https://github.com/langchain-ai/langchain/pull/16660](https://togithub.com/langchain-ai/langchain/pull/16660) - Community: MLflowCallbackHandler -- Move textstat and spacy as optional dependency by [@​serena-ruan](https://togithub.com/serena-ruan) in [https://github.com/langchain-ai/langchain/pull/16657](https://togithub.com/langchain-ai/langchain/pull/16657) - community: apply embedding functions during query if defined by [@​Rijul1204](https://togithub.com/Rijul1204) in [https://github.com/langchain-ai/langchain/pull/16646](https://togithub.com/langchain-ai/langchain/pull/16646) - Error when importing packages from pydantic \[docs] by [@​ARKA1112](https://togithub.com/ARKA1112) in [https://github.com/langchain-ai/langchain/pull/16564](https://togithub.com/langchain-ai/langchain/pull/16564) - Image prompt template by [@​hinthornw](https://togithub.com/hinthornw) in [https://github.com/langchain-ai/langchain/pull/14263](https://togithub.com/langchain-ai/langchain/pull/14263) - Add async methods to AstraDBLoader by [@​cbornet](https://togithub.com/cbornet) in [https://github.com/langchain-ai/langchain/pull/16652](https://togithub.com/langchain-ai/langchain/pull/16652) - robocorp: release 0.0.2 by [@​efriis](https://togithub.com/efriis) in [https://github.com/langchain-ai/langchain/pull/16706](https://togithub.com/langchain-ai/langchain/pull/16706) - infra: move release workflow back by [@​efriis](https://togithub.com/efriis) in [https://github.com/langchain-ai/langchain/pull/16707](https://togithub.com/langchain-ai/langchain/pull/16707) - docs: remove iprogress warnings by [@​Yelinz](https://togithub.com/Yelinz) in [https://github.com/langchain-ai/langchain/pull/16697](https://togithub.com/langchain-ai/langchain/pull/16697) - Use Postponed Evaluation of Annotations in Astra and Cassandra doc loaders by [@​cbornet](https://togithub.com/cbornet) in [https://github.com/langchain-ai/langchain/pull/16694](https://togithub.com/langchain-ai/langchain/pull/16694) - Community: Update Ionic Shopping Docs by [@​owensims1](https://togithub.com/owensims1) in [https://github.com/langchain-ai/langchain/pull/16700](https://togithub.com/langchain-ai/langchain/pull/16700) - Core: fix Anthropic json issue in streaming by [@​tmin97](https://togithub.com/tmin97) in [https://github.com/langchain-ai/langchain/pull/16670](https://togithub.com/langchain-ai/langchain/pull/16670) - community: Wikidata tool support by [@​derenrich](https://togithub.com/derenrich) in [https://github.com/langchain-ai/langchain/pull/16691](https://togithub.com/langchain-ai/langchain/pull/16691) - Update `n_gpu_layers`"s description by [@​169](https://togithub.com/169) in [https://github.com/langchain-ai/langchain/pull/16685](https://togithub.com/langchain-ai/langchain/pull/16685) - core: expand docstring for RunnableGenerator by [@​ccurme](https://togithub.com/ccurme) in [https://github.com/langchain-ai/langchain/pull/16672](https://togithub.com/langchain-ai/langchain/pull/16672) - docs: Syntax correction according to langchain version update in 'Retry Parser' tutorial example by [@​ash-hun](https://togithub.com/ash-hun) in [https://github.com/langchain-ai/langchain/pull/16699](https://togithub.com/langchain-ai/langchain/pull/16699) - community: Fixed schema discrepancy in from_texts function for weaviate vectorstore by [@​pashva](https://togithub.com/pashva) in [https://github.com/langchain-ai/langchain/pull/16693](https://togithub.com/langchain-ai/langchain/pull/16693) - Update Slack agent toolkit by [@​rlancemartin](https://togithub.com/rlancemartin) in [https://github.com/langchain-ai/langchain/pull/16732](https://togithub.com/langchain-ai/langchain/pull/16732) - langchain: pubmed tool path update in doc by [@​j-space-b](https://togithub.com/j-space-b) in [https://github.com/langchain-ai/langchain/pull/16716](https://togithub.com/langchain-ai/langchain/pull/16716) - community: Added integrations for ThirdAI's NeuralDB with Retriever and VectorStore frameworks by [@​benitoThree](https://togithub.com/benitoThree) in [https://github.com/langchain-ai/langchain/pull/15280](https://togithub.com/langchain-ai/langchain/pull/15280) - langchain-community: fix unicode escaping issue with SlackToolkit by [@​taimo3810](https://togithub.com/taimo3810) in [https://github.com/langchain-ai/langchain/pull/16616](https://togithub.com/langchain-ai/langchain/pull/16616) - langchain_community: Update documentation for installing llama-cpp-python on windows by [@​blacksmithop](https://togithub.com/blacksmithop) in [https://github.com/langchain-ai/langchain/pull/16666](https://togithub.com/langchain-ai/langchain/pull/16666) - fix(experimental): missing resolution strategy in anonymization by [@​mspronesti](https://togithub.com/mspronesti) in [https://github.com/langchain-ai/langchain/pull/16653](https://togithub.com/langchain-ai/langchain/pull/16653) - Implement TTL for DynamoDBChatMessageHistory by [@​brnaba-aws](https://togithub.com/brnaba-aws) in [https://github.com/langchain-ai/langchain/pull/15478](https://togithub.com/langchain-ai/langchain/pull/15478) - core\[patch]: Release 0.1.17 by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/16737](https://togithub.com/langchain-ai/langchain/pull/16737) - templates: Ionic Shopping Assistant by [@​stewartjarod](https://togithub.com/stewartjarod) in [https://github.com/langchain-ai/langchain/pull/16648](https://togithub.com/langchain-ai/langchain/pull/16648) - community: Add missing async similarity_distance_threshold handling in RedisVectorStoreRetriever by [@​HugoMichard](https://togithub.com/HugoMichard) in [https://github.com/langchain-ai/langchain/pull/16359](https://togithub.com/langchain-ai/langchain/pull/16359) - community: Milvus supports add & delete texts by ids by [@​jaelgu](https://togithub.com/jaelgu) in [https://github.com/langchain-ai/langchain/pull/16256](https://togithub.com/langchain-ai/langchain/pull/16256) - docs: Added illustration of using RetryOutputParser with LLMChain by [@​Kirushikesh](https://togithub.com/Kirushikesh) in [https://github.com/langchain-ai/langchain/pull/16722](https://togithub.com/langchain-ai/langchain/pull/16722) - community:To adapt more parameters related to MemorySearchPayload for the search method of ZepChatMessageHistory by [@​ElliotChina](https://togithub.com/ElliotChina) in [https://github.com/langchain-ai/langchain/pull/15441](https://togithub.com/langchain-ai/langchain/pull/15441) - Feat: support OpenAIAssistantRunnable async by [@​chyroc](https://togithub.com/chyroc) in [https://github.com/langchain-ai/langchain/pull/15302](https://togithub.com/langchain-ai/langchain/pull/15302) - langchain, community: Implement Ontotext GraphDB QA Chain by [@​nelly-hateva](https://togithub.com/nelly-hateva) in [https://github.com/langchain-ai/langchain/pull/16019](https://togithub.com/langchain-ai/langchain/pull/16019) - Harrison/activeloop ai tql deprecation by [@​hwchase17](https://togithub.com/hwchase17) in [https://github.com/langchain-ai/langchain/pull/14634](https://togithub.com/langchain-ai/langchain/pull/14634) - Add Connery Tool and Toolkit by [@​machulav](https://togithub.com/machulav) in [https://github.com/langchain-ai/langchain/pull/14506](https://togithub.com/langchain-ai/langchain/pull/14506) - Added annotations support to AOAI by [@​shayben](https://togithub.com/shayben) in [https://github.com/langchain-ai/langchain/pull/13704](https://togithub.com/langchain-ai/langchain/pull/13704) - PR: "docs: Remove accidental extra \`\`\` in QuickStart doc." by [@​gthank](https://togithub.com/gthank) in [https://github.com/langchain-ai/langchain/pull/16740](https://togithub.com/langchain-ai/langchain/pull/16740) - Update OctoAI LLM, Embedding and documentation by [@​AI-Bassem](https://togithub.com/AI-Bassem) in [https://github.com/langchain-ai/langchain/pull/16710](https://togithub.com/langchain-ai/langchain/pull/16710) - docs\[minor]: LCEL rewrite of chatbot use-case by [@​jacoblee93](https://togithub.com/jacoblee93) in [https://github.com/langchain-ai/langchain/pull/16414](https://togithub.com/langchain-ai/langchain/pull/16414) - docs\[patch]: Lower temperature in chatbot usecase notebooks for consistency by [@​jacoblee93](https://togithub.com/jacoblee93) in [https://github.com/langchain-ai/langchain/pull/16750](https://togithub.com/langchain-ai/langchain/pull/16750) - \<langchain_community\llms\chatglm.py>: \<Correcting "history"> by [@​hulitaitai](https://togithub.com/hulitaitai) in [https://github.com/langchain-ai/langchain/pull/16729](https://togithub.com/langchain-ai/langchain/pull/16729) - community: Add new fields in metadata for qdrant vector store by [@​killinsun](https://togithub.com/killinsun) in [https://github.com/langchain-ai/langchain/pull/16608](https://togithub.com/langchain-ai/langchain/pull/16608) - core\[patch]: preserve inspect.iscoroutinefunction with [@​beta](https://togithub.com/beta) decorator by [@​Lord-Haji](https://togithub.com/Lord-Haji) in [https://github.com/langchain-ai/langchain/pull/16440](https://togithub.com/langchain-ai/langchain/pull/16440) - community: add support for callable filters in FAISS by [@​thiswillbeyourgithub](https://togithub.com/thiswillbeyourgithub) in [https://github.com/langchain-ai/langchain/pull/16190](https://togithub.com/langchain-ai/langchain/pull/16190) - community: Add Baichuan LLM to community by [@​baichuan-assistant](https://togithub.com/baichuan-assistant) in [https://github.com/langchain-ai/langchain/pull/16724](https://togithub.com/langchain-ai/langchain/pull/16724) - Add async methods for the AstraDB VectorStore by [@​cbornet](https://togithub.com/cbornet) in [https://github.com/langchain-ai/langchain/pull/16391](https://togithub.com/langchain-ai/langchain/pull/16391) - adding parameter for changing the language in SpacyEmbeddings by [@​MarinaPlius](https://togithub.com/MarinaPlius) in [https://github.com/langchain-ai/langchain/pull/15743](https://togithub.com/langchain-ai/langchain/pull/15743) - community: Add ChatGLM3 by [@​169](https://togithub.com/169) in [https://github.com/langchain-ai/langchain/pull/15265](https://togithub.com/langchain-ai/langchain/pull/15265) - Fix rephrase step in chatbot use case by [@​jacoblee93](https://togithub.com/jacoblee93) in [https://github.com/langchain-ai/langchain/pull/16763](https://togithub.com/langchain-ai/langchain/pull/16763) - \[partners]: langchain-robocorp ease dependency version by [@​rihardsgravis](https://togithub.com/rihardsgravis) in [https://github.com/langchain-ai/langchain/pull/16765](https://togithub.com/langchain-ai/langchain/pull/16765) - robocorp: release 0.0.3 by [@​efriis](https://togithub.com/efriis) in [https://github.com/langchain-ai/langchain/pull/16789](https://togithub.com/langchain-ai/langchain/pull/16789) - Report which file was errored on in DirectoryLoader by [@​alex-dr](https://togithub.com/alex-dr) in [https://github.com/langchain-ai/langchain/pull/16790](https://togithub.com/langchain-ai/langchain/pull/16790) - docs: add csv use case by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/16756](https://togithub.com/langchain-ai/langchain/pull/16756) - Fix Dep Recommendation by [@​hinthornw](https://togithub.com/hinthornw) in [https://github.com/langchain-ai/langchain/pull/16793](https://togithub.com/langchain-ai/langchain/pull/16793) - core\[patch]: Update doc-string in base callback managers by [@​eyurtsev](https://togithub.com/eyurtsev) in [https://github.com/langchain-ai/langchain/pull/15885](https://togithub.com/langchain-ai/langchain/pull/15885) - community\[patch]: undo create_sql_agent breaking by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/16797](https://togithub.com/langchain-ai/langchain/pull/16797) - community: add the ability to load existing transcripts from AssemblyAI by their id. by [@​RaphaelFavero](https://togithub.com/RaphaelFavero) in [https://github.com/langchain-ai/langchain/pull/16051](https://togithub.com/langchain-ai/langchain/pull/16051) - openai\[minor]: change to secretstr by [@​efriis](https://togithub.com/efriis) in [https://github.com/langchain-ai/langchain/pull/16803](https://togithub.com/langchain-ai/langchain/pull/16803) - infra: remove unnecessary tests on partner packages by [@​efriis](https://togithub.com/efriis) in [https://github.com/langchain-ai/langchain/pull/16808](https://togithub.com/langchain-ai/langchain/pull/16808) - nvidia-trt: remove tritonclient all extra dep by [@​efriis](https://togithub.com/efriis) in [https://github.com/langchain-ai/langchain/pull/16749](https://togithub.com/langchain-ai/langchain/pull/16749) - langchain\[minor],community\[minor]: Add async methods in BaseLoader by [@​cbornet](https://togithub.com/cbornet) in [https://github.com/langchain-ai/langchain/pull/16634](https://togithub.com/langchain-ai/langchain/pull/16634) - core(minor): Add bulk add messages to BaseChatMessageHistory interface by [@​eyurtsev](https://togithub.com/eyurtsev) in [https://github.com/langchain-ai/langchain/pull/15709](https://togithub.com/langchain-ai/langchain/pull/15709) - nomic: init pkg by [@​efriis](https://togithub.com/efriis) in [https://github.com/langchain-ai/langchain/pull/16853](https://togithub.com/langchain-ai/langchain/pull/16853) - Add async methods to BaseStore by [@​cbornet](https://togithub.com/cbornet) in [https://github.com/langchain-ai/langchain/pull/16669](https://togithub.com/langchain-ai/langchain/pull/16669) - core\[patch]: Release 0.1.18 by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/16870](https://togithub.com/langchain-ai/langchain/pull/16870) - commmunity\[patch]: Release 0.0.17 by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/16871](https://togithub.com/langchain-ai/langchain/pull/16871) - langchain\[patch]: Release 0.1.5 by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/16881](https://togithub.com/langchain-ai/langchain/pull/16881) - infra: bump langchain min test reqs by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/16882](https://togithub.com/langchain-ai/langchain/pull/16882) #### New Contributors - [@​antoniolanza1996](https://togithub.com/antoniolanza1996) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16583](https://togithub.com/langchain-ai/langchain/pull/16583) - [@​Daggx](https://togithub.com/Daggx) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16377](https://togithub.com/langchain-ai/langchain/pull/16377) - [@​CallumCM](https://togithub.com/CallumCM) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16645](https://togithub.com/langchain-ai/langchain/pull/16645) - [@​micahparker](https://togithub.com/micahparker) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16633](https://togithub.com/langchain-ai/langchain/pull/16633) - [@​xiaokuili](https://togithub.com/xiaokuili) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16615](https://togithub.com/langchain-ai/langchain/pull/16615) - [@​sydneyidler](https://togithub.com/sydneyidler) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16625](https://togithub.com/langchain-ai/langchain/pull/16625) - [@​tryumanshow](https://togithub.com/tryumanshow) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16618](https://togithub.com/langchain-ai/langchain/pull/16618) - [@​stewartjarod](https://togithub.com/stewartjarod) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16649](https://togithub.com/langchain-ai/langchain/pull/16649) - [@​derenrich](https://togithub.com/derenrich) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16681](https://togithub.com/langchain-ai/langchain/pull/16681) - [@​Jalmeida1994](https://togithub.com/Jalmeida1994) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16673](https://togithub.com/langchain-ai/langchain/pull/16673) - [@​zhxu73](https://togithub.com/zhxu73) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16660](https://togithub.com/langchain-ai/langchain/pull/16660) - [@​Rijul1204](https://togithub.com/Rijul1204) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16646](https://togithub.com/langchain-ai/langchain/pull/16646) - [@​ARKA1112](https://togithub.com/ARKA1112) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16564](https://togithub.com/langchain-ai/langchain/pull/16564) - [@​owensims1](https://togithub.com/owensims1) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16700](https://togithub.com/langchain-ai/langchain/pull/16700) - [@​ash-hun](https://togithub.com/ash-hun) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16699](https://togithub.com/langchain-ai/langchain/pull/16699) - [@​pashva](https://togithub.com/pashva) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16693](https://togithub.com/langchain-ai/langchain/pull/16693) - [@​benitoThree](https://togithub.com/benitoThree) made their first contribution in [https://github.com/langchain-ai/langchain/pull/15280](https://togithub.com/langchain-ai/langchain/pull/15280) - [@​taimo3810](https://togithub.com/taimo3810) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16616](https://togithub.com/langchain-ai/langchain/pull/16616) - [@​brnaba-aws](https://togithub.com/brnaba-aws) made their first contribution in [https://github.com/langchain-ai/langchain/pull/15478](https://togithub.com/langchain-ai/langchain/pull/15478) - [@​HugoMichard](https://togithub.com/HugoMichard) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16359](https://togithub.com/langchain-ai/langchain/pull/16359) - [@​jaelgu](https://togithub.com/jaelgu) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16256](https://togithub.com/langchain-ai/langchain/pull/16256) - [@​Kirushikesh](https://togithub.com/Kirushikesh) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16722](https://togithub.com/langchain-ai/langchain/pull/16722) - [@​ElliotChina](https://togithub.com/ElliotChina) made their first contribution in [https://github.com/langchain-ai/langchain/pull/15441](https://togithub.com/langchain-ai/langchain/pull/15441) - [@​nelly-hateva](https://togithub.com/nelly-hateva) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16019](https://togithub.com/langchain-ai/langchain/pull/16019) - [@​machulav](https://togithub.com/machulav) made their first contribution in [https://github.com/langchain-ai/langchain/pull/14506](https://togithub.com/langchain-ai/langchain/pull/14506) - [@​shayben](https://togithub.com/shayben) made their first contribution in [https://github.com/langchain-ai/langchain/pull/13704](https://togithub.com/langchain-ai/langchain/pull/13704) - [@​gthank](https://togithub.com/gthank) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16740](https://togithub.com/langchain-ai/langchain/pull/16740) - [@​hulitaitai](https://togithub.com/hulitaitai) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16729](https://togithub.com/langchain-ai/langchain/pull/16729) - [@​killinsun](https://togithub.com/killinsun) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16608](https://togithub.com/langchain-ai/langchain/pull/16608) - [@​Lord-Haji](https://togithub.com/Lord-Haji) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16440](https://togithub.com/langchain-ai/langchain/pull/16440) - [@​MarinaPlius](https://togithub.com/MarinaPlius) made their first contribution in [https://github.com/langchain-ai/langchain/pull/15743](https://togithub.com/langchain-ai/langchain/pull/15743) - [@​alex-dr](https://togithub.com/alex-dr) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16790](https://togithub.com/langchain-ai/langchain/pull/16790) - [@​RaphaelFavero](https://togithub.com/RaphaelFavero) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16051](https://togithub.com/langchain-ai/langchain/pull/16051) **Full Changelog**: https://github.com/langchain-ai/langchain/compare/v0.1.4...v0.1.5 ### [`v0.1.4`](https://togithub.com/langchain-ai/langchain/releases/tag/v0.1.4) [Compare Source](https://togithub.com/langchain-ai/langchain/compare/v0.1.3...v0.1.4) #### What's Changed - Minor nit on HyDE by [@​rlancemartin](https://togithub.com/rlancemartin) in [https://github.com/langchain-ai/langchain/pull/16478](https://togithub.com/langchain-ai/langchain/pull/16478) - template: fix azure params in retrieval agent by [@​efriis](https://togithub.com/efriis) in [https://github.com/langchain-ai/langchain/pull/16257](https://togithub.com/langchain-ai/langchain/pull/16257) - cli\[patch]: add integration tests to default makefile by [@​efriis](https://togithub.com/efriis) in [https://github.com/langchain-ai/langchain/pull/16479](https://togithub.com/langchain-ai/langchain/pull/16479) - feat(llms): support more tasks in HuggingFaceHub LLM and remove deprecated dep by [@​mspronesti](https://togithub.com/mspronesti) in [https://github.com/langchain-ai/langchain/pull/14406](https://togithub.com/langchain-ai/langchain/pull/14406) - Fixed typo on quickstart.ipynb by [@​dudgeon](https://togithub.com/dudgeon) in [https://github.com/langchain-ai/langchain/pull/16482](https://togithub.com/langchain-ai/langchain/pull/16482) - community: SQLStrStore/SQLDocStore provide an easy SQL alternative to `InMemoryStore` to persist data remotely in a SQL storage by [@​gcheron](https://togithub.com/gcheron) in [https://github.com/langchain-ai/langchain/pull/15909](https://togithub.com/langchain-ai/langchain/pull/15909) - community: Fix Baichuan Chat. by [@​baichuan-assistant](https://togithub.com/baichuan-assistant) in [https://github.com/langchain-ai/langchain/pull/15207](https://togithub.com/langchain-ai/langchain/pull/15207) - community: normalize bedrock embeddings by [@​dmenini](https://togithub.com/dmenini) in [https://github.com/langchain-ai/langchain/pull/15103](https://togithub.com/langchain-ai/langchain/pull/15103) - feat: adding paygo api support for Azure ML / Azure AI Studio by [@​santiagxf](https://togithub.com/santiagxf) in [https://github.com/langchain-ai/langchain/pull/14560](https://togithub.com/langchain-ai/langchain/pull/14560) - community: Improve mlflow callback by [@​serena-ruan](https://togithub.com/serena-ruan) in [https://github.com/langchain-ai/langchain/pull/15691](https://togithub.com/langchain-ai/langchain/pull/15691) - Include scores in MongoDB Atlas QA chain results by [@​NoahStapp](https://togithub.com/NoahStapp) in [https://github.com/langchain-ai/langchain/pull/14666](https://togithub.com/langchain-ai/langchain/pull/14666) - langchain\[patch]: In HTMLHeaderTextSplitter set default encoding to utf-8 by [@​i-w-a](https://togithub.com/i-w-a) in [https://github.com/langchain-ai/langchain/pull/16372](https://togithub.com/langchain-ai/langchain/pull/16372) - langchain: Extract \_aperform_agent_action from \_aiter_next_step from AgentExecutor by [@​gianfrancodemarco](https://togithub.com/gianfrancodemarco) in [https://github.com/langchain-ai/langchain/pull/15707](https://togithub.com/langchain-ai/langchain/pull/15707) - community:Adding Konko Completion endpoint by [@​shivanimodi16](https://togithub.com/shivanimodi16) in [https://github.com/langchain-ai/langchain/pull/15570](https://togithub.com/langchain-ai/langchain/pull/15570) - docs: Updated integration docs structure for chat/anthropic by [@​L-cloud](https://togithub.com/L-cloud) in [https://github.com/langchain-ai/langchain/pull/16268](https://togithub.com/langchain-ai/langchain/pull/16268) - Add KDBAI vector store by [@​bu2kx](https://togithub.com/bu2kx) in [https://github.com/langchain-ai/langchain/pull/12797](https://togithub.com/langchain-ai/langchain/pull/12797) - Docs: Fix version in which astream_events was released by [@​eyurtsev](https://togithub.com/eyurtsev) in [https://github.com/langchain-ai/langchain/pull/16481](https://togithub.com/langchain-ai/langchain/pull/16481) - \[langchain]: allow passing client with OpenAIAssistantRunnable by [@​kristapratico](https://togithub.com/kristapratico) in [https://github.com/langchain-ai/langchain/pull/16486](https://togithub.com/langchain-ai/langchain/pull/16486) - community: Fix MlflowCallback with none artifacts_dir by [@​serena-ruan](https://togithub.com/serena-ruan) in [https://github.com/langchain-ai/langchain/pull/16487](https://togithub.com/langchain-ai/langchain/pull/16487) - langchain: Minor Fix: Enable Passing custom_headers for Authentication in GraphQL Agent/Tool by [@​zendegani](https://togithub.com/zendegani) in [https://github.com/langchain-ai/langchain/pull/16413](https://togithub.com/langchain-ai/langchain/pull/16413) - Feature: Add iFlyTek Spark LLM chat model support by [@​vsxd](https://togithub.com/vsxd) in [https://github.com/langchain-ai/langchain/pull/13389](https://togithub.com/langchain-ai/langchain/pull/13389) - community: Load list of files using UnstructuredFileLoader by [@​raunakshrivastava7](https://togithub.com/raunakshrivastava7) in [https://github.com/langchain-ai/langchain/pull/16216](https://togithub.com/langchain-ai/langchain/pull/16216) - \[community]\[cohere] Update cohere rerank and comparison docs by [@​BeatrixCohere](https://togithub.com/BeatrixCohere) in [https://github.com/langchain-ai/langchain/pull/16198](https://togithub.com/langchain-ai/langchain/pull/16198) - \[community]\[document loaders]\[surrealdb] fix for asyncio by [@​lalanikarim](https://togithub.com/lalanikarim) in [https://github.com/langchain-ai/langchain/pull/16092](https://togithub.com/langchain-ai/langchain/pull/16092) - Community: added 'conversational' as a valid task for hugginface endopoint models by [@​alessioserra](https://togithub.com/alessioserra) in [https://github.com/langchain-ai/langchain/pull/15761](https://togithub.com/langchain-ai/langchain/pull/15761) - Refactor: use SecretStr for yandex embedding by [@​chyroc](https://togithub.com/chyroc) in [https://github.com/langchain-ai/langchain/pull/15463](https://togithub.com/langchain-ai/langchain/pull/15463) - Remove double line by [@​nfcampos](https://togithub.com/nfcampos) in [https://github.com/langchain-ai/langchain/pull/16426](https://togithub.com/langchain-ai/langchain/pull/16426) - community: avoid KeyError when language not in LANGUAGE_SEGMENTERS by [@​dzlab](https://togithub.com/dzlab) in [https://github.com/langchain-ai/langchain/pull/15212](https://togithub.com/langchain-ai/langchain/pull/15212) - community: Fix error message when litellm is not installed by [@​jeremi](https://togithub.com/jeremi) in [https://github.com/langchain-ai/langchain/pull/16316](https://togithub.com/langchain-ai/langchain/pull/16316) - docs: typo in tool use quickstart page by [@​Tipwheal](https://togithub.com/Tipwheal) in [https://github.com/langchain-ai/langchain/pull/16494](https://togithub.com/langchain-ai/langchain/pull/16494) - Docs: Add streaming section by [@​eyurtsev](https://togithub.com/eyurtsev) in [https://github.com/langchain-ai/langchain/pull/16468](https://togithub.com/langchain-ai/langchain/pull/16468) - added a few suggestions for sql docs by [@​fpingham](https://togithub.com/fpingham) in [https://github.com/langchain-ai/langchain/pull/16508](https://togithub.com/langchain-ai/langchain/pull/16508) - Update SQL agent toolkit docs by [@​rlancemartin](https://togithub.com/rlancemartin) in [https://github.com/langchain-ai/langchain/pull/16409](https://togithub.com/langchain-ai/langchain/pull/16409) - CI: Update issue template by [@​eyurtsev](https://togithub.com/eyurtsev) in [https://github.com/langchain-ai/langchain/pull/16517](https://togithub.com/langchain-ai/langchain/pull/16517) - docs: rm output by [@​efriis](https://togithub.com/efriis) in [https://github.com/langchain-ai/langchain/pull/16519](https://togithub.com/langchain-ai/langchain/pull/16519) - CI: redirect feature requests to ideas in discussions by [@​eyurtsev](https://togithub.com/eyurtsev) in [https://github.com/langchain-ai/langchain/pull/16522](https://togithub.com/langchain-ai/langchain/pull/16522) - CI: more update to ideas template by [@​eyurtsev](https://togithub.com/eyurtsev) in [https://github.com/langchain-ai/langchain/pull/16524](https://togithub.com/langchain-ai/langchain/pull/16524) - langchain-google-vertexai: more verbose mypy config by [@​jamesbraza](https://togithub.com/jamesbraza) in [https://github.com/langchain-ai/langchain/pull/16307](https://togithub.com/langchain-ai/langchain/pull/16307) - Adds progress bar to VertexAIEmbeddings by [@​ugm2](https://togithub.com/ugm2) in [https://github.com/langchain-ai/langchain/pull/14542](https://togithub.com/langchain-ai/langchain/pull/14542) - docs:Updated integration docs structure for chat/google_vertex_ai_palm by [@​manokhina](https://togithub.com/manokhina) in [https://github.com/langchain-ai/langchain/pull/16201](https://togithub.com/langchain-ai/langchain/pull/16201) - CI: Fix ideas template by [@​eyurtsev](https://togithub.com/eyurtsev) in [https://github.com/langchain-ai/langchain/pull/16529](https://togithub.com/langchain-ai/langchain/pull/16529) - CI: more updates to feature request template by [@​eyurtsev](https://togithub.com/eyurtsev) in [https://github.com/langchain-ai/langchain/pull/16531](https://togithub.com/langchain-ai/langchain/pull/16531) - CI: Update q-a template by [@​eyurtsev](https://togithub.com/eyurtsev) in [https://github.com/langchain-ai/langchain/pull/16532](https://togithub.com/langchain-ai/langchain/pull/16532) - CI: more qa template changes by [@​eyurtsev](https://togithub.com/eyurtsev) in [https://github.com/langchain-ai/langchain/pull/16533](https://togithub.com/langchain-ai/langchain/pull/16533) - Updated comments about `n_gpu_layers` in the Metal section by [@​169](https://togithub.com/169) in [https://github.com/langchain-ai/langchain/pull/16501](https://togithub.com/langchain-ai/langchain/pull/16501) - Added a better error message when location is not supported by [@​lkuligin](https://togithub.com/lkuligin) in [https://github.com/langchain-ai/langchain/pull/16535](https://togithub.com/langchain-ai/langchain/pull/16535) - community: VectorStore integration for SAP HANA Cloud Vector Engine by [@​MartinKolbAtWork](https://togithub.com/MartinKolbAtWork) in [https://github.com/langchain-ai/langchain/pull/16514](https://togithub.com/langchain-ai/langchain/pull/16514) - community: added support for Guardrails for Amazon Bedrock by [@​harelix](https://togithub.com/harelix) in [https://github.com/langchain-ai/langchain/pull/15099](https://togithub.com/langchain-ai/langchain/pull/15099) - anthropic\[patch]: allow pop by field name by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/16544](https://togithub.com/langchain-ai/langchain/pull/16544) - core: consolidate conditional in BaseTool by [@​arnob-sengupta](https://togithub.com/arnob-sengupta) in [https://github.com/langchain-ai/langchain/pull/16530](https://togithub.com/langchain-ai/langchain/pull/16530) - langchain\[patch]: oai tools output parser nit by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/16540](https://togithub.com/langchain-ai/langchain/pull/16540) - docs: `Hugging Face` update by [@​leo-gan](https://togithub.com/leo-gan) in [https://github.com/langchain-ai/langchain/pull/16490](https://togithub.com/langchain-ai/langchain/pull/16490) - docs: allow pdf download of api ref by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/16550](https://togithub.com/langchain-ai/langchain/pull/16550) - community: Add OCI Generative AI integration by [@​raveharpaz](https://togithub.com/raveharpaz) in [https://github.com/langchain-ai/langchain/pull/16548](https://togithub.com/langchain-ai/langchain/pull/16548) - exa: init pkg by [@​efriis](https://togithub.com/efriis) in [https://github.com/langchain-ai/langchain/pull/16553](https://togithub.com/langchain-ai/langchain/pull/16553) - langchain-google-vertexai: perserving grounding metadata by [@​jamesbraza](https://togithub.com/jamesbraza) in [https://github.com/langchain-ai/langchain/pull/16309](https://togithub.com/langchain-ai/langchain/pull/16309) - added logic for method get_num_tokens() by [@​Adi8885](https://togithub.com/Adi8885) in [https://github.com/langchain-ai/langchain/pull/16205](https://togithub.com/langchain-ai/langchain/pull/16205) - langchain\[patch]: Fix doc-string grammar by [@​anders-ahsman](https://togithub.com/anders-ahsman) in [https://github.com/langchain-ai/langchain/pull/16543](https://togithub.com/langchain-ai/langchain/pull/16543) - core\[patch]: passthrough BaseRetriever.invoke(\*\*kwargs) by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/16551](https://togithub.com/langchain-ai/langchain/pull/16551) - community: YandexGPT models - add sleep_interval by [@​tyumentsev4](https://togithub.com/tyumentsev4) in [https://github.com/langchain-ai/langchain/pull/16566](https://togithub.com/langchain-ai/langchain/pull/16566) - langchain : Fix message type lookup in Anthropic Partners by [@​L-cloud](https://togithub.com/L-cloud) in [https://github.com/langchain-ai/langchain/pull/16563](https://togithub.com/langchain-ai/langchain/pull/16563) - Use official code url by [@​169](https://togithub.com/169) in [https://github.com/langchain-ai/langchain/pull/16560](https://togithub.com/langchain-ai/langchain/pull/16560) - Fix broken urls by [@​169](https://togithub.com/169) in [https://github.com/langchain-ai/langchain/pull/16559](https://togithub.com/langchain-ai/langchain/pull/16559) - community: Add LiteLLM Router Integration by [@​bburgin](https://togithub.com/bburgin) in [https://github.com/langchain-ai/langchain/pull/15588](https://togithub.com/langchain-ai/langchain/pull/15588) - core\[patch], community\[patch], openai\[patch]: consolidate openai tool… by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/16485](https://togithub.com/langchain-ai/langchain/pull/16485) - docs: output parser nits by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/16588](https://togithub.com/langchain-ai/langchain/pull/16588) - openai\[patch]: accept function_call dict in bind_functions by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/16483](https://togithub.com/langchain-ai/langchain/pull/16483) - docs: rag citations by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/16549](https://togithub.com/langchain-ai/langchain/pull/16549) - core\[patch]: Release 0.1.16 by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/16589](https://togithub.com/langchain-ai/langchain/pull/16589) - openai\[patch]: Release 0.0.4 by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/16590](https://togithub.com/langchain-ai/langchain/pull/16590) - community\[patch]: Release 0.0.16 by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/16591](https://togithub.com/langchain-ai/langchain/pull/16591) - langchain\[patch]: Release 0.1.4 by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/16592](https://togithub.com/langchain-ai/langchain/pull/16592) - infra: move indexing documentation test by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/16595](https://togithub.com/langchain-ai/langchain/pull/16595) #### New Contributors - [@​dudgeon](https://togithub.com/dudgeon) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16482](https://togithub.com/langchain-ai/langchain/pull/16482) - [@​gcheron](https://togithub.com/gcheron) made their first contribution in [https://github.com/langchain-ai/langchain/pull/15909](https://togithub.com/langchain-ai/langchain/pull/15909) - [@​baichuan-assistant](https://togithub.com/baichuan-assistant) made their first contribution in [https://github.com/langchain-ai/langchain/pull/15207](https://togithub.com/langchain-ai/langchain/pull/15207) - [@​santiagxf](https://togithub.com/santiagxf) made their first contribution in [https://github.com/langchain-ai/langchain/pull/14560](https://togithub.com/langchain-ai/langchain/pull/14560) - [@​serena-ruan](https://togithub.com/serena-ruan) made their first contribution in [https://github.com/langchain-ai/langchain/pull/15691](https://togithub.com/langchain-ai/langchain/pull/15691) - [@​i-w-a](https://togithub.com/i-w-a) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16372](https://togithub.com/langchain-ai/langchain/pull/16372) - [@​gianfrancodemarco](https://togithub.com/gianfrancodemarco) made their first contribution in [https://github.com/langchain-ai/langchain/pull/15707](https://togithub.com/langchain-ai/langchain/pull/15707) - [@​shivanimodi16](https://togithub.com/shivanimodi16) made their first contribution in [https://github.com/langchain-ai/langchain/pull/15570](https://togithub.com/langchain-ai/langchain/pull/15570) - [@​L-cloud](https://togithub.com/L-cloud) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16268](https://togithub.com/langchain-ai/langchain/pull/16268) - [@​bu2kx](https://togithub.com/bu2kx) made their first contribution in [https://github.com/langchain-ai/langchain/pull/12797](https://togithub.com/langchain-ai/langchain/pull/12797) - [@​kristapratico](https://togithub.com/kristapratico) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16486](https://togithub.com/langchain-ai/langchain/pull/16486) - [@​zendegani](https://togithub.com/zendegani) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16413](https://togithub.com/langchain-ai/langchain/pull/16413) - [@​vsxd](https://togithub.com/vsxd) made their first contribution in [https://github.com/langchain-ai/langchain/pull/13389](https://togithub.com/langchain-ai/langchain/pull/13389) - [@​alessioserra](https://togithub.com/alessioserra) made their first contribution in [https://github.com/langchain-ai/langchain/pull/15761](https://togithub.com/langchain-ai/langchain/pull/15761) - [@​dzlab](https://togithub.com/dzlab) made their first contribution in [https://github.com/langchain-ai/langchain/pull/15212](https://togithub.com/langchain-ai/langchain/pull/15212) - [@​jeremi](https://togithub.com/jeremi) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16316](https://togithub.com/langchain-ai/langchain/pull/16316) - [@​Tipwheal](https://togithub.com/Tipwheal) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16494](https://togithub.com/langchain-ai/langchain/pull/16494) - [@​manokhina](https://togithub.com/manokhina) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16201](https://togithub.com/langchain-ai/langchain/pull/16201) - [@​MartinKolbAtWork](https://togithub.com/MartinKolbAtWork) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16514](https://togithub.com/langchain-ai/langchain/pull/16514) - [@​harelix](https://togithub.com/harelix) made their first contribution in [https://github.com/langchain-ai/langchain/pull/15099](https://togithub.com/langchain-ai/langchain/pull/15099) - [@​arnob-sengupta](https://togithub.com/arnob-sengupta) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16530](https://togithub.com/langchain-ai/langchain/pull/16530) - [@​raveharpaz](https://togithub.com/raveharpaz) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16548](https://togithub.com/langchain-ai/langchain/pull/16548) - [@​Adi8885](https://togithub.com/Adi8885) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16205](https://togithub.com/langchain-ai/langchain/pull/16205) - [@​anders-ahsman](https://togithub.com/anders-ahsman) made their first contribution in [https://github.com/langchain-ai/langchain/pull/16543](https://togithub.com/langchain-ai/langchain/pull/16543) - [@​bburgin](https://togithub.com/bburgin) made their first contribution in [https://github.com/langchain-ai/langchain/pull/15588](https://togithub.com/langchain-ai/langchain/pull/15588) **Full Changelog**: https://github.com/langchain-ai/langchain/compare/v0.1.3...v0.1.4 ### [`v0.1.3`](https://togithub.com/langchain-ai/langchain/releases/tag/v0.1.3) [Compare Source](https://togithub.com/langchain-ai/langchain/compare/v0.1.2...v0.1.3) #### What's Changed - community: (Re)enable streaming for GPT4all by [@​tomjorquera](https://togithub.com/tomjorquera) in [https://github.com/langchain-ai/langchain/pull/16392](https://togithub.com/langchain-ai/langchain/pull/16392) - langchain_google_vertexai:Enable the use of langchain's built-in tools in Gemini's function calling by [@​y2noda](https://togithub.com/y2noda) in [https://github.com/langchain-ai/langchain/pull/16341](https://togithub.com/langchain-ai/langchain/pull/16341) - community\[patch]: ElasticsearchStore: add relevance function selector by [@​maxjakob](https://togithub.com/maxjakob) in [https://github.com/langchain-ai/langchain/pull/16378](https://togithub.com/langchain-ai/langchain/pull/16378) - community\[patch]: Update bing results tool name by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/16395](https://togithub.com/langchain-ai/langchain/pull/16395) - docs: qa rag nit by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/16400](https://togithub.com/langchain-ai/langchain/pull/16400) - DeepInfra support for chat models by [@​ichernev](https://togithub.com/ichernev) in [https://github.com/langchain-ai/langchain/pull/16380](https://togithub.com/langchain-ai/langchain/pull/16380) - \[community] ElasticsearchStore: enable max inner product by [@​maxjakob](https://togithub.com/maxjakob) in [https://github.com/langchain-ai/langchain/pull/16393](https://togithub.com/langchain-ai/langchain/pull/16393) - <community>: update documentation on jaguar vector store by [@​fserv](https://togithub.com/fserv) in [https://github.com/langchain-ai/langchain/pull/16346](https://togithub.com/langchain-ai/langchain/pull/16346) - Docs: Update import library for StreamlitCallbackHandler by [@​Hadi2525](https://togithub.com/Hadi2525) in [https://github.com/langchain-ai/langchain/pull/16401](https://togithub.com/langchain-ai/langchain/pull/16401) - Minor update to Robocorp toolkit docs by [@​rlancemartin](https://togithub.com/rlancemartin) in [https://github.com/langchain-ai/langchain/pull/16399](https://togithub.com/langchain-ai/langchain/pull/16399) - community: Update Memgraph support by [@​katarinasupe](https://togithub.com/katarinasupe) in [https://github.com/langchain-ai/langchain/pull/16360](https://togithub.com/langchain-ai/langchain/pull/16360) - core\[patch]: preserve inspect.iscoroutinefunction with [@​deprecated](https://togithub.com/deprecated) decorator by [@​piotrm0](https://togithub.com/piotrm0) in [https://github.com/langchain-ai/langchain/pull/16295](https://togithub.com/langchain-ai/langchain/pull/16295) - Community: BedrockChat -> Support Titan express as chat model by [@​Guillem96](https://togithub.com/Guillem96) in [https://github.com/langchain-ai/langchain/pull/15408](https://togithub.com/langchain-ai/langchain/pull/15408) - community: allow additional kwargs in MlflowEmbeddings for compatibility with Cohere API by [@​elucherini](https://togithub.com/elucherini) in [https://github.com/langchain-ai/langchain/pull/15242](https://togithub.com/langchain-ai/langchain/pull/15242) - docs: update vectorstores/llm_rails integration doc by [@​OmarAly23](https://togithub.com/OmarAly23) in [https://github.com/langchain-ai/langchain/pull/16199](https://togithub.com/langchain-ai/langchain/pull/16199) - Docs: Updated callbacks/index.mdx by [@​HazSyl1](https://togithub.com/HazSyl1) in [https://github.com/langchain-ai/langchain/pull/16404](https://togithub.com/langchain-ai/langchain/pull/16404) - multiple: update langsmith dep by [@​efriis](https://togithub.com/efriis) in [https://github.com/langchain-ai/langchain/pull/16407](https://togithub.com/langchain-ai/langchain/pull/16407) - cli\[patch]: new fields in integration template, release 0.0.21 by [@​efriis](https://togithub.com/efriis) in [https://github.com/langchain-ai/langchain/pull/16398](https://togithub.com/langchain-ai/langchain/pull/16398) - cli\[patch]: pypi fields by [@​efriis](https://togithub.com/efriis) in [https://github.com/langchain-ai/langchain/pull/16410](https://togithub.com/langchain-ai/langchain/pull/16410) - <community>: Store Message History to TiDB Database by [@​IANTHEREAL](https://togithub.com/IANTHEREAL) in [https://github.com/langchain-ai/langchain/pull/16304](https://togithub.com/langchain-ai/langchain/pull/16304) - Docs: fix formatting issue in rockset.ipynb by [@​jonathanalgar](https://togithub.com/jonathanalgar) in [https://github.com/langchain-ai/langchain/pull/16328](https://togithub.com/langchain-ai/langchain/pull/16328) - core: absolute `EXAMPLE_DIR` path by [@​jamesbraza](https://togithub.com/jamesbraza) in [https://github.com/langchain-ai/langchain/pull/16325](https://togithub.com/langchain-ai/langchain/pull/16325) - community: fix typo in pgvecto_rs debug msg by [@​s-g-1](https://togithub.com/s-g-1) in [https://github.com/langchain-ai/langchain/pull/16318](https://togithub.com/langchain-ai/langchain/pull/16318) - Update grobid.py by [@​naarkhoo](https://togithub.com/naarkhoo) in [https://github.com/langchain-ai/langchain/pull/16298](https://togithub.com/langchain-ai/langchain/pull/16298) - Add documentation for Cassandra Document Loader by [@​cbornet](https://togithub.com/cbornet) in [https://github.com/langchain-ai/langchain/pull/16282](https://togithub.com/langchain-ai/langchain/pull/16282) - community: add TigerGraph support by [@​parkererickson-tg](https://togithub.com/parkererickson-tg) in [https://github.com/langchain-ai/langchain/pull/16280](https://togithub.com/langchain-ai/langchain/pull/16280) - Core: Fix f-string formatting in error message for configurable_fields by [@​cvansteenburg](https://togithub.com/cvansteenburg) in [https://github.com/langchain-ai/langchain/pull/16411](https://togithub.com/langchain-ai/langchain/pull/16411) - docs: add milvus multitenancy doc by [@​zc277584121](https://togithub.com/zc277584121) in [https://github.com/langchain-ai/langchain/pull/16177](https://togithub.com/langchain-ai/langchain/pull/16177) - Implement vector length definition at init time in PGVector for indexing by [@​Frank995](https://togithub.com/Frank995) in [https://github.com/langchain-ai/langchain/pull/16133](https://togithub.com/langchain-ai/langchain/pull/16133) - docs: Updated integration docs structure for tools/arxiv ([#​16091](https://togithub.com/langchain-ai/langchain/issues/16091)) by [@​jmelot](https://togithub.com/jmelot) in [https://github.com/langchain-ai/langchain/pull/16250](https://togithub.com/langchain-ai/langchain/pull/16250) - Bedrock async methods by [@​DLOVRIC2](https://togithub.com/DLOVRIC2) in [https://github.com/langchain-ai/langchain/pull/12477](https://togithub.com/langchain-ai/langchain/pull/12477) - \[improve] google-vertexai: relax types-requests deps range by [@​nicoloboschi](https://togithub.com/nicoloboschi) in [https://github.com/langchain-ai/langchain/pull/16264](https://togithub.com/langchain-ai/langchain/pull/16264) - community: Add CometLLM integration notebook example by [@​Lothiraldan](https://togithub.com/Lothiraldan) in [https://github.com/langchain-ai/langchain/pull/15765](https://togithub.com/langchain-ai/langchain/pull/15765) - docs\[patch]: Re-write custom agent to show to write a tools agent by [@​eyurtsev](https://togithub.com/eyurtsev) in [https://github.com/langchain-ai/langchain/pull/15907](https://togithub.com/langchain-ai/langchain/pull/15907) - Docs: Agent streaming notebooks by [@​eyurtsev](https://togithub.com/eyurtsev) in [https://github.com/langchain-ai/langchain/pull/15858](https://togithub.com/langchain-ai/langchain/pull/15858) - <community>: Improve notebook to show how to use tidb to store history messages by [@​IANTHEREAL](https://togithub.com/IANTHEREAL) in [https://github.com/langchain-ai/langchain/pull/16420](https://togithub.com/langchain-ai/langchain/pull/16420) - Update redis_chat_message_history.ipynb by [@​mikeg0](https://togithub.com/mikeg0) in [https://github.com/langchain-ai/langchain/pull/16344](https://togithub.com/langchain-ai/langchain/pull/16344) - docs: Update with LCEL examples to Ollama & ChatOllama Integration notebook by [@​seanmavley](https://togithub.com/seanmavley) in [https://github.com/langchain-ai/langchain/pull/16194](https://togithub.com/langchain-ai/langchain/pull/16194) - community: New documents loader for visio files (with extension .vsdx) by [@​florian-morel22](https://togithub.com/florian-morel22) in [https://github.com/langchain-ai/langchain/pull/16171](https://togithub.com/langchain-ai/langchain/pull/16171) - core\[patch] Do not try to access attribute of None by [@​nfcampos](https://togithub.com/nfcampos) in [https://github.com/langchain-ai/langchain/pull/16321](https://togithub.com/langchain-ai/langchain/pull/16321) - Core\[Patch] Parse tool input after on_start by [@​hinthornw](https://togithub.com/hinthornw) in [https://github.com/langchain-ai/langchain/pull/16430](https://togithub.com/langchain-ai/langchain/pull/16430) - community\[p </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Never, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/GoogleCloudPlatform/genai-databases-retrieval-app). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNzMuMCIsInVwZGF0ZWRJblZlciI6IjM3LjE3My4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> Co-authored-by: Wenxin Du <[email protected]>
* feat: Increased compatibility with new and old versions for dalle (#14222) - **Description:** Increased compatibility with all versions openai for dalle, This pr add support for openai version from 0 ~ 1.3. * Adds "NIN" metadata filter for pgvector to all checking for set absence (#14205) This PR adds support for metadata filters of the form: `{"filter": {"key": { "NIN" : ["list", "of", "values"]}}}` "IN" is already supported, so this is a quick & related update to add "NIN" * Fixed a typo in smart_llm prompt (#13052) <!-- Thank you for contributing to LangChain! Replace this entire comment with: - **Description:** a description of the change, - **Issue:** the issue # it fixes (if applicable), - **Dependencies:** any dependencies required for this change, - **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below), - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md 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/extras` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. --> * Feature: GitLab url from ENV (#14221) <!-- Thank you for contributing to LangChain! Replace this entire comment with: - **Description:** add gitlab url from env, - **Issue:** no issue, - **Dependencies:** no, - **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below), - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md 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/extras` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. --> --------- Co-authored-by: Erick Friis <[email protected]> * info sql tool remove whitespaces in table names (#13712) Remove whitespaces from the input of the ListSQLDatabaseTool for better support. for example, the input "table1,table2,table3" will throw an exception whiteout the change although it's a valid input. --------- Co-authored-by: Harrison Chase <[email protected]> * Updated integration with Clarifai python SDK functions (#13671) Description : Updated the functions with new Clarifai python SDK. Enabled initialisation of Clarifai class with model URL. Updated docs with new functions examples. * OpenAIEmbeddings: retry_min_seconds/retry_max_seconds parameters (#13138) - **Description:** new parameters in OpenAIEmbeddings() constructor (retry_min_seconds and retry_max_seconds) that allow parametrization by the user of the former min_seconds and max_seconds that were hidden in _create_retry_decorator() and _async_retry_decorator() - **Issue:** #9298, #12986 - **Dependencies:** none - **Tag maintainer:** @hwchase17 - **Twitter handle:** @adumont make format ✅ make lint ✅ make test ✅ Co-authored-by: Harrison Chase <[email protected]> * Amadeus toolkit minor update (#13002) - update `Amadeus` toolkit with ability to switch Amadeus environments - update minor code explanations --------- Co-authored-by: MinjiK <[email protected]> * Demonstrate use of get_buffer_string (#13013) **Description** The docs for creating a RAG chain with Memory [currently use a manual lambda](https://python.langchain.com/docs/expression_language/cookbook/retrieval#with-memory-and-returning-source-documents) to format chat history messages. [There exists a helper method within the codebase](https://github.com/langchain-ai/langchain/blob/master/libs/langchain/langchain/schema/messages.py#L14C15-L14C15) to perform this task so I've updated the documentation to demonstrate its usage Also worth noting that the current documented method of using the included `_format_chat_history ` function actually results in an error: ``` TypeError: 'HumanMessage' object is not subscriptable ``` --------- Co-authored-by: Harrison Chase <[email protected]> * Fix typo in lcel example for rerank in doc (#14336) fix typo in lcel example for rerank in doc * Exclude `max_tokens` from request if it's None (#14334) <!-- Thank you for contributing to LangChain! Replace this entire comment with: - **Description:** a description of the change, - **Issue:** the issue # it fixes (if applicable), - **Dependencies:** any dependencies required for this change, - **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below), - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md 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/extras` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. --> We found a request with `max_tokens=None` results in the following error in Anthropic: ``` HTTPError: 400 Client Error: Bad Request for url: https://oregon.staging.cloud.databricks.com/serving-endpoints/corey-anthropic/invocations. Response text: {"error_code":"INVALID_PARAMETER_VALUE","message":"INVALID_PARAMETER_VALUE: max_tokens was not of type Integer: null"} ``` This PR excludes `max_tokens` if it's None. * feat(add): LLM integration of Cloudflare Workers AI (#14322) Add [Text Generation by Cloudflare Workers AI](https://developers.cloudflare.com/workers-ai/models/text-generation/). It's a new LLM integration. - Dependencies: N/A * Mask API key for baidu qianfan (#14281) Description: This PR masked baidu qianfan - Chat_Models API Key and added unit tests. Issue: the issue langchain-ai#12165. Tag maintainer: @eyurtsev --------- Co-authored-by: xiayi <[email protected]> * feat: mask api key for cerebriumai llm (#14272) - **Description:** Masking API key for CerebriumAI LLM to protect user secrets. - **Issue:** #12165 - **Dependencies:** None - **Tag maintainer:** @eyurtsev --------- Signed-off-by: Yuchen Liang <[email protected]> Co-authored-by: Harrison Chase <[email protected]> * Qdrant metadata payload keys (#13001) - **Description:** In Qdrant allows to input list of keys as the content_payload_key to retrieve multiple fields (the generated document will contain the dictionary {field: value} in a string), - **Issue:** Previously we were able to retrieve only one field from the vector database when making a search - **Dependencies:** - **Tag maintainer:** - **Twitter handle:** @jb_dlb --------- Co-authored-by: Jean Baptiste De La Broise <[email protected]> * docs[patch]: fix ipynb links (#14325) Keeping it simple for now. Still iterating on our docs build in pursuit of making everything mdxv2 compatible for docusaurus 3, and the fewer custom scripts we're reliant on through that, the less likely the docs will break again. Other things to consider in future: Quarto rewriting in ipynbs: https://quarto.org/docs/extensions/nbfilter.html (but this won't do md/mdx files) Docusaurus plugins for rewriting these paths * Update doc-string in RunnableWithMessageHistory (#14262) Update doc-string in RunnableWithMessageHistory * docs[patch]: Fix broken link 'tip' in docs (#14349) * core[patch], langchain[patch]: ByteStore (#14312) * Fix multi vector retriever subclassing (#14350) Fixes #14342 @eyurtsev @baskaryan --------- Co-authored-by: Erick Friis <[email protected]> * infra: ci matrix (#14306) * langchain[patch]: import nits (#14354) import from core instead of langchain.schema * Include run_id (#14331) in the test run outputs * core[patch]: message history error typo (#14361) * [core/minor] Runnables: Implement a context api (#14046) <!-- Thank you for contributing to LangChain! Replace this entire comment with: - **Description:** a description of the change, - **Issue:** the issue # it fixes (if applicable), - **Dependencies:** any dependencies required for this change, - **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below), - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md 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/extras` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. --> --------- Co-authored-by: Brace Sproul <[email protected]> * core[patch]: Release 0.0.11 (#14367) * langchain[patch]: Release 0.0.347 (#14368) * langchain[patch]: fix ChatVertexAI streaming (#14369) * langchain[patch]: Rollback multiple keys in Qdrant (#14390) This reverts commit 38813d7090294c0c96d4963a2a230db4fef5e37e. This is a temporary fix, as I don't see a clear way on how to use multiple keys with `Qdrant.from_texts`. Context: #14378 * API Reference building script update (#13587) The namespaces like `langchain.agents.format_scratchpad` clogging the API Reference sidebar. This change removes those 3-level namespaces from sidebar (this issue was discussed with @efriis ) --------- Co-authored-by: Erick Friis <[email protected]> * core[patch], langchain[patch]: fix required deps (#14373) * core[patch]: Release 0.0.12 (#14415) * langchain[patch]: Release 0.0.348 (#14417) * experimental[patch]: Release 0.0.45 (#14418) * docs: notebook linting (#14366) Many jupyter notebooks didn't pass linting. List of these files are presented in the [tool.ruff.lint.per-file-ignores] section of the pyproject.toml . Addressed these bugs: - fixed bugs; added missed imports; updated pyproject.toml Only the `document_loaders/tensorflow_datasets.ipyn`, `cookbook/gymnasium_agent_simulation.ipynb` are not completely fixed. I'm not sure about imports. --------- Co-authored-by: Erick Friis <[email protected]> * docs[patch]: `promptlayer` pages update (#14416) Updated provider page by adding LLM and ChatLLM references; removed a content that is duplicate text from the LLM referenced page. Updated the collback page * fix imports from core (#14430) * langchain[patch]: Fix scheduled testing (#14428) - integration tests in pyproject - integration test fixes * langchain[patch]: fix scheduled testing ci variables (#14459) * revoke serialization (#14456) * langchain[patch]: fix scheduled testing ci dep install (#14460) * langchain[patch]: xfail unstable vertex test (#14462) * Use deepcopy in RunLogPatch (#14244) This PR adds deepcopy usage in RunLogPatch. I included a unit-test that shows an issue that was caused in LangServe in the RemoteClient. ```python import jsonpatch s1 = {} s2 = {'value': []} s3 = {'value': ['a']} ops0 = list(jsonpatch.JsonPatch.from_diff(None, s1)) ops1 = list(jsonpatch.JsonPatch.from_diff(s1, s2)) ops2 = list(jsonpatch.JsonPatch.from_diff(s2, s3)) ops = ops0 + ops1 + ops2 jsonpatch.apply_patch(None, ops) {'value': ['a']} jsonpatch.apply_patch(None, ops) {'value': ['a', 'a']} jsonpatch.apply_patch(None, ops) {'value': ['a', 'a', 'a']} ``` * docs `Dependents` updated statistics (#14461) Updated statistics for the dependents (packages dependent on `langchain` package). Only packages with 100+ starts * core[patch], langchain[patch], experimental[patch]: import CI (#14414) * Update mongodb_atlas docs for GA (#14425) Updated the MongoDB Atlas Vector Search docs to indicate the service is Generally Available, updated the example to use the new index definition, and added an example that uses metadata pre-filtering for semantic search --------- Co-authored-by: Harrison Chase <[email protected]> * infra: add langchain-community release workflow (#14469) * docs `networkx`update (#14426) Added setting up instruction, package description and link * experimental[patch]: SmartLLMChain Output Key Customization (#14466) **Description** The `SmartLLMChain` was was fixed to output key "resolution". Unfortunately, this prevents the ability to use multiple `SmartLLMChain` in a `SequentialChain` because of colliding output keys. This change simply gives the option the customize the output key to allow for sequential chaining. The default behavior is the same as the current behavior. Now, it's possible to do the following: ``` from langchain.chat_models import ChatOpenAI from langchain.prompts import PromptTemplate from langchain_experimental.smart_llm import SmartLLMChain from langchain.chains import SequentialChain joke_prompt = PromptTemplate( input_variables=["content"], template="Tell me a joke about {content}.", ) review_prompt = PromptTemplate( input_variables=["scale", "joke"], template="Rate the following joke from 1 to {scale}: {joke}" ) llm = ChatOpenAI(temperature=0.9, model_name="gpt-4-32k") joke_chain = SmartLLMChain(llm=llm, prompt=joke_prompt, output_key="joke") review_chain = SmartLLMChain(llm=llm, prompt=review_prompt, output_key="review") chain = SequentialChain( chains=[joke_chain, review_chain], input_variables=["content", "scale"], output_variables=["review"], verbose=True ) response = chain.run({"content": "chickens", "scale": "10"}) print(response) ``` --------- Co-authored-by: Erick Friis <[email protected]> * Update README and vectorstore path for multi-modal template (#14473) * docs[patch]: link and description cleanup (#14471) Fixed inconsistencies; added links and descriptions --------- Co-authored-by: Erick Friis <[email protected]> * langchain[patch], docs[patch]: use byte store in multivectorretriever (#14474) * manual mapping (#14422) * docs[patch]: add missing imports for local_llms (#14453) <!-- Thank you for contributing to LangChain! Replace this entire comment with: - **Description:** a description of the change, - **Issue:** the issue # it fixes (if applicable), - **Dependencies:** any dependencies required for this change, - **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below), - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md 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/extras` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. --> Keeping it consistent with everywhere else in the docs and adding the missing imports to be able to copy paste and run the code example. --------- Co-authored-by: Erick Friis <[email protected]> * docs[patch]: `microsoft` platform page update (#14476) Added `presidio` and `OneNote` references to `microsoft.mdx`; added link and description to the `presidio` notebook --------- Co-authored-by: Erick Friis <[email protected]> * docs[patch]: `google` platform page update (#14475) Added missed tools --------- Co-authored-by: Erick Friis <[email protected]> * RunnableWithMessageHistory: Fix input schema (#14516) Input schema should not have history key * community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) Moved the following modules to new package langchain-community in a backwards compatible fashion: ``` mv langchain/langchain/adapters community/langchain_community mv langchain/langchain/callbacks community/langchain_community/callbacks mv langchain/langchain/chat_loaders community/langchain_community mv langchain/langchain/chat_models community/langchain_community mv langchain/langchain/document_loaders community/langchain_community mv langchain/langchain/docstore community/langchain_community mv langchain/langchain/document_transformers community/langchain_community mv langchain/langchain/embeddings community/langchain_community mv langchain/langchain/graphs community/langchain_community mv langchain/langchain/llms community/langchain_community mv langchain/langchain/memory/chat_message_histories community/langchain_community mv langchain/langchain/retrievers community/langchain_community mv langchain/langchain/storage community/langchain_community mv langchain/langchain/tools community/langchain_community mv langchain/langchain/utilities community/langchain_community mv langchain/langchain/vectorstores community/langchain_community mv langchain/langchain/agents/agent_toolkits community/langchain_community mv langchain/langchain/cache.py community/langchain_community mv langchain/langchain/adapters community/langchain_community mv langchain/langchain/callbacks community/langchain_community/callbacks mv langchain/langchain/chat_loaders community/langchain_community mv langchain/langchain/chat_models community/langchain_community mv langchain/langchain/document_loaders community/langchain_community mv langchain/langchain/docstore community/langchain_community mv langchain/langchain/document_transformers community/langchain_community mv langchain/langchain/embeddings community/langchain_community mv langchain/langchain/graphs community/langchain_community mv langchain/langchain/llms community/langchain_community mv langchain/langchain/memory/chat_message_histories community/langchain_community mv langchain/langchain/retrievers community/langchain_community mv langchain/langchain/storage community/langchain_community mv langchain/langchain/tools community/langchain_community mv langchain/langchain/utilities community/langchain_community mv langchain/langchain/vectorstores community/langchain_community mv langchain/langchain/agents/agent_toolkits community/langchain_community mv langchain/langchain/cache.py community/langchain_community ``` Moved the following to core ``` mv langchain/langchain/utils/json_schema.py core/langchain_core/utils mv langchain/langchain/utils/html.py core/langchain_core/utils mv langchain/langchain/utils/strings.py core/langchain_core/utils cat langchain/langchain/utils/env.py >> core/langchain_core/utils/env.py rm langchain/langchain/utils/env.py ``` See .scripts/community_split/script_integrations.sh for all changes * Move runnable context to beta (#14507) <!-- Thank you for contributing to LangChain! Replace this entire comment with: - **Description:** a description of the change, - **Issue:** the issue # it fixes (if applicable), - **Dependencies:** any dependencies required for this change, - **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below), - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md 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/extras` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. --> * community[patch]: Fix agenttoolkits imports (#14559) * core[patch]: Release 0.0.13 (#14558) * infra: Turn release branch check back on (#14563) * infra: import CI fix (#14562) TIL `**` globstar doesn't work in make Makefile changes fix that. `__getattr__` changes allow import of all files, but raise error when accessing anything from the module. file deletions were corresponding libs change from #14559 * community[patch]: Release 0.0.1 (#14565) * infra: import CI speed (#14566) Was taking 10 mins. Now a few seconds. * langchain[patch]: Release 0.0.349 (#14570) * experimental[patch]: Release 0.0.46 (#14572) * infra: import checking bugfix (#14569) * docs[patch], templates[patch]: Import from core (#14575) Update imports to use core for the low-hanging fruit changes. Ran following ```bash git grep -l 'langchain.schema.runnable' {docs,templates,cookbook} | xargs sed -i '' 's/langchain\.schema\.runnable/langchain_core.runnables/g' git grep -l 'langchain.schema.output_parser' {docs,templates,cookbook} | xargs sed -i '' 's/langchain\.schema\.output_parser/langchain_core.output_parsers/g' git grep -l 'langchain.schema.messages' {docs,templates,cookbook} | xargs sed -i '' 's/langchain\.schema\.messages/langchain_core.messages/g' git grep -l 'langchain.schema.chat_histry' {docs,templates,cookbook} | xargs sed -i '' 's/langchain\.schema\.chat_history/langchain_core.chat_history/g' git grep -l 'langchain.schema.prompt_template' {docs,templates,cookbook} | xargs sed -i '' 's/langchain\.schema\.prompt_template/langchain_core.prompts/g' git grep -l 'from langchain.pydantic_v1' {docs,templates,cookbook} | xargs sed -i '' 's/from langchain\.pydantic_v1/from langchain_core.pydantic_v1/g' git grep -l 'from langchain.tools.base' {docs,templates,cookbook} | xargs sed -i '' 's/from langchain\.tools\.base/from langchain_core.tools/g' git grep -l 'from langchain.chat_models.base' {docs,templates,cookbook} | xargs sed -i '' 's/from langchain\.chat_models.base/from langchain_core.language_models.chat_models/g' git grep -l 'from langchain.llms.base' {docs,templates,cookbook} | xargs sed -i '' 's/from langchain\.llms\.base\ /from langchain_core.language_models.llms\ /g' git grep -l 'from langchain.embeddings.base' {docs,templates,cookbook} | xargs sed -i '' 's/from langchain\.embeddings\.base/from langchain_core.embeddings/g' git grep -l 'from langchain.vectorstores.base' {docs,templates,cookbook} | xargs sed -i '' 's/from langchain\.vectorstores\.base/from langchain_core.vectorstores/g' git grep -l 'from langchain.agents.tools' {docs,templates,cookbook} | xargs sed -i '' 's/from langchain\.agents\.tools/from langchain_core.tools/g' git grep -l 'from langchain.schema.output' {docs,templates,cookbook} | xargs sed -i '' 's/from langchain\.schema\.output\ /from langchain_core.outputs\ /g' git grep -l 'from langchain.schema.embeddings' {docs,templates,cookbook} | xargs sed -i '' 's/from langchain\.schema\.embeddings/from langchain_core.embeddings/g' git grep -l 'from langchain.schema.document' {docs,templates,cookbook} | xargs sed -i '' 's/from langchain\.schema\.document/from langchain_core.documents/g' git grep -l 'from langchain.schema.agent' {docs,templates,cookbook} | xargs sed -i '' 's/from langchain\.schema\.agent/from langchain_core.agents/g' git grep -l 'from langchain.schema.prompt ' {docs,templates,cookbook} | xargs sed -i '' 's/from langchain\.schema\.prompt\ /from langchain_core.prompt_values /g' git grep -l 'from langchain.schema.language_model' {docs,templates,cookbook} | xargs sed -i '' 's/from langchain\.schema\.language_model/from langchain_core.language_models/g' ``` * docs[patch]: Fix embeddings example for Databricks (#14576) <!-- Thank you for contributing to LangChain! Replace this entire comment with: - **Description:** a description of the change, - **Issue:** the issue # it fixes (if applicable), - **Dependencies:** any dependencies required for this change, - **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below), - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md 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/extras` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. --> Fix `from langchain.llms import DatabricksEmbeddings` to `from langchain.embeddings import DatabricksEmbeddings`. Signed-off-by: harupy <[email protected]> * docs[patch]: update installation with core and community (#14577) * Update RunnableWithMessageHistory (#14351) This PR updates RunnableWithMessage history to support user specific configuration for the factory. It extends support to passing multiple named arguments into the factory if the factory takes more than a single argument. * Add Gmail Agent Example (#14567) Co-authored-by: Harrison Chase <[email protected]> * allow other namespaces (#14606) * core[minor]: Release 0.1.0 (#14607) * community[patch]: Release 0.0.2 (#14610) * langchain[patch]: Release 0.0.350 (#14612) * Add image (#14611) * experimental[patch]: Release 0.0.47 (#14617) * docs: core and community readme (#14623) * docs: fix links in readme (#14624) * Minor update to ensemble retriever to handle a mix of Documents or str (#14552) * Update Docugami Cookbook (#14626) **Description:** Update the information in the Docugami cookbook. Fix broken links and add information on our kg-rag template. Co-authored-by: Kenzie Mihardja <[email protected]> * docs: update multi_modal_RAG_chroma.ipynb (#14602) seperate -> separate <!-- Thank you for contributing to LangChain! Replace this entire comment with: - **Description:** a description of the change, - **Issue:** the issue # it fixes (if applicable), - **Dependencies:** any dependencies required for this change, - **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below), - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md 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/extras` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. --> * templates[patch]: fix pydantic imports (#14632) * fix a bug in RedisNum filter againt value 0 (#14587) - **Description:** There is a bug in RedisNum filter that filter towards value 0 will be parsed as "*". This is a fix to it. - **Issue:** NA - **Dependencies:** NA - **Tag maintainer:** NA - **Twitter handle:** NA * create mypy cache dir if it doesn't exist (#14579) ### Description When running `make lint` multiple times, i can see the error `mkdir: .mypy_cache: File exists`. Use `mkdir -p` to solve this problem. <img width="1512" alt="Screenshot 2023-12-12 at 11 22 01 AM" src="https://github.com/langchain-ai/langchain/assets/10000925/1429383d-3283-4e22-8882-5693bc50b502"> * fix: to rag-semi-structured template (#14568) **Description:** Fixes to rag-semi-structured template. - Added required libraries - pdfminer was causing issues when installing with pip. pdfminer.six works best - Changed the pdf name for demo from llama2 to llava <!-- Thank you for contributing to LangChain! Replace this entire comment with: - **Description:** a description of the change, - **Issue:** the issue # it fixes (if applicable), - **Dependencies:** any dependencies required for this change, - **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below), - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md 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/extras` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. --> * docs `ollama` pages (#14561) added provider page; fixed broken links. * infra: rm community split scripts (#14633) * docs: update langchain diagram (#14619) * Update cohere provider docs (#14528) Preview since github wont preview .mdx : <img width="1401" alt="image" src="https://github.com/langchain-ai/langchain/assets/144115527/9e8ba3d9-24ff-4584-9da3-2c9b60e7e624"> * Added notebook tutorial on using Yellowbrick as a vector store with LangChain (#14509) - **Description:** a notebook documenting Yellowbrick as a vector store usage --------- Co-authored-by: markcusack <[email protected]> Co-authored-by: markcusack <[email protected]> * docs[patch] Fix some typos in merger_retriever.ipynb (#14502) This patch fixes some typos. <!-- Thank you for contributing to LangChain! Replace this entire comment with: - **Description:** a description of the change, - **Issue:** the issue # it fixes (if applicable), - **Dependencies:** any dependencies required for this change, - **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below), - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md 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/extras` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. --> Signed-off-by: Masanari Iida <[email protected]> * feat: Yaml output parser (#14496) ## Description New YAML output parser as a drop-in replacement for the Pydantic output parser. Yaml is a much more token-efficient format than JSON, proving to be **~35% faster and using the same percentage fewer completion tokens**. ☑️ Formatted ☑️ Linted ☑️ Tested (analogous to the existing`test_pydantic_parser.py`) The YAML parser excels in situations where a list of objects is required, where the root object needs no key: ```python class Products(BaseModel): __root__: list[Product] ``` I ran the prompt `Generate 10 healthy, organic products` 10 times on one chain using the `PydanticOutputParser`, the other one using the`YamlOutputParser` with `Products` (see below) being the targeted model to be created. LLMs used were Fireworks' `lama-v2-34b-code-instruct` and OpenAI `gpt-3.5-turbo`. All runs succeeded without validation errors. ```python class Nutrition(BaseModel): sugar: int = Field(description="Sugar in grams") fat: float = Field(description="% of daily fat intake") class Product(BaseModel): name: str = Field(description="Product name") stats: Nutrition class Products(BaseModel): """A list of products""" products: list[Product] # Used `__root__` for the yaml chain ``` Stats after 10 runs reach were as follows: ### JSON ø time: 7.75s ø tokens: 380.8 ### YAML ø time: 5.12s ø tokens: 242.2 Looking forward to feedback, tips and contributions! * [docs]: add missing tiktoken dependency (#14497) Description: I was following the docs and got an error about missing tiktoken dependency. Adding it to the comment where the langchain and docarray libs are. * fix(embeddings): huggingface hub embeddings and TEI (#14489) **Description:** This PR fixes `HuggingFaceHubEmbeddings` by making the API token optional (as in the client beneath). Most models don't require one. I also updated the notebook for TEI (text-embeddings-inference) accordingly as requested here #14288. In addition, I fixed a mistake in the POST call parameters. **Tag maintainers:** @baskaryan * Fix token_usage None issue in ChatOpenAI with local Chatglm2-6B (#14493) When using local Chatglm2-6B by changing OPENAI_BASE_URL to localhost, the token_usage in ChatOpenAI becomes None. This leads to an AttributeError when trying to access token_usage.items(). This commit adds a check to ensure token_usage is not None before accessing its items. This change prevents the AttributeError and allows ChatOpenAI to work seamlessly with a local Chatglm2-6B model, aligning with the way it operates with the OpenAI API. <!-- Thank you for contributing to LangChain! Replace this entire comment with: - **Description:** a description of the change, - **Issue:** the issue # it fixes (if applicable), - **Dependencies:** any dependencies required for this change, - **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below), - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md 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/extras` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. --> Co-authored-by: Harrison Chase <[email protected]> * DOC: model update in 'Using OpenAI Functions' docs (#14486) - **Description:** : I just update the openai functions docs to use the latest model (ex. gpt-3.5-turbo-1106) https://python.langchain.com/docs/modules/chains/how_to/openai_functions The reason is as follow: After reviewing the OpenAI Function Calling official guide at https://platform.openai.com/docs/guides/function-calling, the following information was noted: > "The latest models (gpt-3.5-turbo-1106 and gpt-4-1106-preview) have been trained to both detect when a function should be called (depending on the input) and to respond with JSON that adheres to the function signature more closely than previous models. With this capability also comes potential risks. We strongly recommend building in user confirmation flows before taking actions that impact the world on behalf of users (sending an email, posting something online, making a purchase, etc)." CC: @efriis * docs: Add Databricks Vector Search example notebook (#14158) This PR adds an example notebook for the Databricks Vector Search vector store. It also adds an introduction to the Databricks Vector Search product on the Databricks's provider page. --------- Co-authored-by: Bagatur <[email protected]> * Fixed `DeprecationWarning` for `PromptTemplate.from_file` module-level calls (#14468) Resolves https://github.com/langchain-ai/langchain/issues/14467 * Add Gemini Notebook (#14661) * cli[patch]: integration template (#14571) * Fix RRF and lucene escape characters for neo4j vector store (#14646) * Remove Lucene special characters (fixes https://github.com/langchain-ai/langchain/issues/14232) * Fixes RRF normalization for hybrid search * [Nit] Add newline in notebook (#14665) For bullet list formatting * infra: skip extended testing for partner packages (#14630) Tested by merging into #14627 * cli[patch]: rc (#14667) * Update Vertex AI to include Gemini (#14670) h/t to @lkuligin - **Description:** added new models on VertexAI - **Twitter handle:** @lkuligin --------- Co-authored-by: Leonid Kuligin <[email protected]> Co-authored-by: Harrison Chase <[email protected]> * cli[patch]: unicode issue (#14672) Some operating systems compile template, resulting in unicode decode errors * communty[patch]: Release 0.0.3 (#14673) * [Partner] Add langchain-google-genai package (gemini) (#14621) Add a new ChatGoogleGenerativeAI class in a `langchain-google-genai` package. Still todo: add a deprecation warning in PALM --------- Co-authored-by: Erick Friis <[email protected]> Co-authored-by: Leonid Kuligin <[email protected]> Co-authored-by: Bagatur <[email protected]> * \Fix tool_calls message merge (#14613) <!-- Thank you for contributing to LangChain! Replace this entire comment with: - **Description:** a description of the change, - **Issue:** the issue # it fixes (if applicable), - **Dependencies:** any dependencies required for this change, - **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below), - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md 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/extras` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. --> * google-genai[patch]: Release 0.0.2 (#14677) * Wfh/google docs update (#14676) - Add gemini references - Fix the notebook (ultra isn't generally available; also gemini will randomly filter out responses, so added a fallback) --------- Co-authored-by: Leonid Kuligin <[email protected]> * docs: build partner api refs (#14675) * docs: fix api ref link (#14679) Don't point to stable, let api docs choose default version * docs: per-package version in api docs (#14683) * core[patch]: Fix runnable with message history (#14629) Fix bug shown in #14458. Namely, that saving inputs to history fails when the input to base runnable is a list of messages * templates[patch]: Add cohere librarian template (#14601) Adding the example I build for the Cohere hackathon. It can: use a vector database to reccommend books <img width="840" alt="image" src="https://github.com/langchain-ai/langchain/assets/144115527/96543a18-217b-4445-ab4b-950c7cced915"> Use a prompt template to provide information about the library <img width="834" alt="image" src="https://github.com/langchain-ai/langchain/assets/144115527/996c8e0f-cab0-4213-bcc9-9baf84f1494b"> Use Cohere RAG to provide grounded results <img width="822" alt="image" src="https://github.com/langchain-ai/langchain/assets/144115527/7bb4a883-5316-41a9-9d2e-19fd49a43dcb"> --------- Co-authored-by: Erick Friis <[email protected]> * docs[patch]: fix bullet points (#14684) - docs fixes - escape - bullets * community[patch]: Fixed issue with importing Row from sqlalchemy (#14488) - **Description:** Fixed import of Row in cache.py, - **Issue:** the issue # #13464 https://creditone.us.to/langchain-ai/langchain/issues/13464, - **Dependencies:** None, - **Twitter handle:** @frankybridman Co-authored-by: Harrison Chase <[email protected]> * community[patch]: Correct type annotation for azure_ad_token_provider Closed: #14402 (#14432) Description Fix https://github.com/langchain-ai/langchain/issues/14402, Similar changes: https://github.com/langchain-ai/langchain/pull/14166 Twitter handle [lin_bob57617](https://twitter.com/lin_bob57617) * community[patch]: fix dashvector endpoint params error (#14484) <!-- Thank you for contributing to LangChain! Replace this entire comment with: - **Description:** a description of the change, - **Issue:** the issue # it fixes (if applicable), - **Dependencies:** any dependencies required for this change, - **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below), - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md 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/extras` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. --> Co-authored-by: fangkeke <[email protected]> Co-authored-by: Harrison Chase <[email protected]> * docs: platform pages update (#14637) Updated examples and platform pages. - added missed tools - added links and descriptions * docs: api ref nav Python Docs -> Docs (#14686) * Template for multi-modal w/ multi-vector (#14618) Results - ![image](https://github.com/langchain-ai/langchain/assets/122662504/16bac14d-74d7-47b1-aed0-72ae25a81f39) * Gemini multi-modal RAG template (#14678) ![Screenshot 2023-12-13 at 12 53 39 PM](https://github.com/langchain-ai/langchain/assets/122662504/a6bc3b0b-f177-4367-b9c8-b8862c847026) * [Partner] Gemini Embeddings (#14690) Add support for Gemini embeddings in the langchain-google-genai package * [Integration] NVIDIA AI Playground (#14648) Description: Added NVIDIA AI Playground Initial support for a selection of models (Llama models, Mistral, etc.) Dependencies: These models do depend on the AI Playground services in NVIDIA NGC. API keys with a significant amount of trial compute are available (10K queries as of the time of writing). H/t to @VKudlay * [Workflows] Add nvidia-aiplay to _release.yml (#14722) As the title says. In the future will want to have a script to automate this * Add dense proposals (#14719) Indexing strategy based on decomposing candidate propositions while indexing. * [Hub|tracing] Tag hub prompts (#14720) If you're using the hub, you'll likely be interested in tracking the commit/object when tracing. This PR adds it to the config * Update `google_generative_ai.ipynb` (#14704) * docs[patch]: fix databricks metadata (#14727) * docs: updated branding for Google AI (#14728) Replace this entire comment with: - **Description:** a small fix in branding * infra: add integration test workflow (#14688) * infra: Pre-release integration tests for partner pkgs (#14687) * google-genai[patch]: add google-genai integration deps and extras (#14731) * community[patch]: fix pgvector sqlalchemy (#14726) Fixes #14699 * infra: add action checkout to pre-release-checks (#14732) * Revert "[Hub|tracing] Tag hub prompts" (#14735) Reverts langchain-ai/langchain#14720 * core[patch]: Release 0.1.1 (#14738) * infra: docs build install community editable (#14739) * infra: fix pre-release integration test and add unit test (#14742) * docs: Remove trailing "`" in pip install command (#14730) hi! just a simple typo fix in the local LLM python docs - **Description:** removing a trailing "\`" character in a `!pip install ...` command - **Issue:** n/a - **Dependencies:** n/a - **Tag maintainer:** n/a - **Twitter handle:** n/a * google-genai[patch], community[patch]: Added support for new Google GenerativeAI models (#14530) Replace this entire comment with: - **Description:** added support for new Google GenerativeAI models - **Twitter handle:** lkuligin --------- Co-authored-by: Erick Friis <[email protected]> * [Tracing] String Stacktrace (#14131) Add full stacktrace * [Evals] End project (#14324) Also does some cleanup. Now that we support updating/ending projects, do this automatically. Then you can edit the name of the project in the app. * Fix OAI Tool Message (#14746) See format here: https://platform.openai.com/docs/guides/function-calling/parallel-function-calling It expects a "name" argument, which we aren't providing by default. ![image](https://github.com/langchain-ai/langchain/assets/13333726/7cd82978-337c-40a1-b099-3bb25cd57eb4) Alternative is to add the 'name' field directly to the message if people prefer. * Update propositional-retrieval template (#14766) More descriptive name. Add parser in ingest. Update image link * [Documentation] Updates to NVIDIA Playground/Foundation Model naming.… (#14770) … (#14723) - **Description:** Minor updates per marketing requests. Namely, name decisions (AI Foundation Models / AI Playground) - **Tag maintainer:** @hinthornw Do want to pass around the PR for a bit and ask a few more marketing questions before merge, but just want to make sure I'm not working in a vacuum. No major changes to code functionality intended; the PR should be for documentation and only minor tweaks. Note: QA model is a bit borked across staging/prod right now. Relevant teams have been informed and are looking into it, and I'm placeholdered the response to that of a working version in the notebook. Co-authored-by: Vadim Kudlay <[email protected]> * community[minor]: Add SurrealDB vectorstore (#13331) **Description:** Vectorstore implementation around [SurrealDB](https://www.surrealdb.com) --------- Co-authored-by: Bagatur <[email protected]> * langchain[patch]: remove unused imports (#14680) Co-authored-by: Bagatur <[email protected]> * docs: `Steam` update (#14778) Updated the page title. It was inconsistent. Updated page with links; description and setting details. * docs: `cloudflare` update (#14779) Added provider page. Added links, descriptions * Add image support for Ollama (#14713) Support [LLaVA](https://ollama.ai/library/llava): * Upgrade Ollama * `ollama pull llava` Ensure compatibility with [image prompt template](https://github.com/langchain-ai/langchain/pull/14263) --------- Co-authored-by: jacoblee93 <[email protected]> * docs: `google drive` update (#14781) The [Google Drive toolkit](https://python.langchain.com/docs/integrations/toolkits/google_drive) page is a duplicate of the [Google Drive tool](https://python.langchain.com/docs/integrations/tools/google_drive) page. - Removed the `Google Drive toolkit` page (it shouldn't be a toolkit but tool) - Removed the correspondent reference in the Google platform page - Redirected the removed page to the tool page. * community[patch]: Update YandexGPT API (#14773) Update LLMand Chat model to use new api version --------- Co-authored-by: Dmitry Tyumentsev <[email protected]> * community[patch]: Implement similarity_score_threshold for MongoDB Vector Store (#14740) Adds the option for `similarity_score_threshold` when using `MongoDBAtlasVectorSearch` as a vector store retriever. Example use: ``` vector_search = MongoDBAtlasVectorSearch.from_documents(...) qa_retriever = vector_search.as_retriever( search_type="similarity_score_threshold", search_kwargs={ "score_threshold": 0.5, } ) qa = RetrievalQA.from_chain_type( llm=OpenAI(), chain_type="stuff", retriever=qa_retriever, ) docs = qa({"query": "..."}) ``` I've tested this feature locally, using a MongoDB Atlas Cluster with a vector search index. * docs[patch]: fix zoom (#14786) not sure why quarto is removing divs * Permit updates in indexing (#14482) * docs: developer docs (#14776) Builds out a developer documentation section in the docs - Links it from contributing.md - Adds an initial guide on how to contribute an integration --------- Co-authored-by: Bagatur <[email protected]> * infra: cut down on integration steps (#14785) <!-- Thank you for contributing to LangChain! Replace this entire comment with: - **Description:** a description of the change, - **Issue:** the issue # it fixes (if applicable), - **Dependencies:** any dependencies required for this change, - **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below), - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md 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/extras` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. --> --------- Co-authored-by: Bagatur <[email protected]> * community[patch]: support for Sybase SQL anywhere added. (#14821) - **Description:** support for Sybase SQL anywhere added in sql_database.py file at path langchain\libs\community\langchain_community\utilities - **Issue:** It will resolve default schema setting for Sybase SQL anywhere - **Dependencies:** No, - **Tag maintainer:** @baskaryan, @eyurtsev, @hwchase17, - **Twitter handle:** NA --------- Co-authored-by: learn360sujeet <[email protected]> Co-authored-by: Bagatur <[email protected]> * community[patch]: fix agenerate return value (#14815) Fixed: - `_agenerate` return value in the YandexGPT Chat Model - duplicate line in the documentation Co-authored-by: Dmitry Tyumentsev <[email protected]> * docs: ensure consistency in declaring LANGCHAIN_API_KEY... (#14823) ... variable, accompanied by a quote Co-authored-by: Yacine Bouakkaz <[email protected]> * docs redundant pages (#14774) [ScaNN](https://python.langchain.com/docs/integrations/providers/scann) and [DynamoDB](https://python.langchain.com/docs/integrations/platforms/aws#aws-dynamodb) pages in `providers` are redundant because we have those references in the Google and AWS platform pages. It is confusing. - I removed unnecessary pages, redirected files to new nams; * docs: Typo in Templates README.md (#14812) Corrected path reference from package/pirate-speak to packages/pirate-speak * community: Add logprobs in gen output (#14826) Now that it's supported again for OAI chat models . Shame this wouldn't include it in the `.invoke()` output though (it's not included in the message itself). Would need to do a follow-up for that to be the case * docs: Fix link typo to `/docs/integrations/text_embedding/nvidia_ai_endpoints` (#14827) This page doesn't exist: - https://python.langchain.com/docs/integrations/text_embeddings/nvidia_ai_endpoints but this one does: - https://python.langchain.com/docs/integrations/text_embedding/nvidia_ai_endpoints * docs: typo in rag use case (#14800) Description: Fixes minor typo to documentation * docs: Fix the broken link to Extraction page (#14806) **Description:** fixing a broken link to the extraction doc page * community[minor]: New model parameters and dynamic batching for VertexAIEmbeddings (#13999) - **Description:** VertexAIEmbeddings performance improvements - **Twitter handle:** @vladkol ## Improvements - Dynamic batch size, starting from 250, lowering down to 5. Batch size varies across regions. Some regions support larger batches, and it significantly improves performance. When running large batches of texts in `us-central1`, performance gain can be up to 3.5x. The dynamic batching also makes sure every batch is below 20K token limit. - New model parameter `embeddings_type` that translates to `task_type` parameter of the API. Newer model versions support [different embeddings task types](https://cloud.google.com/vertex-ai/docs/generative-ai/embeddings/get-text-embeddings#api_changes_to_models_released_on_or_after_august_2023). * Update parser (#14831) Gpt-3.5 sometimes calls with empty string arguments instead of `{}` I'd assume it's because the typescript representation on their backend makes it a bit ambiguous. * [Bugfix] Ensure tool output is a str, for OAI Assistant (#14830) Tool outputs have to be strings apparently. Ensure they are formatted correctly before passing as intermediate steps. ``` BadRequestError: Error code: 400 - {'error': {'message': '1 validation error for Request\nbody -> tool_outputs -> 0 -> output\n str type expected (type=type_error.str)', 'type': 'invalid_request_error', 'param': None, 'code': None}} ``` * community[patch]: Update Tongyi default model_name (#14844) <img width="1305" alt="Screenshot 2023-12-18 at 9 54 01 PM" src="https://github.com/langchain-ai/langchain/assets/10000925/c943fd81-cd48-46eb-8dff-4680424d9ba9"> The current model is no longer available. * docs: update NVIDIA integration (#14780) - **Description:** Modification of descriptions for marketing purposes and transitioning towards `platforms` directory if possible. - **Issue:** Some marketing opportunities, lodging PR and awaiting later discussions. - This PR is intended to be merged when decisions settle/hopefully after further considerations. Submitting as Draft for now. Nobody @'d yet. --------- Co-authored-by: Bagatur <[email protected]> * docs[patch]: gemini keywords (#14856) * docs[patch]: more keywords (#14858) * community[patch]: Release 0.0.4 (#14864) * langchain[patch]: Release 0.0.351 (#14867) * add methods to deserialize prompts that were old (#14857) * community: replace deprecated davinci models (#14860) This is technically a breaking change because it'll switch out default models from `text-davinci-003` to `gpt-3.5-turbo-instruct`, but OpenAI is shutting off those endpoints on 1/4 anyways. Feels less disruptive to switch out the default instead. * WIP: sql research assistant (#14240) * docstrings `core` update (#14871) Added missed docstrings * Fix token text splitter duplicates (#14848) - **Description:** - Add a break case to `text_splitter.py::split_text_on_tokens()` to avoid unwanted item at the end of result. - Add a testcase to enforce the behavior. - **Issue:** - #14649 - #5897 - **Dependencies:** n/a, --- **Quick illustration of change:** ``` text = "foo bar baz 123" tokenizer = Tokenizer( chunk_overlap=3, tokens_per_chunk=7 ) output = split_text_on_tokens(text=text, tokenizer=tokenizer) ``` output before change: `["foo bar", "bar baz", "baz 123", "123"]` output after change: `["foo bar", "bar baz", "baz 123"]` * docstrings `langchain` update (#14870) Added missed docstrings * docs: fixed tiktoken link error (#14840) <!-- Thank you for contributing to LangChain! Replace this entire comment with: - **Description:** fixed tiktoken link error, - **Issue:** no, - **Dependencies:** no, - **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below), - **Twitter handle:** no! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/ 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/extras` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. --> - **Description:** fixed tiktoken link error, - **Issue:** no, - **Dependencies:** no, - **Tag maintainer:** @baskaryan, - **Twitter handle:** SignetCode! * docs: fix typo in contributing re installing integration test deps (#14861) **Description** The contributing docs lists a poetry command to install community for dev work that includes a poetry group called `integration_tests`. This is a mistake: the poetry group for integration tests is called `test_integration`, not `integration_tests`. See here: https://github.com/langchain-ai/langchain/blob/master/libs/community/pyproject.toml#L119 * Update kendra.py to avoid Kendra query ValidationException (#14866) Fixing issue - https://github.com/langchain-ai/langchain/issues/14494 to avoid Kendra query ValidationException <!-- Thank you for contributing to LangChain! Replace this entire comment with: - **Description:** Update kendra.py to avoid Kendra query ValidationException, - **Issue:** the issue #https://github.com/langchain-ai/langchain/issues/14494, - **Dependencies:** None, - **Tag maintainer:** , - **Twitter handle:** If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. --> --------- Co-authored-by: Harrison Chase <[email protected]> * Harrison/agent docs custom (#14877) * Improve prompt injection detection (#14842) - **Description:** This is addition to [my previous PR](https://github.com/langchain-ai/langchain/pull/13930) with improvements to flexibility allowing different models and notebook to use ONNX runtime for faster speed. Since the last PR, [our model](https://huggingface.co/laiyer/deberta-v3-base-prompt-injection) got more than 660k downloads, and with the [public benchmark](https://huggingface.co/spaces/laiyer/prompt-injection-benchmark) showed much fewer false-positives than the previous one from deepset. Additionally, on the ONNX runtime, it can be running 3x faster on the CPU, which might be handy for builders using Langchain. **Issue:** N/A - **Dependencies:** N/A - **Tag maintainer:** N/A - **Twitter handle:** `@laiyer_ai` * OPENAI_PROXY not working (#14833) Replace this entire comment with: - **Description:** OPENAI_PROXY is not working for openai==1.3.9, The `proxies` argument is deprecated. The `http_client` argument should be passed instead, - **Issue:** OPENAI_PROXY is not working, - **Dependencies:** None, - **Tag maintainer:** @hwchase17 , - **Twitter handle:** timothy66666 * Docs `tencent` pages update (#14879) - updated `Tencent` provider page: added a chat model and document loader references; company description - updated Chat model and Document loader pages with descriptions, links - renamed files to consistent formats; redirected file names Note: I was getting this linting error on code that **was not changed in my PR**! > Error: docs/docs/guides/safety/hugging_face_prompt_injection.ipynb:1:1: I001 Import block is un-sorted or un-formatted > make: *** [Makefile:47: lint_package] Error 1 I've fixed this error in the notebook * added history and support for system_message as param (#14824) - **Description:** added support for chat_history for Google GenerativeAI (to actually use the `chat` API) plus since Gemini currently doesn't have a support for SystemMessage, added support for it only if a user provides additional `convert_system_message_to_human` flag during model initialization (in this case, SystemMessage would be prepanded to the first HumanMessage) - **Issue:** #14710 - **Dependencies:** any dependencies required for this change, - **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below), - **Twitter handle:** lkuligin --------- Co-authored-by: William FH <[email protected]> * [Partner] Google GenAi new release (#14882) to support the system message merging Also fix integration tests that weren't passing * [Partner] Update google integration test (#14883) Gemini has decided that pickle rick is unsafe: https://github.com/langchain-ai/langchain/actions/runs/7256642294/job/19769249444#step:8:189 ![image](https://github.com/langchain-ai/langchain/assets/13333726/cfbf4312-53b6-4290-84ee-6ce0742e739e) * [Partner] NVIDIA TRT Package (#14733) Simplify #13976 and add as a separate package. - [] Add README - [X] Add doc notebook - [X] Add simple LLM integration --------- Co-authored-by: Jeremy Dyer <[email protected]> * docs: docstrings `langchain_community` update (#14889) Addded missed docstrings. Fixed inconsistency in docstrings. **Note** CC @efriis There were PR errors on `langchain_experimental/prompt_injection_identifier/hugging_face_identifier.py` But, I didn't touch this file in this PR! Can it be some cache problems? I fixed this error. * docs: add reference for XataVectorStore constructor (#14903) Adds doc reference to the XataVectorStore constructor for use with existing Xata table contents. @tsg @philkra * langchain[patch]: export sagemaker LLMContentHandler (#14906) Resolves #14904 …
Builds on Bagatur's (#13227). See unit test for example usage (below)