Skip to content
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

[Bug] [Plugins] Pinecone Python plugins cause problems with autocomplete (intellisense) in IDEs #423

Open
2 tasks done
austin-denoble opened this issue Dec 12, 2024 · 0 comments
Labels
bug Something isn't working status:needs-triage An issue that needs to be triaged by the Pinecone team

Comments

@austin-denoble
Copy link
Contributor

  • I believe this is a new bug
  • I have searched the existing Github issues and Community Forum, and I could not find an existing post for this bug

Describe the bug
In order to support early access to features and API changes outside of the standard release cycle, the pinecone python client introduced plugins as a way to add additional functionality to the core, stable SDK. There are currently three plugins which offer assistant, inference, and records support against upcoming API version changes:

Installation and usage instructions can be found on pypi above as a part of each client.

These plugins can be included in the pinecone SDK directly, or added individually as additional dependencies alongside the SDK.

When these plugin dependencies are installed alongside the pinecone SDK, they will attach additional functionality to the relevant client classes at runtime.

This means that when working with the pinecone client and plugins within an IDE development context, autocomplete and intellisense tools may have trouble reconciling the functionality added at runtime.

Error information
The most likely presentation of this issue is losing contextual information when working in an IDE's autocomplete, intellisense, etc. The code that is attached to the client through a plugin will not be easily visible in your IDE. You may see pop-up errors mentioning things don't exist, or are untyped.

Steps to reproduce the issue locally
Install the pinecone client along with one of the plugins in an existing python project. When trying to work with something like Pinecone.inference.<function> you may see warnings about the inference module not existing.

pip install pinecone
pip install pinecone-plugin-inference # the inference plugin is also included with the latest version of the python client

Then, when working with client while developing, you may run into something like this where the attribute on the Pinecone class is untyped:
Screenshot 2024-12-12 at 6 07 40 PM

We're working on improving this experience, most likely through moving functionality out of the plugin ecosystem, and into the core SDK.

@austin-denoble austin-denoble added the bug Something isn't working label Dec 12, 2024
@github-actions github-actions bot added the status:needs-triage An issue that needs to be triaged by the Pinecone team label Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working status:needs-triage An issue that needs to be triaged by the Pinecone team
Projects
None yet
Development

No branches or pull requests

1 participant