Skip to main content

Crate kg

Crate kg 

Source

Re-exports§

pub use graph::Edge;
pub use graph::EdgeProperties;
pub use graph::GraphFile;
pub use graph::Metadata;
pub use graph::Node;
pub use graph::NodeProperties;
pub use graph::Note;
pub use output::FindMode;

Modules§

graph
output

Structs§

Bm25Index

Constants§

EDGE_TYPE_RULES
(relation, valid_source_types, valid_target_types) Empty slice = no constraint for that side.
TYPE_TO_PREFIX
Maps node type -> expected id prefix.
VALID_RELATIONS
VALID_TYPES

Functions§

append_kg_feedback
Best-effort append of an F feedback record to <graph>.kglog.
default_graph_root
Returns the default graph root directory for this environment.
feedback_nudge_percent
Load the MCP nudge probability from .kg.toml, defaulting to 20.
resolve_graph_path
Resolve a graph identifier/path to an on-disk JSON file.
run
Run kg with CLI arguments, printing the result to stdout.
run_args
Run kg with CLI arguments, returning the rendered output as a string.
run_args_safe
Run kg with CLI arguments, returning errors as Result instead of exiting.
sidecar_user_short_uid
Resolve and (if needed) persist user_short_uid for sidecar logging.