{"version":3,"file":"simple.mjs","sources":["simple.js"],"sourcesContent":["import { globalGentraceConfig, } from \"@gentrace/core\";\nimport { PineconePipelineHandler, } from \"../pinecone\";\nclass SimplePinecone extends PineconePipelineHandler {\n    constructor(config) {\n        if (!config) {\n            throw new Error(\"Pinecone configuration with API key and environment is required\");\n        }\n        super({\n            gentraceConfig: globalGentraceConfig,\n            config,\n        });\n        this.configProtected = config;\n    }\n    getConfig() {\n        return this.configProtected;\n    }\n    // @ts-ignore\n    Index(index) {\n        return this.index(index);\n    }\n    // @ts-ignore: hack to avoid base class inheritance issues\n    index(index) {\n        const apiHandler = super.indexInner(index);\n        return apiHandler;\n    }\n}\nexport { SimplePinecone };\n"],"names":[],"mappings":";;;AAEA,MAAM,cAAc,SAAS,uBAAuB,CAAC;AACrD,IAAI,WAAW,CAAC,MAAM,EAAE;AACxB,QAAQ,IAAI,CAAC,MAAM,EAAE;AACrB,YAAY,MAAM,IAAI,KAAK,CAAC,iEAAiE,CAAC,CAAC;AAC/F,SAAS;AACT,QAAQ,KAAK,CAAC;AACd,YAAY,cAAc,EAAE,oBAAoB;AAChD,YAAY,MAAM;AAClB,SAAS,CAAC,CAAC;AACX,QAAQ,IAAI,CAAC,eAAe,GAAG,MAAM,CAAC;AACtC,KAAK;AACL,IAAI,SAAS,GAAG;AAChB,QAAQ,OAAO,IAAI,CAAC,eAAe,CAAC;AACpC,KAAK;AACL;AACA,IAAI,KAAK,CAAC,KAAK,EAAE;AACjB,QAAQ,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AACjC,KAAK;AACL;AACA,IAAI,KAAK,CAAC,KAAK,EAAE;AACjB,QAAQ,MAAM,UAAU,GAAG,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;AACnD,QAAQ,OAAO,UAAU,CAAC;AAC1B,KAAK;AACL;;;;"}