Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix/PineconeArgumentError #2322

Merged
merged 3 commits into from
May 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions packages/components/nodes/vectorstores/Pinecone/Pinecone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Loading