How raghul-18/adaptify works
Adaptify presents the Open WebUI experience: users authenticate, choose a model, send a prompt, and receive a response, optionally enriched with documents or web results. The backend also exposes model-provider, audio, image, and administration capabilities. The graph preserves these documented product branches and core backend modules; several frontend-to-backend links are dashed because their implementation was not excerpted, and unsampled modules are represented only where the source index establishes their presence.
Main entry points: webui/main.py Web UI API · config.py Configuration · db.py Database layer · rag/main.py RAG service
Components 32
Web experience
- App shell
src/routes/(app)/+layout.svelte - Chat interface
src/lib/components/chat/Chat.svelte - API client
src/lib/apis/index.ts - Model playground
src/lib/components/playground/Playground.svelte - Workspace tools
src/lib/components/workspace/Models.svelte
Conversation services
- Web UI API
backend/open_webui/apps/webui/main.py - Ollama API
backend/open_webui/apps/ollama/main.py - OpenAI API
backend/open_webui/apps/openai/main.py - Function runtime
backend/open_webui/apps/webui/utils.py
Knowledge and media
- RAG service
backend/open_webui/apps/rag/main.py - Web search
backend/open_webui/apps/rag/search/main.py - Image generation
backend/open_webui/apps/images/main.py - Audio service
backend/open_webui/apps/audio/main.py
Identity and administration
- Authentication
backend/open_webui/apps/webui/routers/auths.py - User records
backend/open_webui/apps/webui/models/users.py - Auth records
backend/open_webui/apps/webui/models/auths.py - Function records
backend/open_webui/apps/webui/models/functions.py - Model records
backend/open_webui/apps/webui/models/models.py - Tool records
backend/open_webui/apps/webui/models/tools.py
Runtime foundation
- Database layer
backend/open_webui/apps/webui/internal/db.py - Configuration
backend/open_webui/config.py - Environment settings
backend/open_webui/env.py - Payload utilities
backend/open_webui/utils/payload.py - Task utilities
backend/open_webui/utils/task.py - Message utilities
backend/open_webui/utils/misc.py - Tool execution
backend/open_webui/utils/tools.py - Webhooks
backend/open_webui/utils/webhook.py
Other components
- User
- Ollama server
- OpenAI-compatible service
- Image provider
- Audio provider
Connections 41
- User → App shell: uses
README.md - App shell → Chat interface: opens chat
- Chat interface → API client: submits prompt
- API client → Web UI API: sends requests
- Web UI API → Ollama API: routes model work
- Web UI API → OpenAI API: routes model work
- Ollama API → Ollama server: forwards requests
- OpenAI API → OpenAI-compatible service: forwards requests
- User → Model playground: tests models
README.md - User → Workspace tools: manages models
README.md - Web UI API → Function runtime: executes functions
backend/open_webui/apps/webui/main.py - Web UI API → Function records: loads functions
backend/open_webui/apps/webui/main.py - Web UI API → Model records: looks up models
backend/open_webui/apps/webui/main.py - User → RAG service: adds knowledge
README.md - RAG service → Web search: uses search
backend/open_webui/apps/rag/main.py - RAG service → Web UI API: enriches chat
- User → Image generation: requests images
README.md - Image generation → Image provider: generates with
backend/open_webui/apps/images/main.py - User → Audio service: uses voice
README.md - Audio service → Audio provider: requests audio
- User → Authentication: authenticates
- Authentication → Auth records: checks credentials
backend/open_webui/apps/webui/routers/auths.py - Authentication → User records: checks users
backend/open_webui/apps/webui/routers/auths.py - Auth records → Database layer: reads and writes
backend/open_webui/apps/webui/models/auths.py - User records → Database layer: reads and writes
backend/open_webui/apps/webui/models/users.py - Function records → Database layer: reads and writes
backend/open_webui/apps/webui/models/functions.py - Model records → Database layer: reads and writes
backend/open_webui/apps/webui/models/models.py - Tool records → Database layer: reads and writes
- Web UI API → Tool execution: uses tool support
backend/open_webui/apps/webui/main.py - Tool execution → Tool records: loads tools
backend/open_webui/utils/tools.py - Web UI API → Payload utilities: builds payload
backend/open_webui/apps/webui/main.py - Payload utilities → Task utilities: uses task helpers
backend/open_webui/utils/payload.py - Payload utilities → Message utilities: uses message helpers
backend/open_webui/utils/payload.py - Web UI API → Configuration: uses settings
backend/open_webui/apps/webui/main.py - Ollama API → Configuration: reads settings
backend/open_webui/apps/ollama/main.py - OpenAI API → Configuration: reads settings
backend/open_webui/apps/openai/main.py - RAG service → Configuration: reads settings
backend/open_webui/apps/rag/main.py - Image generation → Configuration: reads settings
backend/open_webui/apps/images/main.py - Audio service → Configuration: reads settings
backend/open_webui/apps/audio/main.py - Configuration → Environment settings: uses environment
backend/open_webui/config.py - Authentication → Webhooks: sends notifications
backend/open_webui/apps/webui/routers/auths.py