mirror of
https://github.com/syntrex-lab/gomcp.git
synced 2026-04-27 05:16:22 +02:00
- Rename Go module: sentinel-community/gomcp -> syntrex/gomcp (50+ files) - Rename npm package: sentinel-dashboard -> syntrex-dashboard - Update Cargo.toml repository URL to syntrex/syntrex - Update all doc references from DmitrL-dev/AISecurity to syntrex - Add root Makefile (build-all, test-all, lint-all, clean-all) - Add MIT LICENSE - Add .editorconfig (Go/Rust/TS/C cross-language) - Add .github/workflows/ci.yml (Go + Rust + Dashboard) - Add dashboard next.config.ts and .env.example - Clean ARCHITECTURE.md: remove brain/immune/strike/micro-swarm, fix 61->67 engines
16 lines
448 B
Go
16 lines
448 B
Go
//go:build !onnx
|
|
|
|
package onnx
|
|
|
|
import (
|
|
"log"
|
|
|
|
"github.com/syntrex/gomcp/internal/domain/vectorstore"
|
|
)
|
|
|
|
// NewEmbedderWithFallback returns FTS5 fallback embedder when built without ONNX.
|
|
// To enable ONNX: go build -tags onnx
|
|
func NewEmbedderWithFallback(rlmDir string) vectorstore.Embedder {
|
|
log.Printf("Oracle: ONNX not compiled (build without -tags onnx) — using FTS5 fallback [ORACLE: DEGRADED]")
|
|
return vectorstore.NewFTS5Embedder()
|
|
}
|