forked from kent/consciousness
Remove cmd_log and cmd_params
Retrieval log was never used (history covers node log). Params should come from config, not hardcoded store defaults. Co-Authored-By: Proof of Concept <poc@bcachefs.org>
This commit is contained in:
parent
aff872e101
commit
d1d57267d3
2 changed files with 0 additions and 29 deletions
|
|
@ -43,29 +43,6 @@ pub fn cmd_status() -> Result<(), String> {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
pub fn cmd_log() -> Result<(), String> {
|
||||
let store = crate::store::Store::load()?;
|
||||
for event in store.retrieval_log.iter().rev().take(20) {
|
||||
println!("[{}] q=\"{}\" → {} results",
|
||||
event.timestamp, event.query, event.results.len());
|
||||
for r in &event.results {
|
||||
println!(" {}", r);
|
||||
}
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn cmd_params() -> Result<(), String> {
|
||||
let store = crate::store::Store::load()?;
|
||||
println!("decay_factor: {}", store.params.decay_factor);
|
||||
println!("use_boost: {}", store.params.use_boost);
|
||||
println!("prune_threshold: {}", store.params.prune_threshold);
|
||||
println!("edge_decay: {}", store.params.edge_decay);
|
||||
println!("max_hops: {}", store.params.max_hops);
|
||||
println!("min_activation: {}", store.params.min_activation);
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn cmd_query(expr: &[String]) -> Result<(), String> {
|
||||
if expr.is_empty() {
|
||||
return Err("query requires an expression (try: poc-memory query --help)".into());
|
||||
|
|
|
|||
|
|
@ -385,10 +385,6 @@ enum AdminCmd {
|
|||
#[arg(long)]
|
||||
stats: bool,
|
||||
},
|
||||
/// Show recent retrieval log
|
||||
Log,
|
||||
/// Show current parameters
|
||||
Params,
|
||||
/// Migrate transcript stub nodes to progress log
|
||||
#[command(name = "migrate-transcript-progress")]
|
||||
MigrateTranscriptProgress,
|
||||
|
|
@ -523,8 +519,6 @@ impl Run for AdminCmd {
|
|||
Self::Import { files } => cli::admin::cmd_import(&files),
|
||||
Self::Export { files, all } => cli::admin::cmd_export(&files, all),
|
||||
Self::LoadContext { stats } => cli::misc::cmd_load_context(stats),
|
||||
Self::Log => cli::misc::cmd_log(),
|
||||
Self::Params => cli::misc::cmd_params(),
|
||||
Self::MigrateTranscriptProgress => {
|
||||
let mut store = store::Store::load()?;
|
||||
let count = store.migrate_transcript_progress()?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue