| 241 | /// ``` |
| 242 | #[derive(Debug, Clone, Serialize, Deserialize)] |
| 243 | pub 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. |