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

Update syntax for pinecone related code #6

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Ed-Marcavage
Copy link

Pinecone no longer supports an envirorment parm on init. Also init langchain's OpenAI object with gpt-3.5-turbo as text-davinci-003 has been deprecated

Pinecone no longer supports an envirorment parm on init. Also init langchain's OpenAI object with gpt-3.5-turbo as text-davinci-003 has been deprecated
@Ed-Marcavage
Copy link
Author

Needed to refactor because Pinecone's console no longer gives you a PINECONE_ENVIRONMENT value as seen in the screenshot below and stated here in their docs:

"On the new Pinecone API, you no longer choose a single cloud environment for a project. Instead, you choose a cloud environment for each index in a project."

So this was no longer valid and need to be updated to 2.0.1:

  const client = new Pinecone({
    apiKey: process.env.PINECONE_API_KEY || '',
    environment: process.env.PINECONE_ENVIRONMENT || ''
  })
image

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

1 participant