Skip to content

Remove preview namespace usage for Docs API/FTS GA - #35

Merged
arjunpatel7 merged 2 commits into
mainfrom
upgrade-sdk-to-10
Sep 4, 2026
Merged

arjunpatel7 merged 2 commits into
mainfrom
upgrade-sdk-to-10

Conversation

@jennapederson

@jennapederson jennapederson commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

Bump pinecone to 10.0.0 and migrate pc.preview.* calls to their GA equivalents (pc.indexes.*, pc.index(...), top-level SchemaBuilder). Also moves query.py's text score_by clauses from the deprecated singular field to fields=[...].


Note

Medium Risk
Touches all live index access and search payload shapes; misaligned SDK/API usage would break ingestion and every search mode until fixed.

Overview
Upgrades Pinecone to 10.0.0 and drops the preview client surface: index lifecycle (exists / create / delete / describe), document upsert/search handles, and SchemaBuilder now go through the GA pc.indexes and pc.index() APIs instead of pc.preview.*.

Text FTS requests now use the GA score_by shape—each text clause passes fields: [<name>] instead of the deprecated singular field. That change is wired through query.py (search_text, search_text_multi) and reflected in the Streamlit tab reference plus unit/live tests that assert on kwargs["score_by"].

Dependency bumps alongside Pinecone: Streamlit 1.54.0, Pillow 12.3.0, and python-dotenv 1.2.2. Docstrings/comments no longer call the index “preview.”

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

Bump pinecone to 10.0.0 and migrate pc.preview.* calls to their GA
equivalents (pc.indexes.*, pc.index(...), top-level SchemaBuilder).
Also moves query.py's text score_by clauses from the deprecated
singular `field` to `fields=[...]`.
@jennapederson jennapederson changed the title Remove preview namespace usage ahead of FTS GA Remove preview namespace usage for Docs API/FTS GA Sep 3, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 8d1cb73. Configure here.

Comment thread build_index.py
The dependency-audit CI job flags known vulnerabilities in the
pinned versions of these three packages, independent of the
pinecone SDK bump. Move to the fixed releases so pip-audit passes.

@arjunpatel7 arjunpatel7 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@arjunpatel7
arjunpatel7 merged commit 13e5462 into main Sep 4, 2026
7 checks passed
@arjunpatel7
arjunpatel7 deleted the upgrade-sdk-to-10 branch September 4, 2026 21:19
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