Skip to content

Conversation

@jhamon
Copy link
Collaborator

@jhamon jhamon commented Jan 31, 2026

Summary

This PR updates the Haystack Extractive QA notebook to use Pinecone SDK v8 by changing the pip install command from pinecone-client to pinecone.

Problem

The notebook was using the deprecated pinecone-client package, which is the legacy SDK. To align with modern Pinecone SDK patterns and ensure compatibility with SDK v8, the package reference needed to be updated.

Solution

Updated the pip install command in the "Install Dependencies" section from:

!pip install -U farm-haystack>=1.3.0 pinecone-client datasets

to:

!pip install -U farm-haystack>=1.3.0 pinecone datasets

The notebook's code remains fully compatible as it uses Haystack's PineconeDocumentStore abstraction, which handles the Pinecone SDK internally. The existing initialization pattern with api_key, index, similarity, and embedding_dim parameters aligns with SDK v8 standards.

Key Concepts

  • SDK Modernization: Migrating from pinecone-client to pinecone package
  • Backward Compatibility: Haystack's PineconeDocumentStore abstracts SDK changes, ensuring seamless integration
  • Zero Breaking Changes: The user-facing functionality remains identical

Examples

Users can now install dependencies with:

!pip install -U farm-haystack>=1.3.0 pinecone datasets

And continue using the notebook exactly as before:

from haystack.document_stores import PineconeDocumentStore

document_store = PineconeDocumentStore(
    api_key='<YOUR_API_KEY>',
    index='haystack-extractive-qa',
    similarity="cosine",
    embedding_dim=384
)

Resolves SDK-215

🤖 Generated with Claude Code


Note

Low Risk
Changes are limited to a dependency install line in a notebook and do not alter runtime logic or data handling. Risk is low aside from potential environment/dependency resolution differences when users rerun the notebook.

Overview
Updates the Haystack extractive QA notebook’s dependency installation to use the Pinecone SDK v8 package (pinecone) in place of the deprecated pinecone-client, without changing the notebook’s QA code paths.

Written by Cursor Bugbot for commit f99390d. This will update automatically on new commits. Configure here.

Update the pip install command to use 'pinecone' instead of 'pinecone-client'
to align with SDK v8. The PineconeDocumentStore integration through Haystack
remains compatible with the updated package.

Resolves SDK-215

Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

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.

2 participants