Skip to content
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

community: Replaced hardcoded "metadata" with FIELDS_METADATA variable in semantic_hybrid_search_with_score_and_rerank #15642

Merged
merged 1 commit into from
Jan 7, 2024

Conversation

raunakshrivastava7
Copy link
Contributor

  • Description: This PR is to fix a bug in semantic_hybrid_search_with_score_and_rerank() function in langchain_community/vectorstores/azuresearch.py. The hardcoded "metadata" name is replaced with FIELDS_METADATA variable with an if block to check if the metadata column exists or not.
  • Issue: Fixed metadata is not properly processed when the field does not exists #15581
  • Dependencies: No
  • Twitter handle: None

Copy link

vercel bot commented Jan 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
langchain ⬜️ Ignored (Inspect) Visit Preview Jan 6, 2024 9:01pm

@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. Ɑ: vector store Related to vector store module 🤖:bug Related to a bug, vulnerability, unexpected error with an existing feature labels Jan 6, 2024
@dosubot dosubot bot added the lgtm PR looks good. Use to confirm that a PR is ready for merging. label Jan 7, 2024
@hwchase17 hwchase17 merged commit 64f5968 into langchain-ai:master Jan 7, 2024
57 checks passed
nicolewhite referenced this pull request in autoblocksai/autoblocks-examples Jan 22, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[@types/node](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node)
([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node))
| [`20.10.6` ->
`20.11.5`](https://renovatebot.com/diffs/npm/@types%2fnode/20.10.6/20.11.5)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2fnode/20.11.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2fnode/20.11.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2fnode/20.10.6/20.11.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2fnode/20.10.6/20.11.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[@types/node](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node)
([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node))
| [`20.11.3` ->
`20.11.5`](https://renovatebot.com/diffs/npm/@types%2fnode/20.11.3/20.11.5)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2fnode/20.11.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2fnode/20.11.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2fnode/20.11.3/20.11.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2fnode/20.11.3/20.11.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [autoprefixer](https://togithub.com/postcss/autoprefixer) | [`10.4.16`
->
`10.4.17`](https://renovatebot.com/diffs/npm/autoprefixer/10.4.16/10.4.17)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/autoprefixer/10.4.17?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/autoprefixer/10.4.17?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/autoprefixer/10.4.16/10.4.17?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/autoprefixer/10.4.16/10.4.17?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://togithub.com/vercel/next.js/tree/HEAD/packages/eslint-config-next))
| [`14.0.4` ->
`14.1.0`](https://renovatebot.com/diffs/npm/eslint-config-next/14.0.4/14.1.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/eslint-config-next/14.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/eslint-config-next/14.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/eslint-config-next/14.0.4/14.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/eslint-config-next/14.0.4/14.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| flask ([changelog](https://flask.palletsprojects.com/changes/)) |
`3.0.0` -> `3.0.1` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/flask/3.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/flask/3.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/flask/3.0.0/3.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/flask/3.0.0/3.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [langchain](https://togithub.com/langchain-ai/langchain) | `0.1.0` ->
`0.1.1` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/langchain/0.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/langchain/0.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/langchain/0.1.0/0.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/langchain/0.1.0/0.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [langchain](https://togithub.com/langchain-ai/langchainjs) | [`0.1.3`
-> `0.1.5`](https://renovatebot.com/diffs/npm/langchain/0.1.3/0.1.5) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/langchain/0.1.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/langchain/0.1.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/langchain/0.1.3/0.1.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/langchain/0.1.3/0.1.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [next](https://nextjs.org)
([source](https://togithub.com/vercel/next.js)) | [`14.0.4` ->
`14.1.0`](https://renovatebot.com/diffs/npm/next/14.0.4/14.1.0) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/next/14.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/next/14.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/next/14.0.4/14.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/next/14.0.4/14.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [nodemon](https://nodemon.io)
([source](https://togithub.com/remy/nodemon)) | [`3.0.2` ->
`3.0.3`](https://renovatebot.com/diffs/npm/nodemon/3.0.2/3.0.3) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/nodemon/3.0.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/nodemon/3.0.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/nodemon/3.0.2/3.0.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/nodemon/3.0.2/3.0.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [openai](https://togithub.com/openai/openai-python) | `1.7.2` ->
`1.9.0` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/openai/1.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/openai/1.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/openai/1.7.2/1.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/openai/1.7.2/1.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [openai](https://togithub.com/openai/openai-node) | [`4.24.1` ->
`4.25.0`](https://renovatebot.com/diffs/npm/openai/4.24.1/4.25.0) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/openai/4.25.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/openai/4.25.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/openai/4.24.1/4.25.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/openai/4.24.1/4.25.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [openai](https://togithub.com/openai/openai-node) | [`4.24.7` ->
`4.25.0`](https://renovatebot.com/diffs/npm/openai/4.24.7/4.25.0) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/openai/4.25.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/openai/4.25.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/openai/4.24.7/4.25.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/openai/4.24.7/4.25.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>postcss/autoprefixer (autoprefixer)</summary>

###
[`v10.4.17`](https://togithub.com/postcss/autoprefixer/blob/HEAD/CHANGELOG.md#10417)

[Compare
Source](https://togithub.com/postcss/autoprefixer/compare/10.4.16...10.4.17)

-   Fixed `user-select: contain` prefixes.

</details>

<details>
<summary>vercel/next.js (eslint-config-next)</summary>

###
[`v14.1.0`](https://togithub.com/vercel/next.js/compare/v14.0.4...v14.1.0)

[Compare
Source](https://togithub.com/vercel/next.js/compare/v14.0.4...v14.1.0)

</details>

<details>
<summary>langchain-ai/langchain (langchain)</summary>

###
[`v0.1.1`](https://togithub.com/langchain-ai/langchain/releases/tag/v0.1.1)

[Compare
Source](https://togithub.com/langchain-ai/langchain/compare/v0.1.0...v0.1.1)

##### What's Changed

- community\[patch]: fix deprecation warnings on openai subclasses by
[@&#8203;efriis](https://togithub.com/efriis) in
[https://github.com/langchain-ai/langchain/pull/15621](https://togithub.com/langchain-ai/langchain/pull/15621)
- experimental\[patch]: Release 0.0.48 by
[@&#8203;baskaryan](https://togithub.com/baskaryan) in
[https://github.com/langchain-ai/langchain/pull/15483](https://togithub.com/langchain-ai/langchain/pull/15483)
- move output parser table by
[@&#8203;hwchase17](https://togithub.com/hwchase17) in
[https://github.com/langchain-ai/langchain/pull/15637](https://togithub.com/langchain-ai/langchain/pull/15637)
- docs: langchain-openai by
[@&#8203;efriis](https://togithub.com/efriis) in
[https://github.com/langchain-ai/langchain/pull/15513](https://togithub.com/langchain-ai/langchain/pull/15513)
- fix docs build by [@&#8203;hwchase17](https://togithub.com/hwchase17)
in
[https://github.com/langchain-ai/langchain/pull/15645](https://togithub.com/langchain-ai/langchain/pull/15645)
- community: Replaced hardcoded "metadata" with FIELDS_METADATA variable
in semantic_hybrid_search_with_score_and_rerank by
[@&#8203;raunakshrivastava7](https://togithub.com/raunakshrivastava7) in
[https://github.com/langchain-ai/langchain/pull/15642](https://togithub.com/langchain-ai/langchain/pull/15642)
- templates: 0.1 bump by [@&#8203;efriis](https://togithub.com/efriis)
in
[https://github.com/langchain-ai/langchain/pull/15648](https://togithub.com/langchain-ai/langchain/pull/15648)
- community: Fixed bug of "system message check" in chat_models/tongyi.
by [@&#8203;Yuffie](https://togithub.com/Yuffie) in
[https://github.com/langchain-ai/langchain/pull/15631](https://togithub.com/langchain-ai/langchain/pull/15631)
- Update openai_tools.ipynb by
[@&#8203;reachusama](https://togithub.com/reachusama) in
[https://github.com/langchain-ai/langchain/pull/15649](https://togithub.com/langchain-ai/langchain/pull/15649)
- community: Provide more actionable errors in the MathPix PDF loader by
[@&#8203;chadnorvell](https://togithub.com/chadnorvell) in
[https://github.com/langchain-ai/langchain/pull/15630](https://togithub.com/langchain-ai/langchain/pull/15630)
- community: Include PDF ID in MathPix metadata by
[@&#8203;chadnorvell](https://togithub.com/chadnorvell) in
[https://github.com/langchain-ai/langchain/pull/15629](https://togithub.com/langchain-ai/langchain/pull/15629)
- community: Allow deleting by ID and collection in `pgvector` by
[@&#8203;chadnorvell](https://togithub.com/chadnorvell) in
[https://github.com/langchain-ai/langchain/pull/15627](https://togithub.com/langchain-ai/langchain/pull/15627)
- docs: add changelog by
[@&#8203;baskaryan](https://togithub.com/baskaryan) in
[https://github.com/langchain-ai/langchain/pull/15606](https://togithub.com/langchain-ai/langchain/pull/15606)
- Adding reading source for Curie model by
[@&#8203;Ammar-Azman](https://togithub.com/Ammar-Azman) in
[https://github.com/langchain-ai/langchain/pull/15569](https://togithub.com/langchain-ai/langchain/pull/15569)
- changed broken link for wandb tracing with agent by
[@&#8203;VpkPrasanna](https://togithub.com/VpkPrasanna) in
[https://github.com/langchain-ai/langchain/pull/15578](https://togithub.com/langchain-ai/langchain/pull/15578)
- fix: Fix DEFAULT_API_KEY for ArgillaCallbackHandler by
[@&#8203;kursathalat](https://togithub.com/kursathalat) in
[https://github.com/langchain-ai/langchain/pull/15534](https://togithub.com/langchain-ai/langchain/pull/15534)
- community: Correct Input API Key Name in Notebook and Enhance
Readability of Comments for ZhipuAI Chat Model by
[@&#8203;linancn](https://togithub.com/linancn) in
[https://github.com/langchain-ai/langchain/pull/15529](https://togithub.com/langchain-ai/langchain/pull/15529)
- Feat: add CHM file loader by
[@&#8203;chyroc](https://togithub.com/chyroc) in
[https://github.com/langchain-ai/langchain/pull/15519](https://togithub.com/langchain-ai/langchain/pull/15519)
- fix: Ollama import statements by
[@&#8203;shauryr](https://togithub.com/shauryr) in
[https://github.com/langchain-ai/langchain/pull/15493](https://togithub.com/langchain-ai/langchain/pull/15493)
- Docs: fix excel document loader typo by
[@&#8203;chyroc](https://togithub.com/chyroc) in
[https://github.com/langchain-ai/langchain/pull/15470](https://togithub.com/langchain-ai/langchain/pull/15470)
- community: fix: should flush after inserting data on milvus by
[@&#8203;EeyoreLee](https://togithub.com/EeyoreLee) in
[https://github.com/langchain-ai/langchain/pull/15568](https://togithub.com/langchain-ai/langchain/pull/15568)
- update ragatouille integration by
[@&#8203;hwchase17](https://togithub.com/hwchase17) in
[https://github.com/langchain-ai/langchain/pull/15658](https://togithub.com/langchain-ai/langchain/pull/15658)
- Docs: Add missing import of 'ConfigurableField' in 'Full code
comparison' example in LCEL by
[@&#8203;abzachshan](https://togithub.com/abzachshan) in
[https://github.com/langchain-ai/langchain/pull/15661](https://togithub.com/langchain-ai/langchain/pull/15661)
- Populate streamed_output for all runs handled by
atransform_stream_with_config by
[@&#8203;nfcampos](https://togithub.com/nfcampos) in
[https://github.com/langchain-ai/langchain/pull/15599](https://togithub.com/langchain-ai/langchain/pull/15599)
- Do not issue beta or deprecation warnings on internal calls by
[@&#8203;nfcampos](https://togithub.com/nfcampos) in
[https://github.com/langchain-ai/langchain/pull/15641](https://togithub.com/langchain-ai/langchain/pull/15641)
- core\[patch]: Release 0.1.8 by
[@&#8203;baskaryan](https://togithub.com/baskaryan) in
[https://github.com/langchain-ai/langchain/pull/15677](https://togithub.com/langchain-ai/langchain/pull/15677)
- community\[patch]: Release 0.0.10 by
[@&#8203;baskaryan](https://togithub.com/baskaryan) in
[https://github.com/langchain-ai/langchain/pull/15678](https://togithub.com/langchain-ai/langchain/pull/15678)
- dont use docarray by
[@&#8203;hwchase17](https://togithub.com/hwchase17) in
[https://github.com/langchain-ai/langchain/pull/15710](https://togithub.com/langchain-ai/langchain/pull/15710)
- docs: add LangGraph by
[@&#8203;baskaryan](https://togithub.com/baskaryan) in
[https://github.com/langchain-ai/langchain/pull/15682](https://togithub.com/langchain-ai/langchain/pull/15682)
- community\[patch]: Support different Pinecone initializations
depending on the version by
[@&#8203;efriis](https://togithub.com/efriis) in
[https://github.com/langchain-ai/langchain/pull/15717](https://togithub.com/langchain-ai/langchain/pull/15717)
- bugfix/fix table in documentation for langchain-community by
[@&#8203;mingkang111](https://togithub.com/mingkang111) in
[https://github.com/langchain-ai/langchain/pull/15716](https://togithub.com/langchain-ai/langchain/pull/15716)
- core(minor): Add a way to print out system information for debugging
purposes. by [@&#8203;eyurtsev](https://togithub.com/eyurtsev) in
[https://github.com/langchain-ai/langchain/pull/15718](https://togithub.com/langchain-ai/langchain/pull/15718)
- Add doc for AstraDB document loader by
[@&#8203;cbornet](https://togithub.com/cbornet) in
[https://github.com/langchain-ai/langchain/pull/15703](https://togithub.com/langchain-ai/langchain/pull/15703)
- Fix AstraDB logical operator filtering by
[@&#8203;cbornet](https://togithub.com/cbornet) in
[https://github.com/langchain-ai/langchain/pull/15699](https://togithub.com/langchain-ai/langchain/pull/15699)
- langchain-docs: Correct the word "iteratively" in use-cases
documentation by [@&#8203;untilhamza](https://togithub.com/untilhamza)
in
[https://github.com/langchain-ai/langchain/pull/15697](https://togithub.com/langchain-ai/langchain/pull/15697)
- community: fix myscale delete function bug by
[@&#8203;IANTHEREAL](https://togithub.com/IANTHEREAL) in
[https://github.com/langchain-ai/langchain/pull/15675](https://togithub.com/langchain-ai/langchain/pull/15675)
- docs: update aws_dynamodb integration doc by
[@&#8203;sweetkane](https://togithub.com/sweetkane) in
[https://github.com/langchain-ai/langchain/pull/15666](https://togithub.com/langchain-ai/langchain/pull/15666)
- experimental: minimum version bump by
[@&#8203;efriis](https://togithub.com/efriis) in
[https://github.com/langchain-ai/langchain/pull/15722](https://togithub.com/langchain-ai/langchain/pull/15722)
- experimental\[patch]: minimum version bump by
[@&#8203;efriis](https://togithub.com/efriis) in
[https://github.com/langchain-ai/langchain/pull/15724](https://togithub.com/langchain-ai/langchain/pull/15724)
- langchain(patch): Fix output type for pydantic output parser by
[@&#8203;eyurtsev](https://togithub.com/eyurtsev) in
[https://github.com/langchain-ai/langchain/pull/15714](https://togithub.com/langchain-ai/langchain/pull/15714)
- Make packages optional by
[@&#8203;hinthornw](https://togithub.com/hinthornw) in
[https://github.com/langchain-ai/langchain/pull/15727](https://togithub.com/langchain-ai/langchain/pull/15727)
- Update template to direct questions to discussions rather than issues
by [@&#8203;eyurtsev](https://togithub.com/eyurtsev) in
[https://github.com/langchain-ai/langchain/pull/15721](https://togithub.com/langchain-ai/langchain/pull/15721)
- CI: Fix template for questions by
[@&#8203;eyurtsev](https://togithub.com/eyurtsev) in
[https://github.com/langchain-ai/langchain/pull/15756](https://togithub.com/langchain-ai/langchain/pull/15756)
- docs: remove unnecessary description by
[@&#8203;morugu](https://togithub.com/morugu) in
[https://github.com/langchain-ai/langchain/pull/15752](https://togithub.com/langchain-ai/langchain/pull/15752)
- experimental\[patch]: loosen core max version by
[@&#8203;baskaryan](https://togithub.com/baskaryan) in
[https://github.com/langchain-ai/langchain/pull/15763](https://togithub.com/langchain-ai/langchain/pull/15763)
- community\[patch]: release 0.0.11 by
[@&#8203;efriis](https://togithub.com/efriis) in
[https://github.com/langchain-ai/langchain/pull/15760](https://togithub.com/langchain-ai/langchain/pull/15760)
- docs: fix recognition by
[@&#8203;baskaryan](https://togithub.com/baskaryan) in
[https://github.com/langchain-ai/langchain/pull/15769](https://togithub.com/langchain-ai/langchain/pull/15769)
- docs: integration package pip installs by
[@&#8203;efriis](https://togithub.com/efriis) in
[https://github.com/langchain-ai/langchain/pull/15762](https://togithub.com/langchain-ai/langchain/pull/15762)
- robocorp\[minor]: Add robocorp action server toolkit by
[@&#8203;efriis](https://togithub.com/efriis) in
[https://github.com/langchain-ai/langchain/pull/15766](https://togithub.com/langchain-ai/langchain/pull/15766)
- community\[patch]: update oai deprecation message by
[@&#8203;baskaryan](https://togithub.com/baskaryan) in
[https://github.com/langchain-ai/langchain/pull/15681](https://togithub.com/langchain-ai/langchain/pull/15681)
- openai\[patch], docs: readme by
[@&#8203;efriis](https://togithub.com/efriis) in
[https://github.com/langchain-ai/langchain/pull/15773](https://togithub.com/langchain-ai/langchain/pull/15773)
- openai\[patch]: unit test load by
[@&#8203;efriis](https://togithub.com/efriis) in
[https://github.com/langchain-ai/langchain/pull/15624](https://togithub.com/langchain-ai/langchain/pull/15624)
- templates: robocorp action server template by
[@&#8203;efriis](https://togithub.com/efriis) in
[https://github.com/langchain-ai/langchain/pull/15776](https://togithub.com/langchain-ai/langchain/pull/15776)
-   robocorp\[patch]: fix readme, release 0.0.1.post1
by [@&#8203;efriis](https://togithub.com/efriis) in
[https://github.com/langchain-ai/langchain/pull/15777](https://togithub.com/langchain-ai/langchain/pull/15777)
- core\[patch]: add alternative_import to deprecated by
[@&#8203;efriis](https://togithub.com/efriis) in
[https://github.com/langchain-ai/langchain/pull/15781](https://togithub.com/langchain-ai/langchain/pull/15781)
- community: fix qianfan chat stream calling caused exception by
[@&#8203;danielhjz](https://togithub.com/danielhjz) in
[https://github.com/langchain-ai/langchain/pull/13800](https://togithub.com/langchain-ai/langchain/pull/13800)
- Add neo4j semantic layer template by
[@&#8203;tomasonjo](https://togithub.com/tomasonjo) in
[https://github.com/langchain-ai/langchain/pull/15652](https://togithub.com/langchain-ai/langchain/pull/15652)
- mistralai\[patch]: persist async client by
[@&#8203;efriis](https://togithub.com/efriis) in
[https://github.com/langchain-ai/langchain/pull/15786](https://togithub.com/langchain-ai/langchain/pull/15786)
- mistralai\[patch]: warn on stop token, fix on_llm_new_token by
[@&#8203;efriis](https://togithub.com/efriis) in
[https://github.com/langchain-ai/langchain/pull/15787](https://togithub.com/langchain-ai/langchain/pull/15787)
- docs: collapse structured use case by
[@&#8203;baskaryan](https://togithub.com/baskaryan) in
[https://github.com/langchain-ai/langchain/pull/15791](https://togithub.com/langchain-ai/langchain/pull/15791)
- core\[patch]: release 0.1.9 by
[@&#8203;efriis](https://togithub.com/efriis) in
[https://github.com/langchain-ai/langchain/pull/15794](https://togithub.com/langchain-ai/langchain/pull/15794)
- community\[patch]: more deprecations by
[@&#8203;efriis](https://togithub.com/efriis) in
[https://github.com/langchain-ai/langchain/pull/15782](https://togithub.com/langchain-ai/langchain/pull/15782)
- langchain\[patch]: Improve stream_log with AgentExecutor and Runnable
Agent by [@&#8203;eyurtsev](https://togithub.com/eyurtsev) in
[https://github.com/langchain-ai/langchain/pull/15792](https://togithub.com/langchain-ai/langchain/pull/15792)
- add dspy notebook by
[@&#8203;hwchase17](https://togithub.com/hwchase17) in
[https://github.com/langchain-ai/langchain/pull/15798](https://togithub.com/langchain-ai/langchain/pull/15798)
- semantic chunker by
[@&#8203;hwchase17](https://togithub.com/hwchase17) in
[https://github.com/langchain-ai/langchain/pull/15799](https://togithub.com/langchain-ai/langchain/pull/15799)
- experimental\[patch]: Release 0.0.49 by
[@&#8203;baskaryan](https://togithub.com/baskaryan) in
[https://github.com/langchain-ai/langchain/pull/15823](https://togithub.com/langchain-ai/langchain/pull/15823)
- infra: explicit py path by
[@&#8203;baskaryan](https://togithub.com/baskaryan) in
[https://github.com/langchain-ai/langchain/pull/15826](https://togithub.com/langchain-ai/langchain/pull/15826)
- ISSUE_TEMPLATE: Update issue template by
[@&#8203;eyurtsev](https://togithub.com/eyurtsev) in
[https://github.com/langchain-ai/langchain/pull/15757](https://togithub.com/langchain-ai/langchain/pull/15757)
- Infra: Fix syntax error in BUG REPORT template by
[@&#8203;eyurtsev](https://togithub.com/eyurtsev) in
[https://github.com/langchain-ai/langchain/pull/15831](https://togithub.com/langchain-ai/langchain/pull/15831)
- More updates to issue template by
[@&#8203;eyurtsev](https://togithub.com/eyurtsev) in
[https://github.com/langchain-ai/langchain/pull/15833](https://togithub.com/langchain-ai/langchain/pull/15833)
- infra: fix issue preview by
[@&#8203;eyurtsev](https://togithub.com/eyurtsev) in
[https://github.com/langchain-ai/langchain/pull/15836](https://togithub.com/langchain-ai/langchain/pull/15836)
- add raga reranker by
[@&#8203;hwchase17](https://togithub.com/hwchase17) in
[https://github.com/langchain-ai/langchain/pull/15838](https://togithub.com/langchain-ai/langchain/pull/15838)
- Add unit tests to test openai tools agent by
[@&#8203;eyurtsev](https://togithub.com/eyurtsev) in
[https://github.com/langchain-ai/langchain/pull/15843](https://togithub.com/langchain-ai/langchain/pull/15843)
- TogetherAI RAG by
[@&#8203;rlancemartin](https://togithub.com/rlancemartin) in
[https://github.com/langchain-ai/langchain/pull/15846](https://togithub.com/langchain-ai/langchain/pull/15846)
- docs: fix links by [@&#8203;baskaryan](https://togithub.com/baskaryan)
in
[https://github.com/langchain-ai/langchain/pull/15848](https://togithub.com/langchain-ai/langchain/pull/15848)
- community\[patch]: pinecone v3 support by
[@&#8203;efriis](https://togithub.com/efriis) in
[https://github.com/langchain-ai/langchain/pull/15849](https://togithub.com/langchain-ai/langchain/pull/15849)
- Update Evals Notebook by
[@&#8203;hinthornw](https://togithub.com/hinthornw) in
[https://github.com/langchain-ai/langchain/pull/15851](https://togithub.com/langchain-ai/langchain/pull/15851)
- together\[minor]: add llm by
[@&#8203;efriis](https://togithub.com/efriis) in
[https://github.com/langchain-ai/langchain/pull/15853](https://togithub.com/langchain-ai/langchain/pull/15853)
- Add NVIDIA Canonical RAG example chain by
[@&#8203;SagarBM396](https://togithub.com/SagarBM396) in
[https://github.com/langchain-ai/langchain/pull/15758](https://togithub.com/langchain-ai/langchain/pull/15758)
- docs: Update cohere.mdx, Text embedding had incorrect code snippet by
[@&#8203;daniel-cohere](https://togithub.com/daniel-cohere) in
[https://github.com/langchain-ai/langchain/pull/15840](https://togithub.com/langchain-ai/langchain/pull/15840)
- \[docs] add beautiful soup dependency by
[@&#8203;hwchase17](https://togithub.com/hwchase17) in
[https://github.com/langchain-ai/langchain/pull/15860](https://togithub.com/langchain-ai/langchain/pull/15860)
- Community : Modified doc strings and example notebook for Clarifai by
[@&#8203;mogith-pn](https://togithub.com/mogith-pn) in
[https://github.com/langchain-ai/langchain/pull/15816](https://togithub.com/langchain-ai/langchain/pull/15816)
- community: add collection_properties parameter to Milvus by
[@&#8203;axiangcoding](https://togithub.com/axiangcoding) in
[https://github.com/langchain-ai/langchain/pull/15788](https://togithub.com/langchain-ai/langchain/pull/15788)
- Docs: Fix a typo in elasticsearch vectorstore notebook by
[@&#8203;xvjixiang](https://togithub.com/xvjixiang) in
[https://github.com/langchain-ai/langchain/pull/15807](https://togithub.com/langchain-ai/langchain/pull/15807)
- Add document loader section to Astra provider doc page by
[@&#8203;cbornet](https://togithub.com/cbornet) in
[https://github.com/langchain-ai/langchain/pull/15882](https://togithub.com/langchain-ai/langchain/pull/15882)
- docs\[patch]: Fix bad headers in output parser docs by
[@&#8203;jacoblee93](https://togithub.com/jacoblee93) in
[https://github.com/langchain-ai/langchain/pull/15778](https://togithub.com/langchain-ai/langchain/pull/15778)
- Docs\[patch]: Update agent quick start for agents by
[@&#8203;eyurtsev](https://togithub.com/eyurtsev) in
[https://github.com/langchain-ai/langchain/pull/15892](https://togithub.com/langchain-ai/langchain/pull/15892)
- Docs\[patch]: Update OpenAI tools agent description by
[@&#8203;eyurtsev](https://togithub.com/eyurtsev) in
[https://github.com/langchain-ai/langchain/pull/15896](https://togithub.com/langchain-ai/langchain/pull/15896)
- community\[patch]: pinecone bug by
[@&#8203;efriis](https://togithub.com/efriis) in
[https://github.com/langchain-ai/langchain/pull/15905](https://togithub.com/langchain-ai/langchain/pull/15905)
- add old serializable mapping by
[@&#8203;hwchase17](https://togithub.com/hwchase17) in
[https://github.com/langchain-ai/langchain/pull/15906](https://togithub.com/langchain-ai/langchain/pull/15906)
- core\[patch]: release 0.1.10 by
[@&#8203;efriis](https://togithub.com/efriis) in
[https://github.com/langchain-ai/langchain/pull/15911](https://togithub.com/langchain-ai/langchain/pull/15911)
- mistralai\[patch]: release 0.0.2 by
[@&#8203;efriis](https://togithub.com/efriis) in
[https://github.com/langchain-ai/langchain/pull/15912](https://togithub.com/langchain-ai/langchain/pull/15912)
- Pass config specs through ensemble retriever by
[@&#8203;nfcampos](https://togithub.com/nfcampos) in
[https://github.com/langchain-ai/langchain/pull/15917](https://togithub.com/langchain-ai/langchain/pull/15917)
- Rm deprecated by [@&#8203;hinthornw](https://togithub.com/hinthornw)
in
[https://github.com/langchain-ai/langchain/pull/15920](https://togithub.com/langchain-ai/langchain/pull/15920)
- Passthrough configurable primitive values as tracer metadata by
[@&#8203;nfcampos](https://togithub.com/nfcampos) in
[https://github.com/langchain-ai/langchain/pull/15915](https://togithub.com/langchain-ai/langchain/pull/15915)
- \<langchain_community.vectorstores>:<Fix pinecone.py __init__
docsrting instruction> by
[@&#8203;yacine555](https://togithub.com/yacine555) in
[https://github.com/langchain-ai/langchain/pull/15922](https://togithub.com/langchain-ai/langchain/pull/15922)
- langchain: fix OutputParserException
([#&#8203;15914](https://togithub.com/langchain-ai/langchain/issues/15914))
by [@&#8203;JanHorcicka](https://togithub.com/JanHorcicka) in
[https://github.com/langchain-ai/langchain/pull/15916](https://togithub.com/langchain-ai/langchain/pull/15916)
- feat(community): make Amadeus toolkit LLM-agnostic by
[@&#8203;mspronesti](https://togithub.com/mspronesti) in
[https://github.com/langchain-ai/langchain/pull/15879](https://togithub.com/langchain-ai/langchain/pull/15879)
- feat: Implement `stream` interface by
[@&#8203;apepkuss](https://togithub.com/apepkuss) in
[https://github.com/langchain-ai/langchain/pull/15875](https://togithub.com/langchain-ai/langchain/pull/15875)
- community: Ollama - Pass headers to post request by
[@&#8203;shahrin014](https://togithub.com/shahrin014) in
[https://github.com/langchain-ai/langchain/pull/15881](https://togithub.com/langchain-ai/langchain/pull/15881)
- PR community:Removing knn beta content in mongodb atlas vectorstore by
[@&#8203;manishsahni2000](https://togithub.com/manishsahni2000) in
[https://github.com/langchain-ai/langchain/pull/15865](https://togithub.com/langchain-ai/langchain/pull/15865)
- Add a BaseStore backed by AstraDB by
[@&#8203;cbornet](https://togithub.com/cbornet) in
[https://github.com/langchain-ai/langchain/pull/15812](https://togithub.com/langchain-ai/langchain/pull/15812)
- docs: redis_chat_message_history.ipynb integration doc by
[@&#8203;marsmxm](https://togithub.com/marsmxm) in
[https://github.com/langchain-ai/langchain/pull/15789](https://togithub.com/langchain-ai/langchain/pull/15789)
- Enable customizing the output parser of `OpenAIFunctionsAgent` by
[@&#8203;treisfeld](https://togithub.com/treisfeld) in
[https://github.com/langchain-ai/langchain/pull/15827](https://togithub.com/langchain-ai/langchain/pull/15827)
- community: Added functions to make async calls to HuggingFaceHub's
embedding endpoint in HuggingFaceHubEmbeddings class by
[@&#8203;raunakshrivastava7](https://togithub.com/raunakshrivastava7) in
[https://github.com/langchain-ai/langchain/pull/15737](https://togithub.com/langchain-ai/langchain/pull/15737)
- community: Add support of "http" URI for Milvus
([#&#8203;12710](https://togithub.com/langchain-ai/langchain/issues/12710))
by [@&#8203;ohbeep](https://togithub.com/ohbeep) in
[https://github.com/langchain-ai/langchain/pull/15683](https://togithub.com/langchain-ai/langchain/pull/15683)
- langchain-google-genai\[patch]: Add support for end_point and
transport parameters to the Gemini API by
[@&#8203;enfeng](https://togithub.com/enfeng) in
[https://github.com/langchain-ai/langchain/pull/15532](https://togithub.com/langchain-ai/langchain/pull/15532)
- community: Support milvus partition key. by
[@&#8203;zc277584121](https://togithub.com/zc277584121) in
[https://github.com/langchain-ai/langchain/pull/15740](https://togithub.com/langchain-ai/langchain/pull/15740)
- openai\[patch]: 0.0.2.post1, urls by
[@&#8203;efriis](https://togithub.com/efriis) in
[https://github.com/langchain-ai/langchain/pull/15961](https://togithub.com/langchain-ai/langchain/pull/15961)
- infra: retry release if not found on test pypi by
[@&#8203;efriis](https://togithub.com/efriis) in
[https://github.com/langchain-ai/langchain/pull/15913](https://togithub.com/langchain-ai/langchain/pull/15913)
- docs: Update Robocorp Action Server installation instructions by
[@&#8203;rihardsgravis](https://togithub.com/rihardsgravis) in
[https://github.com/langchain-ai/langchain/pull/15943](https://togithub.com/langchain-ai/langchain/pull/15943)
- multiple\[patch]: .post releases and pyproject metadata by
[@&#8203;efriis](https://togithub.com/efriis) in
[https://github.com/langchain-ai/langchain/pull/15962](https://togithub.com/langchain-ai/langchain/pull/15962)
- docs: add agent prompt creation examples by
[@&#8203;baskaryan](https://togithub.com/baskaryan) in
[https://github.com/langchain-ai/langchain/pull/15957](https://togithub.com/langchain-ai/langchain/pull/15957)
- Add documentation for AstraDBStore by
[@&#8203;cbornet](https://togithub.com/cbornet) in
[https://github.com/langchain-ai/langchain/pull/15953](https://togithub.com/langchain-ai/langchain/pull/15953)
- community: Fixing a performance issue with AzureSearch to perform
batch embedding by [@&#8203;msetbar](https://togithub.com/msetbar) in
[https://github.com/langchain-ai/langchain/pull/15594](https://togithub.com/langchain-ai/langchain/pull/15594)
- community: fix the "page" mode in the
AzureAIDocumentIntelligenceParser (bug) by
[@&#8203;EdwinWenink](https://togithub.com/EdwinWenink) in
[https://github.com/langchain-ai/langchain/pull/15958](https://togithub.com/langchain-ai/langchain/pull/15958)
- stop making copies of inputs by
[@&#8203;hwchase17](https://togithub.com/hwchase17) in
[https://github.com/langchain-ai/langchain/pull/15926](https://togithub.com/langchain-ai/langchain/pull/15926)
- community: Added Lantern as VectorStore by
[@&#8203;var77](https://togithub.com/var77) in
[https://github.com/langchain-ai/langchain/pull/12951](https://togithub.com/langchain-ai/langchain/pull/12951)
- Batch update of alt text and title attributes for images in md/mdx
files across repo by
[@&#8203;jonathanalgar](https://togithub.com/jonathanalgar) in
[https://github.com/langchain-ai/langchain/pull/15357](https://togithub.com/langchain-ai/langchain/pull/15357)
- community\[patch]: release 0.0.12 by
[@&#8203;efriis](https://togithub.com/efriis) in
[https://github.com/langchain-ai/langchain/pull/15973](https://togithub.com/langchain-ai/langchain/pull/15973)
- community\[patch]: core min 0.1.9 by
[@&#8203;efriis](https://togithub.com/efriis) in
[https://github.com/langchain-ai/langchain/pull/15974](https://togithub.com/langchain-ai/langchain/pull/15974)
- community: Add PolygonAPIWrapper and get_last_quote endpoint by
[@&#8203;virattt](https://togithub.com/virattt) in
[https://github.com/langchain-ai/langchain/pull/15971](https://togithub.com/langchain-ai/langchain/pull/15971)
- docs: agent table fix by
[@&#8203;baskaryan](https://togithub.com/baskaryan) in
[https://github.com/langchain-ai/langchain/pull/15964](https://togithub.com/langchain-ai/langchain/pull/15964)
- core\[patch]: simple prompt pretty printing by
[@&#8203;baskaryan](https://togithub.com/baskaryan) in
[https://github.com/langchain-ai/langchain/pull/15968](https://togithub.com/langchain-ai/langchain/pull/15968)
- docs: more pip installs by
[@&#8203;efriis](https://togithub.com/efriis) in
[https://github.com/langchain-ai/langchain/pull/15771](https://togithub.com/langchain-ai/langchain/pull/15771)
- community: add new gpt-3.5-turbo-1106 finetuned for cost calculation
by [@&#8203;nirkopler](https://togithub.com/nirkopler) in
[https://github.com/langchain-ai/langchain/pull/16039](https://togithub.com/langchain-ai/langchain/pull/16039)
- docs: fix documentation broken link in integrations chroma by
[@&#8203;Mahad-lab](https://togithub.com/Mahad-lab) in
[https://github.com/langchain-ai/langchain/pull/16041](https://togithub.com/langchain-ai/langchain/pull/16041)
- docs: fix self query diagram by
[@&#8203;baskaryan](https://togithub.com/baskaryan) in
[https://github.com/langchain-ai/langchain/pull/16043](https://togithub.com/langchain-ai/langchain/pull/16043)
- community: Ollama - Parameter structure to follow official
documentation by [@&#8203;shahrin014](https://togithub.com/shahrin014)
in
[https://github.com/langchain-ai/langchain/pull/16035](https://togithub.com/langchain-ai/langchain/pull/16035)
- \[community]\[vectorstores]\[SurrealDBStore] Fix to match SurrealDB
0.3.2 SDK by [@&#8203;lalanikarim](https://togithub.com/lalanikarim) in
[https://github.com/langchain-ai/langchain/pull/15996](https://togithub.com/langchain-ai/langchain/pull/15996)
- \[community]\[document loaders] Added document loader for SurrealDB by
[@&#8203;lalanikarim](https://togithub.com/lalanikarim) in
[https://github.com/langchain-ai/langchain/pull/15995](https://togithub.com/langchain-ai/langchain/pull/15995)
- community : Fixed 'coroutine' object is not subscriptable error by
[@&#8203;raunakshrivastava7](https://togithub.com/raunakshrivastava7) in
[https://github.com/langchain-ai/langchain/pull/15986](https://togithub.com/langchain-ai/langchain/pull/15986)
- docs: fix typo in inspect runnables docs by
[@&#8203;rokn](https://togithub.com/rokn) in
[https://github.com/langchain-ai/langchain/pull/15994](https://togithub.com/langchain-ai/langchain/pull/15994)
- Community: Adding asynchronous function implementation for Doctran by
[@&#8203;CsEnox](https://togithub.com/CsEnox) in
[https://github.com/langchain-ai/langchain/pull/15941](https://togithub.com/langchain-ai/langchain/pull/15941)
- feat: add additional support for `BigQueryVectorSearch` by
[@&#8203;ashleyxuu](https://togithub.com/ashleyxuu) in
[https://github.com/langchain-ai/langchain/pull/15904](https://togithub.com/langchain-ai/langchain/pull/15904)
- docs(community): update Amadeus toolkit to langchain v0.1 by
[@&#8203;mspronesti](https://togithub.com/mspronesti) in
[https://github.com/langchain-ai/langchain/pull/15976](https://togithub.com/langchain-ai/langchain/pull/15976)
- \[docs] Integration Documentation updated run to invoke for
llms/ai21.ipynb by
[@&#8203;bhadreshpsavani](https://togithub.com/bhadreshpsavani) in
[https://github.com/langchain-ai/langchain/pull/15889](https://togithub.com/langchain-ai/langchain/pull/15889)
- refactor `output_parsers` Rail by
[@&#8203;leo-gan](https://togithub.com/leo-gan) in
[https://github.com/langchain-ai/langchain/pull/15852](https://togithub.com/langchain-ai/langchain/pull/15852)
- Add AstraDB self query retriever by
[@&#8203;cbornet](https://togithub.com/cbornet) in
[https://github.com/langchain-ai/langchain/pull/15738](https://togithub.com/langchain-ai/langchain/pull/15738)
- community: fix a bug that mistakenly handle zip iterator in
FAISS.from_embeddings by
[@&#8203;neozhao98](https://togithub.com/neozhao98) in
[https://github.com/langchain-ai/langchain/pull/16020](https://togithub.com/langchain-ai/langchain/pull/16020)
- docs: update baidu_qianfan_endpoint.ipynb doc by
[@&#8203;Bigtable123](https://togithub.com/Bigtable123) in
[https://github.com/langchain-ai/langchain/pull/15940](https://togithub.com/langchain-ai/langchain/pull/15940)
- community: jaguar vector store fix integer-element error when joining
metadata values by [@&#8203;fserv](https://togithub.com/fserv) in
[https://github.com/langchain-ai/langchain/pull/15939](https://togithub.com/langchain-ai/langchain/pull/15939)
- Docs\[patch]: Add info admonitions to a few agents by
[@&#8203;eyurtsev](https://togithub.com/eyurtsev) in
[https://github.com/langchain-ai/langchain/pull/15899](https://togithub.com/langchain-ai/langchain/pull/15899)
- Docs: Update OpenAI functions agent by
[@&#8203;eyurtsev](https://togithub.com/eyurtsev) in
[https://github.com/langchain-ai/langchain/pull/15894](https://togithub.com/langchain-ai/langchain/pull/15894)
- community: deprecate ErnieBotChat and ErnieEmbeddings classes by
[@&#8203;axiangcoding](https://togithub.com/axiangcoding) in
[https://github.com/langchain-ai/langchain/pull/15862](https://togithub.com/langchain-ai/langchain/pull/15862)
- Fixing the SlackGetChannel Tool Input Error by
[@&#8203;keenborder786](https://togithub.com/keenborder786) in
[https://github.com/langchain-ai/langchain/pull/15725](https://togithub.com/langchain-ai/langchain/pull/15725)
- feat: add a flag that determines whether to load the milvus collection
by [@&#8203;rere950303](https://togithub.com/rere950303) in
[https://github.com/langchain-ai/langchain/pull/15693](https://togithub.com/langchain-ai/langchain/pull/15693)
- community: Update pgvecto_rs to use its high level sdk by
[@&#8203;BeautyyuYanli](https://togithub.com/BeautyyuYanli) in
[https://github.com/langchain-ai/langchain/pull/15574](https://togithub.com/langchain-ai/langchain/pull/15574)
- langchain-community: add documentation for Firestore Chat Message
History integration by
[@&#8203;averikitsch](https://togithub.com/averikitsch) in
[https://github.com/langchain-ai/langchain/pull/15554](https://togithub.com/langchain-ai/langchain/pull/15554)
- fix tongyi completion and params error by
[@&#8203;Funkeke](https://togithub.com/Funkeke) in
[https://github.com/langchain-ai/langchain/pull/15544](https://togithub.com/langchain-ai/langchain/pull/15544)
- Fix: stop (stop_sequences) param on WatsonxLLM by
[@&#8203;MateuszOssGit](https://togithub.com/MateuszOssGit) in
[https://github.com/langchain-ai/langchain/pull/15541](https://togithub.com/langchain-ai/langchain/pull/15541)
- Fix: fix top_p type hint by
[@&#8203;chyroc](https://togithub.com/chyroc) in
[https://github.com/langchain-ai/langchain/pull/15452](https://togithub.com/langchain-ai/langchain/pull/15452)
- community: JsonRequestsWrapper by
[@&#8203;hanzhichao2000](https://togithub.com/hanzhichao2000) in
[https://github.com/langchain-ai/langchain/pull/15374](https://togithub.com/langchain-ai/langchain/pull/15374)
- community: Refactor OpenAIWhisperParserLocal by
[@&#8203;andrijdavid](https://togithub.com/andrijdavid) in
[https://github.com/langchain-ai/langchain/pull/15150](https://togithub.com/langchain-ai/langchain/pull/15150)
- add vikingdb and embedding by
[@&#8203;19374242](https://togithub.com/19374242) in
[https://github.com/langchain-ai/langchain/pull/15155](https://togithub.com/langchain-ai/langchain/pull/15155)
- langchain\[patch]: fix requests lint by
[@&#8203;baskaryan](https://togithub.com/baskaryan) in
[https://github.com/langchain-ai/langchain/pull/16049](https://togithub.com/langchain-ai/langchain/pull/16049)
- community: implement adelete from VectorStore in Qdrant by
[@&#8203;AntonioMorales97](https://togithub.com/AntonioMorales97) in
[https://github.com/langchain-ai/langchain/pull/16005](https://togithub.com/langchain-ai/langchain/pull/16005)
- community\[patch]: add vector param to index query for pinecone vec
store by [@&#8203;jamescalam](https://togithub.com/jamescalam) in
[https://github.com/langchain-ai/langchain/pull/16054](https://togithub.com/langchain-ai/langchain/pull/16054)
- community\[patch]: release 0.0.13 by
[@&#8203;efriis](https://togithub.com/efriis) in
[https://github.com/langchain-ai/langchain/pull/16087](https://togithub.com/langchain-ai/langchain/pull/16087)
- Add unit test for overridden lc_namespace by
[@&#8203;nfcampos](https://togithub.com/nfcampos) in
[https://github.com/langchain-ai/langchain/pull/16093](https://togithub.com/langchain-ai/langchain/pull/16093)
- core\[patch]: pass exceptions to fallbacks by
[@&#8203;baskaryan](https://togithub.com/baskaryan) in
[https://github.com/langchain-ai/langchain/pull/16048](https://togithub.com/langchain-ai/langchain/pull/16048)
- core\[patch]: Release 0.1.11 by
[@&#8203;baskaryan](https://togithub.com/baskaryan) in
[https://github.com/langchain-ai/langchain/pull/16100](https://togithub.com/langchain-ai/langchain/pull/16100)
- Update elasticsearch.ipynb by
[@&#8203;bustosjuan](https://togithub.com/bustosjuan) in
[https://github.com/langchain-ai/langchain/pull/16090](https://togithub.com/langchain-ai/langchain/pull/16090)
- Add doc for AstraDB self retriever by
[@&#8203;cbornet](https://togithub.com/cbornet) in
[https://github.com/langchain-ai/langchain/pull/16077](https://togithub.com/langchain-ai/langchain/pull/16077)
- langchain\[patch]: Release 0.1.1 by
[@&#8203;baskaryan](https://togithub.com/baskaryan) in
[https://github.com/langchain-ai/langchain/pull/16103](https://togithub.com/langchain-ai/langchain/pull/16103)
- langchain\[patch]: bump core dep to 0.1.9 by
[@&#8203;baskaryan](https://togithub.com/baskaryan) in
[https://github.com/langchain-ai/langchain/pull/16104](https://togithub.com/langchain-ai/langchain/pull/16104)
- docs: tool-use use case by
[@&#8203;baskaryan](https://togithub.com/baskaryan) in
[https://github.com/langchain-ai/langchain/pull/15783](https://togithub.com/langchain-ai/langchain/pull/15783)

##### New Contributors

- [@&#8203;raunakshrivastava7](https://togithub.com/raunakshrivastava7)
made their first contribution in
[https://github.com/langchain-ai/langchain/pull/15642](https://togithub.com/langchain-ai/langchain/pull/15642)
- [@&#8203;Yuffie](https://togithub.com/Yuffie) made their first
contribution in
[https://github.com/langchain-ai/langchain/pull/15631](https://togithub.com/langchain-ai/langchain/pull/15631)
- [@&#8203;reachusama](https://togithub.com/reachusama) made their first
contribution in
[https://github.com/langchain-ai/langchain/pull/15649](https://togithub.com/langchain-ai/langchain/pull/15649)
- [@&#8203;Ammar-Azman](https://togithub.com/Ammar-Azman) made their
first contribution in
[https://github.com/langchain-ai/langchain/pull/15569](https://togithub.com/langchain-ai/langchain/pull/15569)
- [@&#8203;kursathalat](https://togithub.com/kursathalat) made their
first contribution in
[https://github.com/langchain-ai/langchain/pull/15534](https://togithub.com/langchain-ai/langchain/pull/15534)
- [@&#8203;EeyoreLee](https://togithub.com/EeyoreLee) made their first
contribution in
[https://github.com/langchain-ai/langchain/pull/15568](https://togithub.com/langchain-ai/langchain/pull/15568)
- [@&#8203;abzachshan](https://togithub.com/abzachshan) made their first
contribution in
[https://github.com/langchain-ai/langchain/pull/15661](https://togithub.com/langchain-ai/langchain/pull/15661)
- [@&#8203;morugu](https://togithub.com/morugu) made their first
contribution in
[https://github.com/langchain-ai/langchain/pull/15752](https://togithub.com/langchain-ai/langchain/pull/15752)
- [@&#8203;SagarBM396](https://togithub.com/SagarBM396) made their first
contribution in
[https://github.com/langchain-ai/langchain/pull/15758](https://togithub.com/langchain-ai/langchain/pull/15758)
- [@&#8203;daniel-cohere](https://togithub.com/daniel-cohere) made their
first contribution in
[https://github.com/langchain-ai/langchain/pull/15840](https://togithub.com/langchain-ai/langchain/pull/15840)
- [@&#8203;xvjixiang](https://togithub.com/xvjixiang) made their first
contribution in
[https://github.com/langchain-ai/langchain/pull/15807](https://togithub.com/langchain-ai/langchain/pull/15807)
- [@&#8203;JanHorcicka](https://togithub.com/JanHorcicka) made their
first contribution in
[https://github.com/langchain-ai/langchain/pull/15916](https://togithub.com/langchain-ai/langchain/pull/15916)
- [@&#8203;shahrin014](https://togithub.com/shahrin014) made their first
contribution in
[https://github.com/langchain-ai/langchain/pull/15881](https://togithub.com/langchain-ai/langchain/pull/15881)
- [@&#8203;manishsahni2000](https://togithub.com/manishsahni2000) made
their first contribution in
[https://github.com/langchain-ai/langchain/pull/15865](https://togithub.com/langchain-ai/langchain/pull/15865)
- [@&#8203;marsmxm](https://togithub.com/marsmxm) made their first
contribution in
[https://github.com/langchain-ai/langchain/pull/15789](https://togithub.com/langchain-ai/langchain/pull/15789)
- [@&#8203;treisfeld](https://togithub.com/treisfeld) made their first
contribution in
[https://github.com/langchain-ai/langchain/pull/15827](https://togithub.com/langchain-ai/langchain/pull/15827)
- [@&#8203;ohbeep](https://togithub.com/ohbeep) made their first
contribution in
[https://github.com/langchain-ai/langchain/pull/15683](https://togithub.com/langchain-ai/langchain/pull/15683)
- [@&#8203;enfeng](https://togithub.com/enfeng) made their first
contribution in
[https://github.com/langchain-ai/langchain/pull/15532](https://togithub.com/langchain-ai/langchain/pull/15532)
- [@&#8203;zc277584121](https://togithub.com/zc277584121) made their
first contribution in
[https://github.com/langchain-ai/langchain/pull/15740](https://togithub.com/langchain-ai/langchain/pull/15740)
- [@&#8203;msetbar](https://togithub.com/msetbar) made their first
contribution in
[https://github.com/langchain-ai/langchain/pull/15594](https://togithub.com/langchain-ai/langchain/pull/15594)
- [@&#8203;EdwinWenink](https://togithub.com/EdwinWenink) made their
first contribution in
[https://github.com/langchain-ai/langchain/pull/15958](https://togithub.com/langchain-ai/langchain/pull/15958)
- [@&#8203;var77](https://togithub.com/var77) made their first
contribution in
[https://github.com/langchain-ai/langchain/pull/12951](https://togithub.com/langchain-ai/langchain/pull/12951)
- [@&#8203;jonathanalgar](https://togithub.com/jonathanalgar) made their
first contribution in
[https://github.com/langchain-ai/langchain/pull/15357](https://togithub.com/langchain-ai/langchain/pull/15357)
- [@&#8203;Mahad-lab](https://togithub.com/Mahad-lab) made their first
contribution in
[https://github.com/langchain-ai/langchain/pull/16041](https://togithub.com/langchain-ai/langchain/pull/16041)
- [@&#8203;rokn](https://togithub.com/rokn) made their first
contribution in
[https://github.com/langchain-ai/langchain/pull/15994](https://togithub.com/langchain-ai/langchain/pull/15994)
- [@&#8203;CsEnox](https://togithub.com/CsEnox) made their first
contribution in
[https://github.com/langchain-ai/langchain/pull/15941](https://togithub.com/langchain-ai/langchain/pull/15941)
- [@&#8203;bhadreshpsavani](https://togithub.com/bhadreshpsavani) made
their first contribution in
[https://github.com/langchain-ai/langchain/pull/15889](https://togithub.com/langchain-ai/langchain/pull/15889)
- [@&#8203;neozhao98](https://togithub.com/neozhao98) made their first
contribution in
[https://github.com/langchain-ai/langchain/pull/16020](https://togithub.com/langchain-ai/langchain/pull/16020)
- [@&#8203;Bigtable123](https://togithub.com/Bigtable123) made their
first contribution in
[https://github.com/langchain-ai/langchain/pull/15940](https://togithub.com/langchain-ai/langchain/pull/15940)
- [@&#8203;rere950303](https://togithub.com/rere950303) made their first
contribution in
[https://github.com/langchain-ai/langchain/pull/15693](https://togithub.com/langchain-ai/langchain/pull/15693)
- [@&#8203;averikitsch](https://togithub.com/averikitsch) made their
first contribution in
[https://github.com/langchain-ai/langchain/pull/15554](https://togithub.com/langchain-ai/langchain/pull/15554)
- [@&#8203;hanzhichao2000](https://togithub.com/hanzhichao2000) made
their first contribution in
[https://github.com/langchain-ai/langchain/pull/15374](https://togithub.com/langchain-ai/langchain/pull/15374)
- [@&#8203;andrijdavid](https://togithub.com/andrijdavid) made their
first contribution in
[https://github.com/langchain-ai/langchain/pull/15150](https://togithub.com/langchain-ai/langchain/pull/15150)
- [@&#8203;19374242](https://togithub.com/19374242) made their first
contribution in
[https://github.com/langchain-ai/langchain/pull/15155](https://togithub.com/langchain-ai/langchain/pull/15155)
- [@&#8203;AntonioMorales97](https://togithub.com/AntonioMorales97) made
their first contribution in
[https://github.com/langchain-ai/langchain/pull/16005](https://togithub.com/langchain-ai/langchain/pull/16005)

**Full Changelog**:
https://github.com/langchain-ai/langchain/compare/v0.1.0...v0.1.1

</details>

<details>
<summary>langchain-ai/langchainjs (langchain)</summary>

###
[`v0.1.5`](https://togithub.com/langchain-ai/langchainjs/releases/tag/0.1.5)

[Compare
Source](https://togithub.com/langchain-ai/langchainjs/compare/0.1.4...0.1.5)

#### What's Changed

- langchain\[patch]: Release 0.1.4 by
[@&#8203;jacoblee93](https://togithub.com/jacoblee93) in
[https://github.com/langchain-ai/langchainjs/pull/4072](https://togithub.com/langchain-ai/langchainjs/pull/4072)
- Add Pinecone integration by
[@&#8203;zackproser](https://togithub.com/zackproser) in
[https://github.com/langchain-ai/langchainjs/pull/4062](https://togithub.com/langchain-ai/langchainjs/pull/4062)
- langchain\[patch], community\[patch]: Allow Anthropic models to handle
function messages by
[@&#8203;jacoblee93](https://togithub.com/jacoblee93) in
[https://github.com/langchain-ai/langchainjs/pull/4076](https://togithub.com/langchain-ai/langchainjs/pull/4076)
- docs\[minor]: Autogenerate typedoc config, add to gitignore. by
[@&#8203;bracesproul](https://togithub.com/bracesproul) in
[https://github.com/langchain-ai/langchainjs/pull/4079](https://togithub.com/langchain-ai/langchainjs/pull/4079)
- all\[patch]: Run prettier on scripts folders too by
[@&#8203;bracesproul](https://togithub.com/bracesproul) in
[https://github.com/langchain-ai/langchainjs/pull/4080](https://togithub.com/langchain-ai/langchainjs/pull/4080)
- community\[patch]: Add fallback for missing metadata in Redis
documents by [@&#8203;jacoblee93](https://togithub.com/jacoblee93) in
[https://github.com/langchain-ai/langchainjs/pull/4085](https://togithub.com/langchain-ai/langchainjs/pull/4085)
- core\[minor]: Buffer the first chunk on .stream() calls to catch
streaming errors immediately on startup by
[@&#8203;jacoblee93](https://togithub.com/jacoblee93) in
[https://github.com/langchain-ai/langchainjs/pull/4083](https://togithub.com/langchain-ai/langchainjs/pull/4083)
- langchain\[minor]: update sql_utils: add schema for mssql by
[@&#8203;therajatg](https://togithub.com/therajatg) in
[https://github.com/langchain-ai/langchainjs/pull/4006](https://togithub.com/langchain-ai/langchainjs/pull/4006)
- langchain\[patch]: Correcting token text-splitting behavior by
[@&#8203;matthewdparker](https://togithub.com/matthewdparker) in
[https://github.com/langchain-ai/langchainjs/pull/4078](https://togithub.com/langchain-ai/langchainjs/pull/4078)
- core\[patch]: Release 0.1.17 by
[@&#8203;jacoblee93](https://togithub.com/jacoblee93) in
[https://github.com/langchain-ai/langchainjs/pull/4088](https://togithub.com/langchain-ai/langchainjs/pull/4088)
- community\[patch]: Release 0.0.19 by
[@&#8203;jacoblee93](https://togithub.com/jacoblee93) in
[https://github.com/langchain-ai/langchainjs/pull/4089](https://togithub.com/langchain-ai/langchainjs/pull/4089)
- langchain\[patch]: Increase remote runnable default timeout by
[@&#8203;jacoblee93](https://togithub.com/jacoblee93) in
[https://github.com/langchain-ai/langchainjs/pull/4090](https://togithub.com/langchain-ai/langchainjs/pull/4090)
- all\[patch]: add prettier config files by
[@&#8203;bracesproul](https://togithub.com/bracesproul) in
[https://github.com/langchain-ai/langchainjs/pull/4087](https://togithub.com/langchain-ai/langchainjs/pull/4087)
- scripts\[major]: Add LangChain scripts package by
[@&#8203;bracesproul](https://togithub.com/bracesproul) in
[https://github.com/langchain-ai/langchainjs/pull/4093](https://togithub.com/langchain-ai/langchainjs/pull/4093)
- scripts\[patch]: Revert version back to 0 by
[@&#8203;bracesproul](https://togithub.com/bracesproul) in
[https://github.com/langchain-ai/langchainjs/pull/4101](https://togithub.com/langchain-ai/langchainjs/pull/4101)
- Release `@langchain/scripts` 0.0.1 by
[@&#8203;bracesproul](https://togithub.com/bracesproul) in
[https://github.com/langchain-ai/langchainjs/pull/4102](https://togithub.com/langchain-ai/langchainjs/pull/4102)
- fixed issue
[#&#8203;4097](https://togithub.com/langchain-ai/langchainjs/issues/4097)
by [@&#8203;ritvikPuranik](https://togithub.com/ritvikPuranik) in
[https://github.com/langchain-ai/langchainjs/pull/4098](https://togithub.com/langchain-ai/langchainjs/pull/4098)
- langchain\[patch]: Allow headers to be passed in remote runnable
requests, docs by [@&#8203;jacoblee93](https://togithub.com/jacoblee93)
in
[https://github.com/langchain-ai/langchainjs/pull/4107](https://togithub.com/langchain-ai/langchainjs/pull/4107)
- langchain\[patch]: Release 0.1.5 by
[@&#8203;jacoblee93](https://togithub.com/jacoblee93) in
[https://github.com/langchain-ai/langchainjs/pull/4108](https://togithub.com/langchain-ai/langchainjs/pull/4108)

#### New Contributors

- [@&#8203;therajatg](https://togithub.com/therajatg) made their first
contribution in
[https://github.com/langchain-ai/langchainjs/pull/4006](https://togithub.com/langchain-ai/langchainjs/pull/4006)
- [@&#8203;matthewdparker](https://togithub.com/matthewdparker) made
their first contribut

</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:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMzUuMCIsInVwZGF0ZWRJblZlciI6IjM3LjEzNS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
baskaryan pushed a commit that referenced this pull request Mar 26, 2024
…#18938)

- **Description:** The `semantic_hybrid_search_with_score_and_rerank`
method of `AzureSearch` contains a hardcoded field name "metadata" for
the document metadata in the Azure AI Search Index. Adding such a field
is optional when creating an Azure AI Search Index, as other snippets
from `AzureSearch` test for the existence of this field before trying to
access it. Furthermore, the metadata field name shouldn't be hardcoded
as "metadata" and use the `FIELDS_METADATA` variable that defines this
field name instead. In the current implementation, any index without a
metadata field named "metadata" will yield an error if a semantic answer
is returned by the search in
`semantic_hybrid_search_with_score_and_rerank`.

- **Issue:** #18731

- **Prior fix to this bug:** This bug was fixed in this PR
#15642 by adding a check
for the existence of the metadata field named `FIELDS_METADATA` and
retrieving a value for the key called "key" in that metadata if it
exists. If the field named `FIELDS_METADATA` was not present, an empty
string was returned. This fix was removed in this PR
#15659 (see
ed1ffca).
@lz-chen: could you confirm this wasn't intentional? 

- **New fix to this bug:** I believe there was an oversight in the logic
of the fix from
[#1564](#15642) which I
explain below.
The `semantic_hybrid_search_with_score_and_rerank` method creates a
dictionary `semantic_answers_dict` with semantic answers returned by the
search as follows.

https://github.com/langchain-ai/langchain/blob/5c2f7e6b2b474248af63a5f0f726b1414c5467c8/libs/community/langchain_community/vectorstores/azuresearch.py#L574-L581
The keys in this dictionary are the unique document ids in the index, if
I understand the [documentation of semantic
answers](https://learn.microsoft.com/en-us/azure/search/semantic-answers)
in Azure AI Search correctly. When the method transforms a search result
into a `Document` object, an "answer" key is added to the document's
metadata. The value for this "answer" key should be the semantic answer
returned by the search from this document, if such an answer is
returned. The match between a `Document` object and the semantic answers
returned by the search should be done through the unique document id,
which is used as a key for the `semantic_answers_dict` dictionary. This
id is defined in the search result's field named `FIELDS_ID`. I added a
check to avoid any error in case no field named `FIELDS_ID` exists in a
search result (which shouldn't happen in theory).
A benefit of this approach is that this fix should work whether or not
the Azure AI Search Index contains a metadata field.

@levalencia could you confirm my analysis and test the fix?
@raunakshrivastava7 do you agree with the fix?

Thanks for the help!
gkorland pushed a commit to FalkorDB/langchain that referenced this pull request Mar 30, 2024
…langchain-ai#18938)

- **Description:** The `semantic_hybrid_search_with_score_and_rerank`
method of `AzureSearch` contains a hardcoded field name "metadata" for
the document metadata in the Azure AI Search Index. Adding such a field
is optional when creating an Azure AI Search Index, as other snippets
from `AzureSearch` test for the existence of this field before trying to
access it. Furthermore, the metadata field name shouldn't be hardcoded
as "metadata" and use the `FIELDS_METADATA` variable that defines this
field name instead. In the current implementation, any index without a
metadata field named "metadata" will yield an error if a semantic answer
is returned by the search in
`semantic_hybrid_search_with_score_and_rerank`.

- **Issue:** langchain-ai#18731

- **Prior fix to this bug:** This bug was fixed in this PR
langchain-ai#15642 by adding a check
for the existence of the metadata field named `FIELDS_METADATA` and
retrieving a value for the key called "key" in that metadata if it
exists. If the field named `FIELDS_METADATA` was not present, an empty
string was returned. This fix was removed in this PR
langchain-ai#15659 (see
langchain-ai@ed1ffca).
@lz-chen: could you confirm this wasn't intentional? 

- **New fix to this bug:** I believe there was an oversight in the logic
of the fix from
[langchain-ai#1564](langchain-ai#15642) which I
explain below.
The `semantic_hybrid_search_with_score_and_rerank` method creates a
dictionary `semantic_answers_dict` with semantic answers returned by the
search as follows.

https://github.com/langchain-ai/langchain/blob/5c2f7e6b2b474248af63a5f0f726b1414c5467c8/libs/community/langchain_community/vectorstores/azuresearch.py#L574-L581
The keys in this dictionary are the unique document ids in the index, if
I understand the [documentation of semantic
answers](https://learn.microsoft.com/en-us/azure/search/semantic-answers)
in Azure AI Search correctly. When the method transforms a search result
into a `Document` object, an "answer" key is added to the document's
metadata. The value for this "answer" key should be the semantic answer
returned by the search from this document, if such an answer is
returned. The match between a `Document` object and the semantic answers
returned by the search should be done through the unique document id,
which is used as a key for the `semantic_answers_dict` dictionary. This
id is defined in the search result's field named `FIELDS_ID`. I added a
check to avoid any error in case no field named `FIELDS_ID` exists in a
search result (which shouldn't happen in theory).
A benefit of this approach is that this fix should work whether or not
the Azure AI Search Index contains a metadata field.

@levalencia could you confirm my analysis and test the fix?
@raunakshrivastava7 do you agree with the fix?

Thanks for the help!
chrispy-snps pushed a commit to chrispy-snps/langchain that referenced this pull request Mar 30, 2024
…langchain-ai#18938)

- **Description:** The `semantic_hybrid_search_with_score_and_rerank`
method of `AzureSearch` contains a hardcoded field name "metadata" for
the document metadata in the Azure AI Search Index. Adding such a field
is optional when creating an Azure AI Search Index, as other snippets
from `AzureSearch` test for the existence of this field before trying to
access it. Furthermore, the metadata field name shouldn't be hardcoded
as "metadata" and use the `FIELDS_METADATA` variable that defines this
field name instead. In the current implementation, any index without a
metadata field named "metadata" will yield an error if a semantic answer
is returned by the search in
`semantic_hybrid_search_with_score_and_rerank`.

- **Issue:** langchain-ai#18731

- **Prior fix to this bug:** This bug was fixed in this PR
langchain-ai#15642 by adding a check
for the existence of the metadata field named `FIELDS_METADATA` and
retrieving a value for the key called "key" in that metadata if it
exists. If the field named `FIELDS_METADATA` was not present, an empty
string was returned. This fix was removed in this PR
langchain-ai#15659 (see
langchain-ai@ed1ffca).
@lz-chen: could you confirm this wasn't intentional? 

- **New fix to this bug:** I believe there was an oversight in the logic
of the fix from
[langchain-ai#1564](langchain-ai#15642) which I
explain below.
The `semantic_hybrid_search_with_score_and_rerank` method creates a
dictionary `semantic_answers_dict` with semantic answers returned by the
search as follows.

https://github.com/langchain-ai/langchain/blob/5c2f7e6b2b474248af63a5f0f726b1414c5467c8/libs/community/langchain_community/vectorstores/azuresearch.py#L574-L581
The keys in this dictionary are the unique document ids in the index, if
I understand the [documentation of semantic
answers](https://learn.microsoft.com/en-us/azure/search/semantic-answers)
in Azure AI Search correctly. When the method transforms a search result
into a `Document` object, an "answer" key is added to the document's
metadata. The value for this "answer" key should be the semantic answer
returned by the search from this document, if such an answer is
returned. The match between a `Document` object and the semantic answers
returned by the search should be done through the unique document id,
which is used as a key for the `semantic_answers_dict` dictionary. This
id is defined in the search result's field named `FIELDS_ID`. I added a
check to avoid any error in case no field named `FIELDS_ID` exists in a
search result (which shouldn't happen in theory).
A benefit of this approach is that this fix should work whether or not
the Azure AI Search Index contains a metadata field.

@levalencia could you confirm my analysis and test the fix?
@raunakshrivastava7 do you agree with the fix?

Thanks for the help!
hinthornw pushed a commit that referenced this pull request Apr 26, 2024
…#18938)

- **Description:** The `semantic_hybrid_search_with_score_and_rerank`
method of `AzureSearch` contains a hardcoded field name "metadata" for
the document metadata in the Azure AI Search Index. Adding such a field
is optional when creating an Azure AI Search Index, as other snippets
from `AzureSearch` test for the existence of this field before trying to
access it. Furthermore, the metadata field name shouldn't be hardcoded
as "metadata" and use the `FIELDS_METADATA` variable that defines this
field name instead. In the current implementation, any index without a
metadata field named "metadata" will yield an error if a semantic answer
is returned by the search in
`semantic_hybrid_search_with_score_and_rerank`.

- **Issue:** #18731

- **Prior fix to this bug:** This bug was fixed in this PR
#15642 by adding a check
for the existence of the metadata field named `FIELDS_METADATA` and
retrieving a value for the key called "key" in that metadata if it
exists. If the field named `FIELDS_METADATA` was not present, an empty
string was returned. This fix was removed in this PR
#15659 (see
ed1ffca).
@lz-chen: could you confirm this wasn't intentional? 

- **New fix to this bug:** I believe there was an oversight in the logic
of the fix from
[#1564](#15642) which I
explain below.
The `semantic_hybrid_search_with_score_and_rerank` method creates a
dictionary `semantic_answers_dict` with semantic answers returned by the
search as follows.

https://github.com/langchain-ai/langchain/blob/5c2f7e6b2b474248af63a5f0f726b1414c5467c8/libs/community/langchain_community/vectorstores/azuresearch.py#L574-L581
The keys in this dictionary are the unique document ids in the index, if
I understand the [documentation of semantic
answers](https://learn.microsoft.com/en-us/azure/search/semantic-answers)
in Azure AI Search correctly. When the method transforms a search result
into a `Document` object, an "answer" key is added to the document's
metadata. The value for this "answer" key should be the semantic answer
returned by the search from this document, if such an answer is
returned. The match between a `Document` object and the semantic answers
returned by the search should be done through the unique document id,
which is used as a key for the `semantic_answers_dict` dictionary. This
id is defined in the search result's field named `FIELDS_ID`. I added a
check to avoid any error in case no field named `FIELDS_ID` exists in a
search result (which shouldn't happen in theory).
A benefit of this approach is that this fix should work whether or not
the Azure AI Search Index contains a metadata field.

@levalencia could you confirm my analysis and test the fix?
@raunakshrivastava7 do you agree with the fix?

Thanks for the help!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖:bug Related to a bug, vulnerability, unexpected error with an existing feature lgtm PR looks good. Use to confirm that a PR is ready for merging. size:XS This PR changes 0-9 lines, ignoring generated files. Ɑ: vector store Related to vector store module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

metadata is not properly processed when the field does not exists
2 participants