it's possible to see the amount of vectors inside a index?
it's possible to see the amount of vectors inside a index?



const body = {
'returnMetadata': true,
'topK': 10,
'returnValues': false,
'vector': vector.slice(0, 10),
};Vectorize will be available to developers on the Workers Free plan in the future.
vector object in each result object. This also doesn't match what's in the docs: https://developers.cloudflare.com/vectorize/reference/metadata-filtering/
const vectorizeStartTime: any = new Date()
const queryVec = await c.env.VECTORIZE_TESTE_1536.query(embQuery, {
topK: 3,
returnValues: false,
returnMetadata: true,
namespace: data.customerId.toString()+"_"+data.repoId.toString()
});
const vectorizeEndtime: any= new Date()
console.log("Vectorize time", vectorizeEndtime - vectorizeStartTime) const body = {
'returnMetadata': true,
'topK': 10,
'returnValues': false,
'vector': vector.slice(0, 10),
};bunx wrangler vectorize create --dimensions=1536 ers-v1 --metric=cosine🚧 Creating index: 'ers-v1'
✘ [ERROR] A request to the Cloudflare API (/accounts/53e0c2270158721ff328e572f56950ea/vectorize/indexes) failed.
vectorize.not_entitled [code: 1005]
If you think this is a bug, please open an issue at:
https://github.com/cloudflare/workers-sdk/issues/new/choose {
"count": 1,
"matches": [
{
"vectorId": "145",
"score": 0.582596078,
"vector": {
"id": "145",
"values": [],
"metadata": {
"content": "foo"
}
}
}
]
}vectorconst store = new CloudflareVectorizeStore(embeddings, {
index: env.VECTORIZE_INDEX,
});
await store.addDocuments(
[
{
pageContent: "hello",
metadata: {},
},
{
pageContent: "world",
metadata: {},
},
{
pageContent: "hi",
metadata: {},
},
],
{ ids: ["id1", "id2", "id3"] }
);