Skip to content

Remove legacy Ollama preprocessing pipeline#70

Merged
valITino merged 1 commit intomainfrom
claude/remove-ollama-integration-ecrNv
Mar 13, 2026
Merged

Remove legacy Ollama preprocessing pipeline#70
valITino merged 1 commit intomainfrom
claude/remove-ollama-integration-ecrNv

Conversation

@valITino
Copy link
Owner

Summary

This PR removes the entire legacy Ollama-based preprocessing pipeline, including the MCP server orchestrator and three agent containers (Ingestion, Processing, Synthesis). The MCP host (Claude) now handles data aggregation directly via the aggregate_results tool, which is faster and more accurate than the previous multi-container approach.

Key Changes

  • Removed MCP server: mcp_servers/ollama_mcp_server.py — the thin HTTP orchestrator that called three agent containers sequentially
  • Removed agent containers:
    • blhackbox/agents/base_agent_server.py — FastAPI base server for agents
    • blhackbox/agents/base_agent.py — base class for Ollama agents
    • blhackbox/agents/ingestion_agent.py, processing_agent.py, synthesis_agent.py — individual agent implementations
    • blhackbox/agents/ingestion_server.py, processing_server.py, synthesis_server.py — agent container entry points
  • Removed agent prompts: blhackbox/prompts/agents/ingestionagent.md, processingagent.md, synthesisagent.md
  • Removed Docker artifacts:
    • docker/ollama-mcp.Dockerfile, docker/ollama.Dockerfile
    • docker/agent-ingestion.Dockerfile, docker/agent-processing.Dockerfile, docker/agent-synthesis.Dockerfile
    • docker/ollama-entrypoint.sh
  • Removed tests: tests/test_ollama_mcp.py, tests/test_agent_server.py, tests/test_agents.py
  • Updated docker-compose.yml: Removed ollama-mcp, agent-ingestion, agent-processing, agent-synthesis, and ollama services; removed --profile ollama documentation
  • Updated configuration:
    • Removed Ollama-related environment variables from .env.example
    • Removed ollama_url and related settings from blhackbox/config.py
    • Removed Ollama dependencies from requirements.txt (ollama, fastapi, uvicorn, pydantic)
  • Updated documentation: Removed Ollama pipeline references from README.md, DOCKER.md, CLAUDE.md
  • Updated CI/CD: Removed Ollama-related image builds from .github/workflows/build-and-push.yml
  • Updated Makefile: Removed Ollama-related targets and commands
  • Updated MCP configurations: Removed ollama-mcp from blhackbox-mcp.json and blhackbox-mcp-catalog.yaml
  • Updated Claude Code entrypoint: Removed ollama-mcp from no_proxy list

Implementation Details

  • The MCP host (Claude Code, Claude Desktop, or ChatGPT) now directly parses raw tool outputs, deduplicates findings, and structures them into an AggregatedPayload using the aggregate_results tool
  • This eliminates the overhead of HTTP calls between containers and Ollama inference, improving performance and reliability
  • The pipeline is now simpler: tools → MCP host aggregation → validation → reporting
  • All references to the Ollama preprocessing pipeline have been removed from documentation, configuration, and CI/CD workflows

https://claude.ai/code/session_01BaZKkxAotm6KAehzs2qYjL

Remove the optional Ollama local LLM preprocessing pipeline (3 agents:
ingestion, processing, synthesis) and all related infrastructure. The MCP
host (Claude Code / Claude Desktop) handles aggregation directly via the
aggregate_results tool, making the Ollama pipeline redundant.

Deleted:
- Ollama MCP server, Dockerfiles, entrypoint scripts
- Agent servers (ingestion, processing, synthesis)
- Agent prompt templates
- Ollama-specific tests

Updated:
- docker-compose.yml: removed 5 Ollama services and volume
- Makefile: removed Ollama targets and profile references
- Config: removed ollama_url/ollama_model settings
- Models: renamed ollama_model to model in AggregatedMetadata/graph
- Reports: updated generators to use generic "Model" label
- CI: removed Ollama/agent matrix entries from build workflow
- Docs: cleaned README.md, DOCKER.md, CLAUDE.md
- Dependencies: removed ollama, fastapi, uvicorn from requirements

All 188 tests pass.

https://claude.ai/code/session_01BaZKkxAotm6KAehzs2qYjL
@valITino valITino marked this pull request as ready for review March 13, 2026 13:41
@valITino valITino merged commit e974bcb into main Mar 13, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants