- likes
- 44
- comments
- 8
Post
Query Agent Search Mode now makes the recall-versus-precision tradeoff configurable. Search Mode rewrites a natural-language request into one or multiple Weaviate queries, each containing a search query, metadata filters, or both. It then returns the matching Weaviate objects directly. The new 𝗳𝗶𝗹𝘁𝗲𝗿𝗶𝗻𝗴 argument controls the search strategy: - "𝘳𝘦𝘤𝘢𝘭𝘭" (default) generates multiple queries spanning different filters and interpretations. Use it when getting relevant results matters more than satisfying each criteria. - "𝘱𝘳𝘦𝘤𝘪𝘴𝘪𝘰𝘯" generates a single query targeting the most likely interpretation. Use it when every returned result should closely follow the original intent. Imagine an ecommerce dataset with 𝘤𝘢𝘵𝘦𝘨𝘰𝘳𝘺, 𝘮𝘢𝘵𝘦𝘳𝘪𝘢𝘭, 𝘸𝘢𝘵𝘦𝘳𝘱𝘳𝘰𝘰𝘧, and 𝘱𝘳𝘪𝘤𝘦 fields. For 𝘍𝘪𝘯𝘥 𝘮𝘦 𝘸𝘢𝘵𝘦𝘳𝘱𝘳𝘰𝘰𝘧 𝘳𝘦𝘤𝘺𝘤𝘭𝘦𝘥 𝘱𝘰𝘭𝘺𝘦𝘴𝘵𝘦𝘳 𝘣𝘰𝘰𝘵𝘴 𝘧𝘰𝘳 𝘸𝘪𝘯𝘵𝘦𝘳 𝘶𝘯𝘥𝘦𝘳 $150 The "recall" method might perform a search on 𝘸𝘪𝘯𝘵𝘦𝘳 𝘣𝘰𝘰𝘵𝘴 with filters on 𝘮𝘢𝘵𝘦𝘳𝘪𝘢𝘭, 𝘸𝘢𝘵𝘦𝘳𝘱𝘳𝘰𝘰𝘧 and 𝘱𝘳𝘪𝘤𝘦. Then run backup searches such as 𝘸𝘢𝘵𝘦𝘳𝘱𝘳𝘰𝘰𝘧 𝘳𝘦𝘤𝘺𝘤𝘭𝘦𝘥 𝘱𝘰𝘭𝘺𝘦𝘴𝘵𝘦𝘳 𝘣𝘰𝘰𝘵𝘴 with only 𝘱𝘳𝘪𝘤𝘦<150. The "precision" method would run one query for 𝘸𝘪𝘯𝘵𝘦𝘳 𝘣𝘰𝘰𝘵𝘴 with all filters applied, returning nothing if there is no exact match. Read the...
Keep reading with a free account
The rest of this post, and every signal for Weaviate, is in your free account.