## Summary Bridge Rust ↔ Python EmbeddingGemma ONNX via subprocess FFI. This is v2 approach — onnxruntime-rs migration deferred to v2.1. ## Acceptance Criteria - [ ] embed(text) → Vec<f32> (768d) via Python subprocess call - [ ] embed_batch(texts) → Vec<Vec<f32>> for bulk operations - [ ] Configurable Python path and model path - [ ] Error handling: Python not found, model not found, timeout - [ ] Cold start caching: embed subprocess spawned once, reused - [ ] Fallback: if Python FFI fails, log warning and continue without embeddings - [ ] Integration test: embed known text, verify 768d output, cosine similarity >0.9 for near-duplicate texts ## Technical Notes - Python script: call existing embeddinggemma.py (onnxruntime + tokenizers) - Input: text string via stdin/argv - Output: JSON array of floats via stdout - Model: /opt/data/models/embeddinggemma/onnx/model_q4.onnx (188MB) ## Deliverable Working embed() function that returns 768d vectors. Estimated: 8h
Activity
feat: implement core engine — SQLite, HNSW, ONNX embedding (closes #5, …
ajianaz commentedon May 29, 2026
Implemented in develop branch
feat: P2/P3 improvements + fix issue codecoradev#1034/codecoradev#1035