Pinecone
Connecting to Pinecone.io
To use Pinecone.io as a vector database, create a "vector-database" resource in your configuration.yaml file.
Required parameters:
api-key: your Pinecone API key
index-name: the name of the index
project-name: the name of the project
environment: the environment
You can find the api-key, index-name, project-name and enviroment in the Pinecone.io console.
Optional parameters:
server-side-timeout-sec: the timeout for any server-side operation (default is 10 seconds)
Querying Pinecone
You can query Pinecone using the "vector-db-query" agent in your pipeline.
To perform the query, define the JSON for the request to the Pinecone API. As usual you can use the '?' symbol as a placeholder for the fields that you specify in the "query" section.
Writing to Pinecone
You can write to Pinecone using the "vector-db-sink" agent in your pipeline.
To write to Pinecone, define the values for the vector.id, vector.vector and vector.metadata fields. You can add as many vector.metadata fields as you want, but you need to specify the prefix "vector.metadata." for each field.
Configuration
Check out the full configuration properties in the API Reference page.
Last updated