Skip to content

Commit

Permalink
Chore/Pinecone Version Upgrade (#2310)
Browse files Browse the repository at this point in the history
add source tag to pinecone
  • Loading branch information
HenryHengZJ authored May 3, 2024
1 parent 2254d16 commit 9971627
Show file tree
Hide file tree
Showing 6 changed files with 32,038 additions and 32,038 deletions.
3 changes: 2 additions & 1 deletion packages/components/nodes/vectorstores/Pinecone/Pinecone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ class Pinecone_VectorStores implements INode {
const pineconeApiKey = getCredentialParam('pineconeApiKey', credentialData, nodeData)

const client = new Pinecone({
apiKey: pineconeApiKey
apiKey: pineconeApiKey,
sourceTag: 'flowise'
})

await client.describeIndex(index)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ class Pinecone_Existing_VectorStores implements INode {
const pineconeApiKey = getCredentialParam('pineconeApiKey', credentialData, nodeData)

const client = new Pinecone({
apiKey: pineconeApiKey
apiKey: pineconeApiKey,
sourceTag: 'flowise'
})

const pineconeIndex = client.Index(index)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,8 @@ class PineconeVectorStore implements VectorStore {
private async getDb(): Promise<Pinecone> {
if (!this.db) {
this.db = new Pinecone({
apiKey: this.apiKey
apiKey: this.apiKey,
sourceTag: 'flowise'
})
}
return Promise.resolve(this.db)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ class PineconeUpsert_VectorStores implements INode {
const pineconeApiKey = getCredentialParam('pineconeApiKey', credentialData, nodeData)

const client = new Pinecone({
apiKey: pineconeApiKey
apiKey: pineconeApiKey,
sourceTag: 'flowise'
})

const pineconeIndex = client.Index(index)
Expand Down
2 changes: 1 addition & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"@mistralai/mistralai": "0.1.3",
"@notionhq/client": "^2.2.8",
"@opensearch-project/opensearch": "^1.2.0",
"@pinecone-database/pinecone": "2.1.0",
"@pinecone-database/pinecone": "2.2.0",
"@qdrant/js-client-rest": "^1.2.2",
"@supabase/supabase-js": "^2.29.0",
"@types/js-yaml": "^4.0.5",
Expand Down
Loading

0 comments on commit 9971627

Please sign in to comment.