Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong typings for VectorizeMatch #1541

Closed
anderseklof opened this issue Jan 16, 2024 · 1 comment
Closed

Wrong typings for VectorizeMatch #1541

anderseklof opened this issue Jan 16, 2024 · 1 comment
Assignees
Labels
types Related to @cloudflare/workers-types

Comments

@anderseklof
Copy link

For the Vectorize query response, the VectorizeMatch type has the following structure:

{
  id: string
  values?: VectorFloatArray | number[]
  namespace?: string
  metadata?: Record<string, VectorizeVectorMetadata>
  score: number
}

But in my response i get:

{
  vectorId: string
  score: number
  vector: {
    id: string
    namespace: string
    values: number[]
    metadata: {
      ...
    }
  }
}

The type has been that of my response but got changed in PR #1297. What am i missing?

@anderseklof anderseklof added the types Related to @cloudflare/workers-types label Jan 16, 2024
@anderseklof
Copy link
Author

I needed to update the compatibility_date in wrangler.toml.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
types Related to @cloudflare/workers-types
Projects
None yet
Development

No branches or pull requests

2 participants