feat: modernize ner-powered-search notebook to Pinecone SDK v8 #542
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 modernizes the
ner-powered-search.ipynbnotebook to use Pinecone SDK v8, updating it from the legacypinecone-clientpackage to the modernpineconepackage and aligning it with current SDK patterns and repository standards.Problem
The notebook was using the deprecated
pinecone-client==3.1.0package, which is no longer maintained. This creates confusion for users and doesn't reflect current best practices for working with Pinecone.Solution
Updated the notebook to use Pinecone SDK v8 with the following changes:
pinecone-client==3.1.0topinecone(unpinned to get latest v8)pineconemodule to modernPineconeclient classos.environ.get()withgetpass()fallback instead of hardcoded placeholderKey Concepts
ServerlessSpecfor index creation, which is the correct v8 patternPinecone(api_key=api_key)patternBreaking Changes
None. The notebook functionality remains the same; only the underlying SDK package and initialization patterns have been updated.
Example Usage
Users can now run the notebook with the latest Pinecone SDK v8:
Testing
Closes: SDK-161
🤖 Generated with Claude Code
Note
Low Risk
Low risk: documentation/demo notebook changes only; main impact is runtime dependency/API usage updates for Pinecone initialization and index creation.
Overview
Updates
ner-powered-search.ipynbto use the modernpineconepackage (SDK v8) instead of the legacy pinnedpinecone-clientdependency, while keeping the NER + vector-search workflow the same.Adds a Prerequisites section, switches API key handling to
PINECONE_API_KEYwith an interactivegetpass()fallback, and reformats/cleans the notebook by stripping execution outputs and applying small style/formatting tweaks (e.g., compact imports and argument formatting).Written by Cursor Bugbot for commit 71c7d2c. This will update automatically on new commits. Configure here.