-
Notifications
You must be signed in to change notification settings - Fork 4k
Python: updating pinecone client #6021
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
Conversation
python/semantic_kernel/connectors/memory/pinecone/pinecone_memory_store.py
Show resolved
Hide resolved
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.
Most important would be to start using a async client, if available, will make the whole thing more usable.
python/semantic_kernel/connectors/memory/pinecone/pinecone_memory_store.py
Outdated
Show resolved
Hide resolved
python/semantic_kernel/connectors/memory/pinecone/pinecone_memory_store.py
Show resolved
Hide resolved
@LazaroHurtado could you please get latest main and merge to your branch to fix the conflict? |
@moonbox3 I have merged in the latest changes from main. |
I think something went wrong with the merge because there are now Java files in this PR. We should only be seeing your Pinecone changes. Could you check, please? |
@moonbox3, yeah that was weird. There was a recent commit to remove that folder but I guess the merge didn't clean it up locally and it persisted. All should be good now |
In the python directory, can you please run The failure is:
|
@moonbox3 Thanks for that recommendation! I ran the command and made the changes, all checks pass now |
Looking good now. Will get another pair of eyes for the other review so we can move this forward. Thanks. |
PR received 2 approving reviews, and previous reviewer is oof.
### Motivation and Context <!-- Thank you for your contribution to the semantic-kernel repo! Please help reviewers and future users, providing the following information: 1. Why is this change required? 3. What problem does it solve? 4. What scenario does it contribute to? 5. If it fixes an open issue, please link to the issue here. --> ### Description 1. Why is this change required? - Allow developers to use Pinecone as a memory store 2. What problem does it solve? - Currently using the Pinecone memory store class throws the deprecation error message show below: `AttributeError: init is no longer a top-level attribute of the pinecone package.` This PR fixes this issue by updating `pinecone-client` to a new major version and using the new initialization. 3. If it fixes an open issue, please link to the issue here. microsoft#4914 ### Contribution Checklist <!-- Before submitting this PR, please make sure: --> - [x] The code builds clean without any errors or warnings - [x] The PR follows the [SK Contribution Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md) and the [pre-submission formatting script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts) raises no violations - [x] All unit tests pass, and I have added new tests where possible - [x] I didn't break anyone 😄 --------- Co-authored-by: Lazaro Hurtado <lhurtado@microsoft.com>
### Motivation and Context <!-- Thank you for your contribution to the semantic-kernel repo! Please help reviewers and future users, providing the following information: 1. Why is this change required? 3. What problem does it solve? 4. What scenario does it contribute to? 5. If it fixes an open issue, please link to the issue here. --> ### Description 1. Why is this change required? - Allow developers to use Pinecone as a memory store 2. What problem does it solve? - Currently using the Pinecone memory store class throws the deprecation error message show below: `AttributeError: init is no longer a top-level attribute of the pinecone package.` This PR fixes this issue by updating `pinecone-client` to a new major version and using the new initialization. 3. If it fixes an open issue, please link to the issue here. microsoft#4914 ### Contribution Checklist <!-- Before submitting this PR, please make sure: --> - [x] The code builds clean without any errors or warnings - [x] The PR follows the [SK Contribution Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md) and the [pre-submission formatting script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts) raises no violations - [x] All unit tests pass, and I have added new tests where possible - [x] I didn't break anyone 😄 --------- Co-authored-by: Lazaro Hurtado <lhurtado@microsoft.com>
### Motivation and Context <!-- Thank you for your contribution to the semantic-kernel repo! Please help reviewers and future users, providing the following information: 1. Why is this change required? 3. What problem does it solve? 4. What scenario does it contribute to? 5. If it fixes an open issue, please link to the issue here. --> ### Description 1. Why is this change required? - Allow developers to use Pinecone as a memory store 2. What problem does it solve? - Currently using the Pinecone memory store class throws the deprecation error message show below: `AttributeError: init is no longer a top-level attribute of the pinecone package.` This PR fixes this issue by updating `pinecone-client` to a new major version and using the new initialization. 3. If it fixes an open issue, please link to the issue here. microsoft#4914 ### Contribution Checklist <!-- Before submitting this PR, please make sure: --> - [x] The code builds clean without any errors or warnings - [x] The PR follows the [SK Contribution Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md) and the [pre-submission formatting script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts) raises no violations - [x] All unit tests pass, and I have added new tests where possible - [x] I didn't break anyone 😄 --------- Co-authored-by: Lazaro Hurtado <lhurtado@microsoft.com>
Motivation and Context
Description
AttributeError: init is no longer a top-level attribute of the pinecone package.
This PR fixes this issue by updating
pinecone-client
to a new major version and using the new initialization.Python: PineconeMemoryStore fails to initialize with a pinecone client error #4914
Contribution Checklist