- add a transport client for one current backend protocol with loopback http, TLS-only remote endpoints, explicit remote consent, disabled redirects, bounded timeout/batch/payload/response/dimension and no credential in URLs - validate responses strictly (count, index order, dimension, finite values, non-zero norm, mixed-model rejection) and abort publication when any vector is missing so a mixed index is never stored - embed search units in the same transaction that writes the projection, with content-digest/model-digest guarded reuse for incremental compiles; the build metadata records endpoint/model/revision/dimension/distance/chunking - add the semantic query channel behind explicit --semantic using an exact cosine scan with a bounded vector budget; default queries stay completely offline even when vectors exist - add a local mock-server integration test proving protocol handling, cross-vocabulary recall, offline default behaviour, remote consent rules and all-or-nothing failure; real-model quality remains NOT RUN and is not claimed
24 lines
615 B
Rust
24 lines
615 B
Rust
//! `marqdo-knowledge` public library surface.
|
|
//!
|
|
//! The binary is a thin wrapper: [`run`] parses argv, dispatches the internal
|
|
//! layers and returns the process exit code. Library consumers (tests,
|
|
//! independent protocol consumers) use this crate's public modules; no module
|
|
//! exposes a second query or Analysis contract.
|
|
|
|
pub mod cli;
|
|
pub mod compiler;
|
|
pub mod diagnostic;
|
|
pub mod document;
|
|
pub mod embedding;
|
|
pub mod error;
|
|
pub mod graph;
|
|
pub mod model;
|
|
pub mod query;
|
|
pub mod storage;
|
|
pub mod text;
|
|
|
|
/// Run the command line. Returns the process exit code (0/1/2).
|
|
pub fn run() -> i32 {
|
|
cli::run()
|
|
}
|