Documentation
¶
Overview ¶
Commands in this directory are shebang mains (search.go, serve.go, index.go, get.go, stats.go, eval.go, watch.go), each behind an exclusive build tag.
bin/brain/model.go - fetch potion-multilingual-128M for the Go brain.
./bin/brain/model.go # into $HF_HOME (default ~/.cache/huggingface) ./bin/brain/model.go --to /tmp/m # explicit target dir
Pure Go (net/http + os), no cgo, no python. Replaces the old model2vec download step so the whole model path stays in Go: writes tokenizer.json + model.safetensors into the HF cache layout that internal/brain/modeldir.go resolves ($HF_HOME/hub/models--minishlab--potion-multilingual-128M/snapshots/*).
Click to show internal directories.
Click to hide internal directories.