Frontmatter
| id | 7904 |
| title | Refactor Knowledge Base embedding logic into Vector Service |
| state | Closed |
| labels | airefactoring |
| assignees | tobiu |
| createdAt | Nov 25, 2025, 5:19 PM |
| updatedAt | Nov 25, 2025, 6:29 PM |
| githubUrl | https://github.com/neomjs/neo/issues/7904 |
| author | tobiu |
| commentsCount | 0 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| contentTrust | |
| projected | |
| quarantined | 0 |
| signals | [] |
| blockedBy | [] |
| blocking | [] |
| closedAt | Nov 25, 2025, 6:29 PM |
Goal: Further simplify
DatabaseService.mjsby extracting the embedding generation and vector database upsert logic into a dedicated service.Current State:
embedKnowledgeBaseis a complex method (~160 lines) that mixes:Proposed Architecture:
services/VectorService.mjsorservices/EmbeddingService.mjs).Impact:
DatabaseServicewill become a pure lifecycle manager and orchestrator, delegating:source/*providers.VectorService. This completes the separation of concerns for the Knowledge Base.