Helpers for using Pinecone with notebooks
Project description
Pinecone helpers for notebooks
This package contains helper functions for working with Pinecone in the context of a Jupyter or Google Colab notebook.
Google Colab
Authenticate
This helper function displays a widget to allow the user to authenticate with Pinecone. Once the
user authenticates, they are prompted to select the Pinecone organization and project that they want
to grant access to. An API key is then generated and set as the environment variable
PINECONE_API_KEY
.
Usage
To display the authentication widget:
from pinecone_notebooks.colab import Authenticate
Authenticate()
Note that any usage of the API key should take place in a later cell. The user must complete the
authentication flow before the PINECONE_API_KEY
environment variable can be used.
from pinecone import Pinecone
api_key = os.environ.get('PINECONE_API_KEY')
pinecone_client = Pinecone(api_key=api_key)
# ... proceed to use pinecone_client to create indexes, upload data, query, etc.
source_tag
The Authenticate
function has an optional source_tag
parameter. Pinecone partners should set
this value to receive attribution credit for users of their notebooks who signup to Pinecone.
from pinecone_notebooks.colab import Authenticate
Authenticate(source_tag='MyAwesomeApp')
Jupyter
Coming soon!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pinecone_notebooks-0.1.0rc1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f25663e9e1ff681569b5d27857228f35501d425eae2088544dca17e65547f551 |
|
MD5 | e3b03c1a059e7083aecf3940d708372c |
|
BLAKE2b-256 | ca6c50172534dd4003ae68ecf5982efe1a465aaa9f196301f0d0bd91143d48b5 |
Hashes for pinecone_notebooks-0.1.0rc1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 687eec17c1edbc1e707236ca261446d691b787367653a070a07c166b92763f15 |
|
MD5 | c2f828516e12b886f0bcf11ae6c1ce29 |
|
BLAKE2b-256 | cec915df72ef7c884bd889f943e473dcd810e75e730dfe768edac0148a2fbbac |