Make control plane base_uri configurable for Pinecone Local support#52
Merged
Make control plane base_uri configurable for Pinecone Local support#52
Conversation
The control plane (Index, Collection) hardcoded https://api.pinecone.io, making local development with Pinecone Local containers impossible without monkey-patching. Now base_uri defaults to https://api.pinecone.io (backward compatible) and can be set to any URL for the control plane. The data plane (Vector) is unchanged — it already supports http:// prefixes on host parameters. Closes #47 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
de73e23 to
937cc90
Compare
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.
Summary
The control plane (
Index,Collection) hardcodedhttps://api.pinecone.io, making it impossible to use Pinecone Local's database emulator for index management without monkey-patching.This PR makes
base_uriconfigurable with a default ofhttps://api.pinecone.io— fully backward compatible for cloud users, and now usable with local containers.The data plane (
Vector) already supportshttp://prefixes on host parameters, so no changes are needed there. Users just need to passhost: "http://dense-index:5081"instead ofhost: "dense-index:5081".Usage
Changes
Configuration#base_uridefaults tohttps://api.pinecone.ioinstead of raisingIndexandCollectionreadbase_urifrom config instead of hardcodingdefine_singleton_methodmonkey-patch from test helpersCloses #47, closes #51
Test plan
🤖 Generated with Claude Code