Skip to content

Commit

Permalink
Finish update pinecone peer dep
Browse files Browse the repository at this point in the history
  • Loading branch information
nfcampos committed Apr 9, 2023
1 parent 98fa8c9 commit b820770
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"dependencies": {
"@dqbd/tiktoken": "^1.0.2",
"@getmetal/metal-sdk": "^1.0.12",
"@pinecone-database/pinecone": "^0.0.10",
"@pinecone-database/pinecone": "^0.0.12",
"@prisma/client": "^4.11.0",
"@supabase/supabase-js": "^2.10.0",
"chromadb": "^1.3.0",
Expand Down
5 changes: 4 additions & 1 deletion langchain/src/vectorstores/pinecone.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import type { VectorOperationsApi } from "@pinecone-database/pinecone/dist/pinecone-generated-ts-fetch";
import { v4 as uuidv4 } from "uuid";
import flatten from "flat";

Expand All @@ -9,6 +8,10 @@ import { Document } from "../document.js";
// eslint-disable-next-line @typescript-eslint/ban-types, @typescript-eslint/no-explicit-any
type PineconeMetadata = Record<string, any>;

type VectorOperationsApi = ReturnType<
import("@pinecone-database/pinecone").PineconeClient["Index"]
>;

export interface PineconeLibArgs {
pineconeIndex: VectorOperationsApi;
textKey?: string;
Expand Down
11 changes: 1 addition & 10 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4694,15 +4694,6 @@ __metadata:
languageName: node
linkType: hard

"@pinecone-database/pinecone@npm:^0.0.10":
version: 0.0.10
resolution: "@pinecone-database/pinecone@npm:0.0.10"
dependencies:
cross-fetch: ^3.1.5
checksum: bc4de93134f03574bbf09d40ed16936cd981594748d71d741fe392963075b8b9d0e8effbfea19c90b7019f7defd4b79b440fa33f18d0734d81c39caf4e68783e
languageName: node
linkType: hard

"@pinecone-database/pinecone@npm:^0.0.12":
version: 0.0.12
resolution: "@pinecone-database/pinecone@npm:0.0.12"
Expand Down Expand Up @@ -15642,7 +15633,7 @@ __metadata:
dependencies:
"@dqbd/tiktoken": ^1.0.2
"@getmetal/metal-sdk": ^1.0.12
"@pinecone-database/pinecone": ^0.0.10
"@pinecone-database/pinecone": ^0.0.12
"@prisma/client": ^4.11.0
"@supabase/supabase-js": ^2.10.0
"@tsconfig/recommended": ^1.0.2
Expand Down

0 comments on commit b820770

Please sign in to comment.