Skip to content

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.

1 participant