mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 19:00:59 +03:00
Bugfix/PineconeArgumentError (#2322)
* add source tag to pinecone * update pinecone
This commit is contained in:
@@ -171,8 +171,7 @@ class Pinecone_VectorStores implements INode {
|
||||
const pineconeApiKey = getCredentialParam('pineconeApiKey', credentialData, nodeData)
|
||||
|
||||
const client = new Pinecone({
|
||||
apiKey: pineconeApiKey,
|
||||
sourceTag: 'flowise'
|
||||
apiKey: pineconeApiKey
|
||||
})
|
||||
|
||||
await client.describeIndex(index)
|
||||
|
||||
@@ -97,8 +97,7 @@ class Pinecone_Existing_VectorStores implements INode {
|
||||
const pineconeApiKey = getCredentialParam('pineconeApiKey', credentialData, nodeData)
|
||||
|
||||
const client = new Pinecone({
|
||||
apiKey: pineconeApiKey,
|
||||
sourceTag: 'flowise'
|
||||
apiKey: pineconeApiKey
|
||||
})
|
||||
|
||||
const pineconeIndex = client.Index(index)
|
||||
|
||||
@@ -233,8 +233,7 @@ class PineconeVectorStore implements VectorStore {
|
||||
private async getDb(): Promise<Pinecone> {
|
||||
if (!this.db) {
|
||||
this.db = new Pinecone({
|
||||
apiKey: this.apiKey,
|
||||
sourceTag: 'flowise'
|
||||
apiKey: this.apiKey
|
||||
})
|
||||
}
|
||||
return Promise.resolve(this.db)
|
||||
|
||||
@@ -98,8 +98,7 @@ class PineconeUpsert_VectorStores implements INode {
|
||||
const pineconeApiKey = getCredentialParam('pineconeApiKey', credentialData, nodeData)
|
||||
|
||||
const client = new Pinecone({
|
||||
apiKey: pineconeApiKey,
|
||||
sourceTag: 'flowise'
|
||||
apiKey: pineconeApiKey
|
||||
})
|
||||
|
||||
const pineconeIndex = client.Index(index)
|
||||
|
||||
Reference in New Issue
Block a user