feat(backfill): implement backfill tool for generating missing embeddings

This commit is contained in:
2026-03-26 22:45:28 +02:00
parent 1dde7f233d
commit f4ef0e9163
19 changed files with 575 additions and 37 deletions

View File

@@ -0,0 +1,24 @@
package app
import (
"embed"
"fmt"
"io/fs"
)
var (
//go:embed static/*
staticFiles embed.FS
faviconICO = mustReadStaticFile("favicon.ico")
homeImage = mustReadStaticFile("avelonmemorycrystal.jpg")
)
func mustReadStaticFile(name string) []byte {
data, err := fs.ReadFile(staticFiles, "static/"+name)
if err != nil {
panic(fmt.Sprintf("failed to read embedded static file %q: %v", name, err))
}
return data
}