
kanna12580/kk-knowledge-agent
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
上,上理、文本/txt 上上、流、流式,, MC MCP 서버,供 에이전트 炉端串用。
개요
上, 上理、文本/txt 上上、分分、流、流式,、☸으로 MCP 서버 过 에이전트 炉端串用。 프론트엔드 지식 베이스 및 문서 워크플로우: - 질의 지식 베이스 CRUD. - 직접 텍스트 문서 업로드. - .txt 파일 업로드. - Chunking 및 현지 다국어 embedding. - ChromaDB 세마틱 리트리발. - SSE 스트리밍 검색. - MCP 도구 : search knowledge base. - pytest를 가진 기본적인 시험. AGENTS.md 를 따르십시오. docs/LOCAL INSTALLATION.md 를 참조하십시오. - One-command 로컬 배포를 위한 Docker Compose 추가. - PostgreSQL을 사용하여 SQLite를 대체합니다. - 더 큰 벡터 작업대를 위한 Qdrant 또는 Milvus를 가진 ChromaDB를 대체하십시오. - PDF/DOCX 업로드 추가. - BM25 + 벡터 하이브리드 검색 및 rerank 지원 추가. - 인용 강조 표시와 답 생성 추가.
개요(AI 번역)
上, 上理、文本/txt 上上、分分、流、流式,、☸으로 MCP 서버 过 에이전트 炉端串用。
건축
저장소 레이아웃
데모 스크린샷
프론트엔드 지식 베이스 및 문서 워크플로우:
Codex MCP 지식 기본 도구 호출:
로컬 설정
# 백엔드
API 문서:
프론트엔드
데모 앱:
MCP 서버
MCP 구성 예제:
MVP 범위
- 질의 지식 베이스 CRUD.
- 직접 텍스트 문서 업로드.
.txt파일 업로드.- Chunking 및 현지 다국어 embedding.
- ChromaDB 세마틱 리트리발.
- SSE 스트리밍 검색.
- MCP 도구 :
search_knowledge_base. - pytest를 가진 기본적인 시험.
개발 순서
AGENTS.md 를 따르십시오.
지역 설치
docs/LOCAL INSTALLATION.md 를 참조하십시오.
미래 개선
- One-command 로컬 배포를 위한 Docker Compose 추가.
- PostgreSQL을 사용하여 SQLite를 대체합니다.
- 더 큰 벡터 작업대를 위한 Qdrant 또는 Milvus를 가진 ChromaDB를 대체하십시오.
- PDF/DOCX 업로드 추가.
- BM25 + 벡터 하이브리드 검색 및 rerank 지원 추가.
- 인용 강조 표시와 답 생성 추가.
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
kk-knowledge-agent
轻量级知识库 Agent 项目,支持知识库管理、文本/txt 上传、分块向量化、语义检索、流式返回,并通过 MCP Server 暴露给 Agent 调用。
Architecture
Frontend
|
| HTTP
v
Backend API
|
+--> SQLite
+--> ChromaDB
+--> sentence-transformers
Agent / Claude Code / OpenClaw / Hermas Agent
|
| MCP Tool Call
v
MCP Server
|
| HTTP
v
Backend API
Repository Layout
backend/ FastAPI API service
frontend/ React + Vite demo app
mcp-server/ MCP adapter server
examples/ Demo txt documents
AGENTS.md Phased development guide for Codex/Agent
Demo Screenshots
Frontend knowledge base and document workflow:
Codex MCP knowledge base tool call:
Local Setup
Backend
cd backend
python -m venv .venv
.venv\Scripts\activate
pip install -r requirements.txt
copy .env.example .env
uvicorn app.main:app --reload --port 8000
API docs:
http://localhost:8000/docs
Frontend
cd frontend
npm install
npm run dev
Demo app:
http://localhost:5173
MCP Server
cd mcp-server
python -m venv .venv
.venv\Scripts\activate
pip install -r requirements.txt
copy .env.example .env
python server.py
MCP config example:
{
"mcpServers": {
"kk-knowledge": {
"command": "python",
"args": ["mcp-server/server.py"]
}
}
}
MVP Scope
- Knowledge base CRUD with pagination.
- Direct text document upload.
.txtfile upload.- Chunking and local multilingual embedding.
- ChromaDB semantic retrieval.
- SSE streaming search.
- MCP tool:
search_knowledge_base. - Basic tests with pytest.
Development Order
Follow AGENTS.md for the phased implementation plan.
Local Installation
See docs/LOCAL_INSTALLATION.md for detailed Backend, Frontend, and MCP Server setup.
Future Improvements
- Add Docker Compose for one-command local deployment.
- Replace SQLite with PostgreSQL for production usage.
- Replace ChromaDB with Qdrant or Milvus for larger vector workloads.
- Add PDF/DOCX upload.
- Add BM25 + vector hybrid retrieval and rerank support.
- Add answer generation with citation highlights.
설치
This server does not publish a one-line install command.
Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →설정
{
"mcpServers": {
"kk-knowledge": {
"command": "python",
"args": ["mcp-server/server.py"]
}
}
}