The `pinecone-plugin-assistant` library provides an interface for interacting with Pinecone's Assistant APIs, enabling users to create, manage, and chat with AI assistants. As of Pinecone Python SDK v7.0.0, the functionalities provided by this plugin are bundled directly within the main `pinecone` package. It is currently at version 3.0.3 and is actively maintained as part of the broader Pinecone ecosystem, with its release cadence tied to the main Pinecone SDK releases.
pip install pineconeVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to initialize the Pinecone client, create a new AI assistant, send a chat message to it, and receive a response. It includes basic error handling and cleanup. Ensure your Pinecone API key is set as an environment variable (`PINECONE_API_KEY`).
Only install `pinecone` (`pip install pinecone`). Do not install `pinecone-plugin-assistant` separately unless explicitly targeting older SDK versions. If migrating from older versions, remove `pinecone-plugin-assistant` from your dependencies.
Refer to official documentation and examples for correct method signatures. While IDE warnings may appear, the code should execute correctly if the methods are used as documented.
Upgrade your Python environment to 3.10 or newer.
Upgrade to `pinecone-plugin-assistant` version 0.1.3 or higher. If using the bundled functionality, ensure your main `pinecone` SDK is up-to-date.
If encountering conflicts, try upgrading `pinecone-plugin-assistant` to a newer version (if available) or adjust your project's `packaging` dependency to satisfy all requirements, possibly by using dependency overrides if your package manager supports them. The broader recommendation is to use the bundled functionality in `pinecone` SDK >= 7.0.0.
Ensure the `PINECONE_API_KEY` environment variable is set with a valid Pinecone API key before running your application. You can obtain an API key from your Pinecone console.
If using Pinecone SDK v7.0.0 or later, remove the explicit import of `pinecone_plugins.assistant` and access assistant functionalities directly via the `pinecone` client (e.g., `from pinecone import Pinecone; pc = Pinecone(...); assistant = pc.assistant`). If using an older Pinecone SDK version, ensure `pinecone-plugin-assistant` is installed via `pip install pinecone-plugin-assistant`.
Update your code to instantiate the `Pinecone` client directly: `from pinecone import Pinecone; pc = Pinecone(api_key='YOUR_API_KEY')`.
Try upgrading both `pinecone` and `pinecone-plugin-assistant` (if still separately installed) to their latest versions: `pip install --upgrade pinecone pinecone-plugin-assistant`. If the conflict persists, you may need to isolate the project in a virtual environment, or identify the conflicting library and attempt to find compatible versions for all dependencies.
First, verify your Pinecone API key is correct and ensure it's being passed correctly during client initialization. If the key is definitely correct, ensure you are using the latest version of the Pinecone SDK (which includes the assistant functionality) or `pinecone-plugin-assistant` if using an older Pinecone SDK version, as the API key handling bug was fixed in `pinecone-plugin-assistant` v0.1.3. Upgrade using `pip install --upgrade pinecone`.