Pinecone
Configure your own Pinecone instance as data sink.
Configure via UI
Configure via API / Client
- Python Client
- TypeScript Client
from llama_cloud.types import CloudPineconeVectorStore
ds = {
'name': '<your-name>',
'sink_type': 'PINECONE',
'component': CloudPineconeVectorStore(
api_key='<api_key>',
index_name='<index_name>',
name_space='<name_space>', # optional
insert_kwargs='<insert_kwargs>' # optional
)
}
data_sink = client.data_sinks.create_data_sink(request=ds)
const ds = {
'name': 'pinecone',
'sinkType': 'PINECONE',
'component': {
'api_key': '<api_key>',
'index_name': '<index_name>',
'name_space': '<name_space>', // optional
'insert_kwargs': '<insert_kwargs>' // optional
}
}
data_sink = await client.dataSinks.createDataSink({
projectId: projectId,
body: ds
})