-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathconfig.example.yaml
More file actions
66 lines (55 loc) · 2.79 KB
/
config.example.yaml
File metadata and controls
66 lines (55 loc) · 2.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# wachat Configuration (GoFrame Style)
# Compatible with go-rag project configuration
# ============================================================================
# wachat Specific Configuration
# ============================================================================
# AI Service Configuration (for wailsChat conversation)
ai:
base_url: "https://api.openai.com/v1"
api_key: "your-api-key-here"
model: "gpt-3.5-turbo"
# Examples for different providers:
# SiliconFlow (DeepSeek)
# base_url: "https://api.siliconflow.cn/v1"
# api_key: "sk-your-key-here"
# model: "deepseek-ai/DeepSeek-V3"
# Azure OpenAI
# base_url: "https://your-resource.openai.azure.com/openai/deployments/your-deployment/chat/completions?api-version=2024-02-15-preview"
# api_key: "your-azure-key"
# model: "gpt-35-turbo"
# Binary Manager Configuration
binaries:
enabled: false
use_embedded: false # true: use embedded, false: use local bin/ directory
bin_path: "./bin"
startup_order: []
# - qdrant
# - wailsproject
# ============================================================================
# RAG (Retrieval Augmented Generation) Configuration
# This section follows go-rag project's configuration format
# ============================================================================
rag:
enabled: true # Enable RAG functionality for AI conversations
autoStart: false # Auto-start RAG service on app startup (default: false)
topK: 5 # Number of documents to retrieve
defaultKnowledgeBase: "" # Default knowledge base name (for automatic RAG enhancement)
downloadURL: "https://github.com/wangle201210/go-rag/releases/latest/download" # Go-rag download URL
installPath: "" # Install path (empty for default: ~/.wachat/go-rag)
# Qdrant Configuration (Vector Database for go-rag)
# Qdrant is a vector database required by go-rag when using qdrant as vector storage
qdrant:
enabled: true # Enable Qdrant (set to true if using Qdrant as vector storage)
autoStart: false # Auto-start Qdrant service on app startup (default: false)
port: 6333 # HTTP port for Qdrant
grpcPort: 6334 # gRPC port for Qdrant
downloadURL: "https://github.com/qdrant/qdrant/releases/latest/download" # Qdrant download URL
installPath: "" # Install path (empty for default: ~/.wachat/qdrant)
# Go-rag HTTP Server Configuration (Optional)
server:
address: ":8000" # Server port (leave empty to disable server)
logger:
level: "all" # Log level: all, debug, info, warn, error
stdout: true # Output to console
path: "./logs/" # Log file path (optional)
file: "{Y-m-d}.log" # Log file format (optional)