Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

pinecone_notebooks-0.1.1-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file pinecone_notebooks-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pinecone_notebooks-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6f5eb0b163fe7d50e3ef61d4fe2e0a6d5c15b762214c5f756979adf7a44f7762
MD5 ac32ee1ca40cec3056261fbc7ff9dca1
BLAKE2b-256 2b833d0eff668327fbfc844037790351e01260c697f70574d7bcf6167e6f3e4c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page