Get the models directory path.
()
| 400 | |
| 401 | /// Get the models directory path. |
| 402 | pub fn models_dir() -> Result<PathBuf> { |
| 403 | let dir = jcode_dir()?.join("models").join(backend::MODEL_NAME); |
| 404 | std::fs::create_dir_all(&dir)?; |
| 405 | Ok(dir) |
| 406 | } |
| 407 | |
| 408 | /// Check if the embedding model is available. |
| 409 | pub fn is_model_available() -> bool { |
no test coverage detected