OHREN_Lab

Open source오픈소스AgentDeskAgentDesk

AgentDesk, an MIT-licensed reference implementation for running a knowledge base agent that answers with citations from your documents on your own serversAgentDesk, 올린 문서로 출처를 달아 답하는 지식 베이스 에이전트를 내 서버에 띄우는 MIT 라이선스 참고 구현

AgentDesk is an MIT-licensed reference implementation of a Mastra-based RAG knowledge base and agent runtime for your own servers: it chunks and embeds uploaded documents and attaches source citations to every answer. Docker Compose runs a Go backend, chat and admin apps, the agent runtime, PostgreSQL with pgvector, Redis and S3 storage, and it only works once chat, embedding and vision models are set to OpenAI-compatible endpoints. API keys are stored encrypted with AES-256-GCM, and because the model calls registered HTTP tools on its own, the README says only trusted internal endpoints should be connected.AgentDesk는 Mastra 위에 만든 RAG 지식 베이스와 에이전트 런타임을 내 서버에 띄우는 MIT 라이선스 참고 구현으로, 올린 문서를 쪼개고 임베딩해 두었다가 답마다 원문 출처를 답니다. Docker Compose로 Go 백엔드, 대화 · 관리 화면, 에이전트 런타임, PostgreSQL(pgvector) · Redis · S3를 띄우고, 대화 · 임베딩 · 비전 모델 셋을 OpenAI 호환 주소로 채워야 쓸 수 있습니다. API 키는 AES-256-GCM으로 암호화해 두며, 관리 화면에 등록한 HTTP 도구는 모델이 스스로 부르므로 README는 믿을 수 있는 내부 주소만 연결하라고 적었습니다.

Checked확인일

AgentDesk is a reference implementation of a Mastra-based RAG knowledge base and agent runtime for your own servers, under the MIT license. Uploaded documents are chunked and embedded, questions get streamed answers that carry the original source citations from the knowledge base, and audit logs and quotas are built in. HTTP tools registered in the admin console are called by the model whenever it decides and run on the server, so the README says to connect only trusted internal endpoints and never to expose publicly reachable, write-capable or credential-bearing addresses to end users.AgentDesk는 Mastra 위에 만든 RAG 지식 베이스와 에이전트 런타임을 내 서버에 띄우는 참고 구현이고 MIT 라이선스입니다. 문서를 올리면 쪼개고 임베딩해 두었다가 질문에 스트리밍으로 답하고, 답마다 지식 베이스의 원문 출처를 달며 감사 기록과 할당량까지 갖췄습니다. 관리 화면에 등록한 HTTP 도구는 모델이 스스로 언제 부를지 정하고 서버 쪽에서 실행되므로, README는 믿을 수 있는 내부 주소만 연결하고 공개된 주소, 쓰기가 되는 주소, 자격 증명이 든 주소를 최종 사용자에게 열지 말라고 적었습니다.

It is deployed with Docker Compose: three env files take values such as the database, Redis, S3, OIDC and the encryption key, and then a database migration runs. The parts are a Go business backend, React chat and admin apps, a Mastra agent runtime, PostgreSQL with pgvector, Redis, and MinIO or S3, and the README says all of them can be deployed privately so data never leaves your network, with the agent runtime exposed only on the internal network. The chat model handles streaming answers, the embedding model handles document chunk embedding and retrieval and the vision model extracts text from image documents, so the content for those jobs goes to the model endpoints configured. API keys are encrypted with AES-256-GCM in the database, admin APIs never return plaintext keys, and saving fails at once without the server variable CONFIG_ENCRYPTION_KEY.띄우는 길은 Docker Compose이고, 데이터베이스 · Redis · S3 · OIDC · 암호화 키 같은 값을 env 파일 셋에 채운 뒤 데이터베이스 마이그레이션을 돌립니다. 구성은 Go 업무 백엔드, React 대화 화면과 관리 화면, Mastra 에이전트 런타임, PostgreSQL(pgvector) · Redis · MinIO나 S3이고, README는 이것들을 모두 사내에 둘 수 있어 데이터가 내 네트워크를 떠나지 않으며 에이전트 런타임은 내부망에만 연다고 적었습니다. 대화 모델은 스트리밍 답을, 임베딩 모델은 문서 조각 임베딩과 검색을, 비전 모델은 그림 문서의 글자 뽑기를 맡으므로 그 일에 쓰이는 내용은 설정한 모델 주소로 갑니다. API 키는 AES-256-GCM으로 암호화해 데이터베이스에 두고 관리 API는 키 원문을 돌려주지 않으며, 서버 환경 변수 CONFIG_ENCRYPTION_KEY가 없으면 저장이 바로 실패합니다.

Once it is up, the chat app is at localhost:5173, the admin console at localhost:5174 and the Go API health check at localhost:8080/health. In the admin console, Model Configuration needs an endpoint, a model ID and an API key for each of the chat, embedding and vision models, and knowledge base and Q&A features only turn on when all three are complete. Any OpenAI-compatible interface works, such as OpenAI, DeepSeek, Qwen, Moonshot or a self-hosted vLLM or Ollama gateway, and saved settings take effect in about 15 seconds without a restart.띄운 뒤에는 대화 화면이 localhost:5173, 관리 화면이 localhost:5174, Go API 상태 확인이 localhost:8080/health에 열립니다. 관리 화면의 모델 설정에서 대화 · 임베딩 · 비전 모델마다 주소, 모델 ID, API 키를 넣어야 하고, 셋이 다 채워져야 지식 베이스와 질의응답이 켜집니다. OpenAI, DeepSeek, Qwen, Moonshot이나 자체 vLLM · Ollama 게이트웨이처럼 OpenAI 호환 주소면 어느 것이든 되고, 저장한 설정은 다시 시작하지 않아도 약 15초 뒤 적용됩니다.

A setting can refuse with a custom response, without calling the chat model, when retrieval finds no basis, and sensitive words at warn and block levels can stop input or be masked in the streamed output. The built-in tools are current_time, which returns the server time, and knowledge_search, which runs an extra search over the knowledge base, and tool calls and results are shown in the chat. Authentication uses configurable OIDC/JWKS, and RBAC, sessions, quotas and audit logs are included.검색이 근거를 찾지 못하면 대화 모델을 부르지 않고 정해 둔 거절 문구를 돌려주는 설정이 있고, 민감어는 경고와 차단 두 단계로 입력을 막거나 스트리밍 출력에서 가립니다. 기본 도구로는 서버 시각을 알려 주는 current_time과 지식 베이스를 한 번 더 찾는 knowledge_search가 있으며, 도구 호출과 결과는 대화 화면에 그대로 보입니다. 로그인은 설정할 수 있는 OIDC/JWKS를 쓰고, RBAC · 세션 · 할당량 · 감사 기록이 들어 있습니다.

The AgentDesk README picture headed One Platform, Two Entry Points: the admin console on its Usage Dashboard with the knowledge, usage and settings menu, and a phone running the Knowledge Assistant chat with source chips and a knowledge_search tool call.
Image: AgentDesk README.그림: AgentDesk README. Copyright (c) 2026 AgentDesk Contributors · MIT License Open original원본 보기

The README lists uses such as an enterprise knowledge assistant over policies, product manuals and SOPs, customer support and pre-sales Q&A, and partner enablement. E-commerce content in the repository is fictional sample data, the code has no product, order or transaction logic, and demo credentials are CHANGE_ME placeholders. The embedding dimension defaults to 1536, and changing it means rebuilding the vector index.README가 드는 쓰임새는 사내 규정 · 제품 설명서 · 업무 절차 질의, 고객 지원과 판매 전 질의응답, 협력사 교육 자료 질의응답입니다. 저장소에 보이는 전자상거래 내용은 지어낸 견본 자료이고 코드에는 상품 · 주문 · 거래 로직이 없으며, 데모 자격 증명은 CHANGE_ME 같은 자리 표시라고 적었습니다. 임베딩 차원은 기본 1536이고, 바꾸면 벡터 색인을 다시 만들어야 합니다.

The README calls AgentDesk not an SDK but a complete service suite with a business backend, end-user chat, admin console, agent runtime and deployment orchestration. The Go API and the agent runtime must use the same CONFIG_ENCRYPTION_KEY, and changing that key invalidates stored keys, which then have to be entered again. The README has no measurement of answer accuracy or of how much it reduces hallucinations.README는 AgentDesk가 SDK가 아니라 업무 백엔드, 대화 화면, 관리 화면, 에이전트 런타임, 배포 설정을 다 갖춘 서비스 묶음이라고 소개합니다. Go API와 에이전트 런타임은 같은 CONFIG_ENCRYPTION_KEY를 써야 하고, 이 키를 바꾸면 저장된 키가 무효가 되어 다시 넣어야 합니다. 답이 얼마나 정확한지, 환각이 얼마나 줄었는지 잰 값은 README에 없습니다.

All algoit posts알고IT 글 목록

Follow our AI news onAI 소식 팔로우하기X Instagram Threads