Class: PineconeVectorStore
Provides support for writing and querying vector data in Pinecone.
Extends
Implements
Constructors
new PineconeVectorStore()
new PineconeVectorStore(
params
?):PineconeVectorStore
Parameters
• params?: PineconeParams
Returns
Overrides
Source
packages/llamaindex/src/storage/vectorStore/PineconeVectorStore.ts:51
Properties
chunkSize
chunkSize:
number
Source
packages/llamaindex/src/storage/vectorStore/PineconeVectorStore.ts:48
db?
optional
db:Pinecone
Source
packages/llamaindex/src/storage/vectorStore/PineconeVectorStore.ts:45
embedModel
embedModel:
BaseEmbedding
Inherited from
Source
packages/llamaindex/src/storage/vectorStore/types.ts:86
indexName
indexName:
string
Source
packages/llamaindex/src/storage/vectorStore/PineconeVectorStore.ts:46
namespace
namespace:
string
Source
packages/llamaindex/src/storage/vectorStore/PineconeVectorStore.ts:47
storesText
storesText:
boolean
=true
Implementation of
VectorStoreNoEmbedModel
. storesText
Source
packages/llamaindex/src/storage/vectorStore/PineconeVectorStore.ts:35
textKey
textKey:
string
Source
packages/llamaindex/src/storage/vectorStore/PineconeVectorStore.ts:49
Methods
add()
add(
embeddingResults
):Promise
<string
[]>
Adds vector record(s) to the table.
Parameters
• embeddingResults: BaseNode
<Metadata
>[]
The Nodes to be inserted, optionally including metadata tuples.
Returns
Promise
<string
[]>
Due to limitations in the Pinecone client, does not return the upserted ID list, only a Promise resolve/reject.
Implementation of
TODO
Does not create or insert sparse vectors.
Source
packages/llamaindex/src/storage/vectorStore/PineconeVectorStore.ts:101
clearIndex()
clearIndex():
Promise
<void
>
Delete all records for the current index. NOTE: This operation is not supported by Pinecone for "Starter" (free) indexes.
Returns
Promise
<void
>
The result of the delete query.
Source
packages/llamaindex/src/storage/vectorStore/PineconeVectorStore.ts:90
client()
client():
Promise
<Pinecone
>
Connects to the Pinecone account specified in environment vars. This method also checks and creates the named index if not found.
Returns
Promise
<Pinecone
>
Pinecone client, or the error encountered while connecting/setting up.
Implementation of
VectorStoreNoEmbedModel
. client
Source
packages/llamaindex/src/storage/vectorStore/PineconeVectorStore.ts:76