You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/docs
Shotaro Sano 6c11c8dac6
docs: Add documentation of `ElasticsearchStore.BM25RetrievalStrategy` (#20098)
This pull request follows up on
https://github.com/langchain-ai/langchain/pull/19314 and
https://github.com/langchain-ai/langchain-elastic/pull/6, adding
documentation for the `ElasticsearchStore.BM25RetrievalStrategy`.

Like other retrieval strategies, we are now introducing
BM25RetrievalStrategy.

### Background
- The `BM25RetrievalStrategy` has been introduced to `langchain-elastic`
via the pull request
https://github.com/langchain-ai/langchain-elastic/pull/6.
- This PR was initially created in the main `langchain` repository but
was moved to `langchain-elastic` during the review process due to the
migration of the partner package.
- The original PR can be found at
https://github.com/langchain-ai/langchain/pull/19314.
- As
[commented](https://github.com/langchain-ai/langchain/pull/19314#issuecomment-2023202401)
by @joemcelroy, documenting the new retrieval strategy is part of the
requirements for its introduction.

Although the `BM25RetrievalStrategy` has been merged into
`langchain-elastic`, its documentation is still to be maintained in the
main `langchain` repository. Therefore, this pull request adds the
documentation portion of `BM25RetrievalStrategy`.

The content of the documentation remains the same as that included in
the original PR, https://github.com/langchain-ai/langchain/pull/19314.

---------

Co-authored-by: Max Jakob <max.jakob@elastic.co>
5 months ago
..
api_reference Community: Updating Azure Retriever and Docs to be Azure AI Search instead of Azure Cognitive Search (#19925) 5 months ago
data 👥 Update LangChain people data (#19858) 5 months ago
docs docs: Add documentation of `ElasticsearchStore.BM25RetrievalStrategy` (#20098) 5 months ago
scripts add script to check imports (#19611) 5 months ago
src docs: TogetherAI as a drop-in replacement for OpenAI (#19900) 5 months ago
static docs: reorg and visual refresh (#19765) 5 months ago
.gitignore docs[minor]: Swap gtag for supabase (#18937) 6 months ago
.local_build.sh docs: partner packages (#16960) 7 months ago
.yarnrc.yml docs[minor]: Add thumbs up/down to all docs pages (#18526) 6 months ago
README.md docs: developer docs (#14776) 8 months ago
babel.config.js Restructure docs (#11620) 11 months ago
code-block-loader.js Restructure docs (#11620) 11 months ago
docusaurus.config.js docs: fix title cap (#20048) 5 months ago
package.json ci[minor]: Bump LC scripts package, add retry option (#19285) 5 months ago
settings.ini Restructure docs (#11620) 11 months ago
sidebars.js docs: `graphs` update (#19675) 5 months ago
vercel.json docs[patch]: Add missing redirects (#20076) 5 months ago
vercel_build.sh docs[patch]: Revert quarto update (#19880) 5 months ago
vercel_requirements.txt infra: docs build install community editable (#14739) 9 months ago
yarn.lock ci[minor]: Bump LC scripts package, add retry option (#19285) 5 months ago

README.md

LangChain Documentation

For more information on contributing to our documentation, see the Documentation Contributing Guide