min_words / max_words
integerBounds passage length in words.
A floor removes stubs and navigation fragments. A ceiling is useful when you are packing many passages into a fixed context budget and need each one to be small.
Example
curl -H "x-api-key: $UNLOB_API_KEY" \
"https://api.unlob.com/search?q=rate+limiting&min_words=300&max_words=2000"Common questions
What does the min_words / max_words filter do?
Bounds passage length in words.
When should I use min_words / max_words?
Context-budget management, or filtering out stubs.
Filters are free
Every filter is evaluated against a stored field, so it narrows the candidate set before scoring — a filtered query is often faster than an unfiltered one.