Skip to content

docs: fix Boost API examples and supported-query list#451

Open
g-despot wants to merge 1 commit into
mainfrom
docs/fix-boost-page
Open

docs: fix Boost API examples and supported-query list#451
g-despot wants to merge 1 commit into
mainfrom
docs/fix-boost-page

Conversation

@g-despot

Copy link
Copy Markdown
Contributor

What

Fixes the Boost search docs page (/weaviate/search/boost) and its Python example so the example actually runs, and trims an unsupported claim.

Changes

  • Example fixes in _includes/code/howto/search.boost.py:
    • Boost.property(...)Boost.numeric_property(...) (the .property factory doesn't exist on the client — the old example raised AttributeError)
    • Boost.blend(cond1, cond2, ...)Boost.blend([cond1, cond2], ...) — multiple conditions must be passed as a list per the signature Boost.blend(boosts, *, weight, depth); the old multi-positional form raised TypeError
  • Supported-query list now includes near-image and near-media (the client supports boost on both).
  • Removed the aggregate mention — the server accepts a boost on aggregate queries over gRPC, but no client exposes it yet, so it doesn't belong on this client-facing page.

Verification

The corrected snippet was run end-to-end against Weaviate 1.38.0 with the dev/1.38 Python client (which adds the Boost API): exit 0, every block executed, all inline assertions held. yarn build-dev passes locally.

🤖 Generated with Claude Code

- Correct the Python examples on the Boost search page:
  - Boost.property(...) -> Boost.numeric_property(...) (the .property
    factory does not exist on the client)
  - Boost.blend(...) with multiple conditions now passes them as a list,
    matching the signature Boost.blend(boosts, *, weight, depth); the
    old multi-positional form raised TypeError
- List near-image and near-media among the boost-supported queries.
- Remove the mention of boost on aggregation: the server accepts it over
  gRPC but no client exposes it yet, so it does not belong in the
  client-facing docs.

The corrected snippet was verified end-to-end against Weaviate 1.38.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

@orca-security-eu orca-security-eu Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Orca Security Scan Summary

Status Check Issues by priority
Passed Passed Infrastructure as Code high 0   medium 0   low 0   info 0 View in Orca
Passed Passed SAST high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Secrets high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Vulnerabilities high 0   medium 0   low 0   info 0 View in Orca

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant