working now. must've been related to the D1 issues.
working now. must've been related to the D1 issues.
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 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"
}
}
}
]
}vector