{"version":3,"file":"client.cjs","names":["Pinecone"],"sources":["../src/client.ts"],"sourcesContent":["import { Pinecone, PineconeConfiguration } from \"@pinecone-database/pinecone\";\nimport { getEnvironmentVariable } from \"@langchain/core/utils/env\";\n\nexport function getPineconeClient(config?: PineconeConfiguration): Pinecone {\n  if (\n    getEnvironmentVariable(\"PINECONE_API_KEY\") === undefined ||\n    getEnvironmentVariable(\"PINECONE_API_KEY\") === \"\"\n  ) {\n    throw new Error(\"PINECONE_API_KEY must be set in environment\");\n  }\n  if (!config) {\n    return new Pinecone();\n  } else {\n    return new Pinecone(config);\n  }\n}\n"],"mappings":";;;;AAGA,SAAgB,kBAAkB,QAA0C;AAC1E,MAAA,GAAA,0BAAA,wBACyB,mBAAmB,KAAK,KAAA,MAAA,GAAA,0BAAA,wBACxB,mBAAmB,KAAK,GAE/C,OAAM,IAAI,MAAM,8CAA8C;AAEhE,KAAI,CAAC,OACH,QAAO,IAAIA,4BAAAA,UAAU;KAErB,QAAO,IAAIA,4BAAAA,SAAS,OAAO"}