Skip to content

Commit

Permalink
Add llm model dir accessor
Browse files Browse the repository at this point in the history
  • Loading branch information
travolin committed Nov 26, 2024
1 parent 6e59ed6 commit eb06c40
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions crates/shared/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,10 @@ impl Config {
self.model_dir().join("embeddings")
}

pub fn llm_model_dir(&self) -> PathBuf {
self.model_dir().join("llm")
}

pub fn prefs_dir() -> PathBuf {
let proj_dirs = ProjectDirs::from("com", "athlabs", &Config::app_identifier())
.expect("Unable to find a suitable settings directory");
Expand Down
2 changes: 1 addition & 1 deletion crates/spyglass-searcher/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ pub trait WriteTrait {

type SearcherResult<T> = Result<T, SearchError>;

#[derive(Clone, Serialize)]
#[derive(Clone, Serialize, Debug)]
pub struct RetrievedDocument {
pub doc_id: String,
pub domain: String,
Expand Down

0 comments on commit eb06c40

Please sign in to comment.