diff --git a/reference/python/docs/integrations/langchain_elasticsearch.md b/reference/python/docs/integrations/langchain_elasticsearch.md index bdbfdff228..00150d72ac 100644 --- a/reference/python/docs/integrations/langchain_elasticsearch.md +++ b/reference/python/docs/integrations/langchain_elasticsearch.md @@ -8,5 +8,8 @@ title: Elasticsearch [![PyPI - License](https://img.shields.io/pypi/l/langchain-elasticsearch)](https://opensource.org/licenses/MIT) [![PyPI - Downloads](https://img.shields.io/pepy/dt/langchain-elasticsearch)](https://pypistats.org/packages/langchain-elasticsearch) -!!! note - This package ref has not yet been fully migrated to v1. +::: langchain_elasticsearch._async.embeddings.AsyncElasticsearchEmbeddings +::: langchain_elasticsearch._async.vectorstores.AsyncElasticsearchStore +::: langchain_elasticsearch._async.retrievers.AsyncElasticsearchRetriever +::: langchain_elasticsearch._async.cache.AsyncElasticsearchCache +::: langchain_elasticsearch._async.cache.AsyncElasticsearchEmbeddingsCache diff --git a/reference/python/pyproject.dev.toml b/reference/python/pyproject.dev.toml index d43ec7df47..3a14bd0a66 100644 --- a/reference/python/pyproject.dev.toml +++ b/reference/python/pyproject.dev.toml @@ -28,12 +28,10 @@ dependencies = [ # Format / Lint "ruff>=0.13.0,<14.0.0", # Libraries - #"langchain-cli", "langchain-core", "langchain", "langchain-classic", "langchain-tests", - #"langchain-model-profiles", "langchain-text-splitters", "langchain-anthropic", "langchain-chroma", @@ -50,7 +48,6 @@ dependencies = [ "langchain-prompty", "langchain-qdrant", "langchain-xai", - #"langchain-experimental", "langchain-community", "langchain-mcp-adapters", "langchain-astradb", @@ -63,7 +60,7 @@ dependencies = [ "langchain-cerebras", "langchain-cohere", "langchain-db2", - #"langchain-elasticsearch", + "langchain-elasticsearch", "langchain-google-community", "langchain-google-genai", "langchain-google-vertexai", @@ -133,12 +130,10 @@ override-dependencies = [ ## LangChain monorepo packages (alphabetical) ### Top level ## TODO: re-map langchain-v1 on release, add legacy/classic -langchain-cli = { path = "../../../langchain/libs/cli", editable = true } langchain-core = { path = "../../../langchain/libs/core", editable = true } langchain = { path = "../../../langchain/libs/langchain_v1", editable = true } langchain-classic = { path = "../../../langchain/libs/langchain", editable = true } langchain-tests = { path = "../../../langchain/libs/standard-tests", editable = true } -#langchain-model-profiles = { path = "../../../langchain/libs/model-profiles", editable = true } langchain-text-splitters = { path = "../../../langchain/libs/text-splitters", editable = true } ### Partners @@ -158,9 +153,6 @@ langchain-prompty = { path = "../../../langchain/libs/partners/prompty", editabl langchain-qdrant = { path = "../../../langchain/libs/partners/qdrant", editable = true } langchain-xai = { path = "../../../langchain/libs/partners/xai", editable = true } -## Experimental -#langchain-experimental = { path = "../../../langchain-experimental/libs/experimental", editable = true } - ## Community langchain-community = { path = "../../../langchain-community/libs/community", editable = true } diff --git a/reference/python/pyproject.prod.toml b/reference/python/pyproject.prod.toml index 1e7a4b46a9..00a165809a 100644 --- a/reference/python/pyproject.prod.toml +++ b/reference/python/pyproject.prod.toml @@ -28,12 +28,10 @@ dependencies = [ # Format / Lint "ruff>=0.13.0,<14.0.0", # Libraries - #"langchain-cli", "langchain-core", "langchain", "langchain-classic", "langchain-tests", - #"langchain-model-profiles", "langchain-text-splitters", "langchain-anthropic", "langchain-chroma", @@ -50,7 +48,6 @@ dependencies = [ "langchain-prompty", "langchain-qdrant", "langchain-xai", - #"langchain-experimental", "langchain-community", "langchain-mcp-adapters", "langchain-astradb", @@ -63,7 +60,7 @@ dependencies = [ "langchain-cerebras", "langchain-cohere", "langchain-db2", - #"langchain-elasticsearch", + "langchain-elasticsearch", "langchain-google-community", "langchain-google-genai", "langchain-google-vertexai", @@ -123,12 +120,10 @@ override-dependencies = [ ## LangChain monorepo packages (alphabetical) ### Top level -#langchain-cli = { git = "https://github.com/langchain-ai/langchain.git", subdirectory = "libs/cli" } langchain-core = { git = "https://github.com/langchain-ai/langchain.git", subdirectory = "libs/core" } langchain = { git = "https://github.com/langchain-ai/langchain.git", subdirectory = "libs/langchain_v1" } langchain-classic = { git = "https://github.com/langchain-ai/langchain.git", subdirectory = "libs/langchain" } langchain-tests = { git = "https://github.com/langchain-ai/langchain.git", subdirectory = "libs/standard-tests" } -#langchain-model-profiles = { git = "https://github.com/langchain-ai/langchain.git", subdirectory = "libs/model-profiles" } langchain-text-splitters = { git = "https://github.com/langchain-ai/langchain.git", subdirectory = "libs/text-splitters" } ### Partners @@ -148,9 +143,6 @@ langchain-prompty = { git = "https://github.com/langchain-ai/langchain.git", sub langchain-qdrant = { git = "https://github.com/langchain-ai/langchain.git", subdirectory = "libs/partners/qdrant" } langchain-xai = { git = "https://github.com/langchain-ai/langchain.git", subdirectory = "libs/partners/xai" } -## Experimental -#langchain-experimental = { git = "https://github.com/langchain-ai/langchain-experimental.git", subdirectory = "libs/experimental" } - ## Community langchain-community = { git = "https://github.com/langchain-ai/langchain-community.git", subdirectory = "libs/community" } diff --git a/reference/python/pyproject.toml b/reference/python/pyproject.toml index 1e7a4b46a9..00a165809a 100644 --- a/reference/python/pyproject.toml +++ b/reference/python/pyproject.toml @@ -28,12 +28,10 @@ dependencies = [ # Format / Lint "ruff>=0.13.0,<14.0.0", # Libraries - #"langchain-cli", "langchain-core", "langchain", "langchain-classic", "langchain-tests", - #"langchain-model-profiles", "langchain-text-splitters", "langchain-anthropic", "langchain-chroma", @@ -50,7 +48,6 @@ dependencies = [ "langchain-prompty", "langchain-qdrant", "langchain-xai", - #"langchain-experimental", "langchain-community", "langchain-mcp-adapters", "langchain-astradb", @@ -63,7 +60,7 @@ dependencies = [ "langchain-cerebras", "langchain-cohere", "langchain-db2", - #"langchain-elasticsearch", + "langchain-elasticsearch", "langchain-google-community", "langchain-google-genai", "langchain-google-vertexai", @@ -123,12 +120,10 @@ override-dependencies = [ ## LangChain monorepo packages (alphabetical) ### Top level -#langchain-cli = { git = "https://github.com/langchain-ai/langchain.git", subdirectory = "libs/cli" } langchain-core = { git = "https://github.com/langchain-ai/langchain.git", subdirectory = "libs/core" } langchain = { git = "https://github.com/langchain-ai/langchain.git", subdirectory = "libs/langchain_v1" } langchain-classic = { git = "https://github.com/langchain-ai/langchain.git", subdirectory = "libs/langchain" } langchain-tests = { git = "https://github.com/langchain-ai/langchain.git", subdirectory = "libs/standard-tests" } -#langchain-model-profiles = { git = "https://github.com/langchain-ai/langchain.git", subdirectory = "libs/model-profiles" } langchain-text-splitters = { git = "https://github.com/langchain-ai/langchain.git", subdirectory = "libs/text-splitters" } ### Partners @@ -148,9 +143,6 @@ langchain-prompty = { git = "https://github.com/langchain-ai/langchain.git", sub langchain-qdrant = { git = "https://github.com/langchain-ai/langchain.git", subdirectory = "libs/partners/qdrant" } langchain-xai = { git = "https://github.com/langchain-ai/langchain.git", subdirectory = "libs/partners/xai" } -## Experimental -#langchain-experimental = { git = "https://github.com/langchain-ai/langchain-experimental.git", subdirectory = "libs/experimental" } - ## Community langchain-community = { git = "https://github.com/langchain-ai/langchain-community.git", subdirectory = "libs/community" } diff --git a/reference/python/uv.lock b/reference/python/uv.lock index 431be22820..3e5239351a 100644 --- a/reference/python/uv.lock +++ b/reference/python/uv.lock @@ -818,6 +818,39 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/b0/0d/9feae160378a3553fa9a339b0e9c1a048e147a4127210e286ef18b730f03/durationpy-0.10-py3-none-any.whl", hash = "sha256:3b41e1b601234296b4fb368338fdcd3e13e0b4fb5b67345948f4f2bf9868b286", size = 3922, upload-time = "2025-05-17T13:52:36.463Z" }, ] +[[package]] +name = "elastic-transport" +version = "8.17.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "certifi", marker = "platform_python_implementation != 'PyPy'" }, + { name = "urllib3", marker = "platform_python_implementation != 'PyPy'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/6a/54/d498a766ac8fa475f931da85a154666cc81a70f8eb4a780bc8e4e934e9ac/elastic_transport-8.17.1.tar.gz", hash = "sha256:5edef32ac864dca8e2f0a613ef63491ee8d6b8cfb52881fa7313ba9290cac6d2", size = 73425, upload-time = "2025-03-13T07:28:30.776Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/cf/cd/b71d5bc74cde7fc6fd9b2ff9389890f45d9762cbbbf81dc5e51fd7588c4a/elastic_transport-8.17.1-py3-none-any.whl", hash = "sha256:192718f498f1d10c5e9aa8b9cf32aed405e469a7f0e9d6a8923431dbb2c59fb8", size = 64969, upload-time = "2025-03-13T07:28:29.031Z" }, +] + +[[package]] +name = "elasticsearch" +version = "8.19.2" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "elastic-transport", marker = "platform_python_implementation != 'PyPy'" }, + { name = "python-dateutil", marker = "platform_python_implementation != 'PyPy'" }, + { name = "typing-extensions", marker = "platform_python_implementation != 'PyPy'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/42/7b/70b9d16069eda6f91d45fadd9e12faed8e4442f242ca8a81de84bc626f1b/elasticsearch-8.19.2.tar.gz", hash = "sha256:622efa6a3e662db45285f16ab57bf198ea73ac9e137e7ed8b1d1d1e47638959d", size = 797401, upload-time = "2025-10-28T16:36:44.953Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/56/01/6f77d042b83260ef9ed73ea9647dfa0ef8414eba0a3fc57a509a088ad39b/elasticsearch-8.19.2-py3-none-any.whl", hash = "sha256:c16ba20c4c76cf6952e836dae7f4e724e00ba7bf31b94b79472b873683accdd4", size = 949706, upload-time = "2025-10-28T16:36:41.003Z" }, +] + +[package.optional-dependencies] +vectorstore-mmr = [ + { name = "numpy", marker = "platform_python_implementation != 'PyPy'" }, + { name = "simsimd", marker = "platform_python_implementation != 'PyPy'" }, +] + [[package]] name = "exa-py" version = "1.16.1" @@ -1945,6 +1978,15 @@ dependencies = [ { name = "langchain-openai", marker = "platform_python_implementation != 'PyPy'" }, ] +[[package]] +name = "langchain-elasticsearch" +version = "0.4.0" +source = { git = "https://github.com/langchain-ai/langchain-elastic.git?subdirectory=libs%2Felasticsearch#f9d82e15700ac26f4e3e409fa5ca16e712fb84b3" } +dependencies = [ + { name = "elasticsearch", extra = ["vectorstore-mmr"], marker = "platform_python_implementation != 'PyPy'" }, + { name = "langchain-core", marker = "platform_python_implementation != 'PyPy'" }, +] + [[package]] name = "langchain-exa" version = "1.0.0" @@ -2211,6 +2253,7 @@ dependencies = [ { name = "langchain-core", marker = "platform_python_implementation != 'PyPy'" }, { name = "langchain-db2", marker = "platform_python_implementation != 'PyPy'" }, { name = "langchain-deepseek", marker = "platform_python_implementation != 'PyPy'" }, + { name = "langchain-elasticsearch", marker = "platform_python_implementation != 'PyPy'" }, { name = "langchain-exa", marker = "platform_python_implementation != 'PyPy'" }, { name = "langchain-fireworks", marker = "platform_python_implementation != 'PyPy'" }, { name = "langchain-google-community", marker = "platform_python_implementation != 'PyPy'" }, @@ -2284,6 +2327,7 @@ requires-dist = [ { name = "langchain-core", git = "https://github.com/langchain-ai/langchain.git?subdirectory=libs%2Fcore" }, { name = "langchain-db2", git = "https://github.com/langchain-ai/langchain-ibm.git?subdirectory=libs%2Flangchain-db2" }, { name = "langchain-deepseek", git = "https://github.com/langchain-ai/langchain.git?subdirectory=libs%2Fpartners%2Fdeepseek" }, + { name = "langchain-elasticsearch", git = "https://github.com/langchain-ai/langchain-elastic.git?subdirectory=libs%2Felasticsearch" }, { name = "langchain-exa", git = "https://github.com/langchain-ai/langchain.git?subdirectory=libs%2Fpartners%2Fexa" }, { name = "langchain-fireworks", git = "https://github.com/langchain-ai/langchain.git?subdirectory=libs%2Fpartners%2Ffireworks" }, { name = "langchain-google-community", git = "https://github.com/langchain-ai/langchain-google.git?subdirectory=libs%2Fcommunity" }, @@ -2500,8 +2544,8 @@ dependencies = [ [[package]] name = "langsmith" -version = "0.4.57" -source = { git = "https://github.com/langchain-ai/langsmith-sdk.git?subdirectory=python#25e735ceb91549b761a62230bab88b3507bccc50" } +version = "0.4.58" +source = { git = "https://github.com/langchain-ai/langsmith-sdk.git?subdirectory=python#97f8b9b9f2a30c426b6adb77f708bbc68b94a4e3" } dependencies = [ { name = "httpx", marker = "platform_python_implementation != 'PyPy'" }, { name = "orjson", marker = "platform_python_implementation != 'PyPy'" },