Skip to content

feat(knowledge): enable hybrid vector retrieval - #16

Merged
Ldsystem merged 3 commits into
mainfrom
codex/wor-58-production-hybrid-retrieval
Aug 28, 2026
Merged

feat(knowledge): enable hybrid vector retrieval#16
Ldsystem merged 3 commits into
mainfrom
codex/wor-58-production-hybrid-retrieval

Conversation

@Ldsystem

Copy link
Copy Markdown
Owner

Summary

  • replace the hashed 64-dimensional lexical vector with pinned FastEmbed BAAI/bge-small-en-v1.5 embeddings
  • remove runtime package-manager shell-outs and declare the ks.py PEP 723 uv environment
  • query knowledge_chunk_vec, validate index compatibility, and fuse FTS/vector candidates with deterministic RRF
  • preserve truthful FTS fallback, exact-identifier strength, provenance, and the script/agent authority boundary

Validation

  • model smoke: 384 dimensions; paraphrase outranks unrelated noise
  • focused WOR-58 contract: 14 passed
  • full Linux-equivalent suite: 578 passed
  • macOS-portable suite: 577 passed, 1 deselected
  • uv run scripts/ks.py --help: passed
  • git diff --check: passed

Scope

This closes production gaps G1 provisioning, G2 representation, and G3 query wiring under the verified WOR-58 specification. BFS/backlink work and WOR-54 macOS sqlite-vec portability remain out of scope.

Refs WOR-58.

@Ldsystem
Ldsystem marked this pull request as ready for review August 28, 2026 07:12
@Ldsystem
Ldsystem merged commit 65ee6d1 into main Aug 28, 2026
2 checks passed
@Ldsystem
Ldsystem deleted the codex/wor-58-production-hybrid-retrieval branch August 28, 2026 07:13
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