rag-memory-epf-mcp 3.1.1 → 3.1.3

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -9
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -78,23 +78,21 @@ class RAGKnowledgeGraphManager {
78
78
  // Configure environment to allow remote model downloads
79
79
  env.allowRemoteModels = true;
80
80
  env.allowLocalModels = true;
81
- this.embeddingModel = await pipeline('feature-extraction', EMBEDDING_MODEL, {
82
- revision: 'main',
83
- dtype: 'fp16',
84
- });
81
+ this.embeddingModel = await pipeline('feature-extraction', EMBEDDING_MODEL, { revision: 'main', dtype: 'fp16' });
85
82
  this.modelInitialized = true;
86
- console.error(`✅ ${EMBEDDING_MODEL} model loaded successfully`);
83
+ console.error(`✅ ${EMBEDDING_MODEL} model loaded successfully (fp16)`);
87
84
  }
88
85
  catch (error) {
89
86
  console.error('❌ Failed to load embedding model (fp16):', error instanceof Error ? error.message : error);
90
- console.error('🔄 Retrying with fp32 (no quantization)...');
87
+ const FALLBACK_MODEL = 'Xenova/all-MiniLM-L6-v2';
88
+ console.error(`🔄 Falling back to ${FALLBACK_MODEL}...`);
91
89
  try {
92
- this.embeddingModel = await pipeline('feature-extraction', EMBEDDING_MODEL, { revision: 'main' });
90
+ this.embeddingModel = await pipeline('feature-extraction', FALLBACK_MODEL, { revision: 'main' });
93
91
  this.modelInitialized = true;
94
- console.error(`✅ ${EMBEDDING_MODEL} model loaded successfully (fp32 fallback)`);
92
+ console.error(`✅ ${FALLBACK_MODEL} loaded (fallback — 384-dim, English-focused)`);
95
93
  }
96
94
  catch (retryError) {
97
- console.error('❌ Embedding model failed to load. Search will not work.', retryError instanceof Error ? retryError.message : retryError);
95
+ console.error('❌ All embedding models failed to load. Search will not work.', retryError instanceof Error ? retryError.message : retryError);
98
96
  this.modelInitialized = false;
99
97
  }
100
98
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rag-memory-epf-mcp",
3
- "version": "3.1.1",
3
+ "version": "3.1.3",
4
4
  "description": "MCP server for project-local RAG memory with knowledge graph and multilingual vector search",
5
5
  "license": "MIT",
6
6
  "author": "bripin123",