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. The
resulting API key will be placed in the PINECONE_API_KEY
environment variable.
Usage
To display the authentication widget:
from pinecone_notebooks.colab import Authenticate
Authenticate()
The widget will be displayed for the user to 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.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3386b941368d587f896e0198d3048ee7edc1d7e4c0355f5da1ed5ec21842def3 |
|
MD5 | c2f8ae95ad996d68f5ec6a8d7f9c0d16 |
|
BLAKE2b-256 | b12edefd8cccb00f16be3138a4cb31b505a79cce0b1445780a83d8125ba08652 |