Skip to content

docs: bump cascading-retrieval to pinecone 9.1.0#602

Merged
joerg84 merged 1 commit into
mainfrom
bump-cascading-retrieval-pinecone-9
Jul 9, 2026
Merged

docs: bump cascading-retrieval to pinecone 9.1.0#602
joerg84 merged 1 commit into
mainfrom
bump-cascading-retrieval-pinecone-9

Conversation

@joerg84

@joerg84 joerg84 commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Why

Continues the docs/ migration off the pre-9.x client. Was pinecone~=8.0.

Changes

  • Pin → pinecone==9.1.0.
  • 9.x search-hit fix, surgical. Only the reads off actual search Hit objects are renamed to ["id"]/["score"]: print_hits, the dedupe key hit["_id"], and the sort key x["_score"]. The merge_chunks output dicts deliberately keep their "_id"/"_score" keys, so the downstream row["_id"]/row["_score"] reads and the pc.inference.rerank(documents=...) input are unchanged (a blanket rename would have broken those).
  • Normalized via ruff + nbstripout.

Verification

All six lint gates pass locally; live test-notebooks validates 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.ipynb for Pinecone 9.1.0 (from pinecone~=8.0), including a pinned install and early Pinecone import in the setup cell.

9.x search hit shape: print_hits and merge_chunks now read id and score on API hits (replacing _id / _score). merge_chunks still emits _id / _score on its output dicts so merge printing and pc.inference.rerank(documents=...) stay unchanged.

Notebook outputs were cleared (execution_count: null, empty outputs) via ruff and nbstripout.

Reviewed by Cursor Bugbot for commit cefdaf7. Bugbot is set up for automated code reviews on this repo. Configure here.

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>
@joerg84
joerg84 merged commit e882d09 into main Jul 9, 2026
12 checks passed
@joerg84
joerg84 deleted the bump-cascading-retrieval-pinecone-9 branch July 9, 2026 01:14
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