brain

command
v0.24.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2026 License: MIT Imports: 9 Imported by: 0

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/*).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL