-
Notifications
You must be signed in to change notification settings - Fork 15.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
partners: update pinecone client #28320
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
numpy = [ | ||
{ version = "^1", python = "<3.12" }, | ||
{ version = "^1.26.0", python = ">=3.12" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a structural change to make things cleaner
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking this on, Audrey. There are a few small things I would address.
@@ -74,6 +74,7 @@ class PineconeVectorStore(VectorStore): | |||
dimension=1536, | |||
metric="cosine", | |||
spec=ServerlessSpec(cloud="aws", region="us-east-1"), | |||
deletion_protection="disabled", # Defaults to "enabled" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default behavior is deletion_protection="disabled"
So this comment is incorrect.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eek, silly oversight. Thank you!
@@ -21,15 +21,12 @@ disallow_untyped_defs = "True" | |||
[tool.poetry.dependencies] | |||
python = ">=3.9,<3.13" | |||
langchain-core = "^0.3.15" | |||
pinecone-client = "^5.0.0" | |||
pinecone = ">=5.4.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be "^5.4.0"
. >=5.4.0
would include future breaking changes which may not be compatible.
Poetry docs have a nice explanation of how these various syntax elements in version numbers are interpreted. https://python-poetry.org/docs/dependency-specification/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah thank you so much!
headers={ | ||
"Api-Key": self.pinecone_api_key.get_secret_value(), | ||
"Content-Type": "application/json", | ||
"X-Pinecone-API-Version": "2024-07", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should probably update this API version header while you're here.
This PR updates the Pinecone client to
5.4.0
, as well as its dependencies (pinecone-plugin-inference
andpinecone-plugin-interface
).Note:
pinecone-client
is now simply calledpinecone
.Question for reviewer(s): should this PR also update the
pinecone
dep in the root dir'spoetry.lock
file? Was unsure. (I don't believe so b/c it seems pinned to a lower version likely based on 3rd-party deps (e.g. Unstructured).)--
TW: @audrey_sage_