Metadata filtering
Please confirm following statement :
"A vector can only be part of a single namespace .."
Source : https://developers.cloudflare.com/vectorize/reference/metadata-filtering/#namespace-versus-metadata-filtering
My understanding and Correct Statement should be : "A vector
ID
can only be part of a single namespace .."
Is following code "sampleVectors_1" correct ? : (If not, plz share corrected version/example)
embedding_values = [32.4, 74.1, 3.2, ...];
//sampleVectors_1 : (Same embedding value, same namespace, only Vector-ID differ)
const sampleVectors_1: Array<VectorizeVector> = [
{ id: "1", values: embedding_values, namespace: "text", },
{ id: "2", values: embedding_values, namespace: "text", },
]
Cloudflare Docs
Metadata filtering
In addition to providing an input vector to your query, you can also filter by vector metadata associated with every vector. Query results will only include vectors that match the filter criteria, meaning that filter is applied first, and the topK results are taken from the filtered set.
2 Replies