refactor(compiler): remove dead OpenAI embedding client (RFC-012 Phase 1)

The compiler-side EmbeddingClient (OpenAI/`text-embedding-3-small`) was pub(crate), #![allow(dead_code)], and had zero callers anywhere in the workspace; the live nearest("string") path and the offline `omnigraph embed` CLI both use the engine Gemini client. It carried the only NANOGRAPH_* env vars (vestigial 'nanograph os' naming) and was the sole user of reqwest+tokio in omnigraph-compiler — dropping them removes an HTTP client and async runtime from a crate that advertises 'Zero Lance dependency' (invariant 11).

Rewrites docs/user/search/embeddings.md to the single-client reality and corrects the false 'engine embeds @embed at ingest' claim. Verified: build green, 238 compiler tests pass, `rg NANOGRAPH_` empty.
This commit is contained in:
Ragnor Comerford 2026-06-15 15:07:54 +02:00
parent 5b83e6b56d
commit 7c916f5b98
No known key found for this signature in database
6 changed files with 17 additions and 401 deletions

2
Cargo.lock generated
View file

@ -4915,12 +4915,10 @@ dependencies = [
"arrow-select",
"pest",
"pest_derive",
"reqwest 0.12.28",
"serde",
"serde_json",
"sha2 0.10.9",
"thiserror",
"tokio",
]
[[package]]