oxibrain-cli 0.5.0

Command-line interface and MCP server for oxibrain
Documentation
1
2
3
4
5
6
7
8
9
10
use oxibrain::{Brain, BrainConfig};
use std::path::Path;

pub async fn run(dir: &Path, file: &Path) -> anyhow::Result<()> {
    let content = std::fs::read_to_string(file)?;
    let brain = Brain::open(BrainConfig::at(dir)).await?;
    brain.import_jsonl(content).await?;
    println!("imported from {}", file.display());
    Ok(())
}