ballerinax/pinecone.index Ballerina library
This is a generated connector for the
Index Operations under Pinecone Vector Database API OpenAPI specification. Pinecone is a fully managed vector database, which allows storing data objects and vector embeddings from the ML models, including the LLMs offered by OpenAI, Hugging Face, and Cohere. The Pinecone vector database makes it easy to build developer-friendly, easily scalable, and high-performance vector search applications without infrastructure hassles.
Before using this connector in your Ballerina application, complete the following:
- Sign up and log in to Pinecone.
- Create a new project and specify an environment.
- Click on
API Keysand create an API key.
To use the Pinecone.index connector in your Ballerina application, update the
.bal file as follows:
Step 1: Import the connector
First, import the
ballerinax/pinecone.index module into the Ballerina project.
Step 2: Create a new connector instance
Create and initialize a
index:Client with your
Service URL and the obtained
Step 3: Invoke the connector operation
- Now, you can use the operations available within the connector. You can list indexes in your project as follows.
- Use the
bal runcommand to compile and run the Ballerina program.
Released date: 10 months ago
Ballerina version: 2201.4.1
GraalVM compatible: Yes
Current verison: 0