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

[spruce] Bump @pinecone-database version to support global control plane #29

Open
wants to merge 2 commits into
base: spruce
Choose a base branch
from

Conversation

austin-denoble
Copy link

@austin-denoble austin-denoble commented Dec 18, 2023

Problem

We've been working to support the new global control plane service in the Pinecone clients. We need to update our sample apps to migrate to the new client versions, and update associated code paths as needed.

Solution

  • Bump the @pinecone-database/pinecone dependency to use the new spruceDev version of the client: ^1.1.2-spruceDev.20231214000822.
  • Update pinecone.ts and seed.ts to handle the new object response from listIndexes().
  • Update seed.ts to pass the proper config object shape to createIndex().

For now, I've created a spruce branch to merge this into as we probably don't want to release sample apps that aren't aligned with what's available publicly.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

Test Plan

Run the playwright test suite and run the application locally:

Screenshot 2023-12-18 at 3 23 32 PM
Screenshot 2023-12-18 at 3 24 44 PM
Screenshot 2023-12-18 at 3 24 08 PM

@austin-denoble austin-denoble marked this pull request as ready for review December 18, 2023 20:26
if (!indexExists) {
await pinecone.createIndex({
name: indexName,
dimension: 1536,
spec: {
serverless: {
region: 'us-west-2',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this shouldn't be hard coded, but set in .env

spec: {
serverless: {
region: 'us-west-2',
cloud: 'aws',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same

PINECONE_API_KEY=
PINECONE_ENVIRONMENT=
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure why we're removing this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants