docs: bump cascading-retrieval to pinecone 9.1.0#602
Merged
Conversation
Bump pinecone~=8.0 -> 9.1.0. Rename only the search-Hit reads (hit["_id"]/["_score"], sort key x["_score"]) to ["id"]/["score"] for 9.x; the notebook's own merged-result dicts keep their "_id"/"_score" keys, so the downstream row[...] reads and the reranker input are unchanged. Normalized via ruff + nbstripout. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
jennapederson
approved these changes
Jul 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Why
Continues the
docs/migration off the pre-9.x client. Waspinecone~=8.0.Changes
pinecone==9.1.0.Hitobjects are renamed to["id"]/["score"]:print_hits, the dedupe keyhit["_id"], and the sort keyx["_score"]. Themerge_chunksoutput dicts deliberately keep their"_id"/"_score"keys, so the downstreamrow["_id"]/row["_score"]reads and thepc.inference.rerank(documents=...)input are unchanged (a blanket rename would have broken those).Verification
All six lint gates pass locally; live
test-notebooksvalidates the runtime.Follows #598, #599, #600, #601. This completes the cleanly-bumpable
docs/set; the remainder is dependency-blocked (langchain-pinecone<8, pinecone-datasets<4) or requires v3-API rewrites (pinecone==0.2.13).🤖 Generated with Claude Code
Note
Low Risk
Documentation-only notebook changes with no production code or security impact; behavioral risk is limited to example correctness under the new client.
Overview
Updates
docs/cascading-retrieval.ipynbfor Pinecone 9.1.0 (frompinecone~=8.0), including a pinned install and earlyPineconeimport in the setup cell.9.x search hit shape:
print_hitsandmerge_chunksnow readidandscoreon API hits (replacing_id/_score).merge_chunksstill emits_id/_scoreon its output dicts so merge printing andpc.inference.rerank(documents=...)stay unchanged.Notebook outputs were cleared (
execution_count: null, emptyoutputs) via ruff and nbstripout.Reviewed by Cursor Bugbot for commit cefdaf7. Bugbot is set up for automated code reviews on this repo. Configure here.