Create a Pinecone Data Source
You will need the following information about your Pinecone database: To create a Pinecone Data Source:- From the navigation pane, click Data > Data Sources.
- Click Create a Data Source.
- In the New Data Source window, from Select Data Store, select Pinecone.
- Provide the Pinecone API Key for your Pinecone database.
- Create a Data Source Name and an optional Description.
- Click Test Credentials.
- Confirm that the Data Source authenticates.
- Select who can view and use the Data Source in Projects.
Use the Pinecone Data Source
To use your Pinecone Data Source, you must install the prerequisite Python libraries in the compute Environment you want to run Pinecone commands in and configure the Pinecone client using a Domino-specific configuration.Install the Pinecone Python library and Domino Data SDK
To use the Pinecone Python library in Domino, you must install the following libraries in your compute Environment. Domino standard environments have these libraries installed by default. If you are using a customized environment, Edit your compute Environment and add the following lines to the Dockerfile instructions:Configure the Pinecone Python client
To connect to your Pinecone service in a Domino execution, you must initialize your Pinecone connection using a Domino-specific Environment. To find the configuration code snippets:- Add the Pinecone Data Source to your Project.
- In your Workspace, go to Data > Data Sources > Code snippet > Python.
- Copy the code snippet, paste it into your code, and modify it as needed.
Domino now only supports accessing the Pinecone data source through Python pinecone-client>=3.0.0.
-
The code snippet for pinecone-client>=3.0.0:
Next steps
- After connecting to your Data Source, learn how to Use Data Sources.
- Share this Data Source with your collaborators.