Introduction
This guide provides comprehensive instructions for integrating and utilizing the DeepWiki application within ELITEA. DeepWiki is an advanced AI-powered documentation generator that analyzes code repositories (GitHub, GitLab, Bitbucket, ADO Repos) to create comprehensive wikis through intelligent code analysis and natural language processing. By following this guide, you will enable your ELITEA Agents to automatically generate documentation, answer questions about codebases, and perform deep research on repository functionality. Brief Overview of DeepWiki DeepWiki is a specialized application that transforms code repositories into searchable, structured documentation. It combines multiple AI technologies to provide:- Automated Wiki Generation: Creates comprehensive documentation from repository analysis, including architecture overviews, API documentation, and code explanations.
- Intelligent Code Analysis: Uses Enhanced Unified Graph Builder (EUGB) to understand code structure, dependencies, and relationships across the repository.
- Interactive Q&A: Enables natural language questions about the codebase with context-aware answers based on the generated knowledge base.
- Deep Research Capabilities: Performs multi-step analysis with planning and investigation to answer complex questions about repository functionality.
- Diagram Generation: Automatically creates Mermaid diagrams to visualize architecture and technical concepts.
Prerequisites
- Code Repository Toolkit: A configured toolkit for accessing your code repository (GitHub, GitLab, Bitbucket, or ADO Repos)
- LLM Configuration: Access to a configured LLM model for text generation
- Embedding Model: Configured embedding model for vector search
System Integration with ELITEA
DeepWiki integrates with ELITEA as an Application accessible through the Apps menu. It provides specialized documentation generation and analysis tools with a built-in user interface for managing wiki content and repository analysis workflows.Create DeepWiki Application
- Navigate to Apps Menu: Open the sidebar and select Apps.
-
Create New App: Click the
+ Createbutton. - Select DeepWiki: Choose Deepwiki as the application type.
-
Configure Application Settings:
Parameter Required Description Example Toolkit Name Yes Descriptive name for the application ”Project Documentation Generator” Description No Optional description of the application’s purpose ”Generates wiki documentation for main project repo” LLM Model Yes LLM model for text generation and wiki content creation ”gpt-4”, “claude-sonnet-3-5” Embedding Model No Embedding model for vector search and retrieval (default: text-embedding-3-small) “text-embedding-3-small” Code Toolkit Yes Code toolkit (GitHub, GitLab, Bitbucket, or ADO Repos) for accessing repository data Select from configured toolkits Max Tokens Yes Maximum tokens for LLM responses (default: 64000) 64000, 128000 Tools No Select which tools to enable (default: all tools) generate_wiki, ask, deep_research -
Save Application: Click Create to save the configuration.

- Visual wiki generation management
- Progress monitoring for documentation generation
- Access to generated wiki content
- Repository analysis status
Available Tools
DeepWiki provides three primary tools for documentation generation and repository analysis:| Tool Name | Description | Primary Use Case |
|---|---|---|
| generate_wiki | Analyzes repository structure, code, and documentation to create comprehensive wiki with code indexing, knowledge graph building, and structured documentation pages | Generate comprehensive documentation from repository analysis including architecture overviews, API docs, and code explanations |
| ask | Queries the repository’s vector store and knowledge graph to answer questions about code functionality, architecture, and implementation details | Ask targeted questions about the codebase with context-aware answers based on the generated knowledge base |
| deep_research | Conducts comprehensive multi-step analysis using planning, delegation, and investigation to provide detailed answers with supporting evidence from the codebase | Perform in-depth research on complex repository topics requiring advanced reasoning and thorough evidence gathering |
How DeepWiki Analyzes Repositories
DeepWiki automatically analyzes your code repositories to create comprehensive documentation. The analysis process runs in the background when you use thegenerate_wiki tool and includes:
- Code Structure Analysis: Examines repository organization, file relationships, and dependencies
- Content Extraction: Processes source code, documentation files, and comments
- Knowledge Graph Creation: Builds connections between different parts of your codebase
- Vector Store Generation: Creates searchable indexes for intelligent question answering
Using the DeepWiki Interface
Once you create a DeepWiki application, you can access its built-in user interface to generate documentation and interact with your repository’s wiki. Accessing the Interface- Open DeepWiki App: Navigate to the Apps menu in the sidebar
- Select Your App: Click on your DeepWiki application from the list
- View Interface: The DeepWiki interface opens, displaying:
- Left Sidebar: Navigation panel for browsing generated wiki pages organized by sections
- Main Content Area: Displays wiki content with formatted markdown, code blocks, and diagrams
- Chat Panel: (Right side) For asking questions about your codebase using natural language

Wiki Generation Workflow
Once you’re in the DeepWiki application interface, follow these steps to generate documentation: Step 1: Initiate Wiki Generation- In the left sidebar, locate the “Generate Wiki” button
- Check the slot availability indicator:
- Green indicator = slots available, generation can start
- If all slots are busy, wait for running generations to complete
- Click “Generate Wiki” button
- A confirmation dialog appears: “Generate Wiki Documentation?”
- Click “Update” to proceed with generation, or “Cancel” to abort

- Progress Bar: Appears below the Generate Wiki button
- Status Messages: Real-time updates show current operations (e.g., “Analyzing repository structure…”, “Building knowledge graph…”)
-
Elapsed Time: Counter displays how long generation has been running


Access Generated Documentation
Once generation completes:- The left sidebar populates with navigation sections
- Click on any section to expand and view wiki pages
- Select a page to view its content in the main area
- Generated content includes:
- Formatted markdown documentation
- Code examples with syntax highlighting
- Mermaid diagrams for visualizations
- Cross-references between related topics

Edit Wiki Pages
DeepWiki allows you to edit generated documentation directly in the interface to refine or customize content: To Edit a Page:- Navigate to the wiki page you want to modify
- Click the Edit button (pencil icon) in the top-right corner of the page
- The page opens in an editor with markdown formatting
- Make your changes to the content
- Click Save to apply changes or Cancel to discard

- Markdown Editing: Full markdown support for formatting text, adding links, creating lists, and more
- Code Blocks: Modify or add code examples with syntax highlighting
- Diagrams: Edit Mermaid diagram definitions to update visualizations
- Content Organization: Restructure sections, add new information, or clarify existing content
Update Generated Wiki
When your repository code changes, you can regenerate the wiki to update all sections with the latest information from your codebase.- Make changes to your repository code, comments, or documentation files
- Commit and push your changes to the repository
- Return to the DeepWiki application interface
- Click the “Generate Wiki” button in the left sidebar
- Confirm the regeneration in the dialog
- DeepWiki will re-analyze the repository and update all sections

Wiki Artifacts Storage
When you generate a wiki, DeepWiki automatically creates a bucket namedwiki_artifacts and stores all generated documentation files there. You can access and manage these files through the Artifacts Menu in ELITEA.
Generated Documentation Files:
- Wiki Pages: Markdown files containing documentation about your repository (architecture, APIs, code explanations)
- Diagrams: Visual representations of your code structure and relationships
- Organization Structure: Files are grouped by sections and topics for easy navigation

Managing Settings
The Settings panel allows you to view and modify your DeepWiki application configuration. Opening Settings:- In the left sidebar, click the “Settings” button (below Generate Wiki button)
- The Settings panel opens from the right side
| Parameter | Type | Editable | Description |
|---|---|---|---|
| Project ID | Information | No | Your ELITEA project identifier |
| Toolkit ID | Information | No | Unique identifier for this DeepWiki application |
| Toolkit Name | Information | No | Descriptive name of your application |
| Repository | Information | No | Connected code repository (from code toolkit) |
| Bucket | Configuration | No | Storage location for generated wiki artifacts Validation: Must use lowercase letters, numbers, and hyphens only |
| LLM Model | Configuration | No | Language model used for wiki generation |
| Max Tokens | Configuration | Yes | Token limit for LLM responses |
| Code Toolkit ID | Configuration | Yes | Identifier of the code toolkit used to access the repository |
| Embedding Model | Configuration | No | Model used for vector search |
- Delete Wiki: Removes all generated wiki artifacts from the bucket
- Use this to clean up old documentation before regenerating
- This action cannot be undone
- Modify any editable configuration field
- Click “Save Settings” button at the bottom
- Settings are immediately applied to the toolkit

Use the Chat Interface
- Click the Chat icon on the right edge of the interface
- The chat panel slides open from the right side

| Tool | Best For | Response Time | Depth |
|---|---|---|---|
| ask | Quick, focused questions about specific code, APIs, or functionality | Fast (seconds) | Concise answers with code references |
| deep_research | Complex analysis requiring investigation across multiple files and concepts | Slower (minutes) | Comprehensive answers with evidence and multi-step reasoning |
- Select your preferred tool by clicking on the Ask or Research tab
- Type your question in natural language
- Press Enter or click Send
- Review the AI-generated answer with references to the wiki content
Ask tool (Quick Queries):- “What is the main architecture of this application?”
- “What APIs are available in the UserService class?”
- “How do I configure database connections?”
- “What is the purpose of secrets in the ELITEA configuration?”
Research tool (Complex Analysis):- “How does the authentication system work across all modules?”
- “Explain the complete data flow from API request to database”
- “What are the security implications of the current session management?”
- “Analyze the relationships between all microservices”
Best Practices
Wiki Generation
Wiki Generation
- Clear Query Descriptions: Provide specific, detailed queries for
generate_wikito get focused documentation - Incremental Documentation: Generate wikis for specific areas rather than entire large repositories at once
- Asynchronous for Large Repos: Use async invocation for repositories with thousands of files
- Monitor Slots: Check slot availability before starting generation to avoid queuing
Question Asking
Question Asking
- Specific Questions: Ask focused questions rather than broad “explain everything” queries
- Use Context Overrides: Pin to specific wiki versions when consistency is important
- Progressive Refinement: Start with
askfor quick answers, usedeep_researchfor complex topics - Reference Generated Wiki: Review generated wiki pages before asking questions to understand available context
Resource Management
Resource Management
- Cleanup Old Wikis: Regularly remove outdated wiki artifacts from the bucket
- Slot Monitoring: Be aware of
DEEPWIKI_MAX_PARALLEL_WORKERSlimits in your environment - Cache Reuse: Use
repo_identifier_overrideto leverage existing caches across multiple queries - Bucket Organization: Use separate buckets for different projects or teams
Troubleshooting
Wiki Generation Fails
Wiki Generation Fails
- Repository too large or complex
- Insufficient LLM token limits
- Code toolkit authentication issues
- Missing bucket permissions
- Verify code toolkit is properly configured and authenticated
- Increase
max_tokensparameter if needed - Check bucket exists and has write permissions
- Review application configuration for correct code toolkit ID
- Check server logs for detailed error messages
Service Busy - Slots Full
Service Busy - Slots Full
- Maximum parallel workers reached (controlled by
DEEPWIKI_MAX_PARALLEL_WORKERS) - Other wiki generations in progress
- Wait for current generations to complete
- Check slot status in the UI
- Contact administrator to increase worker limits if needed
- Consider using asynchronous invocation and polling
Ask/Deep Research Returns Empty or Incorrect Answers
Ask/Deep Research Returns Empty or Incorrect Answers
- Wiki not generated yet
- Question outside scope of indexed repository
- Embedding model mismatch between generation and query
- Ensure
generate_wikicompleted successfully - Verify embedding model configuration matches generation
- Check wiki artifacts were created in the bucket
- Rephrase question to match repository context
- Review generated wiki pages to understand available information
Slow Performance
Slow Performance
- Using GitHub API-based indexing instead of filesystem
- Large repository with many files
- Network latency issues
- Verify filesystem-based indexing is enabled (default)
- Use asynchronous invocation for large repositories
- Consider generating wikis for specific subdirectories
- Check network connectivity if using API-based indexing
Code Toolkit Configuration Error
Code Toolkit Configuration Error
- Code toolkit not properly configured or expanded
- Missing repository authentication credentials
- Invalid toolkit ID reference
- Toolkit deleted or no longer accessible
- Verify code toolkit exists and is properly configured in Toolkits menu
- Check authentication credentials (access tokens, SSH keys) are valid
- Ensure toolkit has permissions to access the target repository
- Re-select the code toolkit in DeepWiki application settings
- Test code toolkit independently before using with DeepWiki
LLM or Embedding Model Configuration Issues
LLM or Embedding Model Configuration Issues
- LLM model not accessible or quota exceeded
- Embedding model mismatch between generation and querying
- Model configuration changed after wiki generation
- Insufficient tokens allocated for large repositories
- Verify LLM model is properly configured and accessible
- Confirm API keys and credentials are valid
- Check model quota limits haven’t been exceeded
- Ensure embedding model remains consistent across operations
- Increase max_tokens setting for large codebases
- Review model compatibility in ELITEA integrations
Memory or Resource Exhaustion
Memory or Resource Exhaustion
- Repository too large for available memory
- Too many concurrent wiki generations
- Insufficient system resources allocated
- Memory leak in long-running operations
- Generate wikis for specific subdirectories instead of entire repository
- Reduce max_files parameter to limit scope
- Wait for other generations to complete before starting new ones
- Contact administrator to increase memory limits
- Monitor system resources during generation
- Consider using K8s deployment with resource limits
Repository Access or Clone Failures
Repository Access or Clone Failures
- Network connectivity issues
- Repository authentication failures
- Repository deleted or moved
- Branch doesn’t exist or is protected
- Firewall blocking Git operations
- Verify repository URL and branch name are correct
- Check network connectivity to repository host
- Ensure access tokens have proper permissions (read access minimum)
- Confirm repository still exists and is accessible
- Test repository access using code toolkit independently
- Check for firewall or proxy issues blocking Git operations
- Verify branch exists in the repository
Bucket or Storage Permission Issues
Bucket or Storage Permission Issues
- Bucket doesn’t exist or was deleted
- Insufficient write permissions to bucket
- Bucket name contains invalid characters
- Storage quota exceeded
- Network issues accessing storage
- Verify bucket exists in Artifacts menu
- Check bucket name uses only lowercase letters, numbers, and hyphens
- Ensure service account has write permissions to bucket
- Confirm storage quota hasn’t been exceeded
- Test bucket access by uploading a test file
- Contact administrator to verify storage configuration
- Review bucket permissions in storage settings
FAQ
How long does wiki generation take?
How long does wiki generation take?
- Small repositories (< 100 files): 2-5 minutes
- Medium repositories (100-1000 files): 5-15 minutes
- Large repositories (> 1000 files): 15-30+ minutes
Can I generate wikis for private repositories?
Can I generate wikis for private repositories?
How do I update the wiki when the repository changes?
How do I update the wiki when the repository changes?
generate_wiki again with the same or different query. DeepWiki will:- Detect repository changes
- Update the vector store and knowledge graph
- Regenerate wiki content
- Preserve the analysis cache where appropriate
What happens if I run out of worker slots?
What happens if I run out of worker slots?
[SERVICE_BUSY] message indicating slots are full. You can:- Wait for current generations to complete
- Contact your administrator to increase
DEEPWIKI_MAX_PARALLEL_WORKERS
Can multiple agents use the same DeepWiki application?
Can multiple agents use the same DeepWiki application?
ask and deep_research operations. However, generate_wiki operations are subject to slot limits and may need to queue.What LLM models work best with DeepWiki?
What LLM models work best with DeepWiki?
- Use models with large context windows (32k+ tokens)
- GPT-4 or Claude Sonnet recommended for complex documentation
- Ensure
max_tokensis set appropriately for your model
- Artifacts Menu - Managing generated wiki artifacts
- Agents Menu - Using DeepWiki tools in agents
- GitHub Toolkit - Setting up GitHub code access
- GitLab Toolkit - Setting up GitLab code access
- Indexing Overview - Understanding indexing in ELITEA