
This PR significantly improves the quality of the initial file search that occurs when the model doesn't yet know the full path to a file it needs to read/edit. Previously, the assertions in file_search often failed on main as the model attempted to guess full file paths. On this branch, it reliably calls `find_path` (previously `path_search`) before reading files. After getting the model to find paths first, I noticed it would try using `grep` instead of `path_search`. This motivated renaming `path_search` to `find_path` (continuing the analogy to unix commands) and adding system prompt instructions about proper tool selection. Note: I know the command is just called `find`, but that seemed too general. In my eval runs, the `file_search` example improved from 40% ± 10% to 98% ± 2%. The only assertion I'm seeing occasionally fail is "glob starts with `**` or project". We can probably add some instructions in that regard. Release Notes: - N/A
59 lines
1.1 KiB
Rust
59 lines
1.1 KiB
Rust
pub(crate) mod m_2025_01_02 {
|
|
mod settings;
|
|
|
|
pub(crate) use settings::SETTINGS_PATTERNS;
|
|
}
|
|
|
|
pub(crate) mod m_2025_01_29 {
|
|
mod keymap;
|
|
mod settings;
|
|
|
|
pub(crate) use keymap::KEYMAP_PATTERNS;
|
|
pub(crate) use settings::{SETTINGS_PATTERNS, replace_edit_prediction_provider_setting};
|
|
}
|
|
|
|
pub(crate) mod m_2025_01_30 {
|
|
mod keymap;
|
|
mod settings;
|
|
|
|
pub(crate) use keymap::KEYMAP_PATTERNS;
|
|
pub(crate) use settings::SETTINGS_PATTERNS;
|
|
}
|
|
|
|
pub(crate) mod m_2025_03_03 {
|
|
mod keymap;
|
|
|
|
pub(crate) use keymap::KEYMAP_PATTERNS;
|
|
}
|
|
|
|
pub(crate) mod m_2025_03_06 {
|
|
mod keymap;
|
|
|
|
pub(crate) use keymap::KEYMAP_PATTERNS;
|
|
}
|
|
|
|
pub(crate) mod m_2025_03_29 {
|
|
mod settings;
|
|
|
|
pub(crate) use settings::SETTINGS_PATTERNS;
|
|
}
|
|
|
|
pub(crate) mod m_2025_04_15 {
|
|
mod keymap;
|
|
mod settings;
|
|
|
|
pub(crate) use keymap::KEYMAP_PATTERNS;
|
|
pub(crate) use settings::SETTINGS_PATTERNS;
|
|
}
|
|
|
|
pub(crate) mod m_2025_04_21 {
|
|
mod settings;
|
|
|
|
pub(crate) use settings::SETTINGS_PATTERNS;
|
|
}
|
|
|
|
pub(crate) mod m_2025_04_23 {
|
|
mod settings;
|
|
|
|
pub(crate) use settings::SETTINGS_PATTERNS;
|
|
}
|