You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Identity: Use local accounts or internal IdP (LDAP/AD) if AAD is unreachable.
Dependencies: Mirror PyPI packages or use pre-built Docker images.
3. Verify Installation | 验证安装
3.1 Automated Verification (Recommended)
Run the integration test script to verify core functions (API, Skills, Orchestrator) in an isolated environment:
./test_integration.sh
3.2 Manual Check
After deployment, you can run a quick self-check using pytest (requires python environment):
# Install test deps
pip install -r requirements-dev.txt
# Run integration tests against your local instance (mocking LLM)
pytest tests/test_health.py tests/test_assessments_api.py
If you see PASSED, the core API and orchestration logic are working correctly.
4. Configuration Reference | 配置项清单
See .env.example for the template.
4.1 App & API
Variable
Description
Example
ENV
Environment
production
LOG_LEVEL
Logging level
INFO
API_PREFIX
API path prefix
/api/v1
SECRET_KEY
Session/Sign key
Random String
4.2 Authentication (AAD)
Variable
Description
AAD_TENANT_ID
Azure Tenant ID
AAD_CLIENT_ID
App Client ID
AAD_CLIENT_SECRET
Client Secret
AAD_REDIRECT_URI
OIDC Callback
4.3 LLM Provider
Variable
Description
Example
LLM_PROVIDER
Backend choice
openai / ollama
OPENAI_API_KEY
Key for OpenAI
sk-...
OLLAMA_BASE_URL
Local LLM URL
http://localhost:11434
OLLAMA_MODEL
Model name
llama3
4.4 Vector Store
Variable
Description
Example
CHROMA_PERSIST_DIR
Data path
./data/chroma
EMBEDDING_MODEL
HuggingFace model
all-MiniLM-L6-v2
4.5 Limits
Variable
Description
Default
UPLOAD_MAX_FILE_SIZE_MB
Max file size
50
UPLOAD_MAX_FILES
Max files per req
10
4.6 Parser Engine
Variable
Description
Default
PARSER_ENGINE
auto, docling, or legacy
auto
4.7 Graph RAG (LightRAG)
Variable
Description
Default
ENABLE_GRAPH_RAG
Enable graph-based retrieval
true
LIGHTRAG_WORKING_DIR
LightRAG data directory
./data/lightrag
GRAPH_RAG_QUERY_MODE
Query mode: naive/local/global/hybrid
hybrid
4.8 SSDLC Pipeline
Variable
Description
Default
SSDLC_DEFAULT_STAGE
Default SSDLC stage when not specified: auto or a specific stage name
auto
Valid stage values: requirements, design, development, testing, deployment, operations.
When set to auto, the SSDLC Router attempts to detect the stage from document content.
5. Operations and Monitoring | 运维与监控
5.1 Health Checks
Liveness: GET /health (Returns 200 OK with version and environment info)
LLM Config: GET /config/llm (Shows current LLM provider and model)
5.2 Logging
Format: JSON or Text (Standard Output).
Privacy: Do not log sensitive document content or full user tokens.
Fields: Request ID, User ID, Task ID, Duration, Error Stack.
5.3 Auditing
Scope: Who initiated assessment? Who accessed reports?
Retention: Comply with organization policy (e.g. 90 days).
5.4 Backup
Vector DB: Backup the CHROMA_PERSIST_DIR regularly.
Config: Backup .env (securely).
6. Troubleshooting | 常见问题排错
Issue
Possible Cause
Suggestion
Login Loop / 401
AAD Config mismatch
Check Client ID, Secret, and Redirect URI in Azure Portal.
Task Pending Forever
Worker stuck / LLM timeout
Check logs for LLM connection errors or parser hangs.
Empty KB Results
Embeddings mismatch
Ensure ingestion and query use the same embedding model.
ServiceNow Error
Network / Auth
Verify instance URL reachability and credentials.
7. Changelog | 修订记录
Version
Date
Changes
0.4
2026-03
Added SSDLC Pipeline config section.
0.3
2026-03
Removed Streamlit references. Added Parser Engine and Graph RAG config sections. Fixed section numbering. Updated health check endpoints.
0.2
2025-03
Added Docker Compose and standalone deployment options.