Getting Started with WeKnora

This guide will help you get WeKnora up and running quickly. Follow these steps to set up your first knowledge base and start building intelligent Q&A systems.

Prerequisites

Before installing WeKnora, ensure you have the following:

Quick Start (5 Minutes)

The fastest way to get WeKnora running:

Step 1: Clone the Repository

git clone https://github.com/Tencent/WeKnora cd WeKnora

Step 2: Start All Services

./scripts/start_all.sh

This command will:

Step 3: Access the Web UI

Open your browser and navigate to:

http://localhost

Step 4: Create Your Account

On your first visit, you'll be redirected to the registration page. Create an account to get started.

Creating Your First Knowledge Base

After logging in, follow these steps to create your first knowledge base:

Step 1: Create Knowledge Base

Step 2: Configure Models

On the knowledge base configuration page, you'll need to set up:

The Web UI provides an easy interface for model configuration, eliminating the need for manual configuration file editing.

Step 3: Upload Documents

You can upload documents using multiple methods:

Step 4: Wait for Processing

The system will automatically:

You can track the progress in real-time through the UI.

Step 5: Start Asking Questions

Once processing is complete, you can start asking questions in the conversation interface!

Initialization Configuration

WeKnora now includes a Web UI interface for model configuration, making setup easier than ever.

First-Time Setup Process

If this is your first time using WeKnora:

  1. Start the services: Run ./scripts/start_all.sh
  2. Access Web UI: Navigate to http://localhost
  3. Register: Create your account on the registration page
  4. Create Knowledge Base: Create a new knowledge base
  5. Configure Models: Set up your models on the configuration page

Clearing Existing Data (Optional)

If you need to start fresh with existing data:

# Stop services ./scripts/start_all.sh --stop # Clear database (only if no important data exists) make clean-db # Restart services ./scripts/start_all.sh

Development Mode

For developers who need to modify code frequently, use fast development mode to avoid rebuilding Docker images.

Method 1: Using Make Commands (Recommended)

# Start infrastructure make dev-start # Start backend (in new terminal) make dev-app # Start frontend (in new terminal) make dev-frontend

Method 2: One-Click Start

./scripts/quick-dev.sh

Method 3: Using Scripts

# Start infrastructure ./scripts/dev.sh start # Start backend (in new terminal) ./scripts/dev.sh app # Start frontend (in new terminal) ./scripts/dev.sh frontend

Development Advantages

MCP Server Setup

WeKnora can be accessed via MCP (Model Context Protocol) server for integration with MCP-compatible clients.

Method 1: Direct Python Execution

pip install weknora-mcp-server python -m weknora-mcp-server

Method 2: Configuration File

Configure your MCP client to connect to the server:

{ "mcpServers": { "weknora": { "args": [ "path/to/WeKnora/mcp-server/run_server.py" ], "command": "python", "env": { "WEKNORA_API_KEY": "Your API key (starts with sk)", "WEKNORA_BASE_URL": "http(s)://your-weknora-address/api/v1" } } } }

Getting Your API Key

  1. Open your WeKnora instance
  2. Open browser developer tools
  3. Check request headers for x-api-key
  4. Copy the key (it starts with "sk")

Service Access

Once started, services will be available at:

Stopping Services

To stop all WeKnora services:

./scripts/start_all.sh --stop # Or make stop-all

WeChat Dialog Open Platform

WeKnora serves as the core technology framework for the WeChat Dialog Open Platform, providing a more convenient usage approach:

Next Steps

Now that you have WeKnora running, explore these resources:

View Documentation See Examples

Troubleshooting

If you encounter issues during setup:

For additional help, visit our Contact page or check the GitHub Issues.