Files
ai-agent/cmd/ask/main.go
2026-03-10 21:07:23 +01:00

31 lines
690 B
Go
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// ask stellt Fragen an die Qdrant-Wissensdatenbank und antwortet mit einem LLM
package main
import (
"fmt"
"os"
"strings"
"my-brain-importer/internal/brain"
"my-brain-importer/internal/config"
)
func main() {
config.LoadConfig()
bin := os.Args[0]
if len(os.Args) < 2 {
fmt.Printf("ask stellt Fragen an deinen AI Brain\n\n")
fmt.Printf("Usage:\n")
fmt.Printf(" %s \"Deine Frage\"\n\n", bin)
fmt.Printf("Beispiele:\n")
fmt.Printf(" %s \"Was sind meine Reisepläne?\"\n", bin)
fmt.Printf(" %s \"Erzähl mir über Veronica Bellmore\"\n", bin)
os.Exit(1)
}
question := strings.Join(os.Args[1:], " ")
brain.Ask(question)
}