Skip to main content
Glama
orneryd

M.I.M.I.R - Multi-agent Intelligent Memory & Insight Repository

by orneryd
local_gguf_stub.go1.78 kB
//go:build !localllm package embed import ( "context" "errors" "time" ) // LocalGGUFEmbedder is a stub for when localllm build tag is not set. // Build with -tags=localllm to enable local GGUF embedding support. type LocalGGUFEmbedder struct{} var errLocalLLMNotBuilt = errors.New("local GGUF embeddings not available: build with -tags=localllm and llama.cpp library") // NewLocalGGUF returns an error when localllm is not built in. // To enable local GGUF embedding support: // 1. Build llama.cpp: ./scripts/build-llama.sh // 2. Build with tag: go build -tags=localllm ./cmd/nornicdb func NewLocalGGUF(config *Config) (*LocalGGUFEmbedder, error) { return nil, errLocalLLMNotBuilt } // Embed returns an error (stub). func (e *LocalGGUFEmbedder) Embed(ctx context.Context, text string) ([]float32, error) { return nil, errLocalLLMNotBuilt } // EmbedBatch returns an error (stub). func (e *LocalGGUFEmbedder) EmbedBatch(ctx context.Context, texts []string) ([][]float32, error) { return nil, errLocalLLMNotBuilt } // Dimensions returns 0 (stub). func (e *LocalGGUFEmbedder) Dimensions() int { return 0 } // Model returns empty string (stub). func (e *LocalGGUFEmbedder) Model() string { return "" } // EmbedderStats holds embedding statistics (stub). type EmbedderStats struct { EmbedCount int64 `json:"embed_count"` ErrorCount int64 `json:"error_count"` PanicCount int64 `json:"panic_count"` LastEmbedTime time.Time `json:"last_embed_time"` ModelName string `json:"model_name"` ModelPath string `json:"model_path"` } // Stats returns empty stats (stub). func (e *LocalGGUFEmbedder) Stats() EmbedderStats { return EmbedderStats{} } // Close is a no-op (stub). func (e *LocalGGUFEmbedder) Close() error { return nil }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/orneryd/Mimir'

If you have feedback or need assistance with the MCP directory API, please join our Discord server