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

[TypeError: this.pineconeClient.upsert is not a function] #303

Closed
munkhorgil opened this issue Mar 12, 2023 · 1 comment · Fixed by #316
Closed

[TypeError: this.pineconeClient.upsert is not a function] #303

munkhorgil opened this issue Mar 12, 2023 · 1 comment · Fixed by #316

Comments

@munkhorgil
Copy link
Contributor

Getting this.pineconeClient.upsert is not a function error when trying to read texts.

  const pineconeClient = new PineconeClient();

  await pineconeClient.init({
    environment: "environment",
    apiKey: "apiKey"
  });

  const db = await PineconeStore.fromTexts(
    texts.map((text) => text.pageContent),
    [],
    embeddings,
    {
      pineconeClient,
    }
  );

Packages versions

    "@pinecone-database/pinecone": "^0.0.10",
    "langchain": "^0.0.29",
@nfcampos
Copy link
Collaborator

Hi @munkhorgil What should be passed to pineconeClient is the pinecone index, ie. the return value of calling in your snippet pineconeClient.Index("my-index"). Will open a PR to clarify the argument name

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 a pull request may close this issue.

2 participants