Files
portainer-core/stacks/core-ai.yml
T
jpmschweitzerandClaude 78c0fdf6ec fix(core-ai): fix steward agent result access and increase timeout
- Fixed: Change `result.data` to `result.output` (correct PydanticAI API)
- Increased analysis_timeout from 3s to 10s (mistral-nemo needs more time)

**Status:** Steward now initializes correctly but there's a remaining issue
with the async generator merging logic in two_stage_agent.py causing
requests to hang. This needs further investigation.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-04 13:14:20 +01:00

32 lines
1.2 KiB
YAML

services:
core-ai:
build:
context: ../services/core-ai
dockerfile: Dockerfile
container_name: core-ai
restart: unless-stopped
ports:
- "8086:8086" # Expose the Core AI service port
volumes:
- ../services/core-ai:/app # Mount code directory for development
environment:
- HOST=0.0.0.0
- PORT=8086
- OLLAMA_BASE_URL=http://ollama:11434 # Ensure it can find Ollama
- CORE_API_BASE_URL=http://core-api:8083/v1 # Ensure it can find Core API
- AGENT_MODEL=mistral-nemo:latest # Better tool calling support
- SYSTEM_PROMPT_VARIANT=minimal_agent # Match prompts.py definition
# Memory system configuration
- MEMORY_ENABLED=true
- MEMORY_TIER1_SIZE=10 # Keep last 10 turns in RAM
- QDRANT_URL=http://qdrant:6333 # Connect to existing Qdrant service
- QDRANT_COLLECTION_PREFIX=core_ai_user # Collection naming: core_ai_user_{user_id}
- EMBEDDING_MODEL=nomic-embed-text # Match Open WebUI embedding model
- EMBEDDING_DIMENSION=768 # nomic-embed-text dimension
- DEFAULT_USER_ID=llmdefault_at_schweitz_net # Default user until auth integration
networks:
- docker-dataplane
networks:
docker-dataplane:
external: true