rrce-workflow 0.2.45 → 0.2.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1161,7 +1161,6 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
1161
1161
|
});
|
|
1162
1162
|
|
|
1163
1163
|
// src/mcp/services/rag.ts
|
|
1164
|
-
import { pipeline } from "@xenova/transformers";
|
|
1165
1164
|
import * as fs9 from "fs";
|
|
1166
1165
|
import * as path10 from "path";
|
|
1167
1166
|
var INDEX_VERSION, DEFAULT_MODEL, RAGService;
|
|
@@ -1188,6 +1187,7 @@ var init_rag = __esm({
|
|
|
1188
1187
|
if (!this.pipe) {
|
|
1189
1188
|
logger.info(`RAG: Initializing model ${this.modelName}...`);
|
|
1190
1189
|
try {
|
|
1190
|
+
const { pipeline } = await import("@xenova/transformers");
|
|
1191
1191
|
this.pipe = await pipeline("feature-extraction", this.modelName);
|
|
1192
1192
|
logger.info(`RAG: Model ${this.modelName} initialized successfully.`);
|
|
1193
1193
|
} catch (error) {
|