Skip to main content

gqls/
lib.rs

1//! gqls — GraphQL schema search.
2//!
3//! Layered like `rq`: a source loader turns a schema (SDL file, or — planned
4//! — an introspection URL) into flat [`model::SchemaRecord`]s, and a search
5//! layer ranks them. Two capabilities are *borrowed* rather than rebuilt:
6//!
7//! - fuzzy ranking — adapted from `rq`'s `search/score.rs`
8//!   (`~/code/lib/rust/rq`); see [`search::score`].
9//! - semantic search — lifted from `ae`'s local embedding pipeline
10//!   (`~/code/lib/rust/ae`: `embed.rs` + `mrl.rs`); see [`semantic`].
11//!   Behind the `semantic` cargo feature (pulls in ONNX Runtime).
12
13pub mod cli;
14pub mod load;
15#[macro_use]
16pub mod logging;
17pub mod model;
18pub mod paths;
19pub mod resolve;
20pub mod search;
21
22#[cfg(feature = "_semantic")]
23pub mod semantic;