You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: improve Boost API docstrings (consistency, clarity, accuracy)
Polish the docstrings for the Boost API (the Boost class, its factory
methods, the Curve/Modifier enums, and the boost= parameter):
- Document the boost= parameter in the Args of all 14 query and generate
methods (hybrid, near_text, near_object, near_vector, near_image,
near_media, bm25). It was present in every signature but documented in
none.
- Correct the documented defaults and semantics to match server
behavior: weight (blend weight in [0, 1], default 0.5,
(1 - weight)*primary + weight*boost, 0 is a no-op), depth (the
overfetched candidate pool, default 100), curve (default exp), decay
value (range (0, 1], default 0.5), offset (default 0), and blend's
per-condition weight (default 1.0, may be negative) plus the
20-condition cap.
- Unify terminology and add Attributes blocks describing the Curve and
Modifier enum members.
Docstrings only -- no API or behavior changes. Defaults verified against
the server implementation.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: weaviate/collections/queries/bm25/generate/executor.py
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -396,6 +396,7 @@ def bm25(
396
396
filters: The filters to apply to the search.
397
397
group_by: How the results should be grouped by a specific property.
398
398
rerank: How the results should be reranked. NOTE: A `rerank-*` module must be enabled for this functionality to work.
399
+
boost: A `Boost` that re-scores the search candidates to promote or demote objects without removing them. Build one with `Boost.filter()`, `Boost.time_decay()`, `Boost.numeric_decay()`, `Boost.numeric_property()`, or `Boost.blend()`.
399
400
include_vector: Whether to include the vector in the results. If not specified, this is set to False.
400
401
return_metadata: The metadata to return for each object, defaults to `None`.
401
402
return_properties: The properties to return for each object.
Copy file name to clipboardExpand all lines: weaviate/collections/queries/bm25/query/executor.py
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -331,6 +331,7 @@ def bm25(
331
331
filters: The filters to apply to the search.
332
332
group_by: How the results should be grouped by a specific property.
333
333
rerank: How the results should be reranked. NOTE: A `rerank-*` module must be enabled for this functionality to work.
334
+
boost: A `Boost` that re-scores the search candidates to promote or demote objects without removing them. Build one with `Boost.filter()`, `Boost.time_decay()`, `Boost.numeric_decay()`, `Boost.numeric_property()`, or `Boost.blend()`.
334
335
include_vector: Whether to include the vector in the results. If not specified, this is set to False.
335
336
return_metadata: The metadata to return for each object, defaults to `None`.
336
337
return_properties: The properties to return for each object.
Copy file name to clipboardExpand all lines: weaviate/collections/queries/hybrid/generate/executor.py
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -475,6 +475,7 @@ def hybrid(
475
475
filters: The filters to apply to the search.
476
476
group_by: How the results should be grouped by a specific property.
477
477
rerank: How the results should be reranked. NOTE: A `rerank-*` module must be enabled for this functionality to work.
478
+
boost: A `Boost` that re-scores the search candidates to promote or demote objects without removing them. Build one with `Boost.filter()`, `Boost.time_decay()`, `Boost.numeric_decay()`, `Boost.numeric_property()`, or `Boost.blend()`.
478
479
target_vector: The name of the vector space to search in for named vector configurations. Required if multiple spaces are configured.
479
480
include_vector: Whether to include the vector in the results. If not specified, this is set to False.
480
481
return_metadata: The metadata to return for each object, defaults to `None`.
Copy file name to clipboardExpand all lines: weaviate/collections/queries/hybrid/query/executor.py
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -411,6 +411,7 @@ def hybrid(
411
411
filters: The filters to apply to the search.
412
412
group_by: How the results should be grouped by a specific property.
413
413
rerank: How the results should be reranked. NOTE: A `rerank-*` module must be enabled for this functionality to work.
414
+
boost: A `Boost` that re-scores the search candidates to promote or demote objects without removing them. Build one with `Boost.filter()`, `Boost.time_decay()`, `Boost.numeric_decay()`, `Boost.numeric_property()`, or `Boost.blend()`.
414
415
target_vector: The name of the vector space to search in for named vector configurations. Required if multiple spaces are configured.
415
416
include_vector: Whether to include the vector in the results. If not specified, this is set to False.
416
417
return_metadata: The metadata to return for each object, defaults to `None`.
Copy file name to clipboardExpand all lines: weaviate/collections/queries/near_image/generate/executor.py
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -430,6 +430,7 @@ def near_image(
430
430
filters: The filters to apply to the search.
431
431
group_by: How the results should be grouped by a specific property.
432
432
rerank: How the results should be reranked. NOTE: A `rerank-*` module must be enabled for this functionality to work.
433
+
boost: A `Boost` that re-scores the search candidates to promote or demote objects without removing them. Build one with `Boost.filter()`, `Boost.time_decay()`, `Boost.numeric_decay()`, `Boost.numeric_property()`, or `Boost.blend()`.
433
434
target_vector: The name of the vector space to search in for named vector configurations. Required if multiple spaces are configured.
434
435
include_vector: Whether to include the vector in the results. If not specified, this is set to False.
435
436
return_metadata: The metadata to return for each object, defaults to `None`.
Copy file name to clipboardExpand all lines: weaviate/collections/queries/near_image/query/executor.py
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -369,6 +369,7 @@ def near_image(
369
369
filters: The filters to apply to the search.
370
370
group_by: How the results should be grouped by a specific property.
371
371
rerank: How the results should be reranked. NOTE: A `rerank-*` module must be enabled for this functionality to work.
372
+
boost: A `Boost` that re-scores the search candidates to promote or demote objects without removing them. Build one with `Boost.filter()`, `Boost.time_decay()`, `Boost.numeric_decay()`, `Boost.numeric_property()`, or `Boost.blend()`.
372
373
target_vector: The name of the vector space to search in for named vector configurations. Required if multiple spaces are configured.
373
374
include_vector: Whether to include the vector in the results. If not specified, this is set to False.
374
375
return_metadata: The metadata to return for each object, defaults to `None`.
0 commit comments