mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-29 01:01:11 +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 pineconeApiKey = getCredentialParam('pineconeApiKey', credentialData, nodeData)
|
||||||
|
|
||||||
const client = new Pinecone({
|
const client = new Pinecone({
|
||||||
apiKey: pineconeApiKey,
|
apiKey: pineconeApiKey
|
||||||
sourceTag: 'flowise'
|
|
||||||
})
|
})
|
||||||
|
|
||||||
await client.describeIndex(index)
|
await client.describeIndex(index)
|
||||||
|
|||||||
@@ -97,8 +97,7 @@ class Pinecone_Existing_VectorStores implements INode {
|
|||||||
const pineconeApiKey = getCredentialParam('pineconeApiKey', credentialData, nodeData)
|
const pineconeApiKey = getCredentialParam('pineconeApiKey', credentialData, nodeData)
|
||||||
|
|
||||||
const client = new Pinecone({
|
const client = new Pinecone({
|
||||||
apiKey: pineconeApiKey,
|
apiKey: pineconeApiKey
|
||||||
sourceTag: 'flowise'
|
|
||||||
})
|
})
|
||||||
|
|
||||||
const pineconeIndex = client.Index(index)
|
const pineconeIndex = client.Index(index)
|
||||||
|
|||||||
@@ -233,8 +233,7 @@ class PineconeVectorStore implements VectorStore {
|
|||||||
private async getDb(): Promise<Pinecone> {
|
private async getDb(): Promise<Pinecone> {
|
||||||
if (!this.db) {
|
if (!this.db) {
|
||||||
this.db = new Pinecone({
|
this.db = new Pinecone({
|
||||||
apiKey: this.apiKey,
|
apiKey: this.apiKey
|
||||||
sourceTag: 'flowise'
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
return Promise.resolve(this.db)
|
return Promise.resolve(this.db)
|
||||||
|
|||||||
@@ -98,8 +98,7 @@ class PineconeUpsert_VectorStores implements INode {
|
|||||||
const pineconeApiKey = getCredentialParam('pineconeApiKey', credentialData, nodeData)
|
const pineconeApiKey = getCredentialParam('pineconeApiKey', credentialData, nodeData)
|
||||||
|
|
||||||
const client = new Pinecone({
|
const client = new Pinecone({
|
||||||
apiKey: pineconeApiKey,
|
apiKey: pineconeApiKey
|
||||||
sourceTag: 'flowise'
|
|
||||||
})
|
})
|
||||||
|
|
||||||
const pineconeIndex = client.Index(index)
|
const pineconeIndex = client.Index(index)
|
||||||
|
|||||||
Reference in New Issue
Block a user