github airweave-ai/airweave v0.6.40

latest releases: v0.9.67, v0.9.66, v0.9.65...
6 months ago

PR 928

What's Changed

Enforces exactly 4 query expansions using structured output and aligned prompt instructions, improving consistency and recall behavior. Raises a clear error if the LLM returns the wrong count.

  • Bug Fixes
    • Pydantic schema requires exactly 4 alternatives (min_items=max_items=4) via a shared constant.
    • Prompt updated to “exactly {number_of_expansions}” and wired to the same constant.
    • Post-validation length check with clearer error message to catch mismatches.

Don't miss a new airweave release

NewReleases is sending notifications on new releases.