# Repository Briefing: shuyu-labs/AntSK
> Source: https://repoforai.com/repo/shuyu-labs/AntSK (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/shuyu-labs/AntSK
- **Official Docs / Website**: https://antsk.cn
- **Category**: Chat UI & AI Apps (聊天界面与 AI 应用)
- **Primary Language**: CSS
- **License**: See repository
- **Engineering Health**: B (57/100 · Maintenance 20/35 · Adoption 20/25 · Releases 11/20 · License 6/20)
- **Latest Release**: 0.6.6 (2025-10-05) — https://github.com/shuyu-labs/AntSK/releases
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: Docker, Self-Hosted, Local AI, API
- **Momentum**: 1,329 ★ total (+0 24h / +0 7d) · 216 forks
- **Topics**: `agnet`, `ai`, `dotnet`, `rag`, `sk`
- **When to Use**: Best for: C# teams building internal document Q&A and AI assistants that can run on local models and integrate with existing business APIs. Skip if: You want a managed service, need advanced visual workflows in the community edition, or depend on high-fidelity extraction from complex documents and have not validated your corpus.

## Overview
```text
### Architecture & Core Mechanics
AntSK is a .NET 9 application with a Blazor Server UI and ASP.NET Core Web API in src/AntSK. AntSK.Domain contains domain models, services, and repository interfaces; AntSK.LLM houses model integrations. OCR, LlamaFactory integration, and background jobs are split into separate projects. SqlSugar handles relational persistence, while Kernel Memory uses a separately configurable vector backend.

Document import runs in the background: files are parsed, chunked, embedded, and indexed. When a chat uses a knowledge base, the application retrieves and ranks relevant chunks before adding them to the model prompt. Semantic Kernel handles model orchestration and function calls; HTTP API plugins and .NET DLLs connect the assistant to business services. Treat DLLs as trusted application code rather than assuming plugin isolation.

### Key Capabilities & Differentiators
AntSK ingests Word, PDF, Excel, TXT, Markdown, JSON, and PowerPoint files. It supports OCR for image text extraction and local BGE embedding and reranking for retrieval. Knowledge-base answers can cite source passages, which makes them easier to check but does not guarantee factual accuracy. The same application provides configurable assistants, Web API access, and Stable Diffusion image generation.

Local inference options include Ollama, llama.cpp with GGUF, and LlamaFactory. Cloud integrations include OpenAI, Azure OpenAI, and iFlytek Spark. Vector storage can use disk, nonpersistent memory, PostgreSQL with pgvector, Qdrant, Redis, or Azure AI Search. LlamaFactory is an integration option for local inference; do not plan around a built-in fine-tuning workflow, which is listed as planned.

### Trade-offs & Limitations
AntSK is most compelling when a team already works in C# and wants to run document Q&A and inference on its own network. Dify Cloud or Coze are alternatives when a managed service is acceptable and operating databases, inference runtimes, and upgrades is not a priority. AntSK reserves visual workflow authoring and GraphRAG for Pro, so do not evaluate the community edition as a substitute for either feature. For scanned documents or complex tables, compare ingestion and answer quality with RAGFlow on your own files; OCR support alone does not establish layout fidelity.

Local execution keeps model calls under your control but shifts capacity planning to your team. Import competes with inference for resources; start with one local import worker and test before raising concurrency. Built-in RBAC and multitenancy are useful starting points, not substitutes for testing tenant-level access through the UI and API. Commercial use of the community edition is described as conditional on retaining the logo and copyright notices; verify the actual LICENSE before distribution or procurement.

### Hardware & Deployment Guide
Use docker-compose.simple.yml for a SQLite and disk-backed evaluation. For the PostgreSQL variant, keep appsettings.json beside docker-compose.yml and match the database connection settings to the Compose credentials. Build from source with the .NET 9 SDK; Python 3.8+ is optional for LlamaFactory. For an air gap, stage images, model weights, and other runtime assets in advance, then verify that chat, embeddings, reranking, and enabled plugins use only reachable internal endpoints.

Treat the full Compose configuration as a development baseline: it publishes PostgreSQL on 5432 and Aspire Dashboard ports 18888 and 18889, allows anonymous dashboard access, and includes example credentials. Before production, restrict those ports, secure dashboard access, inject strong login credentials, terminate HTTPS at a reverse proxy, tighten CORS, and back up persistent data. The visible release history moves from 0.6.4 in June 2025 to 0.6.6 on October 5, 2025; the supplied release entries contain comparison links, not enough detail to attribute specific changes.
```

## Key Capabilities
```text
- Application stack: .NET 9, Blazor Server with Ant Design Blazor, and an ASP.NET Core Web API
- Retrieval pipeline: Background document import, vector retrieval, and local BGE embeddings and reranking
- Model runtimes: Ollama, llama.cpp with GGUF, and LlamaFactory for local inference; OpenAI and Azure OpenAI for cloud inference
- Storage choices: SQLite with disk-backed vectors for evaluation; PostgreSQL with pgvector or alternatives such as Qdrant for separate vector storage
- Integration: HTTP API plugins, native .NET DLLs, and Semantic Kernel function calls
- Operations: Simple and PostgreSQL-backed Compose variants, with an Aspire dashboard service in the full stack
```

## Quick Start / Clone
```bash
git clone https://github.com/shuyu-labs/AntSK.git
cd AntSK
```
