Skip to content

Bump for 8.18.0 release #454

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

Merged
merged 11 commits into from
Apr 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ jobs:
fail-fast: false
matrix:
es_stack:
- 8.16.1
- 8.17.0
- 8.18.0-SNAPSHOT
- 8.17.5
- 8.18.0
- 8.19.0-SNAPSHOT
- 9.0.0
- 9.1.0-SNAPSHOT
runs-on: ubuntu-latest
services:
elasticsearch:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ install-pre-commit:

install-nbtest:
python3 -m venv $(VENV)
$(VENV)/bin/pip install -qqq elastic-nbtest sentence-transformers==2.7.0
$(VENV)/bin/pip install -qqq elastic-nbtest
2 changes: 1 addition & 1 deletion bin/mocks/elasticsearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def patched_es_init(self, *args, **kwargs):
assert kwargs["cloud_id"] == "foo"
if "api_key" in kwargs:
assert kwargs["api_key"] == "bar"
return orig_es_init(self, "http://localhost:9200", timeout=60)
return orig_es_init(self, "http://localhost:9200", request_timeout=60)

# patch Elasticsearch.__init__
elasticsearch.Elasticsearch.__init__ = patched_es_init
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install elasticsearch"
"!pip install \"elasticsearch<9\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion notebooks/document-chunking/with-index-pipelines.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
},
"outputs": [],
"source": [
"!python3 -m pip install -qU elasticsearch eland"
"!python3 -m pip install -qU \"elasticsearch<9\" \"eland[pytorch]<9\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion notebooks/document-chunking/with-langchain-splitters.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"metadata": {},
"outputs": [],
"source": [
"!python3 -m pip install -qU langchain langchain-community langchain-elasticsearch elasticsearch eland jq"
"!python3 -m pip install -qU langchain langchain-community langchain-elasticsearch \"elasticsearch<9\" \"eland<9\" jq"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
},
"outputs": [],
"source": [
"!pip install -qU langchain_community langchain elasticsearch tiktoken langchain-elasticsearch jq"
"!pip install -qU langchain_community langchain \"elasticsearch<9\" tiktoken langchain-elasticsearch jq"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion notebooks/ingestion-and-chunking/pdf-chunking-ingest.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
},
"outputs": [],
"source": [
"!pip install -qU pypdf langchain_community langchain elasticsearch tiktoken langchain-elasticsearch"
"!pip install -qU pypdf langchain_community langchain \"elasticsearch<9\" tiktoken langchain-elasticsearch"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
},
"outputs": [],
"source": [
"!pip install -qU langchain_community langchain elasticsearch tiktoken langchain-elasticsearch unstructured"
"!pip install -qU langchain_community langchain \"elasticsearch<9\" tiktoken langchain-elasticsearch unstructured"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
},
"outputs": [],
"source": [
"!python3 -m pip install sentence-transformers==2.7.0 eland elasticsearch transformers"
"!python3 -m pip install sentence-transformers==2.7.0 \"eland<9\" \"elasticsearch<9\" transformers"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install -qU elasticsearch"
"!pip install -qU \"elasticsearch<9\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion notebooks/langchain/langchain-using-own-model.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"metadata": {},
"outputs": [],
"source": [
"!python3 -m pip install -qU langchain langchain-elasticsearch tiktoken sentence-transformers==2.7.0 eland transformers\n",
"!python3 -m pip install -qU langchain langchain-elasticsearch tiktoken sentence-transformers==2.7.0 \"eland<9\" transformers\n",
"\n",
"from getpass import getpass\n",
"from langchain_elasticsearch import ElasticsearchStore\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"outputs": [],
"source": [
"# install packages\n",
"!python3 -m pip install -qU langchain langchain-elasticsearch openai tiktoken\n",
"!python3 -m pip install -qU langchain langchain-elasticsearch \"elasticsearch<9\" openai tiktoken\n",
"\n",
"# import modules\n",
"from getpass import getpass\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install -qU elasticsearch sentence-transformers==2.7.0"
"!pip install -qU \"elasticsearch<9\" sentence-transformers==2.7.0"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install elasticsearch -qU"
"!pip install \"elasticsearch<9\" -qU"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion notebooks/search/00-quick-start.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
},
"outputs": [],
"source": [
"!pip install -qU elasticsearch sentence-transformers==2.7.0"
"!pip install -qU \"elasticsearch<9\" sentence-transformers==2.7.0"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion notebooks/search/01-keyword-querying-filtering.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install -qU elasticsearch pandas"
"!pip install -qU \"elasticsearch<9\" pandas"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion notebooks/search/02-hybrid-search.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
},
"outputs": [],
"source": [
"!pip install -qU elasticsearch sentence-transformers==2.7.0"
"!pip install -qU \"elasticsearch<9\" sentence-transformers==2.7.0"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion notebooks/search/03-ELSER.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
},
"outputs": [],
"source": [
"!pip install -qU elasticsearch"
"!pip install -qU \"elasticsearch<9\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion notebooks/search/04-multilingual.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
},
"outputs": [],
"source": [
"!pip install -qU elasticsearch sentence-transformers==2.7.0"
"!pip install -qU \"elasticsearch<9\" sentence-transformers==2.7.0"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion notebooks/search/05-query-rules.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
},
"outputs": [],
"source": [
"!pip install -qU elasticsearch"
"!pip install -qU \"elasticsearch<9\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion notebooks/search/06-synonyms-api.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
},
"outputs": [],
"source": [
"!pip install -qU elasticsearch"
"!pip install -qU \"elasticsearch<9\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion notebooks/search/09-semantic-text.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
},
"outputs": [],
"source": [
"!pip install elasticsearch"
"!pip install \"elasticsearch<9\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion notebooks/search/_nbtest.setup.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install -qU elasticsearch sentence-transformers==2.7.0"
"!pip install -qU \"elasticsearch<9\" sentence-transformers==2.7.0"
]
},
{
Expand Down
Loading