Ship Assistent 0.12.1: training tab, dataset pipeline, and heard RAG.
Restructure UI with app-level tabs and chat history drawer; add dataset curation, HF import, Modelfile/QLoRA hooks, and link approved samples to the agent immediately via heard vector memory without waiting for fine-tuning. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1380,6 +1380,40 @@ public sealed class AssistentConfig
|
||||
}
|
||||
}
|
||||
|
||||
public JObject LoadTrainingRunner()
|
||||
=> TryReadJson(Path.Combine(_overlayRoot, "training-runner.json")) ?? new JObject();
|
||||
|
||||
public void SaveTrainingRunner(JObject settings)
|
||||
{
|
||||
lock (_lock)
|
||||
{
|
||||
Directory.CreateDirectory(_overlayRoot);
|
||||
string path = Path.Combine(_overlayRoot, "training-runner.json");
|
||||
JObject merged = DeepMerge(LoadTrainingRunner(), settings ?? new JObject());
|
||||
File.WriteAllText(path, merged.ToString(Newtonsoft.Json.Formatting.Indented), Encoding.UTF8);
|
||||
}
|
||||
}
|
||||
|
||||
public JObject LoadTrainingAgent()
|
||||
=> TryReadJson(Path.Combine(_overlayRoot, "training-agent.json"))
|
||||
?? new JObject
|
||||
{
|
||||
["enabled"] = true,
|
||||
["auto_link_on_approve"] = true,
|
||||
["heard_quota"] = 3,
|
||||
};
|
||||
|
||||
public void SaveTrainingAgent(JObject settings)
|
||||
{
|
||||
lock (_lock)
|
||||
{
|
||||
Directory.CreateDirectory(_overlayRoot);
|
||||
string path = Path.Combine(_overlayRoot, "training-agent.json");
|
||||
JObject merged = DeepMerge(LoadTrainingAgent(), settings ?? new JObject());
|
||||
File.WriteAllText(path, merged.ToString(Newtonsoft.Json.Formatting.Indented), Encoding.UTF8);
|
||||
}
|
||||
}
|
||||
|
||||
public JObject LoadOllamaRoles()
|
||||
{
|
||||
return TryReadJson(Path.Combine(_overlayRoot, "ollama-roles.json"))
|
||||
|
||||
Reference in New Issue
Block a user