n8n-nodes-databricks
Version:
Databricks node for n8n
17 lines • 835 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.handleRetrieveOperation = handleRetrieveOperation;
const helpers_1 = require("../../../../../utils/helpers");
const logWrapper_1 = require("../../../../../utils/logWrapper");
async function handleRetrieveOperation(context, args, embeddings, itemIndex) {
const filter = (0, helpers_1.getMetadataFiltersValues)(context, itemIndex);
const vectorStore = await args.getVectorStoreClient(context, filter, embeddings, itemIndex);
return {
response: (0, logWrapper_1.logWrapper)(vectorStore, context),
closeFunction: async () => {
var _a;
(_a = args.releaseVectorStoreClient) === null || _a === void 0 ? void 0 : _a.call(args, vectorStore);
},
};
}
//# sourceMappingURL=retrieveOperation.js.map