Skip to content

fix(rag): correct voyage-3-lite dimension from 1024 to 512 in manifest#155

Merged
cipher813 merged 1 commit into
mainfrom
fix/rag-manifest-voyage-dim
May 5, 2026
Merged

fix(rag): correct voyage-3-lite dimension from 1024 to 512 in manifest#155
cipher813 merged 1 commit into
mainfrom
fix/rag-manifest-voyage-dim

Conversation

@cipher813
Copy link
Copy Markdown
Owner

Summary

Follow-up to PR #154 (already merged). The manifest emitter shipped with _EMBEDDING_DIMENSION = 1024, taking the alpha-engine-lib embeddings.py docstring at face value. The docstring was wrong: schema.sql:31 declares embedding vector(512) and pgvector enforces dimension on INSERT, so the production column is 512 (the system has been ingesting documents successfully for weeks).

Companion fix: alpha-engine-lib PR #17 corrects the docstring.

Changes

  • rag/pipelines/emit_manifest.py_EMBEDDING_DIMENSION 1024 → 512, comment updated to point at the schema as the source of truth
  • tests/test_emit_manifest.pytest_embedding_metadata asserts 512 with a comment explaining the pgvector enforcement

Why a separate PR

PR #154 was squash-merged before this fix landed.

Test plan

  • pytest tests/test_emit_manifest.py -q — 8/8 pass
  • Next Saturday SF run produces s3://alpha-engine-research/rag/manifest/latest.json with embedding.dimension: 512

🤖 Generated with Claude Code

Initial PR commit followed the (now-corrected) embeddings.py docstring
and reported `embedding.dimension = 1024`. The schema declares
`vector(512)` and pgvector enforces dim on INSERT — the production
column has to be 512 for ingestion to be working. voyage-3-lite is 512-d.

Companion fix to alpha-engine-lib PR #17 which updates the docstring.

Tests: 8/8 (test_embedding_metadata updated to assert 512).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@cipher813 cipher813 merged commit dc038d0 into main May 5, 2026
1 check passed
@cipher813 cipher813 deleted the fix/rag-manifest-voyage-dim branch May 5, 2026 15:20
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