MCPcopy Create free account
hub / github.com/MemTensor/MemOS / markChunksWithSkill

Method markChunksWithSkill

packages/memos-core/src/skill/evolver.ts:344–349  ·  view source on GitHub ↗
(chunks: Chunk[], skillId: string)

Source from the content-addressed store, hash-verified

342 }
343
344 private markChunksWithSkill(chunks: Chunk[], skillId: string): void {
345 for (const chunk of chunks) {
346 this.store.setChunkSkillId(chunk.id, skillId);
347 }
348 this.ctx.log.debug(`SkillEvolver: marked ${chunks.length} chunks with skill_id=${skillId}`);
349 }
350
351 private async findSkillByNameSimilarity(task: Task): Promise<Skill | null> {
352 const query = task.title.slice(0, 200);

Callers 2

handleExistingSkillMethod · 0.95
handleNewSkillMethod · 0.95

Calls 2

debugMethod · 0.65
setChunkSkillIdMethod · 0.45

Tested by

no test coverage detected