MCPcopy Create free account
hub / github.com/Autoparallel/learner / Config

Class Config

crates/learner/src/lib.rs:243–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241/// ```
242#[derive(Debug, Clone, Serialize, Deserialize)]
243pub struct Config {
244 /// The path to store the database.
245 #[serde(default = "Database::default_path")]
246 pub database_path: PathBuf,
247
248 /// The path to store associated documents and files.
249 #[serde(default = "Database::default_storage_path")]
250 pub storage_path: PathBuf,
251
252 /// The path to load retriever configs from.
253 #[serde(default = "Config::default_retrievers_path")]
254 pub retrievers_path: PathBuf,
255}
256
257// TODO: We should really let the database storage path be set prior to opening. We need a slightly
258// better database builder pattern.

Callers 5

mainFunction · 0.85
addFunction · 0.85
loadMethod · 0.85
saveMethod · 0.85
buildMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected