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

materialize-pinecone: update to Pinecone Go SDK #2021

Merged
merged 1 commit into from
Oct 7, 2024

Conversation

williamhbaker
Copy link
Member

@williamhbaker williamhbaker commented Oct 4, 2024

Description:

This updates our connector to use the Pinecone Go SDK, which will allow support for serverless indices, among other things.

Also a few updates that I have made at my discretion, since now seems like a good time to make updates:

  • We will require a namespace input for the resource config. It's no longer possible to create a Pinecone index that doesn't support namespaces.
  • Various checks related to Pinecone indexes that don't support namespaces are removed, since that isn't possible anymore.
  • Include the configured index name in the resource path, in case we ever want to support multiple indices in the same materialization. This is sort of like Pinecone's concept of a "schema", so we'll probably want to do this.
  • Hex-encode embedding document keys, since that is what we do for other materializations like this.
  • Implement batch flushing after the Store iterator ticks over to the next binding.

Closes #2022

Workflow steps:

(How does one use this feature, and how has it changed)

Documentation links affected:

(list any documentation links that you created, or existing ones that you've identified as needing updates, along with a brief description)

Notes for reviewers:

(anything that might help someone review this PR)


This change is Reviewable

This updates our connector to use the Pinecone Go SDK, which will allow support
for serverless indices, among other things.

Also a few updates that I have made at my discretion, since now seems like a
good time to make updates:

* We will require a namespace input for the resource config. It's no longer
  possible to create a Pinecone index that doesn't support namespaces.
* Various checks related to Pinecone indexes that don't support namespaces are
  removed, since that isn't possible anymore.
* Include the configured index name in the resource path, in case we ever want
  to support multiple indices in the same materialization. This is sort of like
  Pinecone's concept of a "schema", so we'll probably want to do this.
* Hex-encode embedding document keys, since that is what we do for other
  materializations like this.
* Implement batch flushing after the Store iterator ticks over to the next
  binding.
@williamhbaker williamhbaker marked this pull request as ready for review October 4, 2024 21:36
@williamhbaker williamhbaker requested a review from a team October 4, 2024 21:36
@williamhbaker williamhbaker added the change:planned This is a planned change label Oct 4, 2024
@williamhbaker williamhbaker merged commit a4a8e2c into main Oct 7, 2024
48 of 52 checks passed
@williamhbaker williamhbaker deleted the wb/pinecone-serverless branch October 7, 2024 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
change:planned This is a planned change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

materialize-pinecone: upgrade to latest api (support server-less)
2 participants