--- url: https://docs.ai-hub.bbv.ch/index.md title: "Swiss AI Hub" description: "The open AI platform you own and control" --- # Swiss AI Hub > The open AI platform you own and control Complete infrastructure for production AI. Deploy in your data center. Build with confidence. Keep your data in Switzerland. ## Features ### The open-source AI bet Best-in-class open-source tools (LiteLLM, Milvus, LlamaIndex) integrated and ready. When they evolve, you benefit. No vendor lock-in, no licensing fees, no platform constraints. Bet on the ecosystem, not a single vendor. ### Own the platform, not rent it Complete infrastructure you deploy and control. Not SaaS subscriptions, not a code library. Authentication, monitoring, databases, UIs—everything included. Azure AI-level completeness with LangChain-level ownership. ### 30 minutes to production AI One command deploys everything. LLM gateway, vector search, chat interface, authentication, monitoring. Pre-built agents work immediately. No cloud provisioning, no complex setup, no infrastructure engineering. ### One GPU, zero cloud dependency Run the entire platform—chat, embeddings, reranking, OCR, speech—on a single NVIDIA RTX 6000 Pro. No API keys, no egress traffic, no cloud bills. Full AI capability in an air-gapped rack. When cloud access is available, Swiss LLM Cloud scales you further without code changes. ### Transparent, not black-box AI Every agent follows explicit workflows. Every decision is traceable and auditable. Every cost is tracked. See exactly why AI gave an answer. Trust through transparency, not promises. Built for Swiss standards. ### Collective strength through collaboration Swiss organizations sharing infrastructure, competing on innovation. Contribute improvements, benefit from others'. Build together what no single organization could afford. The Swiss AI advantage.
## FAQ ::: details How can our Swiss organization deploy AI while keeping all data on-premise? The Swiss AI Hub is an **open-source AI platform** that *you* deploy and control. It's specifically designed for **on-premise installation** within your own Swiss data center. This means you can run the entire AI infrastructure - including language model gateways and knowledge databases - on your servers, ensuring complete control and data isolation. You can find more details in our [Deployment Options](docs/2_platform/3_deployment_guide/1_deployment_options/). ::: ::: details How can we use AI and comply with Swiss data protection laws like FADP (revDSG)? Ensuring **Swiss data sovereignty** is a core principle of the Swiss AI Hub community. Because *you* deploy the platform, you choose *where* it runs – either on your own servers in Switzerland or within trusted Swiss data centers. By using local Large Language Models (LLMs), sensitive data processing stays entirely within your control, helping you meet **FADP (revDSG) requirements**. Read about our commitment in [The Swiss Way: Privacy, Sovereignty, and Transparency](docs/1_vision_and_positioning/1_introduction/3_the_swiss_way/). ::: ::: details What is a trustworthy, open-source AI platform alternative to large cloud vendors like Azure AI or Google Vertex AI? The Swiss AI Hub offers an **open-source alternative** built by a community focused on user control. The platform runtime is licensed under Apache 2.0 (the UI and backup orchestration under AGPL-3.0; see [LICENSES.md](https://github.com/bbvch-ai/aihub-core/blob/main/LICENSES.md) for the full per-package breakdown), meaning *you* own your deployment. This lets you avoid **vendor lock-in**, giving you freedom from specific ecosystems and unpredictable pricing structures common with large cloud providers. See how we compare in the [Comparison Matrix](docs/1_vision_and_positioning/2_why_swiss_ai_hub/1_comparison_matrix_light/). ::: ::: details How can we ensure AI decisions made within our Swiss company are traceable and auditable? The Swiss AI Hub community prioritizes **transparency for trust**. Our platform provides deep observability features. Every step an AI agent takes is visible, decisions are logged with context, and costs are tracked. Tools like Langfuse allow tracing every interaction, so you can always understand *why* an AI provided a certain answer, which is crucial for **compliance and auditing**. Explore these features under [Auditing & Observability](docs/2_platform/12_auditing/). ::: ::: details Is there a ready-made AI infrastructure stack (auth, monitoring, vector DBs) that we can deploy ourselves? Yes, the Swiss AI Hub provides a **complete, pre-integrated AI infrastructure stack** that *you* deploy. It bundles essential components like authentication, monitoring, various databases (including vector databases for AI), data processing pipelines, and user interfaces right out of the box. This solves many common **production AI challenges** from day one. Learn about this in [The 'Day 2' Advantage](docs/1_vision_and_positioning/2_why_swiss_ai_hub/2_the_day_2_advantage/). ::: ::: details What is the quickest way to set up a secure, enterprise-ready AI platform within Switzerland? You can deploy the entire Swiss AI Hub platform in about **30 minutes using a single command**. As an open-source platform you install yourself, it includes pre-built agents and interfaces that start working immediately, offering rapid time-to-value without complex cloud configurations. Get started with the [Quick Start Guide](docs/2_platform/1_quick_start/). ::: ::: details How can our employees securely access company-specific AI help directly within Microsoft Teams or Slack? The Swiss AI Hub platform includes **built-in integrations for Microsoft Teams and Slack**. This allows your employees to interact securely with AI agents, which have access to relevant company knowledge, directly within the collaboration tools they use every day, improving workflow. See details on [Slack & Teams Integrations](docs/2_platform/17_slack_teams_integrations/). ::: ::: details How can our organization centrally manage access and usage of various AI models (e.g., GPT-4, Gemini, local models)? The Swiss AI Hub includes an **integrated LLM Proxy (LiteLLM)** that acts as a unified gateway to all your configured AI models. You can centrally manage model access, route requests based on policies, track costs across different providers, and even set up failover mechanisms. More info is available under [Language Models](docs/2_platform/13_language_models/). ::: ::: details How can we effectively control and predict the operational costs associated with using AI models? Our community built the Swiss AI Hub with **transparent cost control** in mind. The integrated LLM Proxy tracks token usage for every interaction, per user or agent. You can monitor AI spending in real-time dashboards and configure budgets to prevent unexpected costs. Learn more about [Cost Control](docs/2_platform/14_cost_control/). ::: ::: details Our Swiss company has strict data privacy rules preventing the use of public AI clouds. What secure AI solution can we use? The Swiss AI Hub is ideal for this. As an open-source platform *you* deploy, you can install it **fully on-premise** and use **local, self-hosted LLMs**. This ensures that absolutely no data (prompts, responses, documents) ever leaves your secure network perimeter. Review our comprehensive [Security features](docs/2_platform/20_security/). ::: ::: details We have AI prototypes using frameworks like LangChain but find deploying them reliably in production difficult. How can the Swiss AI Hub help? The Swiss AI Hub provides the necessary **production-ready infrastructure** that development frameworks often lack. While LangChain helps build the AI logic, our platform delivers the essential surrounding components: robust deployment mechanisms, enterprise authentication, scaling, monitoring, and user interfaces needed for **reliable enterprise use**. See [Our Solution](docs/1_vision_and_positioning/1_introduction/2_our_solution/). ::: ::: details How can we securely let AI agents answer questions based on our internal company documents (like PDFs or Word files)? The Swiss AI Hub includes a secure **Retrieval-Augmented Generation (RAG) system**. You configure automated [Data Pipelines](docs/2_platform/6_pipelines/) to ingest documents from your sources (like SharePoint). These pipelines securely process the documents and index them in a vector database *that you own and control*, allowing agents to access company knowledge safely. ::: ::: details Different teams in our organization are using various AI tools, creating silos. How can we create a unified, governed AI approach? The Swiss AI Hub can serve as your **central, unified AI platform**. It provides common infrastructure that all teams can build upon, ensures consistent governance and security policies, offers unified monitoring, and includes an [OpenAI-Compatible API](docs/2_platform/18_api/1_openai_compatible_api/) allowing integration with many existing tools, helping to **reduce fragmentation**. ::: ::: details What is an efficient and scalable way to handle the ingestion and vector embedding of thousands of company documents for AI? The Swiss AI Hub utilizes **Data Pipelines**, built using the robust orchestrator Dagster. These pipelines automate the entire workflow: connecting to your data sources, parsing various file formats intelligently, creating semantic chunks, generating vector embeddings, and indexing them into your vector store (like Milvus). Find details in the [Pipelines section](docs/2_platform/6_pipelines/). ::: ::: details Can we deploy and run a complete AI platform entirely offline in an air-gapped network within Switzerland? Yes. When you deploy the Swiss AI Hub **on-premise** and configure it to use only **self-hosted Large Language Models** (LLMs), the entire platform can operate without any external internet connection. This makes it suitable for **air-gapped environments** with the highest security requirements. See [Deployment Options](docs/2_platform/3_deployment_guide/1_deployment_options/). ::: ::: details How do we ensure the AI agents provide trustworthy answers and aren't just "hallucinating" or making things up? Trust is paramount. Swiss AI Hub **Agents** are designed to follow explicit, defined workflows. They primarily use **Retrieval-Augmented Generation (RAG)**, meaning their answers are based on information retrieved from *your* verified company documents. Agents also **cite their sources**, and built-in "guardrails" check if the retrieved information is sufficient, ensuring **reliable, fact-based responses**. Learn more about [Agents](docs/2_platform/5_agents/). ::: ::: details Is it possible for AI agents on this platform to ask for help or approval from human experts during complex tasks? Yes, our platform supports **Human-in-the-Loop (HITL)** and **Bot-in-the-Loop (BITL)** workflows. An AI agent can be designed to pause its process at a specific step, send a request for input or approval to a designated human expert (for example, via a Slack message), and then seamlessly resume its work once the human responds. Explore [Agent Fundamentals](docs/3_sdk/2_building_agents/1_agent_fundamentals/) which enable these patterns. ::: ::: details How does the Swiss AI Hub connect and integrate with our existing enterprise software like SharePoint or internal databases? The platform offers **flexible integration options**. AI agents can make direct API calls to external systems; external systems can trigger agents via the platform's [Agent Interaction API](docs/2_platform/18_api/2_agent_interaction_api/); automated Data Pipelines can sync knowledge from sources like SharePoint; and standard protocols are supported for custom connections. See [External Integrations](docs/2_platform/22_external_integrations/). ::: ::: details How does using an open-source platform like Swiss AI Hub benefit the broader Swiss AI community? Our **ecosystem model** is built on collaboration. The core platform is open-source, allowing Swiss organizations to pool efforts in building and improving the fundamental AI infrastructure. Everyone benefits from shared advancements, letting individual organizations focus resources on creating unique AI applications specific to their needs, strengthening Switzerland's overall AI capabilities. Read about [The Ecosystem Model](docs/1_vision_and_positioning/2_why_swiss_ai_hub/3_the_ecosystem_model/). ::: ::: details We are concerned about the complexity of setting up and managing a self-hosted AI platform. Is the Swiss AI Hub difficult to operate? The Swiss AI Hub community designed the platform for **simplified deployment and management**. The installation uses a single command, and critical infrastructure challenges like authentication, monitoring, and scaling configuration are solved out-of-the-box. This significantly reduces the operational complexity compared to building AI infrastructure from scratch or managing intricate cloud vendor services. Check the [Quick Start](docs/2_platform/1_quick_start/). ::: --- --- url: https://docs.ai-hub.bbv.ch/docs/1_vision_and_positioning.md title: "Part I: Vision & Positioning" description: "" --- # Part I: Vision & positioning The Swiss AI Hub represents a different approach to enterprise AI: a complete platform that you deploy, own, and control. This section explains what we're building, why it matters, and how it changes the AI adoption landscape for Swiss organizations. You'll discover our vision for democratizing AI infrastructure, understand how we compare to existing solutions, and learn about the collaborative ecosystem we're fostering. Whether you're evaluating AI platforms, planning your organization's AI strategy, or looking to contribute to Swiss AI capabilities, this section provides the foundation for understanding the Swiss AI Hub. --- --- url: https://docs.ai-hub.bbv.ch/docs/1_vision_and_positioning/1_introduction.md title: "Introduction: The Swiss AI Hub Vision" description: "" --- # Introduction: The Swiss AI Hub vision Building production AI systems requires solving two distinct challenges: creating intelligent capabilities and deploying reliable infrastructure. Most organizations focus on the first while struggling with the second. This chapter introduces the Swiss AI Hub's approach to this challenge. You'll understand: - The gap between AI prototypes and production systems that every organization faces - How the Swiss AI Hub provides complete infrastructure as a deployable product - Why Swiss values of privacy, sovereignty, and transparency are embedded in every component - The strategic separation between platform and SDK that enables both adoption and innovation Start here to understand what the Swiss AI Hub is and the principles that guide its development. --- --- url: https://docs.ai-hub.bbv.ch/docs/1_vision_and_positioning/1_introduction/1_the_problem_we_solve.md title: "The Problem We Solve" description: "" --- # The problem we solve Building AI applications is easy. Building production AI systems is hard. If you've worked with AI tools, you know this pattern: You can create an impressive demo with LangChain in an afternoon. A week later, you have a working prototype. Then someone asks the hard questions: - How do we deploy this? - Where does our data stay? - Can we track what the AI is doing? - How do we control costs? - What happens when it fails? - How do users actually access it? - Can we integrate it with our existing tools? Suddenly, your elegant prototype needs authentication, monitoring, data pipelines, vector databases, cost controls, audit trails, user interfaces, and enterprise integrations. You're not building an AI solution anymore - you're building infrastructure. ## The infrastructure gap Current AI development tools fall into two categories: **Libraries and frameworks** like LangChain, LlamaIndex, and Semantic Kernel help you build agents quickly. They handle the AI logic well, but they're just code libraries. You still need to figure out deployment, scaling, monitoring, and everything else that makes software production-ready. **Cloud AI services** like Azure AI Studio or Google Vertex AI provide infrastructure, but they lock you into their ecosystem. Your data lives on their servers, you pay their margins forever, and you can't modify the platform when it doesn't fit your needs. Neither approach solves the actual problem enterprises face: **How do you go from AI experiments to production systems without either building everything from scratch or surrendering control to a vendor?** ## The Swiss enterprise challenge For Swiss organizations, these challenges are compounded by specific requirements: ::: warning Data sovereignty requirements Swiss data protection laws and corporate policies often require that sensitive data remains within Swiss borders. Most AI platforms can't guarantee this - they process data wherever their infrastructure runs. ::: The typical journey looks like this: 1. **Experimentation blocked**: IT won't approve ChatGPT or Claude because data leaves the company 2. **Local attempts fail**: Teams try to run open-source models locally but lack the infrastructure 3. **Vendor evaluation stalls**: Enterprise AI platforms are expensive, complex, and still don't solve data residency 4. **Custom building overwhelms**: Building from scratch requires expertise the organization doesn't have Organizations get stuck in a loop: They can't use existing solutions due to compliance, but they can't build their own due to complexity. ## The real cost of fragmentation When organizations do manage to deploy AI, they often end up with a fragmented landscape: - **Team A** uses Azure OpenAI through Python scripts - **Team B** built a RAG system with LlamaIndex that only they understand - **Team C** has a chatbot that no one maintains anymore - **Finance** wants cost tracking across all AI usage - **IT** wants standardized deployment and monitoring - **Compliance** wants audit trails and data governance Each team solves their immediate problem but creates new ones. There's no shared infrastructure, no consistent governance, no unified approach. The organization has AI capabilities but not an AI platform. ## What organizations actually need The requirements are clear: 1. **Complete infrastructure** that handles deployment, monitoring, and scaling - not just AI logic 2. **Data sovereignty** with the option to run everything on-premise or in Swiss data centers 3. **Openness and control** to modify, extend, and integrate with existing systems 4. **Production readiness** with enterprise authentication, audit trails, and cost controls built in 5. **A unified platform** that different teams can build on without creating silos This is the gap the Swiss AI Hub fills. Instead of choosing between building everything yourself or accepting vendor lock-in, you get a complete platform that you own and control. One that's designed for the realities of enterprise AI deployment, not just the excitement of AI development. --- --- url: https://docs.ai-hub.bbv.ch/docs/1_vision_and_positioning/1_introduction/2_our_solution.md title: "Our solution" description: "" --- # Our solution: Enterprise AI infrastructure as a product The Swiss AI Hub is a complete, open-source AI platform that you deploy, own, and control. It's not a service you subscribe to or a framework you build upon - it's production-ready infrastructure that becomes yours. ## Platform + SDK: The complete package The Swiss AI Hub consists of two complementary parts: **The platform** is your AI infrastructure. Open-source (Apache 2.0 for the runtime + SDK, AGPL-3.0 for the UI and backup orchestration; see [LICENSES.md](https://github.com/bbvch-ai/aihub-core/blob/main/LICENSES.md) for the per-package breakdown), it includes everything needed to run AI in production: LLM gateway, vector databases, data pipelines, authentication, monitoring, and user interfaces. Deploy it with `docker compose up` and you have a working AI system. **The SDK** is how you extend the platform. It provides the patterns, tools, and frameworks for building agents, pipelines, and processes that automatically integrate with the platform. When you build with our SDK, your components inherit all platform capabilities - they don't need custom deployment, monitoring, or user access because the platform handles it. ## What you get out of the box When you deploy the Swiss AI Hub, you immediately have: ::: details Infrastructure layer - **Unified LLM gateway** through LiteLLM, connecting to any model provider - **Vector databases** (Milvus) for semantic search and RAG - **Document processing** with MinerU for PDFs, Office files, and more - **Data pipelines** using Dagster for ingestion and processing - **Message queuing** with NATS for event-driven architecture - **Object storage** via SeaweedFS S3-compatible layer - **Multiple databases** (PostgreSQL, FerretDB, ValKey) pre-configured ::: ::: details AI capabilities - **Multi-provider LLM access** with automatic failover and cost tracking - **Built-in RAG** with document parsing, chunking, and retrieval - **Agent orchestration** for complex multi-step workflows - **Process automation** coordinating between humans, AI, and systems - **PII detection and anonymization** through Presidio - **Embeddings and semantic search** with configurable models ::: ::: details Enterprise features - **SSO/OAuth integration** with your identity provider - **Role-based access control** with granular permissions - **Full audit trails** for compliance and debugging - **Cost tracking and limits** per user, team, or model - **API tokens** for programmatic access - **Langfuse tracing** for complete observability ::: ::: details User interfaces - **Modern chat interface** with voice, images, and documents - **Process cockpit** for workflow monitoring and participation - **Admin dashboard** for system management - **Microsoft Teams and Slack bots** for where users already work - **OpenAI-compatible API** for existing tool integration ::: ## How it solves the infrastructure problem Remember those hard questions from before? Here's how the platform answers them: ::: tip "How do we deploy this?" Everything runs in containers. One command starts the entire stack. Scale by adjusting container counts. ::: ::: tip "Where does our data stay?" Wherever you deploy it. Run on-premise, in a Swiss data center, or your preferred cloud. Your infrastructure, your control. ::: ::: tip "Can we track what the AI is doing?" Every agent action is traced through Langfuse. Every API call is logged. Every decision is auditable. ::: ::: tip "How do we control costs?" LiteLLM provides unified cost tracking across all models. Set limits by user, team, or globally. ::: ::: tip "What happens when it fails?" Built-in error handling, automatic failover between models, and graceful degradation to human review. ::: ::: tip "How do users actually access it?" Through the web UI, Teams, Slack, or API. Authentication handled by your existing identity provider. ::: ::: tip "Can we integrate it with our existing tools?" OpenAI-compatible API for tool compatibility. Event-driven architecture for custom integrations. Webhook endpoints for external systems. ::: ## Why open source changes everything The open-source license model (see [LICENSES.md](https://github.com/bbvch-ai/aihub-core/blob/main/LICENSES.md) for the per-package breakdown) means you're not adopting a platform - you're acquiring one: - **No vendor lock-in**: The code is yours. Run it anywhere, modify it as needed - **No licensing fees**: Pay only for the infrastructure you run it on - **Transparent operations**: Every component is inspectable and auditable - **Community-driven**: Improvements from other organizations benefit everyone - **Future-proof**: If we disappeared tomorrow, you'd still have a working platform ## The SDK advantage While the platform solves infrastructure, the SDK solves development complexity. Building with our SDK means your agents automatically: - Stream real-time updates to users through WebSocket connections - Appear in the chat interface without custom UI development - Get traced without instrumentation code - Handle authentication and authorization without security logic - Store state in provided databases without connection management - Process documents through existing pipelines without custom parsing You write business logic. The platform handles everything else. ## A practical example Here's what deploying your first AI capability looks like: 1. **Clone the repository** and configure environment variables 2. **Run `docker compose up`** to start the platform 3. **Access the web UI** and authenticate with your SSO 4. **Chat with pre-built agents** that work immediately 5. **Connect your data sources** through the admin interface 6. **Build custom agents** using SDK patterns when needed No infrastructure setup. No service provisioning. No complex configurations. The platform is ready for production from day one. This is infrastructure as a product: complete, functional, and yours to build upon. --- --- url: https://docs.ai-hub.bbv.ch/docs/1_vision_and_positioning/1_introduction/3_the_swiss_way.md title: "The Swiss Way" description: "" --- # The Swiss way: Privacy, sovereignty, and transparency The Swiss AI Hub embodies Swiss values, but not as marketing buzzwords. These principles exist for one reason: to build trust. Swiss organizations don't adopt technology lightly, especially when it involves their data and tools. This caution is justified - AI demonstrations are impressive, but production AI needs to earn trust through transparency, control, and predictability. ## Trust through bounded behavior Most AI platforms use open-ended agents: give them tools and a goal, let them figure out the rest. This approach works in demos but creates anxiety in production. How do you know the agent won't do something unexpected? How do you audit its decisions? How do you explain its failures? The Swiss AI Hub takes a different approach: **Closed-form workflows instead of open loops**\ Our agents follow explicit, step-by-step workflows. Each step defines what can happen, what data flows where, and what decisions are possible. An agent can't suddenly decide to access data it shouldn't or perform actions you didn't anticipate - it can only execute the workflow steps you've defined. **Observable at every level**\ Trust requires visibility. The platform provides four layers of observability: - **Infrastructure monitoring** through OpenTelemetry and Signoz tracks resource usage and API performance - **Agent execution tracing** through OpenInference and Langfuse shows every LLM call and decision - **Workflow event streams** make every step in the agent's process visible and debuggable - **Pipeline observability** through Dagster shows exactly how your data is processed and where it goes **Measurable performance**\ Hope is not a strategy. The platform includes evaluation frameworks that measure agent accuracy against test datasets. You don't have to trust that agents work correctly - you can prove it with metrics. ## Trust through data sovereignty ::: warning Your data, your infrastructure Data sovereignty isn't just about compliance - it's about control. When you deploy the Swiss AI Hub, your data never leaves your infrastructure unless you explicitly configure it to. Run everything on-premise with local LLMs, and your sensitive data never crosses your network boundary. ::: This isn't theoretical capability. The platform ships with configurations for: - **Fully on-premise deployment** with open-source models like Mistral or DeepSeek - **Swiss cloud deployment** using Swiss data centers exclusively - **Hybrid deployment** keeping sensitive data local while using cloud for non-critical workloads You choose where each component runs, where data is stored, and which models process what information. This granular control means you can start with maximum security and gradually relax constraints as trust builds. ## Trust through transparency The platform's transparency goes beyond open source: **Auditable decisions**\ Every agent decision is logged with full context. Not just what was decided, but why - what data was considered, what rules were applied, what confidence levels were calculated. Compliance teams can trace any output back to its sources. **Explainable workflows**\ Because agents follow defined workflows, you can explain their behavior to non-technical stakeholders. "The agent analyzes the document, extracts key information, checks it against our rules, and then requests human approval" - not "the AI does some processing." **Visible integrations**\ When the platform connects to external systems, those connections are explicit and monitored. You see what data flows to which services, what responses come back, and how they're processed. ## Trust through gradual adoption Swiss organizations don't do "big bang" transformations, and the platform respects this: **Start with read-only access**\ Begin with agents that only retrieve and analyze information. No write permissions, no system modifications, no automated decisions. Build confidence through safe operations. **Expand with human oversight**\ Add capabilities gradually, always with human approval steps. The agent prepares the work; humans verify and execute. As trust grows, reduce oversight where appropriate. **Isolate by criticality**\ Run separate instances for different security levels. Test new capabilities in development, validate in staging, deploy to production only when proven. Critical systems can stay isolated while less sensitive ones integrate more deeply. ## Trust through professional engineering The platform isn't a research project or a startup's MVP. It's built with Swiss engineering standards: - **Comprehensive testing** at unit, integration, and system levels - **Type safety** enforced throughout the codebase - **Error handling** that gracefully degrades rather than fails catastrophically - **Security by design** with authentication, authorization, and encryption built in - **Professional documentation** that explains not just how but why ## The trust equation Trust in AI comes from a simple equation: **Predictability + Visibility + Control = Trust** - **Predictability** through bounded workflows and defined behaviors - **Visibility** through comprehensive observability and audit trails - **Control** through data sovereignty and configuration options The Swiss AI Hub provides all three. Not through promises or proprietary black boxes, but through open, inspectable, modifiable infrastructure that you own and operate. This is the Swiss way: earning trust through transparency, maintaining trust through reliability, and deserving trust through respect for your data, your processes, and your caution. Because in Switzerland, trust isn't given - it's earned through demonstration, maintained through consistency, and valued above rapid adoption. --- --- url: https://docs.ai-hub.bbv.ch/docs/1_vision_and_positioning/1_introduction/4_platform_vs_sdk.md title: "Platform vs SDK" description: "" --- # Platform vs SDK: Understanding the dual architecture The Swiss AI Hub separates platform from SDK deliberately. This separation isn't architectural complexity; it's strategic design that gives you maximum flexibility in how you adopt, deploy, and extend the system. ## The platform: Your AI infrastructure The platform is everything that runs when you execute `docker compose up`. It's the databases, message queues, LLM gateway, vector stores, authentication system, user interfaces, and monitoring tools. Open-source (Apache 2.0 for the runtime, AGPL-3.0-or-later for the UI and backup; see [LICENSES.md](https://github.com/bbvch-ai/aihub-core/blob/main/LICENSES.md) for the per-package breakdown), it's yours to deploy, modify, and operate however you need. Think of the platform as your AI operating system. It handles: - Where data is stored and how it's accessed - Which models are available and how they're called - Who can access what and how they're authenticated - How components communicate and coordinate - What users see and how they interact The platform works immediately. Deploy it and you have a functional AI system with pre-built agents, chat interfaces, and integrations. You can use it as-is without writing any code. ## The SDK: Your development framework The SDK is how you build new capabilities that run on the platform. It provides base classes, decorators, patterns, and tools that make your custom agents, pipelines, and processes automatically compatible with the platform infrastructure. When you build with the SDK, you're writing business logic while the SDK handles platform integration: ```python class MyAgent(Agent): @step() async def analyze_document(self, event: DocumentEvent) -> AnalysisEvent: # Your business logic here return AnalysisEvent(results=analysis) ``` This agent automatically: - Streams updates through the platform's WebSocket connections - Appears in the chat interface - Gets traced in Langfuse - Respects platform authentication - Stores state in platform databases - Handles errors according to platform patterns ## Why the separation matters **Deployment flexibility**\ You can deploy the platform without any custom development code. Teams can start using AI immediately with pre-built capabilities while developers work on custom agents. The platform provides value from day one. **Development independence**\ SDK development happens outside the platform runtime. Developers work in their IDE with familiar tools, testing locally before deploying. No need to understand the platform's internal architecture to build agents. **Update isolation**\ Platform updates (new versions of Langfuse, LiteLLM, or the web UI) don't break your custom agents. SDK updates (new decorators or patterns) don't require platform changes. Each layer evolves independently. **Clear architectural boundaries**\ The separation creates clear interfaces between infrastructure and business logic. Platform concerns (authentication, storage, tracing) are completely separated from agent logic. This makes the codebase easier to understand, test, and maintain. ## How they work together The magic happens through well-defined interfaces: **Event contracts**\ The SDK defines event types that the platform understands. When your agent emits a `UserMessageEvent`, the platform knows how to route it, store it, and display it. The contract is the event schema, not the implementation. **Discovery protocols**\ Agents built with the SDK announce themselves to the platform through NATS messages. The platform discovers available agents dynamically, no configuration required. **Resource injection**\ The SDK knows about platform resources (databases, LLM clients, storage). When your agent needs them, the platform injects configured instances automatically. **Standardized patterns**\ The SDK enforces patterns the platform expects. Workflow steps, context management, error handling all follow conventions the platform can monitor and manage. ## A practical comparison Consider building a document analysis agent: **Without the SDK:** - Write custom API endpoints - Implement WebSocket streaming - Add authentication checks - Configure database connections - Instrument tracing manually - Build a user interface - Handle error states - Manage deployment **With the SDK:** ```python class DocumentAnalyzer(Agent): @step() async def analyze(self, doc: Document) -> Analysis: return analyze_document(doc) ``` The SDK isn't hiding complexity, it's eliminating redundancy. The platform already knows how to stream, authenticate, store, trace, display, and deploy. The SDK provides the patterns to tap into these capabilities. ## Open source and licensing Swiss AI Hub uses a mixed open-source model: the platform runtime, SDK, agents, pipelines and processes are licensed under **Apache 2.0** (permissive — use, modify, distribute commercially, no obligation to share modifications back); the web UI, the multi-tenant management plane, and backup orchestration under **AGPL-3.0-or-later** (network-copyleft). See [LICENSES.md](https://github.com/bbvch-ai/aihub-core/blob/main/LICENSES.md) for the full per-package breakdown. The components you typically extend — your own agents, pipelines and processes built on the SDK — sit under Apache 2.0, so your code stays yours. ## When you need each part **Platform only:** You want secure AI access with pre-built capabilities. Perfect for organizations starting their AI journey or teams that need standard agents. **Platform + SDK:** You need custom agents, specialized pipelines, or complex process automation. The SDK becomes essential when pre-built capabilities aren't enough. **SDK for migration:** You have existing agents built with other frameworks. The SDK provides migration paths to make them platform-native while preserving your investment in business logic. The platform runs your AI infrastructure. The SDK builds your competitive advantage. Together, they provide a complete ecosystem where infrastructure is solved and development is streamlined, letting you focus on what makes your AI applications unique. --- --- url: https://docs.ai-hub.bbv.ch/docs/1_vision_and_positioning/2_why_swiss_ai_hub.md title: "Why Swiss AI Hub" description: "" --- # Why Swiss AI Hub? Every AI solution makes trade-offs. Some prioritize ease of use over control. Others offer power but require massive engineering investment. Understanding these trade-offs helps you choose the right approach for your organization. This chapter provides practical comparisons and concrete advantages. You'll learn: - How the Swiss AI Hub compares to popular alternatives across twelve critical enterprise needs - Which production challenges are already solved in the platform - How the collaborative ecosystem benefits every participant Read this section when you need to justify your platform choice, understand what differentiates the Swiss AI Hub, or explain the ecosystem model to stakeholders. --- --- url: https://docs.ai-hub.bbv.ch/docs/1_vision_and_positioning/2_why_swiss_ai_hub/1_comparison_matrix_light.md title: "Comparison Matrix" description: "" --- # Comparison matrix: Where Swiss AI Hub fits Different organizations need different AI solutions. Some prioritize ease of use, others need complete control. Understanding these trade-offs helps you choose the right approach for your requirements. ## Market positioning (TL;DR) This chapter explains when Swiss AI Hub is the right solution and when it isn't. But if you want the oversimplified version: ```mermaid quadrantChart x-axis Low Data Sovereignty --> Full Data Sovereignty y-axis Incomplete Platform --> Complete Platform Swiss AI Hub: [0.9, 0.9] LangChain: [0.90, 0.10] Azure AI Foundry: [0.35, 0.80] OpenAI Assistants: [0.10, 0.65] Dify: [0.80, 0.45] n8n: [0.75, 0.40] ``` Big cloud platforms give you everything out-of-the-box - authentication, monitoring, interfaces, the works. But you own nothing and pay forever. Programming frameworks like LangChain let you deploy anywhere and own the code. But they're just libraries. You handle authentication, deployment, monitoring, and interfaces yourself. Swiss AI Hub sits in the "Own Everything" quadrant: a complete, batteries-included platform that you deploy and own. You get the completeness of cloud platforms with the ownership of open-source frameworks. The rest of this chapter details the specific trade-offs. Read on for the nuanced picture, but if you're short on time: **we give you a complete platform without vendor lock-in**. ## The 12 enterprise AI needs We've identified twelve critical needs organizations face when adopting AI: | Need | What it means | Why it matters | | -------------------------- | ---------------------------------------------- | ------------------------------------------- | | **Data sovereignty** | Control where data is stored and processed | Legal compliance and policy requirements | | **Predictable costs** | Transparent pricing without surprises | Budget planning and ROI calculation | | **Trust in outputs** | Visibility into AI reasoning and decisions | Risk management and user adoption | | **Time to value** | Speed from deployment to working system | Demonstrating ROI and maintaining momentum | | **Tool integration** | Compatibility with existing infrastructure | Avoiding workflow disruption | | **Skill accessibility** | Enabling teams without AI expertise | Democratizing AI development | | **Scalability** | Growing usage without complexity | Supporting organization-wide adoption | | **Vendor independence** | Avoiding lock-in and maintaining control | Long-term flexibility and negotiating power | | **Unified governance** | Consistent security and compliance | Meeting enterprise requirements | | **Production reliability** | Consistent performance for critical operations | Business continuity | | **Visual development** | Drag-and-drop workflow creation | Enabling citizen developers | | **Zero maintenance** | Fully managed operations | Focusing on use cases, not infrastructure | ## How different approaches compare ### Swiss AI Hub position The Swiss AI Hub provides: - **Full marks** for sovereignty, cost control, trust, independence, and governance through self-hosted, open-source architecture - **Strong capabilities** in integration, skill bridging, scaling, and reliability through platform completeness - **Quick deployment** with pre-built components while requiring some initial setup - **Code-first approach** rather than visual development tools ### Libraries and frameworks Tools like **LangChain**, **LlamaIndex**, and **Semantic Kernel** excel at providing AI development abstractions but leave infrastructure entirely to you. They offer vendor independence through open source but require building everything else: deployment, monitoring, authentication, user interfaces, and governance. These tools solve the AI logic problem but create an infrastructure problem. ### Managed cloud platforms Services like **Azure AI Foundry**, **Google Vertex AI**, and **AWS Bedrock** handle infrastructure complexity and provide enterprise features. They trade sovereignty and independence for operational simplicity. Your data lives in their cloud (even if region-selectable), you pay their margins indefinitely, and you work within their constraints. They solve the infrastructure problem but create vendor lock-in. ### Visual development platforms Platforms like **Dify** and **Flowise** democratize AI through drag-and-drop interfaces. They make AI accessible to non-developers but often lack enterprise requirements like governance, detailed observability, and production reliability. These platforms excel at rapid prototyping but struggle with complex, production-grade workflows that need code-level control. ### Automation platforms with AI Tools like **n8n** and **Zapier AI** are workflow automation platforms that added AI capabilities. They excel at connecting systems and enabling non-technical users but treat AI as black-box components. They lack deep AI observability, unified model management, and the transparency needed for trusted AI deployment. ## The detailed comparison | Framework | Data sovereignty | Predictable costs | Trust in outputs | Time to Value | Tool integration | Skill accessibility | Scalability | Vendor independence | Unified governance | Production reliability | Visual development | Zero maintenance | | :-------------------- | :--------------: | :---------------: | :--------------: | :-----------: | :--------------: | :-----------------: | :---------: | :-----------------: | :----------------: | :--------------------: | :----------------: | :--------------: | | **Swiss AI Hub** | ✅ | ✅ | ✅ | ⚠️ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | | **LangChain** | ⚠️ | ❌ | ⚠️ | ❌ | ✅ | ⚠️ | ❌ | ✅ | ❌ | ❌ | ⚠️ | ❌ | | **Azure AI Foundry** | ⚠️ | ⚠️ | ⚠️ | ⚠️ | ✅ | ⚠️ | ✅ | ❌ | ✅ | ✅ | ✅ | ✅ | | **OpenAI Assistants** | ❌ | ⚠️ | ⚠️ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ✅ | ⚠️ | ✅ | | **Dify** | ✅ | ✅ | ⚠️ | ✅ | ⚠️ | ✅ | ⚠️ | ✅ | ⚠️ | ⚠️ | ✅ | ✅ | | **n8n** | ✅ | ✅ | ❌ | ✅ | ✅ | ✅ | ⚠️ | ✅ | ❌ | ⚠️ | ✅ | ⚠️ | > **Legend**\ > ✅ Full capability\ > ⚠️ Partial capability\ > ❌ Not addressed ## Making the right choice The comparison reveals clear patterns: **Choose libraries** (LangChain, LlamaIndex) when you have strong engineering teams who can build and maintain infrastructure. You get maximum flexibility but must solve every production challenge yourself. **Choose managed platforms** (Azure, Google, AWS) when operational simplicity outweighs sovereignty concerns. You get reliability and scale but accept vendor lock-in and ongoing costs. **Choose visual platforms** (Dify, Flowise) when rapid prototyping and citizen development are priorities. You get accessibility but may hit limitations in production scenarios. **Choose automation platforms** (n8n, Zapier) when AI is an enhancement to existing workflows rather than the core capability. You get broad integration but limited AI depth. **Choose Swiss AI Hub** when you need the completeness of a managed platform with the control of self-hosted infrastructure. You get enterprise features, full sovereignty, and vendor independence, but must handle deployment and operations yourself. The Swiss AI Hub occupies a unique position: a complete platform that you own and control. This approach requires more initial setup than managed services but provides long-term benefits in sovereignty, cost control, and flexibility that compound over time. --- --- url: https://docs.ai-hub.bbv.ch/docs/1_vision_and_positioning/2_why_swiss_ai_hub/2_the_day_2_advantage.md title: "The 'Day 2' Advantage" description: "" --- # The "Day 2" advantage: Problems we've already solved Day 1 is the demo. The prototype works, stakeholders are impressed, and everyone's excited about AI. Day 2 is when reality hits. The prototype needs to become a production system, and suddenly you're facing dozens of problems the demo never addressed. The Swiss AI Hub was built by teams who've lived through Day 2 many times. We've embedded solutions to these problems directly into the platform, so you don't have to solve them yourself. ## Authentication and access control **Day 2 problem:** Your prototype uses a hardcoded API key. Now you need user authentication, role management, and audit trails. Do you build a user system from scratch? Integrate with Active Directory? How do you handle service accounts for automated processes? **Already solved:** The platform includes enterprise authentication with SSO/OAuth support. Connect to your identity provider once, and every component inherits proper authentication. Users, agents, and processes all authenticate through the same system. Role-based access control determines who can use which models, access which data, and perform which actions. Every interaction is logged with user attribution. ## Cost explosion and tracking **Day 2 problem:** The demo cost $50 in API calls. Production usage by 100 employees costs $50,000 in the first month. Finance wants cost attribution by department. Management wants spending limits. No one knows which prompts are driving costs. **Already solved:** LiteLLM provides unified cost tracking across all model providers. Set quotas per user, team, or globally. Track spending in real-time dashboards. See exactly which agents, prompts, and users generate costs. Export detailed reports for chargeback. Automatic cutoffs prevent budget overruns. ## Multi-model complexity **Day 2 problem:** Your prototype uses GPT-4. Production needs different models for different tasks: cheap models for classification, powerful models for analysis, specialized models for code. Managing multiple API keys, handling different response formats, and dealing with rate limits becomes a nightmare. **Already solved:** The LiteLLM gateway provides a single interface to all models. Configure providers once, then reference models by simple names. Automatic fallback when primary models are unavailable. Consistent request/response format regardless of provider. Rate limiting and retry logic handled automatically. ## Data ingestion pipeline **Day 2 problem:** The demo worked with 10 hand-picked documents. Production has 10,000 documents in various formats, updating daily. You need document parsing, chunking strategies, embedding generation, and vector storage. Plus handling updates when documents change. **Already solved:** Dagster pipelines automatically process documents from configured sources. MinerU handles PDFs, Office files, and complex formats. Smart chunking preserves document structure. Embeddings generated with configurable models. Milvus provides production-grade vector storage. Changed documents trigger automatic reprocessing. ## Observability and debugging **Day 2 problem:** The AI gives a wrong answer. What happened? Which documents did it reference? What was the actual prompt sent to the model? How do you debug a system where every run is different? **Already solved:** Multiple layers of observability are built in. Langfuse tracing shows every LLM call with inputs and outputs. Workflow events make each step visible. Dagster provides complete pipeline lineage. OpenTelemetry tracks system metrics. When something goes wrong, you can trace the entire execution path. ## User interface and access **Day 2 problem:** Your prototype is a Python script. Users need a web interface, managers want dashboards, and everyone expects it to work in Teams. Do you build a React app? Hire frontend developers? Create separate interfaces for different user types? **Already solved:** The platform includes a production-ready chat interface with voice, images, and documents. Process cockpit for workflow participation. Admin dashboard for system management. Teams and Slack bots for users who prefer those channels. WebSocket streaming for real-time updates. Everything connected to the same backend. ## Deployment and scaling **Day 2 problem:** The prototype runs on a developer's laptop. Production needs high availability, horizontal scaling, and zero-downtime updates. How do you containerize everything? Handle service discovery? Manage configurations across environments? **Already solved:** Everything runs in containers with Docker Compose for simple deployment or Kubernetes for scale. NATS messaging enables automatic service discovery. Scale by running multiple agent instances. Configuration through environment variables. Health checks and automatic restarts maintain availability. ## Testing and quality assurance **Day 2 problem:** How do you test AI systems that give different responses each time? How do you ensure changes don't break existing functionality? How do you validate agent behavior before production deployment? **Already solved:** The SDK provides `AgentTestRunner` for deterministic testing. BDD patterns with pytest-bdd for behavior verification. Evaluation frameworks to measure accuracy against test datasets. Sandbox environments for safe testing. Langfuse tracing for test debugging. ## Compliance and governance **Day 2 problem:** Legal needs audit trails. Compliance requires data lineage. Security wants to know who accessed what. Privacy regulations demand PII handling. How do you add governance to a system that wasn't designed for it? **Already solved:** Comprehensive audit logging tracks all actions. Data lineage from source to response. Presidio provides PII detection and anonymization. Configurable data retention policies. Export capabilities for compliance reporting. Everything designed with governance in mind from the start. ## Integration with existing systems **Day 2 problem:** The prototype is standalone. Production needs to integrate with SharePoint, SAP, Salesforce, and custom databases. Each integration requires different authentication methods, data formats, and error handling. **Already solved:** OpenAI-compatible API for tool compatibility. Webhook endpoints for external system triggers. NATS events for custom integrations. SharePoint connector included. Extensible resource system for adding new integrations. Standard patterns for error handling and retry logic. ## Version management and updates **Day 2 problem:** The prototype has no version control. Production needs to track which version of which agent produced which output. Updates must be tested before deployment. Rollback capability is essential. **Already solved:** Git-based version control for all components. Tagged container images for each version. Configuration as code for reproducible deployments. ## The compound advantage Each Day 2 problem solved saves weeks or months of development time. Together, they represent years of engineering effort already complete. This isn't about features you might need someday. These are problems you will definitely face when moving from prototype to production. The Swiss AI Hub exists because we've been through Day 2 enough times to know what's coming. Instead of discovering these problems one by one and scrambling for solutions, you start with a platform where they're already handled. Your team can focus on building AI capabilities that matter to your business, not rebuilding infrastructure that should already exist. --- --- url: https://docs.ai-hub.bbv.ch/docs/1_vision_and_positioning/2_why_swiss_ai_hub/3_the_ecosystem_model.md title: "The Ecosystem Model" description: "" --- # The ecosystem model: How everyone benefits The Swiss AI Hub exists because AI infrastructure shouldn't be a competitive differentiator. Basic capabilities like LLM access, document processing, and RAG should be commodities, available to everyone. Swiss organizations should compete on their domain expertise and business innovation, not on who can build better authentication systems or vector databases. ## The Swiss opportunity Switzerland is a small country competing in a global economy dominated by tech giants. While Google, Microsoft, and Amazon pour billions into AI infrastructure, Swiss companies individually lack the resources to match that investment. The typical response would be to accept dependency on foreign platforms, but Switzerland has another option: collaboration. The same democratic principles that make Switzerland successful as a nation can transform how we approach AI. Instead of each organization building redundant infrastructure, we can pool our efforts on the foundation while competing on the application layer. This isn't about eliminating competition; it's about moving competition to where it creates value. ## Infrastructure as commodity Consider what every organization building AI needs: - Secure model access with cost controls - Document processing and vector storage - Authentication and user management - Monitoring and observability - Deployment and scaling patterns These requirements are universal. A bank's authentication needs aren't fundamentally different from an insurance company's. A pharmaceutical company's document processing challenges mirror those of a manufacturing firm. Yet today, each organization either builds these capabilities separately or surrenders to a foreign platform. The Swiss AI Hub makes this infrastructure a commodity. Deploy the platform once, and these problems are solved. Every improvement to the core platform benefits every organization using it. When someone contributes better document parsing, everyone's document processing improves. When someone adds a new security feature, everyone becomes more secure. ## The contribution dynamic The Swiss AI Hub platform runtime, SDK, agents, pipelines, and processes are licensed under Apache 2.0. (The web UI, the multi-tenant management plane, and backup orchestration are AGPL-3.0-or-later. See [LICENSES.md](https://github.com/bbvch-ai/aihub-core/blob/main/LICENSES.md) for the per-package breakdown.) The permissive license on the runtime + SDK creates natural collaboration incentives without forcing them. **Shared infrastructure benefits everyone:** When organizations improve core infrastructure, sharing makes sense because everyone benefits. A bank that adds better compliance logging helps every regulated industry. A healthcare provider that improves PII handling helps everyone with privacy concerns. These contributions flow back naturally because better shared infrastructure reduces everyone's costs. **Strategic differentiation stays private:** Organizations keep their competitive advantages proprietary. The customer-facing agent that embodies your unique business processes, your specialized data processing, your domain expertise - these stay yours. The Apache 2.0 runtime doesn't require sharing anything back, so you're free to keep strategic innovations private while benefiting from and contributing to shared infrastructure. ## Why licensing matters for AI infrastructure Understanding software licensing is critical when building AI infrastructure. Many organizations make costly mistakes by assuming that code on GitHub is automatically free to use - it's not. ### The GitHub misconception **Seeing source code ≠ open source ≠ free to use.** GitHub hosts both open-source projects and proprietary software with restrictive licenses. Being able to *view* or *download* code doesn't mean you're legally permitted to *use* it, especially in production or commercial contexts. Example: **n8n**, one of the most popular workflow automation tools on GitHub, uses the "Sustainable Use License" (not an open-source license). While you can download and run it, the license prohibits commercial use without purchasing an enterprise license - even if you self-host. Many organizations discover this too late, after building dependencies on these tools. ### License categories explained **Permissive licenses** (MIT, Apache 2.0, BSD): Grant broad freedoms - use, modify, distribute commercially, keep modifications private. No strings attached. These are ideal for building business infrastructure. **Copyleft licenses** (GPL, AGPL): Require that any modifications or derivative works be released under the same license. If you build on GPL software and distribute it, you must open-source your entire application. **AGPL extends this to network use** - even offering the software as a service triggers the requirement. This makes copyleft a poor fit for the building blocks you extend with proprietary logic - which is exactly why the Swiss AI Hub runtime and SDK are permissive, not copyleft. (Copyleft is the right choice for end-user applications such as the UI; see below.) **Source-available licenses** (Elastic License, BSL, SSPL, "Sustainable Use"): Let you view and sometimes use the code, but impose severe restrictions - often prohibiting commercial use, managed services, or competing products. Not open-source despite appearing on GitHub. **Proprietary/Custom licenses**: Vary widely. Require careful legal review. Often prohibit production use without payment. ### Licenses to avoid in AI infrastructure For production AI systems, be extremely cautious with: - **AGPL/GPL**: Force your entire system open-source if you modify and distribute the software - **SSPL (Server Side Public License)**: MongoDB's attempt to prevent cloud providers from offering managed versions; triggers open-source requirements for infrastructure - **Elastic License v2**: Prohibits offering the software as a competing service - **Business Source License (BSL)**: Time-delayed open source; restrictive until expiration date - **Custom "source-available" licenses**: Usually prohibit commercial use or have unclear terms These licenses might seem acceptable initially, but create legal landmines when you scale, offer services, or integrate with customer systems - **when they sit underneath the code you build on**. That is precisely why the Swiss AI Hub keeps the runtime and SDK permissive. The web UI and backup orchestration are a deliberate exception: they are AGPL-3.0-or-later *because* they are end-user applications rather than building blocks, so copyleft protects community improvements without ever forcing your agents or business logic open. ### Our licensing commitment The Swiss AI Hub rigorously evaluates every dependency - all 232 Python packages, 197 Node.js packages, and 28 external Docker images. We verify that every component uses permissive licenses (MIT, Apache 2.0, BSD) or has been explicitly reviewed and approved. **You get the freedom each package's license confers — see [LICENSES.md](https://github.com/bbvch-ai/aihub-core/blob/main/LICENSES.md) for the exact terms per package.** Briefly: the runtime + SDK (Apache 2.0) place no restrictions on commercial use or integration with proprietary systems; the web UI, the multi-tenant administration plane, and backup orchestration (AGPL-3.0-or-later) require source disclosure of your modifications when you offer them as a network service. **Why Apache 2.0 specifically for the runtime and SDK:** Beyond being permissive, Apache 2.0 includes explicit patent grants, protecting you from patent claims by contributors. It's trusted by enterprises, well-understood by legal teams, and compatible with virtually all other licenses. It's the gold standard for collaborative infrastructure — which is precisely the role of the runtime and SDK. This isn't just idealism - it's pragmatism. A permissive runtime + SDK removes barriers to adoption and prevents vendor lock-in for the building blocks you extend; the AGPL components protect against hostile SaaS rehosts of the UI and the administration plane without burdening the building blocks. ## Real collaboration patterns The ecosystem already shows how this works: **Shared components:** Common agents for document summarization, question answering, and data extraction become community assets. Every organization needs these basics, so sharing makes sense. **Industry solutions:** Healthcare organizations collaborate on medical document processing. Financial services share compliance-focused agents. These industry-specific solutions emerge naturally when organizations realize their competitors abroad, not domestically, are the real threat. **Infrastructure improvements:** Performance optimizations, security enhancements, and operational tools flow back to the platform. Everyone benefits from a faster, more secure, more reliable foundation. **Knowledge sharing:** Organizations share deployment patterns, best practices, and lessons learned. The same platform means solutions are transferable. ## Where competition belongs The ecosystem model doesn't eliminate competition; it focuses it where it matters: **Your domain expertise** remains yours. The platform doesn't know your business rules, your customer relationships, or your market insights. These create competitive advantage. **Your specialized agents** reflect your unique processes and knowledge. While you might share generic document processing, your customer service agent embodies your specific approach. **Your data and training** remain proprietary. The platform provides tools to process and query your data, but the data itself and the insights derived from it are your competitive moat. **Your business innovation** is where competition should be. Instead of competing on who has better vector databases, compete on who uses AI more creatively to serve customers. ## The network effect As more organizations adopt the Swiss AI Hub, the ecosystem strengthens: **Development accelerates** because common patterns emerge and get encoded into the SDK. What took weeks to build becomes a configuration option. **Quality improves** through collective debugging and testing. With many organizations running the same platform, edge cases get discovered and fixed quickly. **Costs decrease** through shared investment. Instead of each organization paying for complete development, costs are distributed across the ecosystem. **Innovation increases** because developers can build on a higher foundation. Instead of reimplementing basics, they can explore new capabilities. ## The Swiss AI advantage This collaborative approach gives Swiss organizations collective advantages: **Speed:** New organizations can deploy production AI in days, not months, by leveraging existing work. **Sovereignty:** Swiss data stays in Switzerland, processed by Swiss-controlled infrastructure, governed by Swiss law. **Independence:** No single vendor controls the platform. No foreign company can change terms or cut access. **Quality:** Collective investment produces better infrastructure than any single organization could build. **Innovation:** Freed from infrastructure concerns, organizations focus on business innovation where real value lies. ## Making collaboration work The ecosystem succeeds because it aligns incentives correctly: Organizations contribute to infrastructure because they benefit directly from improvements. They share non-differentiating capabilities because collaboration is more valuable than secrecy. They keep strategic innovations private because Apache 2.0 permits both approaches - the choice is always yours. The Swiss AI Hub provides the technical foundation for this collaboration, but the ecosystem is built by its members. Every organization that deploys the platform, contributes improvements, or shares knowledge strengthens Swiss AI capabilities collectively. This is how Switzerland competes globally: not through individual organizations trying to match Big Tech resources, but through collaborative infrastructure that lets every organization focus on what makes them unique. The platform is the commodity layer that makes innovation possible. --- --- url: https://docs.ai-hub.bbv.ch/docs/1_vision_and_positioning/2_why_swiss_ai_hub/4_comparison_matrix_full.md title: "Full Competitor Analysis" description: "" --- # Full Competitor Analysis This comprehensive analysis compares the Swiss AI Hub against its competitors in the market, which are categorized in to platforms, frameworks, and solutions. ## Libraries and Frameworks These are developer-focused tools and frameworks that provide building blocks for AI applications. They offer flexibility and control but require significant development effort to build complete, production-ready systems. | Framework | Data sovereignty | Predictable costs | Trust in outputs | Time to Value | Tool integration | Skill accessibility | Scalability | Vendor independence | Unified governance | Production reliability | Visual development | Zero maintenance | | :--------------- | :--------------: | :---------------: | :--------------: | :-----------: | :--------------: | :-----------------: | :---------: | :-----------------: | :----------------: | :--------------------: | :----------------: | :--------------: | | **Swiss AI Hub** | ✅ | ✅ | ✅ | ⚠️ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | | LangChain | ⚠️ | ❌ | ⚠️ | ❌ | ✅ | ⚠️ | ❌ | ✅ | ❌ | ❌ | ⚠️ | ❌ | | LangGraph | ⚠️ | ⚠️ | ✅ | ❌ | ⚠️ | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | | LlamaIndex | ⚠️ | ❌ | ⚠️ | ⚠️ | ✅ | ⚠️ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | | Semantic Kernel | ⚠️ | ⚠️ | ⚠️ | ❌ | ⚠️ | ✅ | ❌ | ⚠️ | ❌ | ❌ | ❌ | ❌ | | AutoGen | ⚠️ | ⚠️ | ⚠️ | ⚠️ | ⚠️ | ✅ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | | CrewAI | ✅ | ⚠️ | ⚠️ | ⚠️ | ⚠️ | ⚠️ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | | Haystack | ⚠️ | ⚠️ | ⚠️ | ⚠️ | ⚠️ | ✅ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | | DSPy | ⚠️ | ❌ | ⚠️ | ❌ | ❌ | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ### Library Details ::: details LangChain LangChain is a powerful library for building LLM applications, but it's not a platform. While it excels at providing abstractions and integrations for AI development, it leaves deployment, monitoring, authentication, cost control, and user interfaces entirely to you. You can achieve sovereignty by deploying your code anywhere, but you must build all the infrastructure yourself. LangSmith adds observability but requires separate setup and subscription. **Choose LangChain when** you have strong engineering teams who want maximum flexibility and are willing to build all infrastructure components from scratch. You need custom AI logic that doesn't fit standard patterns, or you're building a specialized AI product where the framework is just one component. **Choose Swiss AI Hub when** you want the power of frameworks like LangChain but with a complete platform that handles deployment, authentication, monitoring, user interfaces, and governance out-of-the-box. You get the same development flexibility but without all the infrastructure work. ::: ::: details LangGraph LangGraph excels at building stateful, observable agent workflows with sophisticated control flow. As a Python library, it provides excellent abstractions for agent development but requires you to build all infrastructure, deployment, monitoring, authentication, and user interfaces yourself. You get the agent logic, not the platform to run it on. **Choose LangGraph when** you need sophisticated multi-agent workflows with complex state management and have the resources to build a complete platform around it. Your use case requires custom agent architectures that don't fit standard patterns. **Choose Swiss AI Hub when** you want advanced agent capabilities but also need enterprise features like authentication, monitoring, cost control, and user interfaces immediately. You get sophisticated workflows plus a production-ready platform without the development overhead. ::: ::: details LlamaIndex LlamaIndex excels at RAG and data ingestion with sophisticated document processing and retrieval patterns. As a Python library, it provides powerful abstractions but no infrastructure - you still need to handle deployment, authentication, monitoring, and user interfaces yourself. While you can achieve sovereignty and observability by building around it, these aren't built-in capabilities. **Choose LlamaIndex when** you're building a specialized RAG system with unique data processing requirements and have the engineering capacity to build all supporting infrastructure. Your document processing needs are highly customized. **Choose Swiss AI Hub when** you want powerful RAG capabilities (built on LlamaIndex) but with enterprise-ready deployment, authentication, data governance, and user interfaces included. You get the same RAG power with complete platform features from day one. ::: ::: details Semantic Kernel Semantic Kernel is Microsoft's well-designed orchestration framework that provides excellent abstractions for AI development. As a library, it offers powerful planning and plugin capabilities and integrates well with Azure services. **Choose Semantic Kernel when** you're deeply invested in the Microsoft ecosystem, need sophisticated AI planning capabilities, and have the resources to build production infrastructure. You want Microsoft's AI abstractions with custom platform development. **Choose Swiss AI Hub when** you want enterprise AI capabilities without being locked into Microsoft's ecosystem or building infrastructure yourself. You get similar orchestration power with complete data sovereignty, transparent costs, and a ready-to-deploy platform. ::: ::: details AutoGen AutoGen excels at multi-agent conversation patterns and provides excellent abstractions for complex agent interactions. As a Python library, it leaves deployment, monitoring, authentication, and production operations entirely to the developer. While you can achieve data sovereignty and integration by building around it, these capabilities aren't inherent to the framework. **Choose AutoGen when** you need specialized multi-agent conversation patterns and have the engineering team to build a complete production environment. Your use case centers on agent-to-agent communication with custom interaction patterns. **Choose Swiss AI Hub when** you want multi-agent capabilities within a complete enterprise platform that handles deployment, governance, authentication, and monitoring automatically. You get agent collaboration plus the infrastructure to run it reliably in production. ::: ::: details CrewAI CrewAI is a multi-agent orchestration library that simplifies building collaborative AI teams and excels at defining agent roles and workflows. It is open source and runs wherever you deploy it. **Choose CrewAI when** you want to experiment with multi-agent scenarios and have strong development capabilities to build supporting infrastructure. Your focus is on agent collaboration patterns rather than production deployment. **Choose Swiss AI Hub when** you want multi-agent orchestration within a complete, production-ready platform that includes deployment, authentication, monitoring, and governance. You get agent collaboration plus enterprise features without building infrastructure from scratch. ::: ::: details Haystack Haystack is an excellent open-source framework for building RAG pipelines and search systems. It provides powerful abstractions for document processing and retrieval, which are the building blocks for AI applications. **Choose Haystack when** you need specialized search and RAG capabilities with deep customization, and you have the resources to build all supporting infrastructure. Your search requirements are highly specialized or research-focused. **Choose Swiss AI Hub when** you want powerful search and RAG capabilities (including Haystack-compatible patterns) within a complete platform that provides deployment, authentication, governance, and user interfaces immediately. You get search power plus enterprise readiness. ::: ::: details DSPy DSPy is a powerful framework for programmatically optimizing LLM applications through automatic prompt engineering. It excels at systematic evaluation and prompt optimization, which makes it great for research and prototypes. **Choose DSPy when** you're conducting AI research or need advanced prompt optimization techniques and have the resources to build production infrastructure. Your primary focus is on experimental AI techniques rather than deployed applications. **Choose Swiss AI Hub when** you want a production-ready platform for building AI systems with comprehensive monitoring and governance. You get enterprise infrastructure for deploying reliable AI applications, though optimization and development require coding expertise rather than automated tools. ::: ## Swiss/European AI Providers These are AI platforms and providers based in Switzerland or Europe, focusing on data sovereignty, regulatory compliance, and regional data protection requirements. They prioritize keeping data within European jurisdictions while offering various AI capabilities. | Framework | Data sovereignty | Predictable costs | Trust in outputs | Time to Value | Tool integration | Skill accessibility | Scalability | Vendor independence | Unified governance | Production reliability | Visual development | Zero maintenance | | :------------------ | :--------------: | :---------------: | :--------------: | :-----------: | :--------------: | :-----------------: | :---------: | :-----------------: | :----------------: | :--------------------: | :----------------: | :--------------: | | **Swiss AI Hub** | ✅ | ✅ | ✅ | ⚠️ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | | Alpine AI | ✅ | ❌ | ⚠️ | ❌ | ❌ | ❌ | ❌ | ❌ | ⚠️ | ❌ | ❌ | ❌ | | Abacus Deep | ✅ | ⚠️ | ✅ | ✅ | ✅ | ✅ | ⚠️ | ❌ | ✅ | ✅ | ⚠️ | ⚠️ | | BrandBot (Begasoft) | ✅ | ❌ | ⚠️ | ⚠️ | ⚠️ | ⚠️ | ⚠️ | ⚠️ | ✅ | ⚠️ | ❌ | ❌ | | Envoya AI | ✅ | ✅ | ⚠️ | ⚠️ | ⚠️ | ⚠️ | ⚠️ | ⚠️ | ⚠️ | ❌ | ⚠️ | ❌ | | Aleph Alpha | ✅ | ❌ | ✅ | ⚠️ | ⚠️ | ❌ | ⚠️ | ✅ | ⚠️ | ⚠️ | ❌ | ❌ | | owwn.ai | ✅ | ❌ | ⚠️ | ⚠️ | ⚠️ | ⚠️ | ❌ | ⚠️ | ⚠️ | ❌ | ❌ | ❌ | | PREM | ✅ | ❌ | ⚠️ | ❌ | ⚠️ | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | | Private AI Suite | ✅ | ❌ | ⚠️ | ⚠️ | ⚠️ | ⚠️ | ⚠️ | ⚠️ | ✅ | ⚠️ | ⚠️ | ❌ | ### Swiss/European Provider Details ::: details Alpine AI Alpine AI (SwissGPT) is a Swiss AI platform specifically targeting critical and regulated sectors with strong compliance focus. While they excel at Swiss data sovereignty and regulatory compliance. **Choose Alpine AI when** you're in a highly regulated sector that requires Swiss compliance. **Choose Swiss AI Hub when** you want Swiss sovereignty with complete transparency about platform capabilities, architecture, and costs. You get regulatory compliance with full visibility into how the platform works, enabling informed technical and business decisions. ::: ::: details Abacus Deep Abacus Deep is a comprehensive Swiss ERP platform with AI-powered modules for document management and autonomous accounting. Hosted exclusively in Swiss data centers with ISO 27001:2022 certification, it excels at Swiss compliance and security. However, as an integrated ERP solution, it creates significant vendor lock-in. **Choose Abacus Deep when** you're a Swiss SME that needs a complete ERP system and wants AI features integrated into your business processes. You're looking for an all-in-one business management solution rather than a dedicated AI platform. **Choose Swiss AI Hub when** you want to build custom AI applications that integrate with your existing ERP system (including Abacus) without being locked into a single vendor's business software. You get AI platform flexibility while maintaining Swiss compliance and data sovereignty. ::: ::: details BrandBot (Begasoft) BrandBot is a 100% Swiss-hosted AI platform with ISO compliance and OpenAI-compatible APIs, targeting Swiss enterprises and public administration. It provides strong Swiss regulatory compliance, audit logging, and role-based access controls. **Choose BrandBot when** you need a Swiss-hosted AI platform with OpenAI-compatible APIs and your requirements are relatively straightforward. You value simplicity and Swiss hosting over advanced platform features. **Choose Swiss AI Hub when** you want Swiss hosting plus a comprehensive, enterprise-grade platform with advanced features like workflow orchestration, data pipelines, observability, and extensible architecture. You get Swiss sovereignty with platform completeness and transparency. ::: ::: details Envoya AI Envoya AI is a Swiss AI platform offering comprehensive enterprise tools and Swiss data center hosting. It provides DSG/GDPR compliance, pre-configured AI agents, and flexible scaling. However, as a newer platform, it may lack production reliability proof and creates some platform dependency. While excellent for Swiss enterprises seeking cost-effective AI with sovereignty, it may need time to mature. **Choose Envoya AI when** you want cost-effective Swiss AI with simple flat-rate pricing and your needs fit their pre-configured agents. **Choose Swiss AI Hub when** you need Swiss sovereignty, transparent costs, and complete control over your AI platform. You get infrastructure with full customization capabilities and vendor independence through open-source architecture. ::: ::: details Aleph Alpha Aleph Alpha is a European AI company providing the PhariaAI sovereign AI suite for governments and enterprises. They emphasize "explainable AI" with their AtMan (Attention Manipulation) transparency technology and offer domain-specific solutions. While they excel at European sovereignty and compliance, they lack transparent pricing and require significant technical expertise. Their "no vendor lock-in" promise and German sovereign infrastructure make them attractive for regulated industries, but they're more of an AI model provider than a complete platform. **Choose Aleph Alpha when** you're a government or highly regulated enterprise that needs European AI models with explainability features, and you have the technical expertise to integrate their models into your own infrastructure. Compliance with German/EU regulations is your primary concern. **Choose Swiss AI Hub when** you want European sovereignty with Swiss data protection, but also need a complete, ready-to-deploy platform rather than just AI models. You get sovereignty plus enterprise features like authentication, monitoring, and governance without requiring deep AI expertise. ::: ::: details owwn.ai owwn.ai is a Swiss AI solution provider offering customizable AI systems with strong data sovereignty guarantees. They keep data in Swiss data centers, support multiple LLM providers, and integrate with existing enterprise systems. While they provide sovereignty without additional licensing costs, they're primarily a consulting-based service rather than a self-service platform. They excel at Swiss compliance but may lack the scalability and platform completeness needed for large enterprises. **Choose owwn.ai when** you need heavily customized AI solutions with Swiss hosting and prefer a consulting-led approach. Your requirements are highly specific and you value personalized service over self-service capabilities. **Choose Swiss AI Hub when** you want Swiss sovereignty with a self-service, scalable platform that your team can deploy and manage independently. You get the same Swiss compliance with greater control, transparency, and platform completeness for enterprise-wide adoption. ::: ::: details PREM PREM is an applied AI research platform focused on sovereign, private AI models with their TrustML™ encryption framework. They offer autonomous fine-tuning and cost-efficient inference, supporting both cloud and local deployment. While they excel at privacy-preserving AI and cost reduction, they require significant technical expertise and are more research-oriented than production-ready. Their specialized reasoning models and open-source components provide vendor independence but at the cost of complexity. **Choose PREM when** you're conducting AI research, need cutting-edge privacy-preserving techniques, and have deep technical expertise to handle complex, experimental systems. Your primary focus is on advanced AI research rather than production deployment. **Choose Swiss AI Hub when** you want privacy and sovereignty with a production-ready platform that doesn't require specialized AI research expertise. You get data protection and vendor independence with enterprise features, user interfaces, and operational simplicity. ::: ::: details Private AI Suite Private AI Suite is a comprehensive Swiss AI platform with modular privacy-focused components and "Swiss-grade privacy" guarantees. It provides Swiss regulatory compliance, modular architecture, and serves government and enterprise clients. **Choose Private AI Suite when** you're a large enterprise or government organization with substantial budget and need comprehensive privacy guarantees. You value their modular approach and can justify enterprise-level pricing and vendor lock-in. **Choose Swiss AI Hub when** you want Swiss privacy and sovereignty with predictable costs and complete vendor independence. You get comprehensive AI capabilities with transparent pricing, open-source architecture, and the flexibility to deploy at any scale without vendor lock-in. ::: ## Managed Cloud Platforms These are comprehensive, fully-managed cloud services from major technology vendors that handle infrastructure, scaling, and operations. They offer convenience and enterprise-grade reliability but typically require vendor lock-in and limit data sovereignty options. | Framework | Data sovereignty | Predictable costs | Trust in outputs | Time to Value | Tool integration | Skill accessibility | Scalability | Vendor independence | Unified governance | Production reliability | Visual development | Zero maintenance | | :------------------ | :--------------: | :---------------: | :--------------: | :-----------: | :--------------: | :-----------------: | :---------: | :-----------------: | :----------------: | :--------------------: | :----------------: | :--------------: | | **Swiss AI Hub** | ✅ | ✅ | ✅ | ⚠️ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | | Azure AI Foundry | ⚠️ | ⚠️ | ⚠️ | ⚠️ | ✅ | ⚠️ | ✅ | ❌ | ✅ | ✅ | ✅ | ✅ | | Microsoft Copilot | ❌ | ⚠️ | ❌ | ✅ | ✅ | ✅ | ✅ | ❌ | ⚠️ | ✅ | ❌ | ✅ | | Google Vertex AI | ⚠️ | ⚠️ | ⚠️ | ✅ | ✅ | ⚠️ | ✅ | ❌ | ✅ | ✅ | ⚠️ | ✅ | | AWS Bedrock | ⚠️ | ⚠️ | ❌ | ⚠️ | ✅ | ⚠️ | ✅ | ❌ | ✅ | ✅ | ❌ | ✅ | | IBM watsonx | ⚠️ | ❌ | ✅ | ⚠️ | ✅ | ⚠️ | ✅ | ❌ | ✅ | ✅ | ⚠️ | ❌ | | Oracle AI | ⚠️ | ⚠️ | ✅ | ✅ | ✅ | ⚠️ | ✅ | ❌ | ⚠️ | ✅ | ❌ | ✅ | | SAP Business AI | ⚠️ | ❌ | ✅ | ⚠️ | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ | ✅ | ❌ | | Salesforce Einstein | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ | ✅ | ✅ | ### Cloud Platform Details ::: details Azure AI Foundry Azure AI Foundry is Microsoft's comprehensive enterprise AI platform, offering managed infrastructure with excellent Microsoft ecosystem integration. While it provides visual development tools and handles all operational complexity, you're locked into Microsoft's ecosystem with their pricing model and limited visibility into AI decision-making. Data can be kept in Swiss Azure regions, but remains under Microsoft's control and governance. **Choose Azure AI Foundry when** you're heavily invested in the Microsoft ecosystem, need zero infrastructure management, and are comfortable with vendor lock-in and Microsoft's pricing model. Your team prefers visual development tools over code-based approaches. **Choose Swiss AI Hub when** you want enterprise AI capabilities without vendor lock-in, with complete control over your data and infrastructure. You get similar enterprise features with full sovereignty, transparent costs, and the ability to deploy anywhere, including on-premises. ::: ::: details Microsoft Copilot Microsoft Copilot embeds AI directly into Office applications, providing immediate productivity gains without any development. However, it's a closed product, not a platform. You can't build custom agents, control where data is processed, or see how decisions are made. Perfect for office productivity, unsuitable for building your own AI applications. **Choose Microsoft Copilot when** you want immediate productivity gains in Office applications without any development effort, and you're comfortable with Microsoft processing your data through their systems. **Choose Swiss AI Hub when** you want to build custom AI applications that integrate with your business processes and data, with full control over where processing happens. You get productivity gains plus the ability to create specialized AI solutions for your organization. ::: ::: details Google Vertex AI Google Vertex AI is a comprehensive, managed AI platform that handles infrastructure complexity for you. While it provides enterprise-grade reliability and seamless scaling within Google Cloud, you trade control for convenience. Data remains in Google's infrastructure (though region-selectable), costs can be unpredictable with complex pricing tiers, and you're locked into their ecosystem. **Choose Google Vertex AI when** you're fully committed to Google Cloud, have complex AI workloads that benefit from Google's ML expertise, and operational simplicity is more important than data sovereignty or cost predictability. **Choose Swiss AI Hub when** you want comprehensive AI capabilities with predictable costs, complete data sovereignty, and the flexibility to deploy on any infrastructure. You get enterprise-grade features without vendor lock-in or unpredictable pricing. ::: ::: details AWS Bedrock AWS Bedrock is a managed model serving platform that provides access to foundation models through APIs. While it handles model infrastructure excellently and integrates seamlessly with AWS services, it's not a complete AI application platform. You still need to build all application logic, user interfaces, and data pipelines yourself. Data remains in AWS infrastructure (though you can choose regions), and you're locked into AWS's ecosystem and pricing model. **Choose AWS Bedrock when** you're fully committed to AWS, need access to multiple foundation models, and have the resources to build complete applications around model APIs. You prioritize AWS integration over platform completeness. **Choose Swiss AI Hub when** you want a complete AI platform with foundation model access, application logic, user interfaces, and data pipelines included. You get comprehensive capabilities with data sovereignty and the flexibility to deploy anywhere. ::: ::: details IBM watsonx IBM watsonx is a comprehensive AI and data platform with a hybrid cloud approach and strong focus on AI ethics. It supports deployment across multiple clouds and emphasizes responsible AI development. While it provides enterprise-grade reliability and industry-specific solutions, it comes with typical IBM complexity and lacks transparent pricing. The platform offers good integration capabilities but creates potential vendor lock-in through its comprehensive ecosystem. **Choose IBM watsonx when** you're an enterprise customer comfortable with IBM's complexity and pricing model, need industry-specific AI solutions, and value IBM's decades of enterprise experience over simplicity. **Choose Swiss AI Hub when** you want comprehensive AI capabilities without vendor complexity, with transparent pricing and complete control over your platform. You get enterprise features with simplicity, sovereignty, and clear cost structure. ::: ::: details Oracle AI Oracle AI provides comprehensive AI services through Oracle Cloud Infrastructure, including generative AI, language, speech, and vision capabilities. It offers enterprise-grade security and customizable models, but is cloud-only with strong potential for vendor lock-in. While it provides reliable infrastructure and 20+ years of data science experience, it lacks data sovereignty options and requires commitment to Oracle's ecosystem. **Choose Oracle AI when** you're an existing Oracle customer with significant investment in Oracle infrastructure and want AI capabilities deeply integrated with your Oracle systems. You value Oracle's enterprise reliability over sovereignty. **Choose Swiss AI Hub when** you want enterprise AI capabilities without being locked into Oracle's ecosystem, with full data sovereignty and deployment flexibility. You get comprehensive AI features with the freedom to integrate with any system. ::: ::: details SAP Business AI SAP Business AI features the Joule AI assistant with over 240 AI scenarios and integration across 13 SAP solutions. It provides comprehensive enterprise AI capabilities with strong governance and multi-language support. However, it's deeply integrated with SAP's ecosystem, creating vendor lock-in, and lacks transparent pricing. While excellent for SAP customers, it requires significant investment in SAP infrastructure and may not be cost-effective for non-SAP environments. **Choose SAP Business AI when** you're heavily invested in SAP's ecosystem, need AI deeply integrated with SAP business processes, and are comfortable with SAP's pricing and infrastructure requirements. **Choose Swiss AI Hub when** you want to integrate AI with your business processes (including SAP systems) without being locked into any single vendor's ecosystem. You get business AI capabilities with flexibility, sovereignty, and transparent costs. ::: ::: details Salesforce Einstein Salesforce Einstein provides AI natively embedded in the Salesforce CRM platform with the Einstein Trust Layer for data protection. It offers comprehensive AI agents, workflow automation, and industry-specific solutions. While it excels at CRM-integrated AI and provides ethical AI features, it's limited to the Salesforce ecosystem and lacks data sovereignty options. Perfect for Salesforce customers but unsuitable for organizations seeking platform-independent AI solutions. **Choose Salesforce Einstein when** you're a Salesforce customer who wants AI deeply integrated into CRM workflows without additional platform complexity. Your AI needs are primarily CRM-focused. **Choose Swiss AI Hub when** you want AI capabilities that extend beyond CRM to all business processes, with data sovereignty and platform independence. You can integrate with Salesforce while building AI solutions for your entire organization. ::: ## Visual Development Platforms These are platforms that emphasize drag-and-drop, no-code/low-code approaches to building AI applications. They prioritize accessibility for non-technical users but may sacrifice flexibility and enterprise-grade features for ease of use. | Framework | Data sovereignty | Predictable costs | Trust in outputs | Time to Value | Tool integration | Skill accessibility | Scalability | Vendor independence | Unified governance | Production reliability | Visual development | Zero maintenance | | :--------------- | :--------------: | :---------------: | :--------------: | :-----------: | :--------------: | :-----------------: | :---------: | :-----------------: | :----------------: | :--------------------: | :----------------: | :--------------: | | **Swiss AI Hub** | ✅ | ✅ | ✅ | ⚠️ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | | Dify | ✅ | ✅ | ⚠️ | ✅ | ⚠️ | ✅ | ⚠️ | ✅ | ⚠️ | ⚠️ | ✅ | ✅ | | Flowise | ✅ | ⚠️ | ❌ | ✅ | ⚠️ | ✅ | ❌ | ✅ | ❌ | ❌ | ✅ | ❌ | | LangFlow | ⚠️ | ⚠️ | ⚠️ | ✅ | ⚠️ | ✅ | ❌ | ✅ | ❌ | ❌ | ✅ | ❌ | ### Visual Platform Details ::: details Dify Dify is an open-source platform for building AI applications using visual, drag-and-drop workflows. It allows non-technical team members to create AI applications by connecting nodes (like calling AI models, searching databases, or executing logic) on a visual canvas. It excels at rapid prototyping and making AI development accessible to product managers and domain experts. **Choose Dify when** you want rapid prototyping with visual workflows, need non-technical team members to build AI applications, and your use cases fit well within drag-and-drop paradigms. You prioritize development speed and accessibility over deep customization. **Choose Swiss AI Hub when** you need enterprise-grade governance and observability with code-based development for complex AI systems. You get a complete platform for building auditable, customizable AI applications with transparent monitoring, but development requires coding rather than visual tools. ::: ::: details Flowise Flowise excels at making AI accessible through visual, drag-and-drop flow building. It's self-hostable and open source, which provides sovereignty and independence. However, it's primarily a development tool rather than a production platform. It lacks enterprise features like proper authentication, scaling mechanisms, governance controls, and production-grade reliability. Best suited for rapid prototyping and development, not enterprise deployments. **Choose Flowise when** you're prototyping AI workflows, want a simple visual interface, and don't need enterprise-grade features. Your use case is experimental or educational rather than production-focused. **Choose Swiss AI Hub when** you want a production-ready platform with authentication, governance, scaling, and reliability, and you're comfortable with code-based development. You get enterprise readiness with complete platform control, though you'll need coding skills rather than visual tools. ::: ::: details LangFlow LangFlow is a visual interface for LangChain that accelerates prototype development through drag-and-drop workflow creation. While it excels at making AI accessible to non-developers, it's a development tool, not a production platform. It lacks built-in authentication, monitoring, cost tracking, and deployment infrastructure - you still need to figure out how to run, scale, and secure your flows in production. **Choose LangFlow when** you want to quickly prototype LangChain-based workflows with a visual interface and have the resources to build production infrastructure around your prototypes. Your focus is on rapid experimentation. **Choose Swiss AI Hub when** you want to build LangChain-compatible workflows within a complete production platform that handles authentication, monitoring, deployment, and scaling automatically. You get production readiness with code-based development rather than visual prototyping tools. ::: ## Automation Platforms with AI These are workflow automation platforms that have integrated AI capabilities as additional features. They excel at connecting systems and automating business processes, with AI serving as supporting functionality rather than their primary focus. | Framework | Data sovereignty | Predictable costs | Trust in outputs | Time to Value | Tool integration | Skill accessibility | Scalability | Vendor independence | Unified governance | Production reliability | Visual development | Zero maintenance | | :--------------- | :--------------: | :---------------: | :--------------: | :-----------: | :--------------: | :-----------------: | :---------: | :-----------------: | :----------------: | :--------------------: | :----------------: | :--------------: | | **Swiss AI Hub** | ✅ | ✅ | ✅ | ⚠️ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | | n8n | ✅ | ✅ | ❌ | ✅ | ✅ | ✅ | ⚠️ | ✅ | ❌ | ⚠️ | ✅ | ⚠️ | | Zapier AI | ❌ | ⚠️ | ❌ | ✅ | ✅ | ✅ | ⚠️ | ❌ | ⚠️ | ✅ | ✅ | ✅ | | Make | ⚠️ | ⚠️ | ❌ | ✅ | ✅ | ✅ | ⚠️ | ❌ | ⚠️ | ✅ | ✅ | ✅ | ### Automation Platform Details ::: details n8n n8n is an excellent workflow automation platform that adds AI capabilities through nodes. While it excels at visual workflow creation and has hundreds of integrations, it lacks the deep AI infrastructure of a dedicated platform. There's no built-in observability for AI decisions, no unified LLM gateway, and limited enterprise governance features. It's automation-first with AI added, not AI-native. **Choose n8n when** you need comprehensive workflow automation with some AI capabilities, have many system integrations to manage, and AI is a supporting feature rather than your core requirement. You value broad connectivity over AI depth. **Choose Swiss AI Hub when** AI is central to your workflows and you need deep AI observability, unified model management, and enterprise governance. You get workflow automation plus comprehensive AI infrastructure designed for AI-first applications. ::: ::: details Zapier AI Zapier AI extends a workflow automation platform with AI capabilities rather than providing AI infrastructure. While it excels at connecting tools and enabling non-technical users to build automations, it operates as a black-box cloud service without visibility into AI decision-making, data sovereignty options, or deployment flexibility. **Choose Zapier AI when** you need simple AI-enhanced automations between SaaS tools, want zero maintenance, and are comfortable with cloud-only deployment and black-box AI operations. Your needs are straightforward and compliance requirements are minimal. **Choose Swiss AI Hub when** you need transparent AI operations with full visibility into decision-making, data sovereignty, and deployment control. You get powerful automation capabilities with complete transparency, governance, and the ability to deploy anywhere. ::: ::: details Make (formerly Integromat) Make is a visual automation platform that added AI capabilities as modules within workflows. While excellent for no-code automation with thousands of integrations, it treats AI as black-box components without visibility into reasoning or decisions. Being a proprietary SaaS platform, it offers convenience but lacks data sovereignty, vendor independence, and the deep AI observability enterprises need for trust. **Choose Make when** you need extensive no-code integrations with some AI features, prioritize convenience over control, and are comfortable with proprietary SaaS limitations. Your AI needs are simple and transparency isn't critical. **Choose Swiss AI Hub when** you need comprehensive AI capabilities with full observability, data sovereignty, and vendor independence. You get powerful automation plus transparent AI operations that enterprises can trust and audit. ::: ## Business Process Platforms These are enterprise-grade platforms designed for managing, automating, and optimizing complex business processes. They focus on workflow orchestration, case management, and process mining, with AI capabilities integrated to enhance traditional business process management. | Framework | Data sovereignty | Predictable costs | Trust in outputs | Time to Value | Tool integration | Skill accessibility | Scalability | Vendor independence | Unified governance | Production reliability | Visual development | Zero maintenance | | :------------------ | :--------------: | :---------------: | :--------------: | :-----------: | :--------------: | :-----------------: | :---------: | :-----------------: | :----------------: | :--------------------: | :----------------: | :--------------: | | **Swiss AI Hub** | ✅ | ✅ | ✅ | ⚠️ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | | Camunda | ✅ | ⚠️ | ✅ | ⚠️ | ✅ | ⚠️ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | | Automation Anywhere | ✅ | ❌ | ✅ | ❌ | ✅ | ❌ | ✅ | ❌ | ✅ | ✅ | ✅ | ❌ | | Pega | ✅ | ⚠️ | ✅ | ⚠️ | ✅ | ⚠️ | ✅ | ❌ | ✅ | ✅ | ✅ | ❌ | | Appian | ✅ | ⚠️ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ | ✅ | ❌ | | Blue Prism | ✅ | ⚠️ | ✅ | ⚠️ | ✅ | ⚠️ | ✅ | ⚠️ | ✅ | ✅ | ✅ | ❌ | | Celonis | ⚠️ | ⚠️ | ✅ | ⚠️ | ✅ | ❌ | ✅ | ❌ | ⚠️ | ✅ | ⚠️ | ❌ | | Flowable | ✅ | ✅ | ✅ | ⚠️ | ✅ | ⚠️ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ### Business Process Platform Details ::: details Camunda Camunda is a process orchestration platform that has integrated AI agent capabilities while maintaining its BPMN-based approach. It provides excellent process transparency, open standards compliance, and enterprise-proven scalability. **Choose Camunda when** you have complex business processes that require BPMN modeling, need enterprise-grade process orchestration, and have teams with BPMN expertise. Your primary focus is on process management with AI as a supporting component. **Choose Swiss AI Hub when** you want AI-first process automation through code-based development, with built-in AI capabilities. You get powerful process orchestration designed specifically for AI workflows, though you'll need programming skills rather than visual modeling tools. ::: ::: details Automation Anywhere Automation Anywhere is an enterprise RPA platform leader with agentic process automation. It provides comprehensive governance, enterprise app compatibility, and Process Reasoning Engine transparency. However, it requires RPA expertise, creates platform lock-in, and needs significant IT management. While proven at enterprise scale, it may be overly complex for organizations seeking simpler AI solutions. **Choose Automation Anywhere when** you're a large enterprise with significant RPA investments, need to scale traditional automation massively, and have teams with deep RPA expertise. Your automation strategy is RPA-first with AI integration. **Choose Swiss AI Hub when** you want AI-first automation without RPA complexity, with transparent architecture and vendor independence. You get enterprise-scale capabilities designed for modern AI workflows without the overhead of traditional RPA platforms. ::: ::: details Pega Pega is a low-code platform specializing in "Predictable AI" with comprehensive agentic workflows and case management. It provides enterprise-grade governance, scalability, and strong process transparency. However, it creates significant platform lock-in, has complex enterprise pricing, and requires platform-specific expertise. While excellent for large enterprises with complex case management needs, it may be overkill for organizations seeking simpler AI automation solutions. **Choose Pega when** you're a large enterprise with complex case management requirements, substantial budget for platform licensing, and teams that can develop Pega-specific expertise. Your processes are highly complex and justify platform investment. **Choose Swiss AI Hub when** you want powerful AI and process capabilities without vendor lock-in, with transparent pricing and platform independence. You get enterprise-grade features with the flexibility to adapt and extend without proprietary constraints. ::: ::: details Appian Appian is a low-code automation platform with private AI integration and comprehensive data fabric capabilities. It provides enterprise governance, rapid development capabilities, and strong security features. While it offers good scalability and process transparency, it creates platform dependency and requires ongoing platform management. The platform excels at enterprise process automation but lacks vendor independence and may be costly for smaller organizations. **Choose Appian when** you need rapid low-code development for enterprise processes, have budget for platform licensing, and are comfortable with platform dependency. Your focus is on quick application development rather than AI innovation. **Choose Swiss AI Hub when** you want enterprise process automation with AI-first design, complete vendor independence, and transparent costs. You get rapid development capabilities plus the flexibility to innovate and extend without platform constraints. ::: ::: details Blue Prism Blue Prism is a mature enterprise RPA platform that has evolved to include AI integration and intelligent automation. It provides strong governance, enterprise-proven scalability, and comprehensive process automation capabilities. While it excels at structured process automation, it requires specialized RPA expertise and significant IT management overhead. The platform creates vendor lock-in through platform-specific automation and may be complex for organizations seeking simpler AI solutions. **Choose Blue Prism when** you have substantial RPA investments, need to automate highly structured processes, and have teams with specialized RPA expertise. Your automation needs are primarily traditional RPA with some AI enhancement. **Choose Swiss AI Hub when** you want intelligent automation without RPA complexity, with AI-native design through code-based development. You get powerful automation capabilities designed for AI workflows without requiring specialized RPA knowledge, though you'll need programming skills. ::: ::: details Celonis Celonis is a process intelligence platform specializing in AI-powered process mining and optimization. It provides data-driven insights with enterprise-proven scalability. However, it requires specialized process mining expertise, creates platform dependency, and focuses primarily on process analysis rather than automation. While excellent for process optimization, it's not a general-purpose AI platform and may require significant additional tooling for complete AI solutions. **Choose Celonis when** your primary need is process mining and optimization, you have specialized process intelligence expertise, and you're focused on understanding existing processes rather than building new AI applications. **Choose Swiss AI Hub when** you want comprehensive AI capabilities that include process optimization plus the ability to build and deploy AI applications. You get process intelligence as part of a complete AI platform rather than as a specialized standalone tool. ::: ::: details Flowable Flowable is an open-source business process management platform with AI agent integration and strong process governance. It provides open standards compliance, enterprise-proven adoption, and vendor independence. However, it requires BPM expertise and ongoing process management without built-in AI development tools. While excellent for process-centric AI integration, it may require significant additional tooling for complete AI solutions. **Choose Flowable when** you have BPM expertise, need open-source process management, and want to build custom AI integrations around established BPM patterns. Your primary focus is on traditional business process management. **Choose Swiss AI Hub when** you want process management designed for AI workflows from the ground up, with built-in AI development tools and enterprise interfaces. You get the benefits of open-source with comprehensive AI capabilities included, though development requires programming skills. ::: --- --- url: https://docs.ai-hub.bbv.ch/docs/1_vision_and_positioning/3_core_components.md title: "Core Components" description: "" --- # Core components The Swiss AI Hub is a complete platform that includes infrastructure for agents, pipelines, and process automation. The tier model described here is a recommended adoption path, not a set of separate software versions. Organizations often struggle when they attempt complex automation projects without first building foundational AI literacy. The tier model provides a structured approach that aligns with successful adoption patterns. **Tier 1** provides secure LLM access to everyone in the organization. Through direct experience, users learn the capabilities and limitations of the models, improve their prompt writing skills, and identify tasks in their daily work where AI could be beneficial. After a period of use, the friction of switching between work applications and a dedicated AI interface becomes a common complaint. This leads to **Tier 1+**, which integrates the same AI capabilities directly into tools like Microsoft Teams, Slack, and Outlook. This reduces workflow disruption and encourages wider adoption. Users may then find that the generic models lack specific company context. For example, a model asked to evaluate a job application would be unaware of an organization's internal hiring philosophy. This signals readiness for **Tier 2**. **Tier 2** introduces specialized agents that are given access to organizational knowledge. An HR agent can be configured to understand hiring criteria from employee handbooks. A finance agent can be taught the company's chart of accounts to query financial systems. These agents use an organization's specific data to provide relevant, contextual responses. As agent usage grows, repetitive patterns of orchestration emerge. An employee might manually route a document to one agent for analysis, then to a manager for review, and finally to another agent for a background check. This type of multi-step, manual routing indicates a need for **Tier 3**. **Tier 3** automates these patterns as formal processes. The system can be configured to ingest job applications, route them to an HR agent for screening, request human review only for borderline cases, trigger background checks via external systems, and notify the appropriate hiring managers. This allows human workers to focus on decision-making and exception handling. The platform includes all these capabilities from the start. The tier model addresses the question of when to adopt each capability based on organizational readiness. The progression allows people time to adjust workflows, develop skills, and build confidence in the system. ## Tier 1: Foundation for secure AI access ![Tier 1 Architecture](../../../media/architecture/high_level/tier_1.svg) The primary user entry point is the Open-WebUI web interface, which supports text, document, and voice inputs. All requests are processed through an API layer that handles authentication, verifies permissions for the requested model, and logs the interaction for auditing. The request is then routed to the appropriate LLM, such as an OpenAI or Google Gemini model, based on system configuration. Responses from the LLM are streamed back to the browser using Server-Sent Events, allowing the user to see the text as it is generated. This architecture maintains a responsive interface, even for queries that require longer processing times. A separate Admin UI, built with Nuxt, provides administrators with visibility into system usage, user management, and model configuration. It allows them to monitor model use, set cost limits, and review audit logs. All data, including user queries, LLM responses, conversation history, and system logs, is stored in the platform's internal database. This ensures data remains within the organization's controlled infrastructure unless external model access is explicitly configured. ## Tier 1+: Meeting users where they work ![Tier 1+ Architecture](../../../media/architecture/high_level/tier_1_plus.svg) The limitation of a standalone web interface is the workflow disruption caused by context switching. Tier 1+ resolves this by extending the platform's capabilities into the applications employees use daily. A user in Microsoft Teams can summarize a conversation thread directly within the application, and the AI's response appears in the same channel. ::: details Supported Channels The platform uses the Azure Bot Framework for integrations. Supported channels include: - Alexa - Email - Facebook - MS Teams - Outlook - Skype - Slack - Telegram - WeChat - Web - ... and more ::: Each integration adapts to the interaction patterns of the host tool. For example, an AI response in Slack might be posted in a thread, while in Outlook it might assist with drafting email replies. The central API layer ensures that all interactions, regardless of their origin, are subject to the same security, governance, and logging policies. ## Tier 2: From data to contextual intelligence ![Tier 2 Architecture](../../../media/architecture/high_level/tier_2.svg) Tier 2 introduces capabilities for ingesting and structuring organizational data to provide context to AI agents. The process starts with information sources like SharePoint document libraries. A pipeline orchestrates the data processing workflow. It monitors connected sources for new or updated files and triggers a processing sequence. Documents are parsed to extract not just text but also structural elements like headings and tables. The content is then divided into semantically meaningful chunks based on topic changes or section breaks. Each chunk is converted into a vector embedding using a model like Mistral. ::: tip The pipeline described here is a default configuration. The SDK allows for the creation of custom pipelines to connect to other sources (databases, APIs, FTP servers), customize document processing, and enrich data. ::: These embeddings are stored and indexed in a vector database, which serves as the platform's knowledge base. This enables semantic search, allowing agents to retrieve information based on meaning rather than exact keyword matches. The system maintains a clear lineage from each embedding back to its source document for traceability and verification. With a knowledge base in place, the platform can support multiple agents. Default agents might include a document analyst or a data interpreter. Custom agents can be built with the SDK to handle organization-specific tasks, understand internal terminology, or apply domain-specific reasoning. The platform is also open towards the outside world using Model Context Protocol (MCP). Through MCP, agents from other systems can securely access the platform, including its agents. ## Tier 3: Orchestrating business processes ![Tier 3 Architecture](../../../media/architecture/high_level/tier_3.svg) Tier 3 introduces a process orchestration engine to automate multi-step workflows that involve AI agents, humans, and external systems. A dedicated Process UI allows users to visualize and interact with these workflows. It displays active processes as flow diagrams, showing the current step, the responsible entity (human, agent or external system), and the subsequent steps. When a process is triggered, the orchestration engine evaluates the first step. If the step requires document analysis, the task is delegated to an AI agent. The agent's output is returned to the orchestrator, which then proceeds to the next step. If a step requires human judgment, a task is created in the relevant user's workspace in the Process UI. The interface provides the AI's analysis, the source document, and context for the decision. Once the human completes the task, the process continues. External systems can be integrated through connectors. Power Automate connections can trigger flows to update SharePoint lists or send emails. An n8n integration enables communication with UiPath for robotic process automation tasks involving legacy systems. ::: tip The process described here is an example. The SDK can be used to create custom processes that connect to various external and internal systems. ::: The orchestration engine maintains the state of each process, managing timeouts and handling errors. If an external system fails to respond, the process can be configured to route the task to a human for manual intervention. The API layer is extended in this tier to manage conversation contexts that span multiple participants and long durations. --- --- url: https://docs.ai-hub.bbv.ch/docs/1_vision_and_positioning/4_infrastructure_layers.md title: "The Infrastructure Layers" description: "" --- # The Infrastructure Layers ::: warning This documentation targets readers who want to fully understand the infrastructure components included in the platform and the role they play. This level of understanding is not required to run or deploy the platform, but proves helpful if you want to extend, scale, or modify it. The following sections translate the business-level view into technical implementation details. ::: ## Tier 1: Core Infrastructure Components ![Tier 1 Architecture](../../../media/architecture/low_level/tier_1.svg) The foundation begins with **OAuth2** handling authentication. When users access Open-WebUI or the Admin UI, OAuth2 validates their credentials against your organization's identity provider. This component was chosen over simpler authentication methods because it integrates with existing enterprise systems like Azure AD or Keycloak without requiring password synchronization or custom user management. ::: info The architectural diagrams simplify certain aspects for readability. Multiple auxiliary databases that some tools require are omitted, and some connections between components are simplified to avoid visual clutter. The diagrams capture the conceptual relationships between infrastructure components rather than every technical detail. ::: Behind the authentication layer, **Traefik** serves as the reverse proxy and API gateway. Every HTTP request passes through Traefik, which routes traffic based on path patterns, handles TLS termination, and provides load balancing when you scale components horizontally. Traefik's dynamic configuration capabilities allow the platform to register new services without restarts, crucial for adding custom agents or additional UI components. The **API** layer, built on FastAPI, provides more than simple request routing. It maintains WebSocket connections for real-time streaming, manages session state for conversations, enforces rate limits per user, and transforms requests between different component protocols. FastAPI was selected for its async capabilities, automatic OpenAPI documentation generation, and excellent performance under concurrent load. **LiteLLM** acts as the universal LLM gateway. Rather than implementing separate integrations for OpenAI, Anthropic, Google, and local models, LiteLLM provides a unified interface. It handles retry logic when models are overloaded, tracks token usage for cost allocation, manages different rate limits across providers, and converts between different model-specific formats. The gateway pattern allows switching models without code changes, crucial for avoiding vendor lock-in. For model-specific features, **vLLM** provides high-performance inference for locally hosted models like Mistral or DeepSeek. It uses PagedAttention for efficient memory management, allowing larger models to run on available hardware. **Presidio** adds PII detection and anonymization, scanning text for sensitive data patterns before sending to external models or storing in databases. Storage infrastructure uses **SeaweedFS** for S3-compatible object storage and **MongoDB** for document storage. SeaweedFS stores uploaded files, generated reports, and model artifacts with versioning and lifecycle policies. The SeaweedFS Filer uses **etcd** as its metadata backend, enabling high-availability deployments with multiple Filer instances. The platform exposes two interfaces: the **S3 API** at `s3.${DOMAIN}` with AWS signature authentication for programmatic access, and the **Filer web UI** at `datalake.${DOMAIN}` via OAuth2 proxy for developers to browse and debug files (requires the `AIHubSysAdmin` realm role). MongoDB persists conversation history, user preferences, application data, and event history. These choices provide cloud-native storage patterns that work identically whether deployed on-premise or in cloud environments. The platform includes integrated AI tools that enhance the chat experience. **Open Terminal** enables code execution when users ask a plain LLM model to analyze data or run calculations. The model writes Python code that executes in an isolated per-user sandbox with common document libraries pre-installed; generated files (reports, spreadsheets, charts) appear in the chat for download. **SearXNG** provides web search capabilities when users need current information, aggregating results from multiple search engines while preserving privacy. **Playwright** scrapes content from websites discovered through search, extracting full text when search snippets aren't sufficient. **MinerU** parses documents users upload to the chat, extracting text and structure from PDFs, Word documents, and presentations while preserving tables and formatting needed for accurate question-answering. Observability starts from day one with **OpenTelemetry** collecting metrics, traces, and logs from every component. The data flows to appropriate backends: metrics to Prometheus, traces to Jaeger, logs to Loki. This standardized observability stack provides unified dashboards, distributed tracing across services, and centralized log aggregation without vendor lock-in. ## Tier 1+: Integration Infrastructure ![Tier 1+ Architecture](../../../media/architecture/low_level/tier_1_plus.svg) The **Azure Bot Framework** becomes the bridge between the platform and external communication channels. When a message arrives from Teams, Slack, or Outlook, the Bot Framework normalizes it into a standard activity format, handles channel-specific authentication, manages conversation context, and routes it to the appropriate handler in the API. The Bot Framework was chosen over building separate integrations because it provides a single abstraction over multiple channels. Channel-specific features like Teams adaptive cards or Slack blocks are handled through the same interface. The framework manages conversation references, enabling the platform to send proactive messages back to users hours or days after the initial interaction. Connection between the Bot Framework and the platform API happens through webhook endpoints. The API implements the Bot Framework protocol, accepting activities and returning appropriate responses. This loose coupling means the platform can support other bot frameworks or direct integrations without architectural changes. ## Tier 2: Knowledge and Agent Infrastructure ![Tier 2 Architecture](../../../media/architecture/low_level/tier_2.svg) **NATS** transforms the platform from request-response to event-driven architecture. Agents subscribe to event streams, the API publishes user messages, and components communicate asynchronously without direct dependencies. NATS JetStream provides persistent message queues, ensuring no events are lost during agent restarts. The choice of NATS over alternatives like RabbitMQ or Kafka comes from its simplicity, embedded clustering, and excellent performance for the small-message patterns common in agent communication. The agent infrastructure supports multiple concurrent agents (Default 1-3, Custom 1-2 in the diagram). Each agent runs as an independent service, subscribing to relevant NATS topics and publishing responses. Agents can construct their state by replaying the event history, access the vector stores, and report telemetry through OpenTelemetry. This microservice pattern allows agents to be developed and scaled independently, and updated without affecting other agents or the platform. **Dagster** orchestrates the data pipeline infrastructure. It schedules document ingestion from sources like SharePoint, monitors pipeline health, manages dependencies between processing steps, and provides a web UI for pipeline monitoring. Dagster's asset-based approach treats each processed document as a managed asset with lineage, versioning, and quality checks. The choice of Dagster over alternatives like Airflow comes from its superior local development experience and native Python integration. Pipeline workers implement the actual document processing. They connect to the source, download documents to SeaweedFS for processing, parse content using MinerU, generate embeddings using configured models, and store results in the vector database. Workers scale horizontally, with Dagster distributing work across available instances. **Milvus** provides vector storage for semantic search. It indexes high-dimensional embeddings, performs approximate nearest neighbor searches, supports filtered searches combining vector and metadata queries, and scales to billions of vectors through sharding. Milvus was selected over alternatives like Pinecone or Weaviate for its open-source nature, on-premise deployment options, and excellent performance characteristics. **Redis** provides fast state storage that agents use to persist data independent of events. Agents store state in Redis when they need data to survive across conversation turns or be accessible to other agent instances. Redis was chosen for its extremely fast in-memory performance and independence from Python processes, allowing agents written in any language to access the same state store. **Langfuse** provides AI-specific observability beyond OpenTelemetry. It captures LLM interactions with full prompts and responses, traces RAG retrievals showing which documents were used, tracks per-trace and per-user costs, and provides dataset management with experiment evaluation. Langfuse integrates with the existing OpenTelemetry infrastructure, adding AI-specific context to standard traces. It supports Azure AD SSO for production access control. **MCP (Model Context Protocol)** opens the platform to external tools. VSCode extensions can connect to running agents for debugging, external AI systems can interact with our agents, and automation tools can submit work items to processes. MCP uses JSON-RPC over WebSockets, providing a language-agnostic integration point. This protocol was developed specifically for the Swiss AI Hub to enable tool integration without exposing internal APIs. Throughout all tiers, components communicate through well-defined interfaces. HTTP/REST for synchronous requests, NATS for asynchronous events, and WebSockets/SSE for real-time streaming. This polyglot approach uses the right protocol for each use case rather than forcing everything through a single pattern. The infrastructure choices reflect operational requirements discovered through production deployments. Every component can run in containers, scales horizontally with load balancing, provides health checks for orchestration platforms, exposes metrics for monitoring, and supports configuration through environment variables. These operational characteristics matter as much as functional capabilities when building a platform meant for enterprise deployment. ## Tier 3: Process Orchestration Infrastructure ![Tier 3 Architecture](../../../media/architecture/low_level/tier_3.svg) The **Process UI** introduces a new user interface paradigm designed for workflow interaction rather than conversation. Built with Vue.js and connected via WebSockets, it provides real-time workflow visualization, task queues for human participants, form builders for structured input, and audit trails for compliance. The separation from the chat UI reflects the different interaction patterns: chat is exploratory and conversational, while process interaction is structured and task-oriented. **Process orchestration** (Process 1 in the diagram) runs as a separate service managing workflow state. It interprets workflow definitions written in python, maintains process instance state in MongoDB, coordinates work distribution through NATS, handles timeouts and error conditions, and provides process analytics. The orchestrator was built custom rather than using existing BPMN engines because AI agent integration required capabilities beyond standard business process patterns. External integrations expand the platform's reach. **Power Automate (PA)** integration happens through the Microsoft Graph API, triggering flows and receiving callbacks. **n8n** provides a self-hosted alternative for workflow automation, connecting to hundreds of services through its node library. **UiPath** integration enables RPA bots to participate in processes, handling legacy system interactions that lack APIs. These integrations use webhook patterns where possible, falling back to polling when webhooks aren't available. --- --- url: https://docs.ai-hub.bbv.ch/docs/2_platform.md title: "Part II: The Platform Journey" description: "" --- # Part II: The Platform Journey @joelbarmettlerUZH --- --- url: https://docs.ai-hub.bbv.ch/docs/2_platform/1_quick_start.md title: "Quick Start: Your First 30 Minutes" description: "" --- @mhoegger --- --- url: https://docs.ai-hub.bbv.ch/docs/2_platform/1_quick_start/1_prerequisites.md title: "Prerequisites" description: "" --- # Prerequisites This guide covers prerequisites for deploying the Swiss AI Hub platform. ::: tip Choose Your Deployment Type The prerequisites differ based on your deployment type: - **Production Deployment**: Deploy to a server with a real domain name and automatic SSL certificates - **Local Deployment**: Run on your local machine with `127.0.0.1.nip.io` and self-signed certificates Follow only the sections relevant to your deployment type. ::: ## Common Requirements (All Deployments) These requirements apply to both production and local deployments. ### System requirements #### Minimum specifications - **CPU**: 8 cores - **RAM**: 32 GB - **Storage**: 200 GB free space - **Network**: Stable internet connection for Docker image downloads #### Recommended specifications - **CPU**: 12+ cores - **RAM**: 48+ GB - **Storage**: 300+ GB SSD for improved database performance - **Network**: High-bandwidth connection for faster initial setup ::: warning The platform runs multiple services simultaneously (databases, vector stores, LLM proxies, web interfaces, processing engines). Systems below minimum specifications will experience service failures or degraded performance. ::: ### Software requirements #### Operating system - Linux (Ubuntu 20.04+ recommended and tested) - Any Docker-compatible Linux distribution #### Required software - **Docker**: Latest stable version - **Docker Compose**: v2.0 or higher - **sudo/root access**: Required for installation and configuration #### Network configuration - **Open ports**: 80 (HTTP), 443 (HTTPS) - **Internet access**: Required for Docker image downloads and updates #### Verification Test your Docker installation: ```bash docker --version docker compose --version docker run hello-world ``` All commands must complete successfully. ### Authentication Provider Setup The platform requires an OAuth2/OpenID Connect identity provider for both production and local deployments. This guide documents Azure Entra ID setup. Other providers (Google, Okta, Auth0) can be configured using similar patterns. #### Azure Entra ID setup Complete the following steps in the Azure Portal to prepare authentication: **Step 1: Create app registration** 1. Navigate to **Azure Portal** → **Azure Active Directory** → **App registrations** 2. Click **"New registration"** 3. Configure the registration: - **Name**: `Swiss AI Hub` (or your organization's naming convention) - **Supported account types**: Select based on requirements - `Accounts in this organizational directory only` (single tenant - recommended for most deployments) - **Redirect URI**: Leave blank (will be configured in Step 5) 4. Click **"Register"** **Step 2: Configure token version** The platform requires access token version 2 for proper authentication. 1. Navigate to **"Manifest"** 2. Find the `requestedAccessTokenVersion` property 3. Change the value from `null` or `1` to `2`: ```json "requestedAccessTokenVersion": 2 ``` 4. Click **"Save"** at the top of the manifest editor ::: warning Access token version 2 is required for the platform to function correctly. Version 1 tokens are not supported and will cause authentication failures. ::: **Step 3: Configure API permissions** 1. Navigate to **"API permissions"** → **"Add a permission"** 2. Select **"Microsoft Graph"** → **"Delegated permissions"** 3. Add the following permissions: - `openid` - Required for OpenID Connect authentication - `profile` - Required for basic user profile information - `email` - Required for email address - `offline_access` - Required for refresh tokens - `User.Read` - Required for user profile reading 4. Click **"Grant admin consent for [Your Organization]"** 5. Verify all permissions display **"Granted for [Your Organization]"** status ::: tip The platform manages roles and user profiles locally — no Microsoft Graph API application permissions (such as `User.ReadBasic.All`, `Directory.Read.All`, or `ProfilePhoto.Read.All`) are required. Only standard OIDC delegated permissions are needed for authentication. ::: **Step 4: Create client secret** 1. Navigate to **"Certificates & secrets"** → **"Client secrets"** → **"New client secret"** 2. Configure the secret: - **Description**: Enter descriptive name (e.g., `Swiss AI Hub Secret`) - **Expires**: Select expiration period (12-24 months recommended) 3. Click **"Add"** 4. **Immediately copy the secret value** to secure storage 5. Record this value as `[CLIENT_SECRET]` for deployment configuration ::: danger The client secret value is displayed only once immediately after creation. If the value is lost, a new secret must be created. Store in a password manager or secure vault. ::: **Step 5: Configure app roles** The `aihub` realm consumes exactly **two** app roles from the IdP, mapped by name from the Azure `roles` claim to Keycloak realm roles of the same name: - `AIHubAccess` — **required to log in.** Users without it are denied at the Keycloak login flow. - `AIHubSysAdmin` — platform administrator; gates the oauth2-proxy admin tools (Dagster, SeaweedFS, Attu, Backup) and Langfuse, and marks platform superusers. ::: tip Platform roles are not Azure app roles `AIHubUser`, `AIHubAdmin`, `AIHubAgentUser`, … are **platform** roles — tenant-scoped and managed inside the platform, not synced from Entra ID. Do **not** create Azure app roles for them; they have no effect at the Keycloak realm level. The roles a new user receives are controlled by the `AIHUB_USER_SIGNUP_*` environment variables. ::: Create the two app roles: 1. Navigate to **"App roles"** → **"Create app role"** 2. Create each of the following roles: **Access role (required for login):** - **Display name**: `AIHubAccess` - **Allowed member types**: `Users/Groups` - **Value**: `AIHubAccess` - **Description**: `Required to log in to Swiss AI Hub` **System Administrator role:** - **Display name**: `AIHubSysAdmin` - **Allowed member types**: `Users/Groups` - **Value**: `AIHubSysAdmin` - **Description**: `System administrator access to infrastructure tools (Dagster, SeaweedFS, Attu)` ::: tip The `AIHubSysAdmin` role is required to access the Dagster pipeline orchestration dashboard, the SeaweedFS data lake console at `datalake.${DOMAIN}`, and the Attu Milvus admin UI. Users with only `AIHubAccess` can still use the main Swiss AI Hub interface and OpenWebUI. ::: **Step 6: Configure SPA redirect URIs** Single-Page Application (SPA) redirect URIs are required for the main web interface with multilingual support. 1. Navigate to **"Authentication"** → **"Add a platform"** → **"Single-page application"** 2. Add redirect URIs based on your deployment type: **For Production:** Replace `your-domain.com` with your actual domain ``` https://your-domain.com/de/auth/callback https://your-domain.com/en/auth/callback https://your-domain.com/it/auth/callback https://your-domain.com/fr/auth/callback ``` **For Local Deployment:** Use `127.0.0.1.nip.io` ``` https://127.0.0.1.nip.io/de/auth/callback https://127.0.0.1.nip.io/en/auth/callback https://127.0.0.1.nip.io/it/auth/callback https://127.0.0.1.nip.io/fr/auth/callback ``` ::: tip You can add both production and local URIs to the same app registration for testing purposes. ::: 3. Configure token settings: - Enable **Access tokens** (used for implicit flows) - Enable **ID tokens** (used for implicit flows) 4. Click **"Configure"** **Step 7: Configure web application redirect URIs** Web application redirect URIs are required for integrated services (OpenWebUI, Dagster, Data Lake). 1. Navigate to **"Authentication"** → **"Add a platform"** → **"Web"** 2. Add redirect URIs based on your deployment type: **For Production:** Replace `your-domain.com` with your actual domain ``` https://openwebui.your-domain.com/oauth/oidc/callback https://dagster.your-domain.com/oauth2/callback https://datalake.your-domain.com/oauth2/callback https://attu.your-domain.com/oauth2/callback ``` **For Local Deployment:** Use `127.0.0.1.nip.io` ``` https://openwebui.127.0.0.1.nip.io/oauth/oidc/callback https://dagster.127.0.0.1.nip.io/oauth2/callback https://datalake.127.0.0.1.nip.io/oauth2/callback https://attu.127.0.0.1.nip.io/oauth2/callback ``` 3. Configure token settings: - Enable **ID tokens** (used for hybrid flows) 4. Click **"Configure"** ::: warning Platform Type Distinction The platform type configuration (SPA vs Web) is critical for OAuth2 flow selection: - **SPA platform**: Language-specific callbacks (`/de/`, `/en/`, `/fr/`, `/it/`) use PKCE flow without client secret - **Web platform**: Service callbacks (`openwebui`, `dagster`, `datalake`, `attu`) use authorization code flow with client secret Misconfigured platform types will cause authentication error `AADSTS9002326: Cross-origin token redemption is permitted only for the 'Single-Page Application' client-type`. Ensure redirect URIs are registered under the correct platform type. ::: **Required Authentication Information** After completing Azure setup, you should have: - `[CLIENT_ID]` - Application (client) ID - `[CLIENT_SECRET]` - Client secret value - `[TENANT_ID]` - Directory (tenant) ID You'll need these values during platform deployment configuration. ______________________________________________________________________ ## Production Deployment Prerequisites ::: danger Only for Production Deployments **Skip this entire section if you're testing locally.** These steps are only required when deploying to a server with a real domain name. ::: ### DNS Configuration Configure DNS records for your domain. The platform requires **seven subdomains** pointing to your server's public IP: - `swiss-ai-hub.example.com` - main web interface - `openwebui.swiss-ai-hub.example.com` - chat UI - `dagster.swiss-ai-hub.example.com` - pipeline orchestration - `datalake.swiss-ai-hub.example.com` - data lake console - `litellm.swiss-ai-hub.example.com` - litellm proxy - `attu.swiss-ai-hub.example.com` - Milvus vector database UI - `traefik.swiss-ai-hub.example.com` - reverse proxy dashboard Replace `swiss-ai-hub.example.com` with your actual domain. Create A records or CNAMEs for all seven subdomains pointing to your server's IP address. ::: warning DNS Requirements for SSL - DNS records must be globally accessible for Let's Encrypt SSL certificate provisioning - The VM must be able to resolve its own domain names (internal DNS resolution) - Configure nameservers correctly to avoid OAuth authentication timeouts See [network requirements](../../3_deployment_guide/7_network_requirements/) for detailed DNS configuration and troubleshooting. ::: ______________________________________________________________________ ## Local Deployment Prerequisites ::: danger Only for Local Deployment **Skip this entire section if you're deploying to production.** These steps are only required when deploying the platform on your local machine. ::: ### Install mkcert For local deployment with HTTPS support, you need to install **mkcert** to generate self-signed SSL certificates that are trusted by your browser. ::: warning Only use self-signed SSL certificates for local development. Never use them in production or public environments. ::: **Linux (Ubuntu/Debian):** ```bash sudo apt install libnss3-tools wget -O mkcert https://dl.filippo.io/mkcert/latest?for=linux/amd64 chmod +x mkcert sudo mv mkcert /usr/local/bin/ ``` **Windows:** ```powershell # Using Chocolatey choco install mkcert # OR using Scoop scoop bucket add extras scoop install mkcert ``` **macOS:** ```bash brew install mkcert ``` **Verify Installation:** ```bash mkcert -version ``` ::: tip What is mkcert? **mkcert** is a tool that generates locally-trusted SSL certificates without complex configuration. It automatically installs a local Certificate Authority (CA) in your system trust store, so certificates it generates are trusted by your browser. ::: ______________________________________________________________________ ## Next steps Proceed to [one-command deployment](../2_one_command_deployment/) to deploy the platform using the recorded configuration values. --- --- url: https://docs.ai-hub.bbv.ch/docs/2_platform/1_quick_start/2_one_command_deployment.md title: "One-Command Deployment" description: "" --- # One-Command Deployment: Launch Your AI Platform The Swiss AI Hub platform deploys with a single Docker Compose command. This streamlined process gets your complete AI infrastructure running in minutes, not hours. ## Quick Install Run a single command to download, extract, and set up the platform: ```bash curl -fsSL https://raw.githubusercontent.com/bbvch-ai/aihub-core/main/install.sh | bash ``` The installer auto-detects GPU hardware, downloads the correct release bundle, and generates all secrets. Afterwards, edit `.env` and run `docker compose up -d`. | Flag | Default | Description | | ------------------- | ---------------- | ------------------------- | | `--version VERSION` | latest | Pin to a specific release | | `--gpu` | auto-detect | Force GPU bundle | | `--cpu` | auto-detect | Force CPU-only bundle | | `--dir PATH` | `./swiss-ai-hub` | Installation directory | | `--help` | | Show usage | **Examples:** ```bash # Install with GPU bundle to a custom directory curl -fsSL https://raw.githubusercontent.com/bbvch-ai/aihub-core/main/install.sh | bash -s -- --gpu --dir /opt/swiss-ai-hub # Pin a specific version curl -fsSL https://raw.githubusercontent.com/bbvch-ai/aihub-core/main/install.sh | bash -s -- --version v0.269.2 ``` **Upgrading:** Run the installer again with the same `--dir`. It detects the existing installation, backs up your `.env`, replaces bundle files, restores `.env`, and reports any new environment variables added in the release. ______________________________________________________________________ ## Deployment Overview ::: tip Two Deployment Options The Swiss AI Hub supports two deployment modes. Follow the same steps for both, using the appropriate commands for your deployment type: - **Production Deployment**: Deploy to a server with a real domain name (e.g., `swiss-ai-hub.yourcompany.com`) - Uses the CPU or GPU release bundle from GitHub Releases - Uses Let's Encrypt for automatic SSL certificates - Requires DNS configuration pointing to your server - **Local Deployment**: Run on your local machine for development/testing - Uses `infra/docker-compose.local.yml` from the repository - Uses self-signed SSL certificates (mkcert) - Uses `127.0.0.1.nip.io` domain (automatically resolves to localhost) Each step below shows commands for both deployment types. Simply follow the commands that match your chosen deployment mode. ::: ______________________________________________________________________ ## Step 1: Get Deployment Files **For Production:** Download the latest release bundle from [GitHub Releases](https://github.com/bbvch-ai/aihub-core/releases). Each release provides two self-contained bundles: - `swissaihub-.tar.gz` — CPU-only deployment - `swissaihub--gpu.tar.gz` — GPU-enabled deployment (includes vLLM, GPU-accelerated inference) ```bash # Set the version you want to deploy VERSION="v0.266.0" # Replace with the desired version # Download and extract the release bundle (CPU example) mkdir swiss-ai-hub && cd swiss-ai-hub curl -L "https://github.com/bbvch-ai/aihub-core/releases/download/${VERSION}/swissaihub-${VERSION}.tar.gz" \ | tar -xz # For GPU-enabled deployment, use this instead: # curl -L "https://github.com/bbvch-ai/aihub-core/releases/download/${VERSION}/swissaihub-${VERSION}-gpu.tar.gz" \ # | tar -xz ``` The release bundle contains everything needed to deploy: `docker-compose.yml`, all service configuration files, an `.env.template`, and the `setup-env.sh` script. **For Local Deployment:** ```bash # Clone the repository git clone https://github.com/bbvch-ai/aihub-core.git cd swiss-ai-hub # Generate SSL certificates with mkcert mkcert -install # Install local CA (only needed once) make local-cert ``` ::: tip What is nip.io? The `*.127.0.0.1.nip.io` domain automatically resolves to your localhost (127.0.0.1), providing wildcard DNS resolution without needing to modify your hosts file. This allows subdomain-based routing in local development. ::: ______________________________________________________________________ ## Step 2: Configure Environment Variables ### Generate Environment Configuration **For Production (release bundle):** The release bundle includes a `setup-env.sh` script that generates a `.env` file from the included `.env.template`. It automatically creates unique secrets for all database passwords, tokens, and signing keys: ```bash # Generate .env with auto-generated secrets ./setup-env.sh ``` ::: details What does setup-env.sh do? The script reads `.env.template` and replaces all `REPLACE_WITH_*` placeholders with cryptographically secure random values. Each placeholder gets its own unique secret. The script requires only `openssl` and `bash` — no Python or other dependencies needed. ```bash # Options: ./setup-env.sh # Default: .env.template → .env ./setup-env.sh -t custom.template -o out.env # Custom paths ./setup-env.sh --force # Overwrite existing .env ``` ::: **For Local Deployment:** ```bash cp .env.dev .env ``` ### Configure Remaining Values After generating your `.env` file, review it and fill in the values that require manual configuration: **Critical Values to Replace:** 1. **Domain** — Set `DOMAIN` to your production domain (e.g., `swiss-ai-hub.yourcompany.com`) or `127.0.0.1.nip.io` for local testing 2. **Authentication Values** (from Prerequisites): - `REPLACE_WITH_YOUR_CLIENT_ID` → Your Azure App Registration Client ID - `REPLACE_WITH_YOUR_CLIENT_SECRET` → Your Azure App Registration Client Secret - `REPLACE_WITH_YOUR_TENANT_ID` → Your Azure Tenant ID 3. **AI Model Access** (Swiss LLM Cloud — required for non-GPU deployments): - `REPLACE_WITH_SWISS_LLM_CLOUD_URL` → Your Swiss LLM Cloud text generation endpoint - `REPLACE_WITH_SWISS_LLM_CLOUD_KEY` → Your Swiss LLM Cloud API key - Configure the remaining endpoint pairs for embedding, reranking, whisper, and OCR 4. **Expert Escalation** (optional — for expert-in-the-loop features): - `REPLACE_WITH_TEAMS_CHANNEL_ID` → Your Teams channel ID (format: `19:xxx@thread.tacv2`) - `REPLACE_WITH_TEAMS_TENANT_ID` → Your Azure AD tenant ID - `REPLACE_WITH_TEAMS_BOT_ID` → Your Azure Bot Service application ID ::: info Simplified Configuration Internal service endpoints (like database URLs, message queues, etc.) are hardcoded in the Docker Compose files. You only need to configure credentials and external service connections. All database passwords, tokens, and signing keys are auto-generated by `setup-env.sh`. ::: ### Environment Validation Before deployment, verify your configuration: ```bash # Check for placeholder values that still need replacement grep -n "REPLACE_WITH" .env ``` This should return no results if all placeholders are replaced. ______________________________________________________________________ ## Step 3: Deploy the Platform ### Launch All Services Deploy the complete platform with one command: **For Production (release bundle):** ```bash docker compose up -d ``` This command will: - Download all necessary Docker images - Create required networks and volumes - Start all platform services in the correct order - Configure service discovery and communication ### Monitor Deployment Progress Watch the deployment progress: ```bash # See all services starting docker compose logs -f # Check service health status docker compose ps ``` **Expected Services:** The platform includes these core services: - **Web Interface** (swiss-ai-hub-web) - **API** (swiss-ai-hub-api) - **Authentication** (auth services) - **Databases** (FerretDB, PostgreSQL, Valkey) - **Vector Database** (Milvus) - **LLM Proxy** (LiteLLM) - **Document Processing** (MinerU) - **Observability** (Langfuse) - **Message Queue** (NATS) - **Storage** (SeaweedFS) ### Wait for Service Initialization Initial startup takes 3-5 minutes while services initialize. All services should show "healthy" status: ```bash # Wait for healthy status docker compose ps --format "table {{.Name}}\t{{.Status}}" ``` ______________________________________________________________________ ## Step 4: Verify Successful Deployment ### Access the Platform 1. **Make sure your User that you test with has the roles "AIHubAdmin" and "AIHubSysAdmin" assigned in the Azure Enterprise Application** 2. **Web Interface:** - Production: `https://your-domain.com` 3. **Expected Login Flow:** - Redirects to Azure authentication - After login, returns to Swiss AI Hub interface - Should see the main dashboard --- --- url: https://docs.ai-hub.bbv.ch/docs/2_platform/1_quick_start/3_first_login.md title: "First Login" description: "" --- @mhoegger --- --- url: https://docs.ai-hub.bbv.ch/docs/2_platform/1_quick_start/4_your_first_conversation.md title: "Your First Conversation" description: "" --- @SkypeForBusiness [WIP] # Your First Conversation There are two ways to begin your first conversation with an agent. The first way is through the chat interface located under OpenAI in the services selection menu in the top left, this is the main way of communicating with agents. The second way is through the agent itself, located under agents in the services selection menu. Both approaches work, but most users will use the chat interface. ## Chat Interface As a chat interface we use [Open WebUI](https://github.com/open-webui/open-webui), an open source and feature rich interface. After logging in with Azure, begin your first conversation by typing your message and hitting enter. Switching the model or agent is as easy as selecting them in the top left of your chat. You can even set one as your default. Here it is also possible to set up a temporary chat by selecting the toggle at the bottom of the models list. Here is a quick video showing you how to get to the chat: