Skip to content

Commit f371859

Browse files
Auto-generated API code
1 parent 335154e commit f371859

File tree

3 files changed

+11
-57
lines changed

3 files changed

+11
-57
lines changed

elasticsearch/dsl/field.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3866,9 +3866,6 @@ class SemanticText(Field):
38663866
by using the Update mapping API. Use the Create inference API to
38673867
create the endpoint. If not specified, the inference endpoint
38683868
defined by inference_id will be used at both index and query time.
3869-
:arg index_options: Settings for index_options that override any
3870-
defaults used by semantic_text, for example specific quantization
3871-
settings.
38723869
:arg chunking_settings: Settings for chunking text into smaller
38733870
passages. If specified, these will override the chunking settings
38743871
sent in the inference endpoint associated with inference_id. If
@@ -3888,11 +3885,8 @@ def __init__(
38883885
meta: Union[Mapping[str, str], "DefaultType"] = DEFAULT,
38893886
inference_id: Union[str, "DefaultType"] = DEFAULT,
38903887
search_inference_id: Union[str, "DefaultType"] = DEFAULT,
3891-
index_options: Union[
3892-
"types.SemanticTextIndexOptions", Dict[str, Any], "DefaultType"
3893-
] = DEFAULT,
38943888
chunking_settings: Union[
3895-
"types.ChunkingSettings", None, Dict[str, Any], "DefaultType"
3889+
"types.ChunkingSettings", Dict[str, Any], "DefaultType"
38963890
] = DEFAULT,
38973891
fields: Union[Mapping[str, Field], "DefaultType"] = DEFAULT,
38983892
**kwargs: Any,
@@ -3903,8 +3897,6 @@ def __init__(
39033897
kwargs["inference_id"] = inference_id
39043898
if search_inference_id is not DEFAULT:
39053899
kwargs["search_inference_id"] = search_inference_id
3906-
if index_options is not DEFAULT:
3907-
kwargs["index_options"] = index_options
39083900
if chunking_settings is not DEFAULT:
39093901
kwargs["chunking_settings"] = chunking_settings
39103902
if fields is not DEFAULT:

elasticsearch/dsl/query.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1079,8 +1079,6 @@ class Knn(Query):
10791079
a query_vector_builder or query_vector, but not both.
10801080
:arg num_candidates: The number of nearest neighbor candidates to
10811081
consider per shard
1082-
:arg visit_percentage: The percentage of vectors to explore per shard
1083-
while doing knn search with bbq_disk
10841082
:arg k: The final number of nearest neighbors to return as top hits
10851083
:arg filter: Filters for the kNN search query
10861084
:arg similarity: The minimum similarity for a vector to be considered
@@ -1109,7 +1107,6 @@ def __init__(
11091107
"types.QueryVectorBuilder", Dict[str, Any], "DefaultType"
11101108
] = DEFAULT,
11111109
num_candidates: Union[int, "DefaultType"] = DEFAULT,
1112-
visit_percentage: Union[float, "DefaultType"] = DEFAULT,
11131110
k: Union[int, "DefaultType"] = DEFAULT,
11141111
filter: Union[Query, Sequence[Query], "DefaultType"] = DEFAULT,
11151112
similarity: Union[float, "DefaultType"] = DEFAULT,
@@ -1125,7 +1122,6 @@ def __init__(
11251122
query_vector=query_vector,
11261123
query_vector_builder=query_vector_builder,
11271124
num_candidates=num_candidates,
1128-
visit_percentage=visit_percentage,
11291125
k=k,
11301126
filter=filter,
11311127
similarity=similarity,
@@ -1437,7 +1433,7 @@ def __init__(
14371433
] = DEFAULT,
14381434
version: Union[int, "DefaultType"] = DEFAULT,
14391435
version_type: Union[
1440-
Literal["internal", "external", "external_gte"], "DefaultType"
1436+
Literal["internal", "external", "external_gte", "force"], "DefaultType"
14411437
] = DEFAULT,
14421438
boost: Union[float, "DefaultType"] = DEFAULT,
14431439
_name: Union[str, "DefaultType"] = DEFAULT,

elasticsearch/dsl/types.py

Lines changed: 9 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,9 @@ class ChunkingSettings(AttrDict[Any]):
151151
strategies in the linked documentation. Defaults to `sentence` if
152152
omitted.
153153
:arg max_chunk_size: (required) The maximum size of a chunk in words.
154-
This value cannot be lower than `20` (for `sentence` strategy) or
155-
`10` (for `word` strategy). This value should not exceed the
156-
window size for the associated model. Defaults to `250` if
157-
omitted.
154+
This value cannot be higher than `300` or lower than `20` (for
155+
`sentence` strategy) or `10` (for `word` strategy). Defaults to
156+
`250` if omitted.
158157
:arg separator_group: Only applicable to the `recursive` strategy and
159158
required when using it. Sets a predefined list of separators in
160159
the saved chunking settings based on the selected text type.
@@ -398,17 +397,14 @@ class DenseVectorIndexOptions(AttrDict[Any]):
398397
HNSW graph. Only applicable to `hnsw`, `int8_hnsw`, `bbq_hnsw`,
399398
and `int4_hnsw` index types. Defaults to `16` if omitted.
400399
:arg rescore_vector: The rescore vector options. This is only
401-
applicable to `bbq_disk`, `bbq_hnsw`, `int4_hnsw`, `int8_hnsw`,
402-
`bbq_flat`, `int4_flat`, and `int8_flat` index types.
403-
:arg on_disk_rescore: `true` if vector rescoring should be done on-
404-
disk Only applicable to `bbq_hnsw`
400+
applicable to `bbq_hnsw`, `int4_hnsw`, `int8_hnsw`, `bbq_flat`,
401+
`int4_flat`, and `int8_flat` index types.
405402
"""
406403

407404
type: Union[
408405
Literal[
409406
"bbq_flat",
410407
"bbq_hnsw",
411-
"bbq_disk",
412408
"flat",
413409
"hnsw",
414410
"int4_flat",
@@ -424,7 +420,6 @@ class DenseVectorIndexOptions(AttrDict[Any]):
424420
rescore_vector: Union[
425421
"DenseVectorIndexOptionsRescoreVector", Dict[str, Any], DefaultType
426422
]
427-
on_disk_rescore: Union[bool, DefaultType]
428423

429424
def __init__(
430425
self,
@@ -433,7 +428,6 @@ def __init__(
433428
Literal[
434429
"bbq_flat",
435430
"bbq_hnsw",
436-
"bbq_disk",
437431
"flat",
438432
"hnsw",
439433
"int4_flat",
@@ -449,7 +443,6 @@ def __init__(
449443
rescore_vector: Union[
450444
"DenseVectorIndexOptionsRescoreVector", Dict[str, Any], DefaultType
451445
] = DEFAULT,
452-
on_disk_rescore: Union[bool, DefaultType] = DEFAULT,
453446
**kwargs: Any,
454447
):
455448
if type is not DEFAULT:
@@ -462,8 +455,6 @@ def __init__(
462455
kwargs["m"] = m
463456
if rescore_vector is not DEFAULT:
464457
kwargs["rescore_vector"] = rescore_vector
465-
if on_disk_rescore is not DEFAULT:
466-
kwargs["on_disk_rescore"] = on_disk_rescore
467458
super().__init__(kwargs)
468459

469460

@@ -2335,7 +2326,9 @@ class LikeDocument(AttrDict[Any]):
23352326
per_field_analyzer: Union[Mapping[Union[str, InstrumentedField], str], DefaultType]
23362327
routing: Union[str, DefaultType]
23372328
version: Union[int, DefaultType]
2338-
version_type: Union[Literal["internal", "external", "external_gte"], DefaultType]
2329+
version_type: Union[
2330+
Literal["internal", "external", "external_gte", "force"], DefaultType
2331+
]
23392332

23402333
def __init__(
23412334
self,
@@ -2350,7 +2343,7 @@ def __init__(
23502343
routing: Union[str, DefaultType] = DEFAULT,
23512344
version: Union[int, DefaultType] = DEFAULT,
23522345
version_type: Union[
2353-
Literal["internal", "external", "external_gte"], DefaultType
2346+
Literal["internal", "external", "external_gte", "force"], DefaultType
23542347
] = DEFAULT,
23552348
**kwargs: Any,
23562349
):
@@ -3196,33 +3189,6 @@ def __init__(
31963189
super().__init__(kwargs)
31973190

31983191

3199-
class SemanticTextIndexOptions(AttrDict[Any]):
3200-
"""
3201-
:arg dense_vector:
3202-
:arg sparse_vector:
3203-
"""
3204-
3205-
dense_vector: Union["DenseVectorIndexOptions", Dict[str, Any], DefaultType]
3206-
sparse_vector: Union["SparseVectorIndexOptions", Dict[str, Any], DefaultType]
3207-
3208-
def __init__(
3209-
self,
3210-
*,
3211-
dense_vector: Union[
3212-
"DenseVectorIndexOptions", Dict[str, Any], DefaultType
3213-
] = DEFAULT,
3214-
sparse_vector: Union[
3215-
"SparseVectorIndexOptions", Dict[str, Any], DefaultType
3216-
] = DEFAULT,
3217-
**kwargs: Any,
3218-
):
3219-
if dense_vector is not DEFAULT:
3220-
kwargs["dense_vector"] = dense_vector
3221-
if sparse_vector is not DEFAULT:
3222-
kwargs["sparse_vector"] = sparse_vector
3223-
super().__init__(kwargs)
3224-
3225-
32263192
class ShapeFieldQuery(AttrDict[Any]):
32273193
"""
32283194
:arg indexed_shape: Queries using a pre-indexed shape.

0 commit comments

Comments
 (0)