Skip to content

Commit 0bbf973

Browse files
anakin87github-actions[bot]
authored andcommitted
Sync Core Integrations API reference (opensearch) on Docusaurus
1 parent fead8f1 commit 0bbf973

16 files changed

Lines changed: 1584 additions & 32 deletions

File tree

docs-website/reference/integrations-api/opensearch.md

Lines changed: 99 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,22 @@ Deserializes the component from a dictionary.
129129

130130
- <code>OpenSearchBM25Retriever</code> – Deserialized component.
131131

132+
#### close
133+
134+
```python
135+
close() -> None
136+
```
137+
138+
Release the synchronous resources of the underlying Document Store.
139+
140+
#### close_async
141+
142+
```python
143+
close_async() -> None
144+
```
145+
146+
Release the asynchronous resources of the underlying Document Store.
147+
132148
#### run
133149

134150
```python
@@ -376,6 +392,22 @@ Deserializes the component from a dictionary.
376392

377393
- <code>OpenSearchEmbeddingRetriever</code> – Deserialized component.
378394

395+
#### close
396+
397+
```python
398+
close() -> None
399+
```
400+
401+
Release the synchronous resources of the underlying Document Store.
402+
403+
#### close_async
404+
405+
```python
406+
close_async() -> None
407+
```
408+
409+
Release the asynchronous resources of the underlying Document Store.
410+
379411
#### run
380412

381413
```python
@@ -703,6 +735,22 @@ Deserializes the component from a dictionary.
703735

704736
- <code>OpenSearchMetadataRetriever</code> – Deserialized component.
705737

738+
#### close
739+
740+
```python
741+
close() -> None
742+
```
743+
744+
Release the synchronous resources of the underlying Document Store.
745+
746+
#### close_async
747+
748+
```python
749+
close_async() -> None
750+
```
751+
752+
Release the asynchronous resources of the underlying Document Store.
753+
706754
#### run
707755

708756
```python
@@ -884,7 +932,9 @@ docker run -d --name opensearch-nosec -p 9200:9200 -p 9600:9600 -e "discovery.ty
884932

885933
```python
886934
from haystack import Document
887-
from haystack.components.embedders import SentenceTransformersTextEmbedder, SentenceTransformersDocumentEmbedder
935+
# Requires: pip install sentence-transformers-haystack
936+
from haystack_integrations.components.embedders.sentence_transformers import SentenceTransformersTextEmbedder
937+
from haystack_integrations.components.embedders.sentence_transformers import SentenceTransformersDocumentEmbedder
888938
from haystack_integrations.components.retrievers.opensearch import OpenSearchHybridRetriever
889939
from haystack_integrations.document_stores.opensearch import OpenSearchDocumentStore
890940

@@ -906,7 +956,6 @@ docs = [
906956

907957
# Embed the documents and add them to the document store
908958
doc_embedder = SentenceTransformersDocumentEmbedder(model="sentence-transformers/all-MiniLM-L6-v2")
909-
doc_embedder.warm_up()
910959
docs = doc_embedder.run(docs)
911960
doc_store.write_documents(docs['documents'])
912961

@@ -1042,6 +1091,22 @@ from_dict(data: dict[str, Any]) -> OpenSearchHybridRetriever
10421091

10431092
Deserialize an OpenSearchHybridRetriever from a dictionary.
10441093

1094+
#### close
1095+
1096+
```python
1097+
close() -> None
1098+
```
1099+
1100+
Release the synchronous resources of the underlying Document Store.
1101+
1102+
#### close_async
1103+
1104+
```python
1105+
close_async() -> None
1106+
```
1107+
1108+
Release the asynchronous resources of the underlying Document Store.
1109+
10451110
## haystack_integrations.components.retrievers.opensearch.sql_retriever
10461111

10471112
### OpenSearchSQLRetriever
@@ -1105,6 +1170,22 @@ Deserializes the component from a dictionary.
11051170

11061171
- <code>OpenSearchSQLRetriever</code> – Deserialized component.
11071172

1173+
#### close
1174+
1175+
```python
1176+
close() -> None
1177+
```
1178+
1179+
Release the synchronous resources of the underlying Document Store.
1180+
1181+
#### close_async
1182+
1183+
```python
1184+
close_async() -> None
1185+
```
1186+
1187+
Release the asynchronous resources of the underlying Document Store.
1188+
11081189
#### run
11091190

11101191
```python
@@ -1319,6 +1400,22 @@ Deserializes the component from a dictionary.
13191400

13201401
- <code>OpenSearchDocumentStore</code> – Deserialized component.
13211402

1403+
#### close
1404+
1405+
```python
1406+
close() -> None
1407+
```
1408+
1409+
Release the associated synchronous resources.
1410+
1411+
#### close_async
1412+
1413+
```python
1414+
close_async() -> None
1415+
```
1416+
1417+
Release the associated asynchronous resources.
1418+
13221419
#### count_documents
13231420

13241421
```python

docs-website/reference_versioned_docs/version-2.18/integrations-api/opensearch.md

Lines changed: 99 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,22 @@ Deserializes the component from a dictionary.
129129

130130
- <code>OpenSearchBM25Retriever</code> – Deserialized component.
131131

132+
#### close
133+
134+
```python
135+
close() -> None
136+
```
137+
138+
Release the synchronous resources of the underlying Document Store.
139+
140+
#### close_async
141+
142+
```python
143+
close_async() -> None
144+
```
145+
146+
Release the asynchronous resources of the underlying Document Store.
147+
132148
#### run
133149

134150
```python
@@ -376,6 +392,22 @@ Deserializes the component from a dictionary.
376392

377393
- <code>OpenSearchEmbeddingRetriever</code> – Deserialized component.
378394

395+
#### close
396+
397+
```python
398+
close() -> None
399+
```
400+
401+
Release the synchronous resources of the underlying Document Store.
402+
403+
#### close_async
404+
405+
```python
406+
close_async() -> None
407+
```
408+
409+
Release the asynchronous resources of the underlying Document Store.
410+
379411
#### run
380412

381413
```python
@@ -703,6 +735,22 @@ Deserializes the component from a dictionary.
703735

704736
- <code>OpenSearchMetadataRetriever</code> – Deserialized component.
705737

738+
#### close
739+
740+
```python
741+
close() -> None
742+
```
743+
744+
Release the synchronous resources of the underlying Document Store.
745+
746+
#### close_async
747+
748+
```python
749+
close_async() -> None
750+
```
751+
752+
Release the asynchronous resources of the underlying Document Store.
753+
706754
#### run
707755

708756
```python
@@ -884,7 +932,9 @@ docker run -d --name opensearch-nosec -p 9200:9200 -p 9600:9600 -e "discovery.ty
884932

885933
```python
886934
from haystack import Document
887-
from haystack.components.embedders import SentenceTransformersTextEmbedder, SentenceTransformersDocumentEmbedder
935+
# Requires: pip install sentence-transformers-haystack
936+
from haystack_integrations.components.embedders.sentence_transformers import SentenceTransformersTextEmbedder
937+
from haystack_integrations.components.embedders.sentence_transformers import SentenceTransformersDocumentEmbedder
888938
from haystack_integrations.components.retrievers.opensearch import OpenSearchHybridRetriever
889939
from haystack_integrations.document_stores.opensearch import OpenSearchDocumentStore
890940

@@ -906,7 +956,6 @@ docs = [
906956

907957
# Embed the documents and add them to the document store
908958
doc_embedder = SentenceTransformersDocumentEmbedder(model="sentence-transformers/all-MiniLM-L6-v2")
909-
doc_embedder.warm_up()
910959
docs = doc_embedder.run(docs)
911960
doc_store.write_documents(docs['documents'])
912961

@@ -1042,6 +1091,22 @@ from_dict(data: dict[str, Any]) -> OpenSearchHybridRetriever
10421091

10431092
Deserialize an OpenSearchHybridRetriever from a dictionary.
10441093

1094+
#### close
1095+
1096+
```python
1097+
close() -> None
1098+
```
1099+
1100+
Release the synchronous resources of the underlying Document Store.
1101+
1102+
#### close_async
1103+
1104+
```python
1105+
close_async() -> None
1106+
```
1107+
1108+
Release the asynchronous resources of the underlying Document Store.
1109+
10451110
## haystack_integrations.components.retrievers.opensearch.sql_retriever
10461111

10471112
### OpenSearchSQLRetriever
@@ -1105,6 +1170,22 @@ Deserializes the component from a dictionary.
11051170

11061171
- <code>OpenSearchSQLRetriever</code> – Deserialized component.
11071172

1173+
#### close
1174+
1175+
```python
1176+
close() -> None
1177+
```
1178+
1179+
Release the synchronous resources of the underlying Document Store.
1180+
1181+
#### close_async
1182+
1183+
```python
1184+
close_async() -> None
1185+
```
1186+
1187+
Release the asynchronous resources of the underlying Document Store.
1188+
11081189
#### run
11091190

11101191
```python
@@ -1319,6 +1400,22 @@ Deserializes the component from a dictionary.
13191400

13201401
- <code>OpenSearchDocumentStore</code> – Deserialized component.
13211402

1403+
#### close
1404+
1405+
```python
1406+
close() -> None
1407+
```
1408+
1409+
Release the associated synchronous resources.
1410+
1411+
#### close_async
1412+
1413+
```python
1414+
close_async() -> None
1415+
```
1416+
1417+
Release the associated asynchronous resources.
1418+
13221419
#### count_documents
13231420

13241421
```python

0 commit comments

Comments
 (0)