This ticket covers refactoring ai/mcp/server/memory-core/services/textEmbeddingService.mjs into a singleton class that extends Neo.core.Base. The file will also be renamed to TextEmbeddingService.mjs to follow a more consistent naming convention. This service handles creating embedding vectors for text.
Acceptance Criteria
- A new file
ai/mcp/server/memory-core/services/TextEmbeddingService.mjs is created with the refactored TextEmbeddingService class content.
- The
TextEmbeddingService class extends Neo.core.Base and is configured as a singleton.
- Existing functions (
getEmbeddingModel, embedText) are converted into class methods.
- The old file
ai/mcp/server/memory-core/services/textEmbeddingService.mjs is deleted.
- The
ai/mcp/server/memory-core/services/toolService.mjs is updated to import the TextEmbeddingService singleton and map its methods (if any are exposed as tools).
- Any other services that depend on
textEmbeddingService are updated to use the new TextEmbeddingService singleton instance.
- All related functionalities continue to work correctly after the refactoring.
This ticket covers refactoring
ai/mcp/server/memory-core/services/textEmbeddingService.mjsinto a singleton class that extendsNeo.core.Base. The file will also be renamed toTextEmbeddingService.mjsto follow a more consistent naming convention. This service handles creating embedding vectors for text.Acceptance Criteria
ai/mcp/server/memory-core/services/TextEmbeddingService.mjsis created with the refactoredTextEmbeddingServiceclass content.TextEmbeddingServiceclass extendsNeo.core.Baseand is configured as a singleton.getEmbeddingModel,embedText) are converted into class methods.ai/mcp/server/memory-core/services/textEmbeddingService.mjsis deleted.ai/mcp/server/memory-core/services/toolService.mjsis updated to import theTextEmbeddingServicesingleton and map its methods (if any are exposed as tools).textEmbeddingServiceare updated to use the newTextEmbeddingServicesingleton instance.