INNER CODE UNIT · Go

main

orneryd/NornicDB · cmd/eval/main.go:66

func main() {
	// Parse flags
	serverURL := flag.String("url", "http://localhost:7474", "NornicDB server URL")
	suitePath := flag.String("suite", "", "Path to test suite JSON file")
	output := flag.String("output", "summary", "Output format: summary, detailed, json, compact")
	savePath := flag.String("save", "", "Save results to JSON file")
	thresholds := flag.String("threshold", "", "Override thresholds (p10=0.5,mrr=0.5,hit=0.8)")
	createSample := flag.Bool("create-sample", false, "Create sample test data in the database")
	flag.Parse()

	// Check server health
	fmt.Printf("🔍 Connecting to NornicDB at %s...\n", *serverURL)
	if err := checkHealth(*serverURL); err != nil {
		fmt.Fprintf(os.Stderr, "❌ Server not reachable: %v\n", err)
		os.Exit(1)
	}
	fmt.Println("✅ Server is healthy")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…