chore(haystack): migrate extractive QA notebook to Pinecone SDK v8 #540
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR updates the Haystack Extractive QA notebook to use Pinecone SDK v8 by changing the pip install command from
pinecone-clienttopinecone.Problem
The notebook was using the deprecated
pinecone-clientpackage, 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:
to:
The notebook's code remains fully compatible as it uses Haystack's
PineconeDocumentStoreabstraction, which handles the Pinecone SDK internally. The existing initialization pattern withapi_key,index,similarity, andembedding_dimparameters aligns with SDK v8 standards.Key Concepts
pinecone-clienttopineconepackagePineconeDocumentStoreabstracts SDK changes, ensuring seamless integrationExamples
Users can now install dependencies with:
And continue using the notebook exactly as before:
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 deprecatedpinecone-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.