docs: bump gen-qa-openai to pinecone 9.1.0#601
Merged
Conversation
Bump pinecone~=8.0 -> 9.1.0 and rename search-hit reads hit["_id"]/["_score"] -> ["id"]/["score"] (9.x Hit rename). Normalized via ruff + nbstripout. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
jennapederson
approved these changes
Jul 9, 2026
joerg84
added a commit
that referenced
this pull request
Jul 9, 2026
## 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](https://claude.com/claude-code) <!-- CURSOR_SUMMARY --> --- > [!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**. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit cefdaf7. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY --> Co-authored-by: joerg84 <joerg@pinecone.io> Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
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 (no default data-plane timeout). Waspinecone~=8.0.Changes
pinecone==9.1.0.hit["_id"]/hit["_score"]→hit["id"]/hit["score"](double-quoted reads in the dedupe/transform helpers). The dedupe output dict already uses an"id"key and the reranker path is untouched.Already uses dict
query={...}andpc.inference.rerank(...), so no Search* object issues.Verification
All six lint gates pass locally; live
test-notebooksvalidates the runtime on this PR.Follows #598, #599, #600.
🤖 Generated with Claude Code
Note
Low Risk
Documentation-only notebook changes with a small API field rename; no production code paths.
Overview
Updates
docs/gen-qa-openai.ipynbfor Pinecone 9.x: the install pin moves frompinecone~=8.0topinecone==9.1.0.Cascading retrieval dedupe logic now keys search hits with
hit["id"]instead ofhit["_id"], matching the 9.x search response shape so merge/rerank still works.The notebook was cleaned for publication (outputs cleared,
execution_countreset, sources reformatted) via the repo pre-commit tooling.Reviewed by Cursor Bugbot for commit 437b32b. Bugbot is set up for automated code reviews on this repo. Configure here.