AI产品精选75°

Weaviate Query Agent搜索模式新增召回率与精确率可配置

Query Agent Search Mode now makes the recall-versus-precision tradeoff configurable. Search Mode re...

精选理由

Weaviate给Query Agent加了filtering参数,想要更多结果选recall,要精准匹配就选precision,适合做RAG的人调一调。

AI 摘要

Weaviate的Query Agent Search Mode新增filtering参数,用于控制搜索策略的召回率与精确率权衡。默认的recall模式会生成多个查询,覆盖不同过滤条件和语义解释,适合优先获取相关结果。precision模式只生成单个查询,瞄准最可能的意图,确保每个返回结果都严格符合原始需求。官方示例展示了电商场景下“寻找$150以下防水再生聚酯冬季靴”时两种模式的不同执行路径。

原文 · Weaviate

Query Agent Search Mode now makes the recall-versus-precision tradeoff configurable. Search Mode re...

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 o docs.weaviate.io/query-agent/gu… e "precision" method would run one query for 𝘸𝘪𝘯𝘵𝘦𝘳 𝘣𝘰𝘰𝘵𝘴 with all filters applied, returning nothing if there is no exact match. Read the documentation: https://t.co/sJpK9hkJxQ 💬 0 🔄 2 ❤️ 3 👀 245 📊 1 ⚡