feat(ingestion): simplify brain to knowledge/ — write and search use same dir

This commit is contained in:
Mathias Bergqvist
2026-04-22 15:36:10 +02:00
parent 47df642836
commit 3625e1268d
4 changed files with 17 additions and 20 deletions

View File

@@ -79,7 +79,7 @@ func (h *Handler) Write(w http.ResponseWriter, r *http.Request) {
filename = fmt.Sprintf("%s-auto.md", time.Now().UTC().Format("2006-01-02-150405"))
}
rawDir := filepath.Join(h.brainDir, "raw")
rawDir := filepath.Join(h.brainDir, "knowledge")
if err := os.MkdirAll(rawDir, 0o755); err != nil {
http.Error(w, "failed to create raw dir", http.StatusInternalServerError)
return