Skip to content

Commit eebf32f

Browse files
Sync Core Integrations API reference (elasticsearch) on Docusaurus (#11071)
Co-authored-by: davidsbatista <7937824+davidsbatista@users.noreply.github.com>
1 parent d6feb0f commit eebf32f

File tree

11 files changed

+132
-132
lines changed

11 files changed

+132
-132
lines changed

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

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ slug: "/integrations-elasticsearch"
1010

1111
### ElasticsearchBM25Retriever
1212

13-
ElasticsearchBM25Retriever retrieves documents from the ElasticsearchDocumentStore using BM25 algorithm to find the
14-
most similar documents to a user's query.
13+
Retrieves documents from ElasticsearchDocumentStore using the BM25 algorithm.
14+
15+
Finds the most similar documents to a user's query.
1516

1617
This retriever is only compatible with ElasticsearchDocumentStore.
1718

@@ -50,7 +51,7 @@ __init__(
5051
top_k: int = 10,
5152
scale_score: bool = False,
5253
filter_policy: str | FilterPolicy = FilterPolicy.REPLACE
53-
)
54+
) -> None
5455
```
5556

5657
Initialize ElasticsearchBM25Retriever with an instance ElasticsearchDocumentStore.
@@ -190,7 +191,7 @@ __init__(
190191
top_k: int = 10,
191192
num_candidates: int | None = None,
192193
filter_policy: str | FilterPolicy = FilterPolicy.REPLACE
193-
)
194+
) -> None
194195
```
195196

196197
Create the ElasticsearchEmbeddingRetriever component.
@@ -325,7 +326,7 @@ __init__(
325326
document_store: ElasticsearchDocumentStore,
326327
raise_on_failure: bool = True,
327328
fetch_size: int | None = None
328-
)
329+
) -> None
329330
```
330331

331332
Creates the ElasticsearchSQLRetriever component.
@@ -427,8 +428,7 @@ Example:
427428

428429
### ElasticsearchDocumentStore
429430

430-
An ElasticsearchDocumentStore instance that works with Elastic Cloud or your own
431-
Elasticsearch cluster.
431+
An ElasticsearchDocumentStore instance that works with Elastic Cloud or your own Elasticsearch cluster.
432432

433433
Usage example (Elastic Cloud):
434434

@@ -474,7 +474,7 @@ __init__(
474474
"cosine", "dot_product", "l2_norm", "max_inner_product"
475475
] = "cosine",
476476
**kwargs: Any
477-
)
477+
) -> None
478478
```
479479

480480
Creates a new ElasticsearchDocumentStore instance.
@@ -887,8 +887,7 @@ count_unique_metadata_by_filter(
887887
) -> dict[str, int]
888888
```
889889

890-
Returns the number of unique values for each specified metadata field of the documents
891-
that match the provided filters.
890+
Returns the number of unique values for each specified metadata field that match the provided filters.
892891

893892
**Parameters:**
894893

@@ -914,8 +913,7 @@ count_unique_metadata_by_filter_async(
914913
) -> dict[str, int]
915914
```
916915

917-
Asynchronously returns the number of unique values for each specified metadata field of the documents
918-
that match the provided filters.
916+
Asynchronously returns unique value counts for each specified metadata field matching the provided filters.
919917

920918
**Parameters:**
921919

@@ -1039,6 +1037,7 @@ get_metadata_field_unique_values(
10391037
```
10401038

10411039
Returns unique values for a metadata field, optionally filtered by a search term in the content.
1040+
10421041
Uses composite aggregations for proper pagination beyond 10k results.
10431042

10441043
See: https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-composite-aggregation
@@ -1069,6 +1068,7 @@ get_metadata_field_unique_values_async(
10691068
```
10701069

10711070
Asynchronously returns unique values for a metadata field, optionally filtered by a search term in the content.
1071+
10721072
Uses composite aggregations for proper pagination beyond 10k results.
10731073

10741074
See: https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-composite-aggregation

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

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ slug: "/integrations-elasticsearch"
1010

1111
### ElasticsearchBM25Retriever
1212

13-
ElasticsearchBM25Retriever retrieves documents from the ElasticsearchDocumentStore using BM25 algorithm to find the
14-
most similar documents to a user's query.
13+
Retrieves documents from ElasticsearchDocumentStore using the BM25 algorithm.
14+
15+
Finds the most similar documents to a user's query.
1516

1617
This retriever is only compatible with ElasticsearchDocumentStore.
1718

@@ -50,7 +51,7 @@ __init__(
5051
top_k: int = 10,
5152
scale_score: bool = False,
5253
filter_policy: str | FilterPolicy = FilterPolicy.REPLACE
53-
)
54+
) -> None
5455
```
5556

5657
Initialize ElasticsearchBM25Retriever with an instance ElasticsearchDocumentStore.
@@ -190,7 +191,7 @@ __init__(
190191
top_k: int = 10,
191192
num_candidates: int | None = None,
192193
filter_policy: str | FilterPolicy = FilterPolicy.REPLACE
193-
)
194+
) -> None
194195
```
195196

196197
Create the ElasticsearchEmbeddingRetriever component.
@@ -325,7 +326,7 @@ __init__(
325326
document_store: ElasticsearchDocumentStore,
326327
raise_on_failure: bool = True,
327328
fetch_size: int | None = None
328-
)
329+
) -> None
329330
```
330331

331332
Creates the ElasticsearchSQLRetriever component.
@@ -427,8 +428,7 @@ Example:
427428

428429
### ElasticsearchDocumentStore
429430

430-
An ElasticsearchDocumentStore instance that works with Elastic Cloud or your own
431-
Elasticsearch cluster.
431+
An ElasticsearchDocumentStore instance that works with Elastic Cloud or your own Elasticsearch cluster.
432432

433433
Usage example (Elastic Cloud):
434434

@@ -474,7 +474,7 @@ __init__(
474474
"cosine", "dot_product", "l2_norm", "max_inner_product"
475475
] = "cosine",
476476
**kwargs: Any
477-
)
477+
) -> None
478478
```
479479

480480
Creates a new ElasticsearchDocumentStore instance.
@@ -887,8 +887,7 @@ count_unique_metadata_by_filter(
887887
) -> dict[str, int]
888888
```
889889

890-
Returns the number of unique values for each specified metadata field of the documents
891-
that match the provided filters.
890+
Returns the number of unique values for each specified metadata field that match the provided filters.
892891

893892
**Parameters:**
894893

@@ -914,8 +913,7 @@ count_unique_metadata_by_filter_async(
914913
) -> dict[str, int]
915914
```
916915

917-
Asynchronously returns the number of unique values for each specified metadata field of the documents
918-
that match the provided filters.
916+
Asynchronously returns unique value counts for each specified metadata field matching the provided filters.
919917

920918
**Parameters:**
921919

@@ -1039,6 +1037,7 @@ get_metadata_field_unique_values(
10391037
```
10401038

10411039
Returns unique values for a metadata field, optionally filtered by a search term in the content.
1040+
10421041
Uses composite aggregations for proper pagination beyond 10k results.
10431042

10441043
See: https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-composite-aggregation
@@ -1069,6 +1068,7 @@ get_metadata_field_unique_values_async(
10691068
```
10701069

10711070
Asynchronously returns unique values for a metadata field, optionally filtered by a search term in the content.
1071+
10721072
Uses composite aggregations for proper pagination beyond 10k results.
10731073

10741074
See: https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-composite-aggregation

docs-website/reference_versioned_docs/version-2.19/integrations-api/elasticsearch.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ slug: "/integrations-elasticsearch"
1010

1111
### ElasticsearchBM25Retriever
1212

13-
ElasticsearchBM25Retriever retrieves documents from the ElasticsearchDocumentStore using BM25 algorithm to find the
14-
most similar documents to a user's query.
13+
Retrieves documents from ElasticsearchDocumentStore using the BM25 algorithm.
14+
15+
Finds the most similar documents to a user's query.
1516

1617
This retriever is only compatible with ElasticsearchDocumentStore.
1718

@@ -50,7 +51,7 @@ __init__(
5051
top_k: int = 10,
5152
scale_score: bool = False,
5253
filter_policy: str | FilterPolicy = FilterPolicy.REPLACE
53-
)
54+
) -> None
5455
```
5556

5657
Initialize ElasticsearchBM25Retriever with an instance ElasticsearchDocumentStore.
@@ -190,7 +191,7 @@ __init__(
190191
top_k: int = 10,
191192
num_candidates: int | None = None,
192193
filter_policy: str | FilterPolicy = FilterPolicy.REPLACE
193-
)
194+
) -> None
194195
```
195196

196197
Create the ElasticsearchEmbeddingRetriever component.
@@ -325,7 +326,7 @@ __init__(
325326
document_store: ElasticsearchDocumentStore,
326327
raise_on_failure: bool = True,
327328
fetch_size: int | None = None
328-
)
329+
) -> None
329330
```
330331

331332
Creates the ElasticsearchSQLRetriever component.
@@ -427,8 +428,7 @@ Example:
427428

428429
### ElasticsearchDocumentStore
429430

430-
An ElasticsearchDocumentStore instance that works with Elastic Cloud or your own
431-
Elasticsearch cluster.
431+
An ElasticsearchDocumentStore instance that works with Elastic Cloud or your own Elasticsearch cluster.
432432

433433
Usage example (Elastic Cloud):
434434

@@ -474,7 +474,7 @@ __init__(
474474
"cosine", "dot_product", "l2_norm", "max_inner_product"
475475
] = "cosine",
476476
**kwargs: Any
477-
)
477+
) -> None
478478
```
479479

480480
Creates a new ElasticsearchDocumentStore instance.
@@ -887,8 +887,7 @@ count_unique_metadata_by_filter(
887887
) -> dict[str, int]
888888
```
889889

890-
Returns the number of unique values for each specified metadata field of the documents
891-
that match the provided filters.
890+
Returns the number of unique values for each specified metadata field that match the provided filters.
892891

893892
**Parameters:**
894893

@@ -914,8 +913,7 @@ count_unique_metadata_by_filter_async(
914913
) -> dict[str, int]
915914
```
916915

917-
Asynchronously returns the number of unique values for each specified metadata field of the documents
918-
that match the provided filters.
916+
Asynchronously returns unique value counts for each specified metadata field matching the provided filters.
919917

920918
**Parameters:**
921919

@@ -1039,6 +1037,7 @@ get_metadata_field_unique_values(
10391037
```
10401038

10411039
Returns unique values for a metadata field, optionally filtered by a search term in the content.
1040+
10421041
Uses composite aggregations for proper pagination beyond 10k results.
10431042

10441043
See: https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-composite-aggregation
@@ -1069,6 +1068,7 @@ get_metadata_field_unique_values_async(
10691068
```
10701069

10711070
Asynchronously returns unique values for a metadata field, optionally filtered by a search term in the content.
1071+
10721072
Uses composite aggregations for proper pagination beyond 10k results.
10731073

10741074
See: https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-composite-aggregation

docs-website/reference_versioned_docs/version-2.20/integrations-api/elasticsearch.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ slug: "/integrations-elasticsearch"
1010

1111
### ElasticsearchBM25Retriever
1212

13-
ElasticsearchBM25Retriever retrieves documents from the ElasticsearchDocumentStore using BM25 algorithm to find the
14-
most similar documents to a user's query.
13+
Retrieves documents from ElasticsearchDocumentStore using the BM25 algorithm.
14+
15+
Finds the most similar documents to a user's query.
1516

1617
This retriever is only compatible with ElasticsearchDocumentStore.
1718

@@ -50,7 +51,7 @@ __init__(
5051
top_k: int = 10,
5152
scale_score: bool = False,
5253
filter_policy: str | FilterPolicy = FilterPolicy.REPLACE
53-
)
54+
) -> None
5455
```
5556

5657
Initialize ElasticsearchBM25Retriever with an instance ElasticsearchDocumentStore.
@@ -190,7 +191,7 @@ __init__(
190191
top_k: int = 10,
191192
num_candidates: int | None = None,
192193
filter_policy: str | FilterPolicy = FilterPolicy.REPLACE
193-
)
194+
) -> None
194195
```
195196

196197
Create the ElasticsearchEmbeddingRetriever component.
@@ -325,7 +326,7 @@ __init__(
325326
document_store: ElasticsearchDocumentStore,
326327
raise_on_failure: bool = True,
327328
fetch_size: int | None = None
328-
)
329+
) -> None
329330
```
330331

331332
Creates the ElasticsearchSQLRetriever component.
@@ -427,8 +428,7 @@ Example:
427428

428429
### ElasticsearchDocumentStore
429430

430-
An ElasticsearchDocumentStore instance that works with Elastic Cloud or your own
431-
Elasticsearch cluster.
431+
An ElasticsearchDocumentStore instance that works with Elastic Cloud or your own Elasticsearch cluster.
432432

433433
Usage example (Elastic Cloud):
434434

@@ -474,7 +474,7 @@ __init__(
474474
"cosine", "dot_product", "l2_norm", "max_inner_product"
475475
] = "cosine",
476476
**kwargs: Any
477-
)
477+
) -> None
478478
```
479479

480480
Creates a new ElasticsearchDocumentStore instance.
@@ -887,8 +887,7 @@ count_unique_metadata_by_filter(
887887
) -> dict[str, int]
888888
```
889889

890-
Returns the number of unique values for each specified metadata field of the documents
891-
that match the provided filters.
890+
Returns the number of unique values for each specified metadata field that match the provided filters.
892891

893892
**Parameters:**
894893

@@ -914,8 +913,7 @@ count_unique_metadata_by_filter_async(
914913
) -> dict[str, int]
915914
```
916915

917-
Asynchronously returns the number of unique values for each specified metadata field of the documents
918-
that match the provided filters.
916+
Asynchronously returns unique value counts for each specified metadata field matching the provided filters.
919917

920918
**Parameters:**
921919

@@ -1039,6 +1037,7 @@ get_metadata_field_unique_values(
10391037
```
10401038

10411039
Returns unique values for a metadata field, optionally filtered by a search term in the content.
1040+
10421041
Uses composite aggregations for proper pagination beyond 10k results.
10431042

10441043
See: https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-composite-aggregation
@@ -1069,6 +1068,7 @@ get_metadata_field_unique_values_async(
10691068
```
10701069

10711070
Asynchronously returns unique values for a metadata field, optionally filtered by a search term in the content.
1071+
10721072
Uses composite aggregations for proper pagination beyond 10k results.
10731073

10741074
See: https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-composite-aggregation

0 commit comments

Comments
 (0)