可选
filter键值对,用于基于精确匹配或比较运算符过滤结果。
支持精确匹配和基于运算符的比较
// Exact match
filter: { status: "active" }
// With operators
filter: { score: { $gt: 4.99 } }
// Multiple conditions
filter: {
score: { $gte: 3.0 },
color: "red"
}
可选
limit返回的最大条目数。
10
在其中搜索的分层路径前缀。只会搜索此前缀下的条目。
// Search all user documents
namespacePrefix: ["users", "documents"]
// Search everything
namespacePrefix: []
可选
offset在返回结果之前要跳过的条目数。用于分页很有用。
0
可选
query用于语义搜索的自然语言搜索查询。如果提供,结果将通过使用向量相似度搜索按与此查询的相关性排序。
// Find technical documentation about APIs
query: "technical documentation about REST APIs"
// Find recent ML papers
query: "machine learning papers from 2023"
用于在命名空间前缀内搜索条目的操作。