This is not the rest http api, but the workers api
This is not the rest http api, but the workers api
namespace is buried so low in the structure. namespace should be up leveled.123 and I insert that into namespace netflix, but then I have the same object id, perhaps different metadata and certainly different vectors, and it has a namespace hulu the vectorize database will overwrite the first record, or fail depending on if I called upsert or insertIndexes per account 100 indexes betaMaximum returned results (topK) 20 beta. Any chance the dashboard will get some updates to show the vector count for the index?removeAll() ... which is on many of the vector db's out there./query HTTP endpoint to bring request/response format in line with Workers API. See https://github.com/cloudflare/cloudflare-docs/pull/125460.018004786 format numbers. The post body is 6kb big.compatibility_date = "2024-01-20""@cloudflare/workers-types": "^4.20240117.0", shows this:VectorizeMatch> >= < <= and boolean true falseis the only thing stopping me from moving forward with Vectorize ... "types": ["@cloudflare/workers-types"],2023-07-01 entrypoint, as suggested above by Nathan, if your worker compatibility_date is set to something newer."types": ["@cloudflare/workers-types/2023-07-01"]. Not all changes requiring a compatibility flag/date update require a new type update, for example if they fix previously buggy behaviour or introduce a change that doesn't change types, just some runtime quirks, that's why there are fewer type entrypoints than entries in the changelog.namespacenamespace123netflixhuluupsertinsertIndexes per account 100 indexes betaMaximum returned results (topK) 20 betaremoveAll()let phase1TempVec:VectorizeVector ={
id:contentData.d1Key,
values: phase1Data.data[0],
namespace:'content_items',
metadata:metaRecord
}0.018004786compatibility_date = "2024-01-20""@cloudflare/workers-types": "^4.20240117.0",VectorizeMatch>>=<<="types": ["@cloudflare/workers-types"],2023-07-01"types": ["@cloudflare/workers-types/2023-07-01"]declare interface VectorizeMatches {
matches: VectorizeMatch[];
count: number;
}
declare interface VectorizeMatch {
/** The ID for the vector. This can be user-defined, and must be unique. It should uniquely identify the object, and is best set based on the ID of what the vector represents. */
vectorId: string;
/** The score or rank for similarity, when returned as a result */
score: number;
/** Vector data for the match. Included only if the user specified they want it returned (via {@link VectorizeQueryOptions}). */
vector?: VectorizeVector;
}{
"count": 3,
"matches": [
{
"id": "uuid-2",
"namespace": "site:ecb",
"score": null
},
{
"id": "uuid-3",
"namespace": "site:ecb",
"score": null
},
{
"id": "uuid-1",
"namespace": "site:ecb",
"score": null
}
]
} public queryById(
id: string,
options: VectorizeQueryOptions
): Promise<VectorizeMatches>;compatibility_date = '2024-01-01'