This repository has been archived on 2026-03-09. You can view files and clone it, but cannot push or open issues or pull requests.
php-agentic/config.php
Snider 43b470257b
Some checks failed
CI / PHP 8.3 (push) Failing after 3s
CI / PHP 8.4 (push) Failing after 3s
feat(brain): configurable embedding model, default to EmbeddingGemma
Make embedding model swappable via BRAIN_EMBEDDING_MODEL env var.
Switch default from nomic-embed-text to embeddinggemma (Gemma 3
based, 2x better cluster separation in benchmarks).

Default Ollama URL now points to ollama.lan (Linux homelab GPU).

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-03 10:10:02 +00:00

91 lines
2.8 KiB
PHP

<?php
return [
/*
|--------------------------------------------------------------------------
| MCP Portal Domain
|--------------------------------------------------------------------------
|
| The domain where the MCP Portal is served. This hosts the server registry,
| documentation, and discovery endpoints for AI agents.
|
| Production: mcp.host.uk.com
| Local dev: mcp.host.test (Valet)
|
*/
'domain' => env('MCP_DOMAIN', 'mcp.host.uk.com'),
/*
|--------------------------------------------------------------------------
| Registry Path
|--------------------------------------------------------------------------
|
| Where to find MCP server definitions. Each server has its own YAML file
| in the servers subdirectory.
|
*/
'registry_path' => resource_path('mcp'),
/*
|--------------------------------------------------------------------------
| Plan Templates Path
|--------------------------------------------------------------------------
|
| Where agent plan templates are stored. These define structured workflows
| for common development tasks.
|
*/
'templates_path' => resource_path('plan-templates'),
/*
|--------------------------------------------------------------------------
| Content Generation Paths
|--------------------------------------------------------------------------
|
| Paths for the ContentService batch generation system.
|
*/
'content' => [
'batch_path' => 'app/Mod/Agentic/Resources/tasks',
'prompt_path' => 'app/Mod/Agentic/Resources/prompts/content',
'drafts_path' => 'app/Mod/Agentic/Resources/drafts',
],
/*
|--------------------------------------------------------------------------
| Cache Keys
|--------------------------------------------------------------------------
|
| Namespaced cache keys used by agentic endpoints. Override these in your
| application config to prevent collisions with other modules.
|
*/
'cache' => [
'for_agents_key' => 'agentic.for-agents.json',
'for_agents_ttl' => 3600,
],
/*
|--------------------------------------------------------------------------
| OpenBrain (Shared Agent Knowledge Store)
|--------------------------------------------------------------------------
|
| Configuration for the vector-indexed knowledge store. Requires
| Ollama (for embeddings) and Qdrant (for vector search).
|
*/
'brain' => [
'ollama_url' => env('BRAIN_OLLAMA_URL', 'http://ollama.lan:11434'),
'qdrant_url' => env('BRAIN_QDRANT_URL', 'http://localhost:6334'),
'collection' => env('BRAIN_COLLECTION', 'openbrain'),
'embedding_model' => env('BRAIN_EMBEDDING_MODEL', 'embeddinggemma'),
],
];