-
Notifications
You must be signed in to change notification settings - Fork 16.2k
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
Generic LLM wrapper to support chat model interface with configurable chat prompt format #8295
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
Not included yet is support for function calls (i.e. |
@baskaryan @rlancemartin First of all, apologies for the extra round caused by linting errors from my first commit which are now resolved by my second commit. This was related to some issues I had running all make targets locally, for which a fix is now available in #8344. I'm still experiencing the issues mentioned in #6182 though but was able to workaround by using |
Thanks for adding! Re function calling, have you seen this and do you have a PR in flight to support it? Would be great! |
SystemMessage, | ||
) | ||
|
||
B_INST, E_INST = "[INST]", "[/INST]" |
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.
Nice to see that these tokens are now officially recommended, as you point out.
I was wondering whether they were going to get broadly suggested.
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.
Inspiring to see how far GPT4 gets deriving a llama2 prompt from analyzing generation.py
. Looks good except from the wrongly placed first [INST]
.
"id": "2ff99380", | ||
"metadata": {}, | ||
"source": [ | ||
"This is shown with `HuggingFaceTextGenInference` as an example. A `HuggingFaceTextGenInference` LLM encapsulates access to a [text-generation-inference](https://github.com/huggingface/text-generation-inference) server. In the following example, the inference server hosts a [meta-llama/Llama-2-13b-chat-hf](https://huggingface.co/meta-llama/Llama-2-13b-chat-hf) model. It was started with \n", |
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.
It would be nice to show this running w/ llama2 locally, as well.
If you don't have it locally, I can add.
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.
Good idea, I'll give this a try today or tomorrow, extend the notebook and update this PR.
Thanks for reviewing my PR @rlancemartin! I haven't seen the grammar-based sampling PR, thanks for the pointer. I'll start working on it later this week and submit another PR. |
@rlancemartin I just added two more commits that include an example how to use the |
@rlancemartin @baskaryan is there anything else you think I should add/improve to get this PR merged? |
@krasserm The llm created by HuggingFaceTextGenInference doesn't support async operation, so it fails in async mode. Do you notice that? |
@yaoaifiling async support for |
Thanks! Yes, using an old one, need to update my langchain version. |
apologies for the delay, will take another look shortly! |
Thank you @krasserm for doing this!
So, this looks promising as a chat wrapper for some major local llama-based models, if templating mechanism to be modified. I also have How do you think this should go? This generalization is probably out of scope of this PR? If so, then we can potentially duplicate the |
Good thoughts @avoroshilov, thank you! I just updated this PR to make the chat wrapper generic. The new base class class Llama2Chat(ChatWrapper):
sys_beg: str = "<s>[INST] <<SYS>>\n"
sys_end: str = "\n<</SYS>>\n\n"
ai_n_beg: str = " "
ai_n_end: str = " </s>"
usr_n_beg: str = "<s>[INST] "
usr_n_end: str = " [/INST]"
usr_0_beg: str = ""
usr_0_end: str = " [/INST]"
class Llama2Instruct(ChatWrapper):
sys_beg: str = "### System:\n"
sys_end: str = "\n\n"
ai_n_beg: str = "### Assistant:\n"
ai_n_end: str = "\n\n"
usr_n_beg: str = "### User:\n"
usr_n_end: str = "\n\n"
class Vicuna(ChatWrapper):
sys_beg: str = ""
sys_end: str = " "
ai_n_beg: str = "ASSISTANT: "
ai_n_end: str = " </s>"
usr_n_beg: str = "USER: "
usr_n_end: str = " " These classes are part of the PR (as sample implementations).
I hope this fits your use cases! |
de447b6
to
15e99da
Compare
@baskaryan @rlancemartin it would be great if you could take another look at this PR. Based on @avoroshilov's thoughts I made this a generic LLM wrapper that now supports a lot more models than just Llama-2 chat models. Models not already covered can now be easily supported by extending |
@krasserm This looks fantastic! I've been looking for an integration of Llama-2 based chat models in LangChain. Would love to see this merged soon! 👍 |
Hi team, any update on this PR? I don't see llama-2-based chat model support in LangChain yet. So being able to merge this would be really awesome. |
@krasserm Hi , could you, please, resolve the merging issues and address the last comments (if needed)? After that, ping me and I push this PR for the review. Thanks! |
15e99da
to
bc99b88
Compare
@baskaryan Please review this PR. TNX |
It would be very helpful to the community using foundational LLMs if we can have this PR merged. |
Hey folks! Appreciate your patience. Given this is effectively a model-specific prompt template, I would prefer to have this as a reference prompt at smith.langchain.com/hub , or as a LangChain template for working with open source models instead of a "model" as it's implemented here. If nobody else picks it up, I can spend some time putting together a little template with alternatives showing how to format this, so people can get started with these llms quicker with that, without merging these prompts into the models codebase. |
Hi @efriis I guess this PR could have changed in a way to not call on each LLM model, but any LLM model that requires a specific start/end for system, user, ai, etc messages. However, if we are not going to merge this, I am interested in |
I decided for this design because I see start/end tokens in chat prompts as an implementation detail of a model. This is something a user shouldn't need to care about when designing an application-specific chat prompt template like the one used in the initial example e.g. messages = [
SystemMessage(content="You are a helpful assistant."),
MessagesPlaceholder(variable_name="chat_history"),
HumanMessagePromptTemplate.from_template("{text}"),
]
# independent of model-specific chat message start/end tokens
prompt_template = ChatPromptTemplate.from_messages(messages) Start/end tokens for messages of a chat model are an implementation detail in the same way as a tokenizer is a model-specific implementation detail. I think that's the reason why Hugging Face decided to link chat templates to tokenizers. Their chat templates too render model-independent chat messages into prompts with model-specific start/end tokens (like the wrappers of this PR) and are reusable across tokenizers. You can also see the wrapper(s) from this PR as a layer in a chat protocol, translating messages of a conversation into a lower-level, model-specific prompt format, freeing the user from dealing with these details. And these wrappers (or protocol layers) are reusable too. For example, you can reuse the Even if you do not want to have concrete subclasses, like class ChatML(ChatWrapper):
sys_beg: str = "<|im_start|>system\n"
sys_end: str = "\n<|im_end|>"
ai_n_beg: str = "<|im_start|>assistant\n"
ai_n_end: str = "\n<|im_end|>"
usr_n_beg: str = "<|im_start|>user\n"
usr_n_end: str = "\n<|im_end|>" Their wide applicability is one of the main reasons why I thought concrete |
@krasserm thoughts on merging this into experimental initially? Code can stay almost the same - all the dependencies would still come from |
@efriis sounds good to me. I'll update the PR later this week. |
Sounds good. Thanks! Another (better imo) implementation is as some kind of function that formats ChatPrompts into the format expected by these LLMs, and an output parser that parses the output into a message (or messages). I would imagine a runnable like
|
It would be great if that |
So you're basically creating a chain that allows using an From my perspective, For example, when using So why shouldn't LangChain try to follow these design principles of chat model interfaces consistently i.e. encapsulating details like chat messages separators, tokenization, ... etc. behind chat model interfaces instead of sometimes exposing it to users (like in your proposal) and sometimes not? Having a common chat model interface with clear semantics (which includes dealing with low-level chat message separators) would simplifiy application development with LangChain a lot. |
bc99b88
to
7d1c7d2
Compare
I just moved everything from |
Appreciate it! Re: the previous point about composing the LLM rather than wrapping it in the ChatOpenAI makes sense as a purpose-built chat interface because it consistently returns the correct format. With many of these self-hosted LLMs, getting that chat model kind of consistency is difficult, so having simpler abstractions that have to be composed together makes more sense to me. That being said, these kinds of experiments are what experimental is for! Thanks for moving it |
Landed! Thanks @krasserm and appreciate your patience on this one |
Thanks @efriis for discussing and supporting this PR |
[![Mend Renovate logo banner](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@autoblocks/client](https://github.com/autoblocksai/javascript-sdk) | [`^0.0.17` -> `^0.0.20`](https://renovatebot.com/diffs/npm/@autoblocks%2fclient/0.0.17/0.0.20) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@autoblocks%2fclient/0.0.20?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@autoblocks%2fclient/0.0.20?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@autoblocks%2fclient/0.0.17/0.0.20?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@autoblocks%2fclient/0.0.17/0.0.20?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node) ([source](https://github.com/DefinitelyTyped/DefinitelyTyped)) | [`20.9.0` -> `20.9.2`](https://renovatebot.com/diffs/npm/@types%2fnode/20.9.0/20.9.2) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2fnode/20.9.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2fnode/20.9.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2fnode/20.9.0/20.9.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2fnode/20.9.0/20.9.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [ai](https://sdk.vercel.ai/docs) ([source](https://github.com/vercel/ai)) | [`2.2.22` -> `2.2.24`](https://renovatebot.com/diffs/npm/ai/2.2.22/2.2.24) | [![age](https://developer.mend.io/api/mc/badges/age/npm/ai/2.2.24?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/ai/2.2.24?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/ai/2.2.22/2.2.24?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/ai/2.2.22/2.2.24?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [eslint](https://eslint.org) ([source](https://github.com/eslint/eslint)) | [`8.53.0` -> `8.54.0`](https://renovatebot.com/diffs/npm/eslint/8.53.0/8.54.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/eslint/8.54.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/eslint/8.54.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/eslint/8.53.0/8.54.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/eslint/8.53.0/8.54.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [eslint-config-next](https://nextjs.org/docs/app/building-your-application/configuring/eslint#eslint-config) ([source](https://github.com/vercel/next.js)) | [`14.0.2` -> `14.0.3`](https://renovatebot.com/diffs/npm/eslint-config-next/14.0.2/14.0.3) | [![age](https://developer.mend.io/api/mc/badges/age/npm/eslint-config-next/14.0.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/eslint-config-next/14.0.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/eslint-config-next/14.0.2/14.0.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/eslint-config-next/14.0.2/14.0.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [langchain](https://github.com/langchain-ai/langchain) | `^0.0.335` -> `^0.0.338` | [![age](https://developer.mend.io/api/mc/badges/age/pypi/langchain/0.0.338?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/langchain/0.0.338?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/langchain/0.0.335/0.0.338?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/langchain/0.0.335/0.0.338?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [langchain](https://github.com/langchain-ai/langchainjs) | [`^0.0.186` -> `^0.0.193`](https://renovatebot.com/diffs/npm/langchain/0.0.186/0.0.193) | [![age](https://developer.mend.io/api/mc/badges/age/npm/langchain/0.0.193?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/langchain/0.0.193?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/langchain/0.0.186/0.0.193?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/langchain/0.0.186/0.0.193?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [next](https://nextjs.org) ([source](https://github.com/vercel/next.js)) | [`14.0.2` -> `14.0.3`](https://renovatebot.com/diffs/npm/next/14.0.2/14.0.3) | [![age](https://developer.mend.io/api/mc/badges/age/npm/next/14.0.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/next/14.0.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/next/14.0.2/14.0.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/next/14.0.2/14.0.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [openai](https://github.com/openai/openai-python) | `1.2.3` -> `1.3.3` | [![age](https://developer.mend.io/api/mc/badges/age/pypi/openai/1.3.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/openai/1.3.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/openai/1.2.3/1.3.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/openai/1.2.3/1.3.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [openai](https://github.com/openai/openai-python) | `0.28.1` -> `1.3.3` | [![age](https://developer.mend.io/api/mc/badges/age/pypi/openai/1.3.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/openai/1.3.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/openai/0.28.1/1.3.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/openai/0.28.1/1.3.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [openai](https://github.com/openai/openai-node) | [`4.17.4` -> `4.19.0`](https://renovatebot.com/diffs/npm/openai/4.17.4/4.19.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/openai/4.19.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/openai/4.19.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/openai/4.17.4/4.19.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/openai/4.17.4/4.19.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>autoblocksai/javascript-sdk (@​autoblocks/client)</summary> ### [`v0.0.20`](https://github.com/autoblocksai/javascript-sdk/compare/0.0.19...0.0.20) [Compare Source](https://github.com/autoblocksai/javascript-sdk/compare/0.0.19...0.0.20) ### [`v0.0.19`](https://github.com/autoblocksai/javascript-sdk/compare/0.0.18...0.0.19) [Compare Source](https://github.com/autoblocksai/javascript-sdk/compare/0.0.18...0.0.19) ### [`v0.0.18`](https://github.com/autoblocksai/javascript-sdk/compare/0.0.17...0.0.18) [Compare Source](https://github.com/autoblocksai/javascript-sdk/compare/0.0.17...0.0.18) </details> <details> <summary>vercel/ai (ai)</summary> ### [`v2.2.24`](https://github.com/vercel/ai/releases/tag/ai%402.2.24) [Compare Source](https://github.com/vercel/ai/compare/[email protected]@2.2.24) ##### Patch Changes - [`69ca8f5`](https://github.com/vercel/ai/commit/69ca8f5): ai/react: add experimental_useAssistant hook and experimental_AssistantResponse - [`3e2299e`](https://github.com/vercel/ai/commit/3e2299e): experimental_StreamData/StreamingReactResponse: optimize parsing, improve types - [`70bd2ac`](https://github.com/vercel/ai/commit/70bd2ac): ai/solid: add experimental_StreamData support to useChat Proper documentation for the new features will be ready in the near future, but in the meantime you can refer to [this document](https://github.com/vercel/ai/blob/main/examples/next-openai/app/api/assistant/assistant-setup.md) and the accompanying [example](https://github.com/vercel/ai/blob/main/examples/next-openai/app/api/assistant/route.ts) for the Assistants API, and [this example](https://github.com/vercel/ai/blob/fbda5b20afe33f1e9b73644a1052954b2d2e7602/examples/next-openai/app/api/chat-with-vision) for working with the new `data` API for vision. Thanks [@​lgrammel](https://github.com/lgrammel) for the great work in this release! ### [`v2.2.23`](https://github.com/vercel/ai/releases/tag/ai%402.2.23) [Compare Source](https://github.com/vercel/ai/compare/[email protected]@2.2.23) ##### Patch Changes - [`5a04321`](https://github.com/vercel/ai/commit/5a04321): add StreamData support to StreamingReactResponse, add client-side data API to react/use-chat </details> <details> <summary>eslint/eslint (eslint)</summary> ### [`v8.54.0`](https://github.com/eslint/eslint/releases/tag/v8.54.0) [Compare Source](https://github.com/eslint/eslint/compare/v8.53.0...v8.54.0) #### Features - [`a7a883b`](https://github.com/eslint/eslint/commit/a7a883bd6ba4f140b60cbbb2be5b53d750f6c8db) feat: for-direction rule add check for condition in reverse order ([#​17755](https://github.com/eslint/eslint/issues/17755)) (Angelo Annunziata) - [`1452dc9`](https://github.com/eslint/eslint/commit/1452dc9f12c45c05d7c569f737221f0d988ecef1) feat: Add suggestions to no-console ([#​17680](https://github.com/eslint/eslint/issues/17680)) (Joel Mathew Koshy) - [`21ebf8a`](https://github.com/eslint/eslint/commit/21ebf8a811be9f4b009cf70a10be5062d4fdc736) feat: update `no-array-constructor` rule ([#​17711](https://github.com/eslint/eslint/issues/17711)) (Francesco Trotta) #### Bug Fixes - [`98926e6`](https://github.com/eslint/eslint/commit/98926e6e7323e5dd12a9f016cb558144296665af) fix: Ensure that extra data is not accidentally stored in the cache file ([#​17760](https://github.com/eslint/eslint/issues/17760)) (Milos Djermanovic) - [`e8cf9f6`](https://github.com/eslint/eslint/commit/e8cf9f6a524332293f8b2c90a2db4a532e47d919) fix: Make dark scroll bar in dark theme ([#​17753](https://github.com/eslint/eslint/issues/17753)) (Pavel) - [`3cbeaad`](https://github.com/eslint/eslint/commit/3cbeaad7b943c153937ce34365cec2c406f2b98b) fix: Use `cwd` constructor option as config `basePath` in Linter ([#​17705](https://github.com/eslint/eslint/issues/17705)) (Milos Djermanovic) #### Documentation - [`becfdd3`](https://github.com/eslint/eslint/commit/becfdd39b25d795e56c9a13eb3e77af6b9c86e8a) docs: Make clear when rules are removed ([#​17728](https://github.com/eslint/eslint/issues/17728)) (Nicholas C. Zakas) - [`05d6e99`](https://github.com/eslint/eslint/commit/05d6e99153ed6d94eb30f46c57609371918a41f3) docs: update "Submit a Pull Request" page ([#​17712](https://github.com/eslint/eslint/issues/17712)) (Francesco Trotta) - [`eb2279e`](https://github.com/eslint/eslint/commit/eb2279e5148cee8fdea7dae614f4f8af7a2d06c3) docs: display info about deprecated rules ([#​17749](https://github.com/eslint/eslint/issues/17749)) (Percy Ma) - [`d245326`](https://github.com/eslint/eslint/commit/d24532601e64714ac5d08507e05aa5c14ecd1d5a) docs: Correct working in migrating plugin docs ([#​17722](https://github.com/eslint/eslint/issues/17722)) (Filip Tammergård) #### Chores - [`d644de9`](https://github.com/eslint/eslint/commit/d644de9a4b593b565617303a095bc9aa69e7b768) chore: upgrade [@​eslint/js](https://github.com/eslint/js)[@​8](https://github.com/8).54.0 ([#​17773](https://github.com/eslint/eslint/issues/17773)) (Milos Djermanovic) - [`1e6e314`](https://github.com/eslint/eslint/commit/1e6e31415cc429a3a9fc64b2ec03df0e0ec0c91b) chore: package.json update for [@​eslint/js](https://github.com/eslint/js) release (Jenkins) - [`6fb8805`](https://github.com/eslint/eslint/commit/6fb8805310afe7476d6c404f172177a6d15fcf11) chore: Fixed grammar in issue_templates/rule_change ([#​17770](https://github.com/eslint/eslint/issues/17770)) (Joel Mathew Koshy) - [`85db724`](https://github.com/eslint/eslint/commit/85db7243ddb8706ed60ab64a7ddf604d0d7de493) chore: upgrade `markdownlint` to 0.31.1 ([#​17754](https://github.com/eslint/eslint/issues/17754)) (Nitin Kumar) - [`6d470d2`](https://github.com/eslint/eslint/commit/6d470d2e74535761bd56dcb1c021b463ef9e8a9c) chore: update dependency recast to ^0.23.0 ([#​17736](https://github.com/eslint/eslint/issues/17736)) (renovate\[bot]) - [`b7121b5`](https://github.com/eslint/eslint/commit/b7121b590d578c9c9b38ee481313317f30e54817) chore: update dependency markdownlint-cli to ^0.37.0 ([#​17735](https://github.com/eslint/eslint/issues/17735)) (renovate\[bot]) - [`633b9a1`](https://github.com/eslint/eslint/commit/633b9a19752b6a22ab4d6c824f27a75ac0e4151b) chore: update dependency regenerator-runtime to ^0.14.0 ([#​17739](https://github.com/eslint/eslint/issues/17739)) (renovate\[bot]) - [`acac16f`](https://github.com/eslint/eslint/commit/acac16fdf8540f7ba86cf637e3c1b253bd35a268) chore: update dependency vite-plugin-commonjs to ^0.10.0 ([#​17740](https://github.com/eslint/eslint/issues/17740)) (renovate\[bot]) - [`ba8ca7e`](https://github.com/eslint/eslint/commit/ba8ca7e3debcba68ee7015b9221cf5acd7870206) chore: add .github/renovate.json5 ([#​17567](https://github.com/eslint/eslint/issues/17567)) (Josh Goldberg ✨) </details> <details> <summary>vercel/next.js (eslint-config-next)</summary> ### [`v14.0.3`](https://github.com/vercel/next.js/compare/v14.0.2...v14.0.3) [Compare Source](https://github.com/vercel/next.js/compare/v14.0.2...v14.0.3) </details> <details> <summary>langchain-ai/langchain (langchain)</summary> ### [`v0.0.338`](https://github.com/langchain-ai/langchain/releases/tag/v0.0.338) [Compare Source](https://github.com/langchain-ai/langchain/compare/v0.0.337...v0.0.338) #### What's Changed - Override Keys Option by [@​hinthornw](https://github.com/hinthornw) in [https://github.com/langchain-ai/langchain/pull/13537](https://github.com/langchain-ai/langchain/pull/13537) - Neptune graph updates by [@​3coins](https://github.com/3coins) in [https://github.com/langchain-ai/langchain/pull/13491](https://github.com/langchain-ai/langchain/pull/13491) - WebResearchRetriever error handling in urls with connection error by [@​pedro-inf-custodio](https://github.com/pedro-inf-custodio) in [https://github.com/langchain-ai/langchain/pull/13401](https://github.com/langchain-ai/langchain/pull/13401) - Add execution time by [@​hinthornw](https://github.com/hinthornw) in [https://github.com/langchain-ai/langchain/pull/13542](https://github.com/langchain-ai/langchain/pull/13542) - Generic LLM wrapper to support chat model interface with configurable chat prompt format by [@​krasserm](https://github.com/krasserm) in [https://github.com/langchain-ai/langchain/pull/8295](https://github.com/langchain-ai/langchain/pull/8295) - Use random seed by [@​hinthornw](https://github.com/hinthornw) in [https://github.com/langchain-ai/langchain/pull/13544](https://github.com/langchain-ai/langchain/pull/13544) - Fix typo/line break in the middle of a word by [@​marks](https://github.com/marks) in [https://github.com/langchain-ai/langchain/pull/13314](https://github.com/langchain-ai/langchain/pull/13314) - Adds support for new OctoAI endpoints by [@​AI-Bassem](https://github.com/AI-Bassem) in [https://github.com/langchain-ai/langchain/pull/13521](https://github.com/langchain-ai/langchain/pull/13521) - fixed `openai_assistant` namespace by [@​leo-gan](https://github.com/leo-gan) in [https://github.com/langchain-ai/langchain/pull/13543](https://github.com/langchain-ai/langchain/pull/13543) - move streaming stdout by [@​hwchase17](https://github.com/hwchase17) in [https://github.com/langchain-ai/langchain/pull/13559](https://github.com/langchain-ai/langchain/pull/13559) - update multi index templates by [@​baskaryan](https://github.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/13569](https://github.com/langchain-ai/langchain/pull/13569) - bump 338, exp 42 by [@​baskaryan](https://github.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/13564](https://github.com/langchain-ai/langchain/pull/13564) #### New Contributors - [@​pedro-inf-custodio](https://github.com/pedro-inf-custodio) made their first contribution in [https://github.com/langchain-ai/langchain/pull/13401](https://github.com/langchain-ai/langchain/pull/13401) - [@​marks](https://github.com/marks) made their first contribution in [https://github.com/langchain-ai/langchain/pull/13314](https://github.com/langchain-ai/langchain/pull/13314) **Full Changelog**: https://github.com/langchain-ai/langchain/compare/v0.0.337...v0.0.338 ### [`v0.0.337`](https://github.com/langchain-ai/langchain/releases/tag/v0.0.337) [Compare Source](https://github.com/langchain-ai/langchain/compare/v0.0.336...v0.0.337) #### What's Changed - Make pirate-speak-configurable template not require env vars for alte… by [@​nfcampos](https://github.com/nfcampos) in [https://github.com/langchain-ai/langchain/pull/13395](https://github.com/langchain-ai/langchain/pull/13395) - Fix a link in docs by [@​bracesproul](https://github.com/bracesproul) in [https://github.com/langchain-ai/langchain/pull/13423](https://github.com/langchain-ai/langchain/pull/13423) - updated `clickup` example by [@​leo-gan](https://github.com/leo-gan) in [https://github.com/langchain-ai/langchain/pull/13424](https://github.com/langchain-ai/langchain/pull/13424) - DOCS: rag nit by [@​baskaryan](https://github.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/13436](https://github.com/langchain-ai/langchain/pull/13436) - callback refactor by [@​hwchase17](https://github.com/hwchase17) in [https://github.com/langchain-ai/langchain/pull/13372](https://github.com/langchain-ai/langchain/pull/13372) - updated `Activeloop DeepMemory` notebook by [@​leo-gan](https://github.com/leo-gan) in [https://github.com/langchain-ai/langchain/pull/13428](https://github.com/langchain-ai/langchain/pull/13428) - updated `semadb` example by [@​leo-gan](https://github.com/leo-gan) in [https://github.com/langchain-ai/langchain/pull/13431](https://github.com/langchain-ai/langchain/pull/13431) - Bagatur/chain of note by [@​baskaryan](https://github.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/13470](https://github.com/langchain-ai/langchain/pull/13470) - Update multi-modal RAG cookbook by [@​rlancemartin](https://github.com/rlancemartin) in [https://github.com/langchain-ai/langchain/pull/13429](https://github.com/langchain-ai/langchain/pull/13429) - Update chain of note README.md by [@​baskaryan](https://github.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/13473](https://github.com/langchain-ai/langchain/pull/13473) - docs: `integrations/text_embeddings/` cleanup by [@​leo-gan](https://github.com/leo-gan) in [https://github.com/langchain-ai/langchain/pull/13476](https://github.com/langchain-ai/langchain/pull/13476) - fix for `integratons/document_loaders` sidebar by [@​leo-gan](https://github.com/leo-gan) in [https://github.com/langchain-ai/langchain/pull/13471](https://github.com/langchain-ai/langchain/pull/13471) - Add ahandle_event to *all* by [@​eyurtsev](https://github.com/eyurtsev) in [https://github.com/langchain-ai/langchain/pull/13469](https://github.com/langchain-ai/langchain/pull/13469) - Astra DB: minor improvements to docstrings and demo notebook by [@​hemidactylus](https://github.com/hemidactylus) in [https://github.com/langchain-ai/langchain/pull/13449](https://github.com/langchain-ai/langchain/pull/13449) - Use List instead of list by [@​ifduyue](https://github.com/ifduyue) in [https://github.com/langchain-ai/langchain/pull/13443](https://github.com/langchain-ai/langchain/pull/13443) - updated `memory` Titles by [@​leo-gan](https://github.com/leo-gan) in [https://github.com/langchain-ai/langchain/pull/13435](https://github.com/langchain-ai/langchain/pull/13435) - BUG Fix app_name in cli app new by [@​efriis](https://github.com/efriis) in [https://github.com/langchain-ai/langchain/pull/13482](https://github.com/langchain-ai/langchain/pull/13482) - Lock pydantic v1 in app template, cli 0.0.18 by [@​efriis](https://github.com/efriis) in [https://github.com/langchain-ai/langchain/pull/13485](https://github.com/langchain-ai/langchain/pull/13485) - Add serialisation arguments to Bedrock and ChatBedrock by [@​dqbd](https://github.com/dqbd) in [https://github.com/langchain-ai/langchain/pull/13465](https://github.com/langchain-ai/langchain/pull/13465) - add input_type to VoyageEmbeddings by [@​thomas0809](https://github.com/thomas0809) in [https://github.com/langchain-ai/langchain/pull/13488](https://github.com/langchain-ai/langchain/pull/13488) - Bugfix: OpenAIFunctionsAgentOutputParser doesn't handle functions with no args by [@​chrisaffirm](https://github.com/chrisaffirm) in [https://github.com/langchain-ai/langchain/pull/13467](https://github.com/langchain-ai/langchain/pull/13467) - Allow openai v1 in all templates that require it by [@​efriis](https://github.com/efriis) in [https://github.com/langchain-ai/langchain/pull/13489](https://github.com/langchain-ai/langchain/pull/13489) - updated `async-faiss` example by [@​leo-gan](https://github.com/leo-gan) in [https://github.com/langchain-ai/langchain/pull/13434](https://github.com/langchain-ai/langchain/pull/13434) - docs `integrations/vectorstores/` cleanup by [@​leo-gan](https://github.com/leo-gan) in [https://github.com/langchain-ai/langchain/pull/13487](https://github.com/langchain-ai/langchain/pull/13487) - Add optional arguments to FalkorDBGraph constructor by [@​gkorland](https://github.com/gkorland) in [https://github.com/langchain-ai/langchain/pull/13459](https://github.com/langchain-ai/langchain/pull/13459) - updated `data_connection` index page by [@​leo-gan](https://github.com/leo-gan) in [https://github.com/langchain-ai/langchain/pull/13426](https://github.com/langchain-ai/langchain/pull/13426) - Add Wrapping Library Metadata to MongoDB vector store by [@​NoahStapp](https://github.com/NoahStapp) in [https://github.com/langchain-ai/langchain/pull/13084](https://github.com/langchain-ai/langchain/pull/13084) - \[LLMonitorCallbackHandler] Various improvements by [@​hughcrt](https://github.com/hughcrt) in [https://github.com/langchain-ai/langchain/pull/13151](https://github.com/langchain-ai/langchain/pull/13151) - TEMPLATES: Add multi-index templates by [@​baskaryan](https://github.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/13490](https://github.com/langchain-ai/langchain/pull/13490) - IMPROVEMENT: update assistants output and doc by [@​baskaryan](https://github.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/13480](https://github.com/langchain-ai/langchain/pull/13480) - Runnable with message history by [@​baskaryan](https://github.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/13418](https://github.com/langchain-ai/langchain/pull/13418) - Add VertexAI Chuck Norris template by [@​wietsevenema](https://github.com/wietsevenema) in [https://github.com/langchain-ai/langchain/pull/13531](https://github.com/langchain-ai/langchain/pull/13531) - bump 337 by [@​baskaryan](https://github.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/13534](https://github.com/langchain-ai/langchain/pull/13534) #### New Contributors - [@​ifduyue](https://github.com/ifduyue) made their first contribution in [https://github.com/langchain-ai/langchain/pull/13443](https://github.com/langchain-ai/langchain/pull/13443) - [@​chrisaffirm](https://github.com/chrisaffirm) made their first contribution in [https://github.com/langchain-ai/langchain/pull/13467](https://github.com/langchain-ai/langchain/pull/13467) - [@​wietsevenema](https://github.com/wietsevenema) made their first contribution in [https://github.com/langchain-ai/langchain/pull/13531](https://github.com/langchain-ai/langchain/pull/13531) **Full Changelog**: https://github.com/langchain-ai/langchain/compare/v0.0.336...v0.0.337 ### [`v0.0.336`](https://github.com/langchain-ai/langchain/releases/tag/v0.0.336) [Compare Source](https://github.com/langchain-ai/langchain/compare/v0.0.335...v0.0.336) #### What's Changed - Add new models to openai callback by [@​IsakNyberg](https://github.com/IsakNyberg) in [https://github.com/langchain-ai/langchain/pull/13244](https://github.com/langchain-ai/langchain/pull/13244) - Update README.md by [@​levalencia](https://github.com/levalencia) in [https://github.com/langchain-ai/langchain/pull/8570](https://github.com/langchain-ai/langchain/pull/8570) - Free knowledge base pod information update by [@​mpskex](https://github.com/mpskex) in [https://github.com/langchain-ai/langchain/pull/12813](https://github.com/langchain-ai/langchain/pull/12813) - Update ollama.py by [@​glad4enkonm](https://github.com/glad4enkonm) in [https://github.com/langchain-ai/langchain/pull/12895](https://github.com/langchain-ai/langchain/pull/12895) - Improve CSV reader which can't call .strip() on NoneType by [@​dennisdegreef](https://github.com/dennisdegreef) in [https://github.com/langchain-ai/langchain/pull/13079](https://github.com/langchain-ai/langchain/pull/13079) - Typo fix to quickstart.mdx by [@​marioangst](https://github.com/marioangst) in [https://github.com/langchain-ai/langchain/pull/13178](https://github.com/langchain-ai/langchain/pull/13178) - dalle add model parameter by [@​AzeWZ](https://github.com/AzeWZ) in [https://github.com/langchain-ai/langchain/pull/13201](https://github.com/langchain-ai/langchain/pull/13201) - Remove `_get_kwarg_value` function by [@​Guillem96](https://github.com/Guillem96) in [https://github.com/langchain-ai/langchain/pull/13184](https://github.com/langchain-ai/langchain/pull/13184) - Update README.md - Added notebook for extraction_openai_tools by [@​shauryr](https://github.com/shauryr) in [https://github.com/langchain-ai/langchain/pull/13205](https://github.com/langchain-ai/langchain/pull/13205) - Add dockerfile template by [@​langchain-infra](https://github.com/langchain-infra) in [https://github.com/langchain-ai/langchain/pull/13240](https://github.com/langchain-ai/langchain/pull/13240) - added system prompt and template fields to ollama by [@​Govind-S-B](https://github.com/Govind-S-B) in [https://github.com/langchain-ai/langchain/pull/13022](https://github.com/langchain-ai/langchain/pull/13022) - Add rag google vertex ai search template by [@​juan-calvo-datatonic](https://github.com/juan-calvo-datatonic) in [https://github.com/langchain-ai/langchain/pull/13294](https://github.com/langchain-ai/langchain/pull/13294) - Add OpenAI API v1 support for ChatAnyscale and fixed a bug with openai_api_key by [@​kylehh](https://github.com/kylehh) in [https://github.com/langchain-ai/langchain/pull/13237](https://github.com/langchain-ai/langchain/pull/13237) - Fix typo in timescalevector.ipynb by [@​eltociear](https://github.com/eltociear) in [https://github.com/langchain-ai/langchain/pull/13239](https://github.com/langchain-ai/langchain/pull/13239) - docs: align custom_tool document headers by [@​edwardzjl](https://github.com/edwardzjl) in [https://github.com/langchain-ai/langchain/pull/13252](https://github.com/langchain-ai/langchain/pull/13252) - chore: bump momento dependency version and refactor search hit usage by [@​malandis](https://github.com/malandis) in [https://github.com/langchain-ai/langchain/pull/13111](https://github.com/langchain-ai/langchain/pull/13111) - Add MyScaleWithoutJSON which allows user to wrap columns into Document's Metadata by [@​mpskex](https://github.com/mpskex) in [https://github.com/langchain-ai/langchain/pull/13164](https://github.com/langchain-ai/langchain/pull/13164) - Ollama pass kwargs as options instead of top by [@​efriis](https://github.com/efriis) in [https://github.com/langchain-ai/langchain/pull/13280](https://github.com/langchain-ai/langchain/pull/13280) - Use endpoint_url if provided with boto3 session for dynamodb by [@​chevalmuscle](https://github.com/chevalmuscle) in [https://github.com/langchain-ai/langchain/pull/11622](https://github.com/langchain-ai/langchain/pull/11622) - Add missing filter to max_marginal_relevance_search inner call to max_marginal_relevance_search_by_vector by [@​Frank995](https://github.com/Frank995) in [https://github.com/langchain-ai/langchain/pull/13260](https://github.com/langchain-ai/langchain/pull/13260) - FIX: 'from_texts' method in Weaviate with non-existent kwargs param by [@​takatost](https://github.com/takatost) in [https://github.com/langchain-ai/langchain/pull/11604](https://github.com/langchain-ai/langchain/pull/11604) - Refine Weaviate docs and add RAG example by [@​iamleonie](https://github.com/iamleonie) in [https://github.com/langchain-ai/langchain/pull/13057](https://github.com/langchain-ai/langchain/pull/13057) - Update error message in evaluation runner by [@​hinthornw](https://github.com/hinthornw) in [https://github.com/langchain-ai/langchain/pull/13296](https://github.com/langchain-ai/langchain/pull/13296) - Fix serialization issue in Matching Engine Vector Store by [@​konstantin-spiess](https://github.com/konstantin-spiess) in [https://github.com/langchain-ai/langchain/pull/13266](https://github.com/langchain-ai/langchain/pull/13266) - Self-query template by [@​baskaryan](https://github.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/12694](https://github.com/langchain-ai/langchain/pull/12694) - Fix Pinecone cosine relevance score by [@​ruiramos](https://github.com/ruiramos) in [https://github.com/langchain-ai/langchain/pull/8920](https://github.com/langchain-ai/langchain/pull/8920) - add: license file to subproject by [@​YYYasin19](https://github.com/YYYasin19) in [https://github.com/langchain-ai/langchain/pull/8403](https://github.com/langchain-ai/langchain/pull/8403) - IMPROVEMENT self-query template by [@​efriis](https://github.com/efriis) in [https://github.com/langchain-ai/langchain/pull/13305](https://github.com/langchain-ai/langchain/pull/13305) - Cookbook for multi-modal RAG eval by [@​rlancemartin](https://github.com/rlancemartin) in [https://github.com/langchain-ai/langchain/pull/13272](https://github.com/langchain-ai/langchain/pull/13272) - Increase flexibility of ElasticVectorSearch by [@​mertkayhan](https://github.com/mertkayhan) in [https://github.com/langchain-ai/langchain/pull/6863](https://github.com/langchain-ai/langchain/pull/6863) - add cookbook for RAG with baidu QIANFAN and elasticsearch by [@​wemysschen](https://github.com/wemysschen) in [https://github.com/langchain-ai/langchain/pull/13287](https://github.com/langchain-ai/langchain/pull/13287) - IMPROVEMENT redirect root to docs by [@​efriis](https://github.com/efriis) in [https://github.com/langchain-ai/langchain/pull/13303](https://github.com/langchain-ai/langchain/pull/13303) - gpt researcher by [@​hwchase17](https://github.com/hwchase17) in [https://github.com/langchain-ai/langchain/pull/13062](https://github.com/langchain-ai/langchain/pull/13062) - add retrieval agent by [@​hwchase17](https://github.com/hwchase17) in [https://github.com/langchain-ai/langchain/pull/13317](https://github.com/langchain-ai/langchain/pull/13317) - Update main readme by [@​baskaryan](https://github.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/13298](https://github.com/langchain-ai/langchain/pull/13298) - DOCS: cleanup docs directory by [@​baskaryan](https://github.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/13301](https://github.com/langchain-ai/langchain/pull/13301) - Move OAI assistants to langchain and add callbacks by [@​baskaryan](https://github.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/13236](https://github.com/langchain-ai/langchain/pull/13236) - fix litellm openai imports by [@​krrishdholakia](https://github.com/krrishdholakia) in [https://github.com/langchain-ai/langchain/pull/13307](https://github.com/langchain-ai/langchain/pull/13307) - arxiv retrieval agent improvement by [@​hwchase17](https://github.com/hwchase17) in [https://github.com/langchain-ai/langchain/pull/13329](https://github.com/langchain-ai/langchain/pull/13329) - add more reasonable arxiv retriever by [@​hwchase17](https://github.com/hwchase17) in [https://github.com/langchain-ai/langchain/pull/13327](https://github.com/langchain-ai/langchain/pull/13327) - Pgvector template by [@​manuel-soria](https://github.com/manuel-soria) in [https://github.com/langchain-ai/langchain/pull/13267](https://github.com/langchain-ai/langchain/pull/13267) - Fix latest message index by [@​billytrend-cohere](https://github.com/billytrend-cohere) in [https://github.com/langchain-ai/langchain/pull/13355](https://github.com/langchain-ai/langchain/pull/13355) - CLI interactivity by [@​efriis](https://github.com/efriis) in [https://github.com/langchain-ai/langchain/pull/13148](https://github.com/langchain-ai/langchain/pull/13148) - cli 0.0.17 by [@​efriis](https://github.com/efriis) in [https://github.com/langchain-ai/langchain/pull/13359](https://github.com/langchain-ai/langchain/pull/13359) - added `Cookbooks` link by [@​leo-gan](https://github.com/leo-gan) in [https://github.com/langchain-ai/langchain/pull/13078](https://github.com/langchain-ai/langchain/pull/13078) - Bump pyarrow from 13.0.0 to 14.0.1 in /libs/langchain by [@​dependabot](https://github.com/dependabot) in [https://github.com/langchain-ai/langchain/pull/13363](https://github.com/langchain-ai/langchain/pull/13363) - feat(llms): support Openai API v1 for Azure OpenAI completions by [@​mspronesti](https://github.com/mspronesti) in [https://github.com/langchain-ai/langchain/pull/13231](https://github.com/langchain-ai/langchain/pull/13231) - Lint Python notebooks with ruff. by [@​obi1kenobi](https://github.com/obi1kenobi) in [https://github.com/langchain-ai/langchain/pull/12677](https://github.com/langchain-ai/langchain/pull/12677) - Bump all libraries to the latest `ruff` version. by [@​obi1kenobi](https://github.com/obi1kenobi) in [https://github.com/langchain-ai/langchain/pull/13350](https://github.com/langchain-ai/langchain/pull/13350) - fmt by [@​baskaryan](https://github.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/13371](https://github.com/langchain-ai/langchain/pull/13371) - more cli interactivity, bugfix by [@​efriis](https://github.com/efriis) in [https://github.com/langchain-ai/langchain/pull/13360](https://github.com/langchain-ai/langchain/pull/13360) - fix cli release by [@​efriis](https://github.com/efriis) in [https://github.com/langchain-ai/langchain/pull/13373](https://github.com/langchain-ai/langchain/pull/13373) - bump openai by [@​baskaryan](https://github.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/13262](https://github.com/langchain-ai/langchain/pull/13262) - `Yi` model from `01.ai` , example by [@​leo-gan](https://github.com/leo-gan) in [https://github.com/langchain-ai/langchain/pull/13375](https://github.com/langchain-ai/langchain/pull/13375) - Update `rag-timescale-conversation` to dependencies without CVEs. by [@​obi1kenobi](https://github.com/obi1kenobi) in [https://github.com/langchain-ai/langchain/pull/13364](https://github.com/langchain-ai/langchain/pull/13364) - Update `templates/rag-self-query` with newer dependencies without CVEs. by [@​obi1kenobi](https://github.com/obi1kenobi) in [https://github.com/langchain-ai/langchain/pull/13362](https://github.com/langchain-ai/langchain/pull/13362) - Add limit_to_domains to APIChain based tools by [@​fielding](https://github.com/fielding) in [https://github.com/langchain-ai/langchain/pull/13367](https://github.com/langchain-ai/langchain/pull/13367) - api doc newlines by [@​efriis](https://github.com/efriis) in [https://github.com/langchain-ai/langchain/pull/13378](https://github.com/langchain-ai/langchain/pull/13378) - docs integration cards site by [@​leo-gan](https://github.com/leo-gan) in [https://github.com/langchain-ai/langchain/pull/13379](https://github.com/langchain-ai/langchain/pull/13379) - Add some properties to NotionDBLoader by [@​kenta-takeuchi](https://github.com/kenta-takeuchi) in [https://github.com/langchain-ai/langchain/pull/13358](https://github.com/langchain-ai/langchain/pull/13358) - IMPROVEMENT more research-assistant configurability by [@​efriis](https://github.com/efriis) in [https://github.com/langchain-ai/langchain/pull/13312](https://github.com/langchain-ai/langchain/pull/13312) - Make it easier to subclass RunnableEach by [@​nfcampos](https://github.com/nfcampos) in [https://github.com/langchain-ai/langchain/pull/13346](https://github.com/langchain-ai/langchain/pull/13346) - Agent window management how to by [@​baskaryan](https://github.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/13033](https://github.com/langchain-ai/langchain/pull/13033) - Bedrock cohere embedding support by [@​celmore25](https://github.com/celmore25) in [https://github.com/langchain-ai/langchain/pull/13366](https://github.com/langchain-ai/langchain/pull/13366) - docs: install nit by [@​baskaryan](https://github.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/13380](https://github.com/langchain-ai/langchain/pull/13380) - Bagatur/update rag use case by [@​baskaryan](https://github.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/13319](https://github.com/langchain-ai/langchain/pull/13319) - Passthrough kwargs in runnable lambda by [@​nfcampos](https://github.com/nfcampos) in [https://github.com/langchain-ai/langchain/pull/13405](https://github.com/langchain-ai/langchain/pull/13405) - PGVector needs to close its connection if it is garbage collected by [@​Sumukh](https://github.com/Sumukh) in [https://github.com/langchain-ai/langchain/pull/13232](https://github.com/langchain-ai/langchain/pull/13232) - Fix Runnable Lambda Afunc Repr by [@​hinthornw](https://github.com/hinthornw) in [https://github.com/langchain-ai/langchain/pull/13413](https://github.com/langchain-ai/langchain/pull/13413) - Use secretstr for api keys for javelin-ai-gateway by [@​eyurtsev](https://github.com/eyurtsev) in [https://github.com/langchain-ai/langchain/pull/13417](https://github.com/langchain-ai/langchain/pull/13417) - FIX: Infer runnable agent single or multi action by [@​baskaryan](https://github.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/13412](https://github.com/langchain-ai/langchain/pull/13412) - bump 336, exp 44 by [@​baskaryan](https://github.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/13420](https://github.com/langchain-ai/langchain/pull/13420) - img update by [@​baskaryan](https://github.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/13421](https://github.com/langchain-ai/langchain/pull/13421) #### New Contributors - [@​IsakNyberg](https://github.com/IsakNyberg) made their first contribution in [https://github.com/langchain-ai/langchain/pull/13244](https://github.com/langchain-ai/langchain/pull/13244) - [@​glad4enkonm](https://github.com/glad4enkonm) made their first contribution in [https://github.com/langchain-ai/langchain/pull/12895](https://github.com/langchain-ai/langchain/pull/12895) - [@​dennisdegreef](https://github.com/dennisdegreef) made their first contribution in [https://github.com/langchain-ai/langchain/pull/13079](https://github.com/langchain-ai/langchain/pull/13079) - [@​marioangst](https://github.com/marioangst) made their first contribution in [https://github.com/langchain-ai/langchain/pull/13178](https://github.com/langchain-ai/langchain/pull/13178) - [@​AzeWZ](https://github.com/AzeWZ) made their first contribution in [https://github.com/langchain-ai/langchain/pull/13201](https://github.com/langchain-ai/langchain/pull/13201) - [@​Guillem96](https://github.com/Guillem96) made their first contribution in [https://github.com/langchain-ai/langchain/pull/13184](https://github.com/langchain-ai/langchain/pull/13184) - [@​shauryr](https://github.com/shauryr) made their first contribution in [https://github.com/langchain-ai/langchain/pull/13205](https://github.com/langchain-ai/langchain/pull/13205) - [@​langchain-infra](https://github.com/langchain-infra) made their first contribution in [https://github.com/langchain-ai/langchain/pull/13240](https://github.com/langchain-ai/langchain/pull/13240) - [@​Govind-S-B](https://github.com/Govind-S-B) made their first contribution in [https://github.com/langchain-ai/langchain/pull/13022](https://github.com/langchain-ai/langchain/pull/13022) - [@​juan-calvo-datatonic](https://github.com/juan-calvo-datatonic) made their first contribution in [https://github.com/langchain-ai/langchain/pull/13294](https://github.com/langchain-ai/langchain/pull/13294) - [@​chevalmuscle](https://github.com/chevalmuscle) made their first contribution in [https://github.com/langchain-ai/langchain/pull/11622](https://github.com/langchain-ai/langchain/pull/11622) - [@​Frank995](https://github.com/Frank995) made their first contribution in [https://github.com/langchain-ai/langchain/pull/13260](https://github.com/langchain-ai/langchain/pull/13260) - [@​takatost](https://github.com/takatost) made their first contribution in [https://github.com/langchain-ai/langchain/pull/11604](https://github.com/langchain-ai/langchain/pull/11604) - [@​iamleonie](https://github.com/iamleonie) made their first contribution in [https://github.com/langchain-ai/langchain/pull/13057](https://github.com/langchain-ai/langchain/pull/13057) - [@​konstantin-spiess](https://github.com/konstantin-spiess) made their first contribution in [https://github.com/langchain-ai/langchain/pull/13266](https://github.com/langchain-ai/langchain/pull/13266) - [@​ruiramos](https://github.com/ruiramos) made their first contribution in [https://github.com/langchain-ai/langchain/pull/8920](https://github.com/langchain-ai/langchain/pull/8920) - [@​mertkayhan](https://github.com/mertkayhan) made their first contribution in [https://github.com/langchain-ai/langchain/pull/6863](https://github.com/langchain-ai/langchain/pull/6863) - [@​kenta-takeuchi](https://github.com/kenta-takeuchi) made their first contribution in [https://github.com/langchain-ai/langchain/pull/13358](https://github.com/langchain-ai/langchain/pull/13358) - [@​celmore25](https://github.com/celmore25) made their first contribution in [https://github.com/langchain-ai/langchain/pull/13366](https://github.com/langchain-ai/langchain/pull/13366) - [@​Sumukh](https://github.com/Sumukh) made their first contribution in [https://github.com/langchain-ai/langchain/pull/13232](https://github.com/langchain-ai/langchain/pull/13232) **Full Changelog**: https://github.com/langchain-ai/langchain/compare/v0.0.335...v0.0.336 </details> <details> <summary>langchain-ai/langchainjs (langchain)</summary> ### [`v0.0.193`](https://github.com/langchain-ai/langchainjs/releases/tag/0.0.193) [Compare Source](https://github.com/langchain-ai/langchainjs/compare/0.0.192...0.0.193) #### What's Changed - Release 0.0.192 by [@​jacoblee93](https://github.com/jacoblee93) in [https://github.com/langchain-ai/langchainjs/pull/3311](https://github.com/langchain-ai/langchainjs/pull/3311) - Use .invoke for all agent docs and examples by [@​jacoblee93](https://github.com/jacoblee93) in [https://github.com/langchain-ai/langchainjs/pull/3319](https://github.com/langchain-ai/langchainjs/pull/3319) - \[AUTO-GENERATED] Add JSDoc examples to classes. by [@​bracesproul](https://github.com/bracesproul) in [https://github.com/langchain-ai/langchainjs/pull/3309](https://github.com/langchain-ai/langchainjs/pull/3309) - updated langchain stack img to be svg by [@​bracesproul](https://github.com/bracesproul) in [https://github.com/langchain-ai/langchainjs/pull/3324](https://github.com/langchain-ai/langchainjs/pull/3324) - \[AUTO-GENERATED] Add JSDoc examples to classes. by [@​bracesproul](https://github.com/bracesproul) in [https://github.com/langchain-ai/langchainjs/pull/3325](https://github.com/langchain-ai/langchainjs/pull/3325) - \[AUTO-GENERATED] Add JSDoc examples to classes. by [@​bracesproul](https://github.com/bracesproul) in [https://github.com/langchain-ai/langchainjs/pull/3327](https://github.com/langchain-ai/langchainjs/pull/3327) - \[AUTO-GENERATED] Add JSDoc examples to classes. by [@​bracesproul](https://github.com/bracesproul) in [https://github.com/langchain-ai/langchainjs/pull/3329](https://github.com/langchain-ai/langchainjs/pull/3329) - \[AUTO-GENERATED] Add JSDoc examples to classes. by [@​bracesproul](https://github.com/bracesproul) in [https://github.com/langchain-ai/langchainjs/pull/3330](https://github.com/langchain-ai/langchainjs/pull/3330) - Update Ollama functions by [@​jacoblee93](https://github.com/jacoblee93) in [https://github.com/langchain-ai/langchainjs/pull/3336](https://github.com/langchain-ai/langchainjs/pull/3336) - Remove console.log from googlevertexai-connection.ts by [@​raioalbano](https://github.com/raioalbano) in [https://github.com/langchain-ai/langchainjs/pull/3322](https://github.com/langchain-ai/langchainjs/pull/3322) - Add batch size arg by [@​hinthornw](https://github.com/hinthornw) in [https://github.com/langchain-ai/langchainjs/pull/3310](https://github.com/langchain-ai/langchainjs/pull/3310) - feat: Added support of terms filter in OpenSearch vector store by [@​faileon](https://github.com/faileon) in [https://github.com/langchain-ai/langchainjs/pull/3312](https://github.com/langchain-ai/langchainjs/pull/3312) - Improve MessageContent type by [@​netzhuffle](https://github.com/netzhuffle) in [https://github.com/langchain-ai/langchainjs/pull/3318](https://github.com/langchain-ai/langchainjs/pull/3318) - Add missing PrismaVectorStore filter operators by [@​Njuelle](https://github.com/Njuelle) in [https://github.com/langchain-ai/langchainjs/pull/3321](https://github.com/langchain-ai/langchainjs/pull/3321) #### New Contributors - [@​raioalbano](https://github.com/raioalbano) made their first contribution in [https://github.com/langchain-ai/langchainjs/pull/3322](https://github.com/langchain-ai/langchainjs/pull/3322) - [@​faileon](https://github.com/faileon) made their first contribution in [https://github.com/langchain-ai/langchainjs/pull/3312](https://github.com/langchain-ai/langchainjs/pull/3312) - [@​netzhuffle](https://github.com/netzhuffle) made their first contribution in [https://github.com/langchain-ai/langchainjs/pull/3318](https://github.com/langchain-ai/langchainjs/pull/3318) **Full Changelog**: https://github.com/langchain-ai/langchainjs/compare/0.0.192...0.0.193 ### [`v0.0.192`](https://github.com/langchain-ai/langchainjs/releases/tag/0.0.192) [Compare Source](https://github.com/langchain-ai/langchainjs/compare/0.0.191...0.0.192) #### What's Changed - Release 0.0.191 by [@​jacoblee93](https://github.com/jacoblee93) in [https://github.com/langchain-ai/langchainjs/pull/3300](https://github.com/langchain-ai/langchainjs/pull/3300) - Delete artifacts by [@​jacoblee93](https://github.com/jacoblee93) in [https://github.com/langchain-ai/langchainjs/pull/3305](https://github.com/langchain-ai/langchainjs/pull/3305) - Add missing docs by [@​bracesproul](https://github.com/bracesproul) in [https://github.com/langchain-ai/langchainjs/pull/3290](https://github.com/langchain-ai/langchainjs/pull/3290) - Brace/new api refs build by [@​bracesproul](https://github.com/bracesproul) in [https://github.com/langchain-ai/langchainjs/pull/3303](https://github.com/langchain-ai/langchainjs/pull/3303) - Fix broken fetch usage for CFW by [@​dqbd](https://github.com/dqbd) in [https://github.com/langchain-ai/langchainjs/pull/3302](https://github.com/langchain-ai/langchainjs/pull/3302) - Bump Anthropic + OpenAI versions by [@​jacoblee93](https://github.com/jacoblee93) in [https://github.com/langchain-ai/langchainjs/pull/3308](https://github.com/langchain-ai/langchainjs/pull/3308) - Hotfix pdf by [@​jacoblee93](https://github.com/jacoblee93) in [https://github.com/langchain-ai/langchainjs/pull/3306](https://github.com/langchain-ai/langchainjs/pull/3306) - Add PrismaVectorStore filter IN operator by [@​Njuelle](https://github.com/Njuelle) in [https://github.com/langchain-ai/langchainjs/pull/3304](https://github.com/langchain-ai/langchainjs/pull/3304) - feat(apify): support Document\[] return type for mapping function by [@​omikader](https://github.com/omikader) in [https://github.com/langchain-ai/langchainjs/pull/3262](https://github.com/langchain-ai/langchainjs/pull/3262) - Integrate Rockset as a vector store by [@​kwadhwa18](https://github.com/kwadhwa18) in [https://github.com/langchain-ai/langchainjs/pull/3231](https://github.com/langchain-ai/langchainjs/pull/3231) - feat: add file-system based cache by [@​vdeturckheim](https://github.com/vdeturckheim) in [https://github.com/langchain-ai/langchainjs/pull/3089](https://github.com/langchain-ai/langchainjs/pull/3089) #### New Contributors - [@​Njuelle](https://github.com/Njuelle) made their first contribution in [https://github.com/langchain-ai/langchainjs/pull/3304](https://github.com/langchain-ai/langchainjs/pull/3304) - [@​kwadhwa18](https://github.com/kwadhwa18) made their first contribution in [https://github.com/langchain-ai/langchainjs/pull/3231](https://github.com/langchain-ai/langchainjs/pull/3231) - [@​vdeturckheim](https://github.com/vdeturckheim) made their first contribution in [https://github.com/langchain-ai/langchainjs/pull/3089](https://github.com/langchain-ai/langchainjs/pull/3089) **Full Changelog**: https://github.com/langchain-ai/langchainjs/compare/0.0.191...0.0.192 ### [`v0.0.191`](https://github.com/langchain-ai/langchainjs/releases/tag/0.0.191) [Compare Source](https://github.com/langchain-ai/langchainjs/compare/0.0.190...0.0.191) #### What's Changed - Release 0.0.190 by [@​jacoblee93](https://github.com/jacoblee93) in [https://github.com/langchain-ai/langchainjs/pull/3298](https://github.com/langchain-ai/langchainjs/pull/3298) **Full Changelog**: https://github.com/langchain-ai/langchainjs/compare/0.0.190...0.0.191 ### [`v0.0.190`](https://github.com/langchain-ai/langchainjs/releases/tag/0.0.190) [Compare Source](https://github.com/langchain-ai/langchainjs/compare/0.0.189...0.0.190) #### What's Changed - Release 0.0.189 by [@​jacoblee93](https://github.com/jacoblee93) in [https://github.com/langchain-ai/langchainjs/pull/3278](https://github.com/langchain-ai/langchainjs/pull/3278) - Brace/move syntaxtypes up by [@​bracesproul](https://github.com/bracesproul) in [https://github.com/langchain-ai/langchainjs/pull/3281](https://github.com/langchain-ai/langchainjs/pull/3281) - Brace/api refs css by [@​bracesproul](https://github.com/bracesproul) in [https://github.com/langchain-ai/langchainjs/pull/3282](https://github.com/langchain-ai/langchainjs/pull/3282) - Added runnable to xml agent, moved legacy to hidden page by [@​bracesproul](https://github.com/bracesproul) in [https://github.com/langchain-ai/langchainjs/pull/3287](https://github.com/langchain-ai/langchainjs/pull/3287) - redo intro docs page by [@​bracesproul](https://github.com/bracesproul) in [https://github.com/langchain-ai/langchainjs/pull/3288](https://github.com/langchain-ai/langchainjs/pull/3288) - Add better docstrings for runnables by [@​bracesproul](https://github.com/bracesproul) in [https://github.com/langchain-ai/langchainjs/pull/3291](https://github.com/langchain-ai/langchainjs/pull/3291) - Update HTTP response output parser logic by [@​jacoblee93](https://github.com/jacoblee93) in [https://github.com/langchain-ai/langchainjs/pull/3295](https://github.com/langchain-ai/langchainjs/pull/3295) **Full Changelog**: https://github.com/langchain-ai/langchainjs/compare/0.0.189...0.0.190 ### [`v0.0.189`](https://github.com/langchain-ai/langchainjs/releases/tag/0.0.189) [Compare Source](https://github.com/langchain-ai/langchainjs/compare/0.0.188...0.0.189) #### What's Changed - Release 0.0.188 by [@​jacoblee93](https://github.com/jacoblee93) in [https://github.com/langchain-ai/langchainjs/pull/3276](https://github.com/langchain-ai/langchainjs/pull/3276) - Revert Cohere update by [@​jacoblee93](https://github.com/jacoblee93) in [https://github.com/langchain-ai/langchainjs/pull/3277](https://github.com/langchain-ai/langchainjs/pull/3277) **Full Changelog**: https://github.com/langchain-ai/langchainjs/compare/0.0.188...0.0.189 ### [`v0.0.188`](https://github.com/langchain-ai/langchainjs/releases/tag/0.0.188) [Compare Source](https://github.com/langchain-ai/langchainjs/compare/0.0.187...0.0.188) #### What's Changed - Release 0.0.187 by [@​jacoblee93](https://github.com/jacoblee93) in [https://github.com/langchain-ai/langchainjs/pull/3255](https://github.com/langchain-ai/langchainjs/pull/3255) - Break words on api refs sidebar instead of scrolling by [@​bracesproul](https://github.com/bracesproul) in [https://github.com/langchain-ai/langchainjs/pull/3265](https://github.com/langchain-ai/langchainjs/pull/3265) - Use replaceAll instead of replace when generating operationid. by [@​Manouchehri](https://github.com/Manouchehri) in [https://github.com/langchain-ai/langchainjs/pull/3267](https://github.com/langchain-ai/langchainjs/pull/3267) - Brace/bump cohere by [@​bracesproul](https://github.com/bracesproul) in [https://github.com/langchain-ai/langchainjs/pull/3263](https://github.com/langchain-ai/langchainjs/pull/3263) - Added documentation for few shot prompting by [@​bracesproul](https://github.com/bracesproul) in [https://github.com/langchain-ai/langchainjs/pull/3122](https://github.com/langchain-ai/langchainjs/pull/3122) - Allow custom system prompt for Ollama functions by [@​jacoblee93](https://github.com/jacoblee93) in [https://github.com/langchain-ai/langchainjs/pull/3264](https://github.com/langchain-ai/langchainjs/pull/3264) - Brace/add ignore with tsmorph by [@​bracesproul](https://github.com/bracesproul) in [https://github.com/langchain-ai/langchainjs/pull/3271](https://github.com/langchain-ai/langchainjs/pull/3271) - Added rag over code example by [@​bracesproul](https://github.com/bracesproul) in [https://github.com/langchain-ai/langchainjs/pull/3109](https://github.com/langchain-ai/langchainjs/pull/3109) - Meta Llama2 support for BedrockChat by [@​shafkevi](https://github.com/shafkevi) in [https://github.com/langchain-ai/langchainjs/pull/3260](https://github.com/langchain-ai/langchainjs/pull/3260) - Adds HTTP output parser to parse chunks into different content types by [@​jacoblee93](https://github.com/jacoblee93) in [https://github.com/langchain-ai/lang </details> --- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on Monday" (UTC), 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://github.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:eyJjcmVhdGVkSW5WZXIiOiIzNy41OS44IiwidXBkYXRlZEluVmVyIjoiMzcuNTkuOCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
… configurable chat prompt format (langchain-ai#8295) ## Update 2023-09-08 This PR now supports further models in addition to Lllama-2 chat models. See [this comment](#issuecomment-1668988543) for further details. The title of this PR has been updated accordingly. ## Original PR description This PR adds a generic `Llama2Chat` model, a wrapper for LLMs able to serve Llama-2 chat models (like `LlamaCPP`, `HuggingFaceTextGenInference`, ...). It implements `BaseChatModel`, converts a list of chat messages into the [required Llama-2 chat prompt format](https://huggingface.co/blog/llama2#how-to-prompt-llama-2) and forwards the formatted prompt as `str` to the wrapped `LLM`. Usage example: ```python # uses a locally hosted Llama2 chat model llm = HuggingFaceTextGenInference( inference_server_url="http://127.0.0.1:8080/", max_new_tokens=512, top_k=50, temperature=0.1, repetition_penalty=1.03, ) # Wrap llm to support Llama2 chat prompt format. # Resulting model is a chat model model = Llama2Chat(llm=llm) messages = [ SystemMessage(content="You are a helpful assistant."), MessagesPlaceholder(variable_name="chat_history"), HumanMessagePromptTemplate.from_template("{text}"), ] prompt = ChatPromptTemplate.from_messages(messages) memory = ConversationBufferMemory(memory_key="chat_history", return_messages=True) chain = LLMChain(llm=model, prompt=prompt, memory=memory) # use chat model in a conversation # ... ``` Also part of this PR are tests and a demo notebook. - Tag maintainer: @hwchase17 - Twitter handle: `@mrt1nz` --------- Co-authored-by: Erick Friis <[email protected]>
Update 2023-09-08
This PR now supports further models in addition to Lllama-2 chat models. See this comment for further details. The title of this PR has been updated accordingly.
Original PR description
This PR adds a generic
Llama2Chat
model, a wrapper for LLMs able to serve Llama-2 chat models (likeLlamaCPP
,HuggingFaceTextGenInference
, ...). It implementsBaseChatModel
, converts a list of chat messages into the required Llama-2 chat prompt format and forwards the formatted prompt asstr
to the wrappedLLM
. Usage example:Also part of this PR are tests and a demo notebook.
@mrt1nz