LearnNewsExamplesServices
Frontmatter
id7546
titleConvert textEmbeddingService to TextEmbeddingService Neo.mjs Class
stateClosed
labels
enhancementai
assigneestobiu
createdAtOct 18, 2025, 3:53 PM
updatedAtOct 18, 2025, 4:02 PM
githubUrlhttps://github.com/neomjs/neo/issues/7546
authortobiu
commentsCount0
parentIssue7536
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtOct 18, 2025, 4:02 PM

Convert textEmbeddingService to TextEmbeddingService Neo.mjs Class

Closed v11.0.0 enhancementai
tobiu
tobiu commented on Oct 18, 2025, 3:53 PM

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

  1. A new file ai/mcp/server/memory-core/services/TextEmbeddingService.mjs is created with the refactored TextEmbeddingService class content.
  2. The TextEmbeddingService class extends Neo.core.Base and is configured as a singleton.
  3. Existing functions (getEmbeddingModel, embedText) are converted into class methods.
  4. The old file ai/mcp/server/memory-core/services/textEmbeddingService.mjs is deleted.
  5. 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).
  6. Any other services that depend on textEmbeddingService are updated to use the new TextEmbeddingService singleton instance.
  7. All related functionalities continue to work correctly after the refactoring.
tobiu assigned to @tobiu on Oct 18, 2025, 3:53 PM
tobiu added the enhancement label on Oct 18, 2025, 3:53 PM
tobiu added the ai label on Oct 18, 2025, 3:53 PM
tobiu added parent issue #7536 on Oct 18, 2025, 3:53 PM
tobiu referenced in commit c6e3ef0 - "#7546 renaming the file first to avoid git confusion" on Oct 18, 2025, 3:55 PM
tobiu referenced in commit 36a7ac8 - "Convert textEmbeddingService to TextEmbeddingService Neo.mjs Class #7546" on Oct 18, 2025, 3:59 PM
tobiu closed this issue on Oct 18, 2025, 4:02 PM