Skip to main content

PineconeVectorStore

//ellmental/com.theagilemonkeys.ellmental.vectorstore.pinecone/PineconeVectorStore

PineconeVectorStore

class PineconeVectorStore@JvmOverloadsconstructor(apiKey: String, url: String, namespace: String? = null, client: HttpHandler = OkHttp()) : VectorStore

Pinecone Vector Store

Implementation of the VectorStore interface that uses the Pinecone API.

Parameters

jvm

apiKeyThe API key to use to authenticate with the Pinecone API.
urlThe URL of the Pinecone API.

Constructors

PineconeVectorStore[jvm]
@JvmOverloads
constructor(apiKey: String, url: String, namespace: String? = null, client: HttpHandler = OkHttp())

Functions

NameSummary
query[jvm]
open suspend override fun query(semanticEntry: SemanticEntry, itemsLimit: Int): QueryOutput
Queries the store for semantic entries. Uses a topK value of 10.
upsert[jvm]
open suspend override fun upsert(semanticEntry: SemanticEntry)
Upserts a semantic entry into the store.