Ladybug 0.19 stays FTS/HNSW queryable on MERGE of new ids; DROP INDEX was the fatal path. bin/brain/add.go and POST /ingest land facts+info in one transaction so watch/mail/git can become leafs now (Gitea #14).
25 lines
692 B
Go
Executable File
25 lines
692 B
Go
Executable File
//usr/bin/env go run -tags=brain_index "$0" "$@"; exit
|
|
//go:build brain_index
|
|
//
|
|
// bin/brain/index.go - rebuild the Ladybug graph (Python write path).
|
|
//
|
|
// ./bin/brain/index.go --rebuild
|
|
// ./bin/brain/index.go --rebuild --with-mail
|
|
// ./bin/brain/index.go --dry-run --with-mail
|
|
//
|
|
// v1 write: bin/brain/add.go for one/few leafs (indexes may already exist).
|
|
// Bulk mail/corpus still --rebuild (fresh file, indexes last).
|
|
// NOTE: never run `gofmt -w` on this file — it breaks the shebang.
|
|
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/eSlider/2dph/internal/cmdbin"
|
|
)
|
|
|
|
func main() {
|
|
args := append([]string{"--with-mail"}, os.Args[1:]...)
|
|
os.Exit(cmdbin.ExecFile("bin/kb/index", args))
|
|
}
|