opensearch-haystack 8.2.1__tar.gz → 9.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. {opensearch_haystack-8.2.1 → opensearch_haystack-9.0.0}/CHANGELOG.md +103 -28
  2. opensearch_haystack-8.2.1/LICENSE → opensearch_haystack-9.0.0/LICENSE.txt +1 -1
  3. {opensearch_haystack-8.2.1 → opensearch_haystack-9.0.0}/PKG-INFO +7 -7
  4. {opensearch_haystack-8.2.1 → opensearch_haystack-9.0.0}/README.md +2 -2
  5. {opensearch_haystack-8.2.1 → opensearch_haystack-9.0.0}/docker-compose.yml +1 -1
  6. {opensearch_haystack-8.2.1 → opensearch_haystack-9.0.0}/pyproject.toml +2 -2
  7. {opensearch_haystack-8.2.1 → opensearch_haystack-9.0.0}/src/haystack_integrations/document_stores/opensearch/auth.py +1 -6
  8. {opensearch_haystack-8.2.1 → opensearch_haystack-9.0.0}/src/haystack_integrations/document_stores/opensearch/document_store.py +177 -143
  9. {opensearch_haystack-8.2.1 → opensearch_haystack-9.0.0}/src/haystack_integrations/document_stores/opensearch/filters.py +26 -7
  10. {opensearch_haystack-8.2.1 → opensearch_haystack-9.0.0}/tests/test_document_store.py +135 -196
  11. {opensearch_haystack-8.2.1 → opensearch_haystack-9.0.0}/tests/test_document_store_async.py +176 -98
  12. {opensearch_haystack-8.2.1 → opensearch_haystack-9.0.0}/tests/test_filters.py +133 -0
  13. {opensearch_haystack-8.2.1 → opensearch_haystack-9.0.0}/tests/test_open_search_hybrid_retriever.py +3 -3
  14. {opensearch_haystack-8.2.1 → opensearch_haystack-9.0.0}/.gitignore +0 -0
  15. {opensearch_haystack-8.2.1 → opensearch_haystack-9.0.0}/pydoc/config_docusaurus.yml +0 -0
  16. {opensearch_haystack-8.2.1 → opensearch_haystack-9.0.0}/src/haystack_integrations/components/retrievers/opensearch/__init__.py +0 -0
  17. {opensearch_haystack-8.2.1 → opensearch_haystack-9.0.0}/src/haystack_integrations/components/retrievers/opensearch/bm25_retriever.py +0 -0
  18. {opensearch_haystack-8.2.1 → opensearch_haystack-9.0.0}/src/haystack_integrations/components/retrievers/opensearch/embedding_retriever.py +0 -0
  19. {opensearch_haystack-8.2.1 → opensearch_haystack-9.0.0}/src/haystack_integrations/components/retrievers/opensearch/metadata_retriever.py +0 -0
  20. {opensearch_haystack-8.2.1 → opensearch_haystack-9.0.0}/src/haystack_integrations/components/retrievers/opensearch/open_search_hybrid_retriever.py +0 -0
  21. {opensearch_haystack-8.2.1 → opensearch_haystack-9.0.0}/src/haystack_integrations/components/retrievers/opensearch/sql_retriever.py +0 -0
  22. {opensearch_haystack-8.2.1 → opensearch_haystack-9.0.0}/src/haystack_integrations/components/retrievers/opensearch/utils.py +0 -0
  23. {opensearch_haystack-8.2.1 → opensearch_haystack-9.0.0}/src/haystack_integrations/components/retrievers/py.typed +0 -0
  24. {opensearch_haystack-8.2.1 → opensearch_haystack-9.0.0}/src/haystack_integrations/document_stores/opensearch/__init__.py +0 -0
  25. {opensearch_haystack-8.2.1 → opensearch_haystack-9.0.0}/src/haystack_integrations/document_stores/opensearch/opensearch_scripts.py +0 -0
  26. {opensearch_haystack-8.2.1 → opensearch_haystack-9.0.0}/src/haystack_integrations/document_stores/py.typed +0 -0
  27. {opensearch_haystack-8.2.1 → opensearch_haystack-9.0.0}/tests/__init__.py +0 -0
  28. {opensearch_haystack-8.2.1 → opensearch_haystack-9.0.0}/tests/conftest.py +0 -0
  29. {opensearch_haystack-8.2.1 → opensearch_haystack-9.0.0}/tests/test_auth.py +0 -0
  30. {opensearch_haystack-8.2.1 → opensearch_haystack-9.0.0}/tests/test_bm25_retriever.py +0 -0
  31. {opensearch_haystack-8.2.1 → opensearch_haystack-9.0.0}/tests/test_document_store_common.py +0 -0
  32. {opensearch_haystack-8.2.1 → opensearch_haystack-9.0.0}/tests/test_embedding_retriever.py +0 -0
  33. {opensearch_haystack-8.2.1 → opensearch_haystack-9.0.0}/tests/test_metadata_retriever.py +0 -0
  34. {opensearch_haystack-8.2.1 → opensearch_haystack-9.0.0}/tests/test_metadata_retriever_async.py +0 -0
  35. {opensearch_haystack-8.2.1 → opensearch_haystack-9.0.0}/tests/test_sql_retriever.py +0 -0
  36. {opensearch_haystack-8.2.1 → opensearch_haystack-9.0.0}/tests/test_utils.py +0 -0
@@ -1,5 +1,42 @@
1
1
  # Changelog
2
2
 
3
+ ## [integrations/opensearch-v8.3.0] - 2026-10-08
4
+
5
+ ### 🚀 Features
6
+
7
+ - `OpenSearchDocumentStore` emulating offset with cursor (#3692)
8
+
9
+ ### 🐛 Bug Fixes
10
+
11
+ - `OpenSearchDocumentStore` adding filter to unique metadata values (#3754)
12
+ - Standardize license files (#3771)
13
+ - *(elasticsearch,opensearch)* Keep every bound when merging same-field ranges (#3984)
14
+ - OpenSearch fixing painless script code injection (#4067)
15
+
16
+ ### 🧪 Testing
17
+
18
+ - `OpenSearchDocumentStore` removing duplicated tests already covered by haystack Mixin tests (#3780)
19
+ - Elastisearch/OpenSearch - explicitly set the embedding model in Hybrid Retriever tests (#4053)
20
+
21
+ ### ⚙️ CI
22
+
23
+ - Improve changelog generation; fix existing changelogs (#3883)
24
+
25
+ ### 🧹 Chores
26
+
27
+ - Re-standardize READMEs (#3768)
28
+ - Drop redundant deserialize_secrets_inplace calls in integrations requiring haystack-ai>=2.23 (#4058)
29
+
30
+
31
+ ## [integrations/opensearch-v8.2.1] - 2026-08-03
32
+
33
+ ### 🐛 Bug Fixes
34
+
35
+ - Fix new issues raised by ruff 0.16.0 (#3670)
36
+ - `OpensearchDocumentStore` match search_term against metadata field value, not content (#3647)
37
+ - *(opensearch)* Don't merge same-field ranges under OR (#3589)
38
+
39
+
3
40
  ## [integrations/opensearch-v8.2.0] - 2026-07-22
4
41
 
5
42
  ### 🚀 Features
@@ -334,6 +371,13 @@
334
371
 
335
372
  ## [integrations/opensearch-v3.0.0] - 2025-03-11
336
373
 
374
+
375
+ ### 🌀 Miscellaneous
376
+
377
+ - Chore: OpenSearch - pin haystack and remove dataframe checks (#1513)
378
+
379
+ ## [integrations/opensearch-v2.2.0] - 2025-03-07
380
+
337
381
  ### 🐛 Bug Fixes
338
382
 
339
383
  - OpenSearchDocumentStore depends on async opensearch-py (#1438)
@@ -346,10 +390,6 @@
346
390
 
347
391
  - Remove Python 3.8 support (#1421)
348
392
 
349
- ### 🌀 Miscellaneous
350
-
351
- - Chore: OpenSearch - pin haystack and remove dataframe checks (#1513)
352
-
353
393
  ## [integrations/opensearch-v2.1.0] - 2025-02-18
354
394
 
355
395
  ### 🚀 Features
@@ -359,10 +399,6 @@
359
399
 
360
400
  ## [integrations/opensearch-v2.0.0] - 2025-02-14
361
401
 
362
- ### 🚀 Features
363
-
364
- - Add Secret handling in OpenSearchDocumentStore (#1288)
365
-
366
402
  ### 🧹 Chores
367
403
 
368
404
  - Inherit from `FilterDocumentsTestWithDataframe` in Document Stores (#1290)
@@ -372,6 +408,13 @@
372
408
 
373
409
  - Chore: OpenSearch - manually fix changelog (#1299)
374
410
 
411
+ ## [integrations/opensearch-v1.3.0] - 2025-01-16
412
+
413
+ ### 🚀 Features
414
+
415
+ - Add Secret handling in OpenSearchDocumentStore (#1288)
416
+
417
+
375
418
  ## [integrations/opensearch-v1.2.0] - 2024-12-12
376
419
 
377
420
  ### 🧹 Chores
@@ -385,6 +428,17 @@
385
428
 
386
429
  - Efficient knn filtering support for OpenSearch (#1134)
387
430
 
431
+ ### ⚙️ CI
432
+
433
+ - Adopt uv as installer (#1142)
434
+
435
+ ### 🧹 Chores
436
+
437
+ - Update changelog after removing legacy filters (#1083)
438
+ - Update ruff linting scripts and settings (#1105)
439
+
440
+ ## [integrations/opensearch-v1.0.0] - 2024-09-12
441
+
388
442
  ### 📚 Documentation
389
443
 
390
444
  - Update opensearch retriever docstrings (#1035)
@@ -393,15 +447,9 @@
393
447
 
394
448
  - Do not retry tests in `hatch run test` command (#954)
395
449
 
396
- ### ⚙️ CI
397
-
398
- - Adopt uv as installer (#1142)
399
-
400
450
  ### 🧹 Chores
401
451
 
402
452
  - OpenSearch - remove legacy filter support (#1067)
403
- - Update changelog after removing legacy filters (#1083)
404
- - Update ruff linting scripts and settings (#1105)
405
453
 
406
454
  ### 🌀 Miscellaneous
407
455
 
@@ -418,15 +466,17 @@
418
466
 
419
467
  ## [integrations/opensearch-v0.8.1] - 2024-07-15
420
468
 
469
+ ### 🐛 Bug Fixes
470
+
471
+ - `OpenSearch` - Fallback to default filter policy when deserializing retrievers without the init parameter (#895)
472
+
473
+ ## [integrations/opensearch-v0.8.0] - 2024-07-15
474
+
421
475
  ### 🚀 Features
422
476
 
423
477
  - Add raise_on_failure param to OpenSearch retrievers (#852)
424
478
  - Add filter_policy to opensearch integration (#822)
425
479
 
426
- ### 🐛 Bug Fixes
427
-
428
- - `OpenSearch` - Fallback to default filter policy when deserializing retrievers without the init parameter (#895)
429
-
430
480
  ### 🧹 Chores
431
481
 
432
482
  - Update ruff invocation to include check parameter (#853)
@@ -447,12 +497,44 @@
447
497
 
448
498
  ### 🚀 Features
449
499
 
450
- - Defer the database connection to when it's needed (#753)
451
- - Improve `OpenSearchDocumentStore.__init__` arguments (#739)
452
- - Return_embeddings flag for opensearch (#784)
453
500
  - Add create_index option to OpenSearchDocumentStore (#840)
454
501
  - Add custom_query param to OpenSearch retrievers (#841)
455
502
 
503
+ ### ⚙️ CI
504
+
505
+ - Retry tests to reduce flakyness (#836)
506
+
507
+ ### 🌀 Miscellaneous
508
+
509
+ - Ci: install `pytest-rerunfailures` where needed; add retry config to `test-cov` script (#845)
510
+
511
+ ## [integrations/opensearch-v0.6.0] - 2024-06-07
512
+
513
+ ### 🚀 Features
514
+
515
+ - Return_embeddings flag for opensearch (#784)
516
+
517
+
518
+ ## [integrations/opensearch-v0.5.0] - 2024-05-30
519
+
520
+ ### 🚀 Features
521
+
522
+ - Improve `OpenSearchDocumentStore.__init__` arguments (#739)
523
+
524
+
525
+ ## [integrations/opensearch-v0.4.0] - 2024-05-24
526
+
527
+ ### 🚀 Features
528
+
529
+ - Defer the database connection to when it's needed (#753)
530
+
531
+ ### 🌀 Miscellaneous
532
+
533
+ - Chore: add license classifiers (#680)
534
+ - Chore: change the pydoc renderer class (#718)
535
+
536
+ ## [integrations/opensearch-v0.3.0] - 2024-04-04
537
+
456
538
  ### 🐛 Bug Fixes
457
539
 
458
540
  - Fix order of API docs (#447)
@@ -464,10 +546,6 @@
464
546
  - Small consistency improvements (#536)
465
547
  - Disable-class-def (#556)
466
548
 
467
- ### ⚙️ CI
468
-
469
- - Retry tests to reduce flakyness (#836)
470
-
471
549
  ### 🌀 Miscellaneous
472
550
 
473
551
  - Generate API docs (#324)
@@ -476,9 +554,6 @@
476
554
  - Fix opensearch errors bulk write (#594)
477
555
  - Remove references to Python 3.7 (#601)
478
556
  - [Elasticsearch] fix: Filters not working with metadata that contain a space or capitalization (#639)
479
- - Chore: add license classifiers (#680)
480
- - Chore: change the pydoc renderer class (#718)
481
- - Ci: install `pytest-rerunfailures` where needed; add retry config to `test-cov` script (#845)
482
557
 
483
558
  ## [integrations/opensearch-v0.2.0] - 2024-01-17
484
559
 
@@ -186,7 +186,7 @@
186
186
  same "printed page" as the copyright notice for easier
187
187
  identification within third-party archives.
188
188
 
189
- Copyright 2023 deepset GmbH
189
+ Copyright 2023-present deepset GmbH
190
190
 
191
191
  Licensed under the Apache License, Version 2.0 (the "License");
192
192
  you may not use this file except in compliance with the License.
@@ -1,24 +1,24 @@
1
- Metadata-Version: 2.4
1
+ Metadata-Version: 2.5
2
2
  Name: opensearch-haystack
3
- Version: 8.2.1
3
+ Version: 9.0.0
4
4
  Summary: Haystack 2.x Document Store for OpenSearch
5
5
  Project-URL: Documentation, https://github.com/deepset-ai/haystack-core-integrations/tree/main/integrations/opensearch#readme
6
6
  Project-URL: Issues, https://github.com/deepset-ai/haystack-core-integrations/issues
7
7
  Project-URL: Source, https://github.com/deepset-ai/haystack-core-integrations/tree/main/integrations/opensearch
8
8
  Author-email: deepset GmbH <info@deepset.ai>
9
9
  License-Expression: Apache-2.0
10
- License-File: LICENSE
10
+ License-File: LICENSE.txt
11
11
  Classifier: Development Status :: 4 - Beta
12
12
  Classifier: License :: OSI Approved :: Apache Software License
13
13
  Classifier: Programming Language :: Python
14
- Classifier: Programming Language :: Python :: 3.10
15
14
  Classifier: Programming Language :: Python :: 3.11
16
15
  Classifier: Programming Language :: Python :: 3.12
17
16
  Classifier: Programming Language :: Python :: 3.13
18
17
  Classifier: Programming Language :: Python :: 3.14
18
+ Classifier: Programming Language :: Python :: 3.15
19
19
  Classifier: Programming Language :: Python :: Implementation :: CPython
20
20
  Classifier: Programming Language :: Python :: Implementation :: PyPy
21
- Requires-Python: >=3.10
21
+ Requires-Python: >=3.11
22
22
  Requires-Dist: haystack-ai>=2.28.0
23
23
  Requires-Dist: opensearch-py[async]>=3.0.0
24
24
  Description-Content-Type: text/markdown
@@ -28,7 +28,7 @@ Description-Content-Type: text/markdown
28
28
  [![PyPI - Version](https://img.shields.io/pypi/v/opensearch-haystack.svg)](https://pypi.org/project/opensearch-haystack)
29
29
  [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/opensearch-haystack.svg)](https://pypi.org/project/opensearch-haystack)
30
30
 
31
- - [Integration page](https://haystack.deepset.ai/integrations/opensearch)
31
+ - [Integration page](https://haystack.deepset.ai/integrations/opensearch-document-store)
32
32
  - [Changelog](https://github.com/deepset-ai/haystack-core-integrations/blob/main/integrations/opensearch/CHANGELOG.md)
33
33
 
34
34
  ---
@@ -38,4 +38,4 @@ Description-Content-Type: text/markdown
38
38
  Refer to the general [Contribution Guidelines](https://github.com/deepset-ai/haystack-core-integrations/blob/main/CONTRIBUTING.md).
39
39
 
40
40
  To run integration tests locally, you need a Docker container running OpenSearch.
41
- Use the provided `docker-compose.yml` file to start the container: `docker compose up -d`.
41
+ Use the provided `docker-compose.yml` file to start the container: `docker compose up -d`.
@@ -3,7 +3,7 @@
3
3
  [![PyPI - Version](https://img.shields.io/pypi/v/opensearch-haystack.svg)](https://pypi.org/project/opensearch-haystack)
4
4
  [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/opensearch-haystack.svg)](https://pypi.org/project/opensearch-haystack)
5
5
 
6
- - [Integration page](https://haystack.deepset.ai/integrations/opensearch)
6
+ - [Integration page](https://haystack.deepset.ai/integrations/opensearch-document-store)
7
7
  - [Changelog](https://github.com/deepset-ai/haystack-core-integrations/blob/main/integrations/opensearch/CHANGELOG.md)
8
8
 
9
9
  ---
@@ -13,4 +13,4 @@
13
13
  Refer to the general [Contribution Guidelines](https://github.com/deepset-ai/haystack-core-integrations/blob/main/CONTRIBUTING.md).
14
14
 
15
15
  To run integration tests locally, you need a Docker container running OpenSearch.
16
- Use the provided `docker-compose.yml` file to start the container: `docker compose up -d`.
16
+ Use the provided `docker-compose.yml` file to start the container: `docker compose up -d`.
@@ -10,7 +10,7 @@ services:
10
10
  - "ES_JAVA_OPTS=-Xms1024m -Xmx1024m"
11
11
  - "OPENSEARCH_INITIAL_ADMIN_PASSWORD=SecureHaystack!2026"
12
12
  healthcheck:
13
- test: curl --fail https://localhost:9200/_cat/health -ku admin:admin || exit 1
13
+ test: curl --fail https://localhost:9200/_cat/health -ku admin:SecureHaystack!2026 || exit 1
14
14
  interval: 10s
15
15
  timeout: 1s
16
16
  retries: 10
@@ -7,7 +7,7 @@ name = "opensearch-haystack"
7
7
  dynamic = ["version"]
8
8
  description = 'Haystack 2.x Document Store for OpenSearch'
9
9
  readme = "README.md"
10
- requires-python = ">=3.10"
10
+ requires-python = ">=3.11"
11
11
  license = "Apache-2.0"
12
12
  keywords = []
13
13
  authors = [{ name = "deepset GmbH", email = "info@deepset.ai" }]
@@ -15,11 +15,11 @@ classifiers = [
15
15
  "License :: OSI Approved :: Apache Software License",
16
16
  "Development Status :: 4 - Beta",
17
17
  "Programming Language :: Python",
18
- "Programming Language :: Python :: 3.10",
19
18
  "Programming Language :: Python :: 3.11",
20
19
  "Programming Language :: Python :: 3.12",
21
20
  "Programming Language :: Python :: 3.13",
22
21
  "Programming Language :: Python :: 3.14",
22
+ "Programming Language :: Python :: 3.15",
23
23
  "Programming Language :: Python :: Implementation :: CPython",
24
24
  "Programming Language :: Python :: Implementation :: PyPy",
25
25
  ]
@@ -4,7 +4,7 @@ from typing import Any, Optional, TypeVar
4
4
  from haystack import default_from_dict, default_to_dict
5
5
  from haystack.document_stores.errors import DocumentStoreError
6
6
  from haystack.lazy_imports import LazyImport
7
- from haystack.utils.auth import Secret, deserialize_secrets_inplace
7
+ from haystack.utils.auth import Secret
8
8
  from opensearchpy import AWSV4SignerAsyncAuth, Urllib3AWSV4SignerAuth
9
9
 
10
10
  with LazyImport("Run 'pip install \"boto3\"' to install boto3.") as boto3_import:
@@ -119,11 +119,6 @@ class AWSAuth:
119
119
  """
120
120
  Converts a dictionary representation to an AWSAuth object.
121
121
  """
122
- init_parameters = data.get("init_parameters", {})
123
- deserialize_secrets_inplace(
124
- init_parameters,
125
- ["aws_access_key_id", "aws_secret_access_key", "aws_session_token", "aws_region_name", "aws_profile_name"],
126
- )
127
122
  return default_from_dict(cls, data)
128
123
 
129
124
  def __call__(