rag-memory-epf-mcp 3.1.1 → 3.1.2

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 +6 -9
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -78,20 +78,17 @@ 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' });
85
82
  this.modelInitialized = true;
86
- console.error(`✅ ${EMBEDDING_MODEL} model loaded successfully`);
83
+ console.error(`✅ ${EMBEDDING_MODEL} model loaded successfully (fp32)`);
87
84
  }
88
85
  catch (error) {
89
- console.error('❌ Failed to load embedding model (fp16):', error instanceof Error ? error.message : error);
90
- console.error('🔄 Retrying with fp32 (no quantization)...');
86
+ console.error('❌ Failed to load embedding model (fp32):', error instanceof Error ? error.message : error);
87
+ console.error('🔄 Retrying with fp16...');
91
88
  try {
92
- this.embeddingModel = await pipeline('feature-extraction', EMBEDDING_MODEL, { revision: 'main' });
89
+ this.embeddingModel = await pipeline('feature-extraction', EMBEDDING_MODEL, { revision: 'main', dtype: 'fp16' });
93
90
  this.modelInitialized = true;
94
- console.error(`✅ ${EMBEDDING_MODEL} model loaded successfully (fp32 fallback)`);
91
+ console.error(`✅ ${EMBEDDING_MODEL} model loaded successfully (fp16 fallback)`);
95
92
  }
96
93
  catch (retryError) {
97
94
  console.error('❌ Embedding model failed to load. Search will not work.', retryError instanceof Error ? retryError.message : retryError);
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.2",
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",