module

Xerp::CLI::JsonFormatter

Class methods

format_index_stats(stats : Index::IndexStats, workspace_root : String) : String

Formats index stats as JSON (pretty-printed).

Source
format_mark_ack(result_id : String, kind : String, event_id : Int64) : String

Formats a mark acknowledgment as JSON (pretty-printed).

Source
format_multi_train_stats(stats : Vectors::MultiModelTrainStats, workspace_root : String) : String

Formats multi-model training stats as JSON (pretty-printed).

Source
format_neighbors(token : String, neighbors : Array(Tuple(String, Float64)), model : String = "blend") : String

Formats token neighbors as JSON (pretty-printed).

Source
format_outline(result : OutlineCommand::OutlineResult) : String

Formats headers listing as JSON (pretty-printed).

Source
format_query_jsonl(response : Query::QueryResponse) : String

Formats a query response as JSONL (one line per result).

Source
format_query_response(response : Query::QueryResponse) : String

Formats a query response as JSON (pretty-printed).

Source
format_terms(result : Query::Terms::TermsResult) : String

Formats salient terms as JSON (pretty-printed).

Source
format_train_stats(stats : Vectors::TrainStats, workspace_root : String) : String

Formats training stats as JSON (pretty-printed) - legacy single model.

Source