Skip to content

fix(sleep): use resolved model name in _embed_orphans#90

Open
rajkripal wants to merge 1 commit into
mainfrom
fix/embed-orphans-model-name
Open

fix(sleep): use resolved model name in _embed_orphans#90
rajkripal wants to merge 1 commit into
mainfrom
fix/embed-orphans-model-name

Conversation

@rajkripal

Copy link
Copy Markdown
Owner

Summary

  • _embed_orphans in core/sleep.py hardcoded all-MiniLM-L6-v2 (384-dim) as the embedding model
  • Project has migrated to thenlper/gte-large (1024-dim), causing dimension mismatches when the sleep protocol ran on orphan nodes
  • Fixed by importing _resolve_default_model() from embedding_service.py and using the resolved model name both for loading the model and storing in the embeddings table

Test plan

  • python3 -m pytest tests/test_sleep.py -x -q — 38 passed

🤖 Generated with Claude Code

Hardcoded all-MiniLM-L6-v2 (384-dim) caused dimension mismatches after
the project migrated to thenlper/gte-large (1024-dim). Now calls
_resolve_default_model() from embedding_service so orphan embeddings
always use the configured model.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant