Jamorham
Nightscout용 xDrip+ 버전
아직 감지된 업데이트가 없습니다. GitHub 릴리스가 나오면 여기에 보입니다.
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
프로젝트 폴더에서 /nomorevibe verify를 실행하면 소유권을 확인하고 소개를 직접 관리할 수 있습니다.
1분 만에 확인하기Production-oriented clinical RAG backend: hybrid retrieval, citation-grounded generation, abstention gates, multi-provider routing, and a 229-question evaluation suite.
저장소 README에서 가져옴
README 전체를 불러오는 중입니다. 아래는 저장된 발췌입니다.
A production-oriented clinical RAG backend for evidence-grounded Korean medicine decision support.
CureAgent turns 63 clinical-guideline PDFs into 7,154 searchable evidence chunks, retrieves and
reranks the most relevant passages, and streams answers with source-linked citations. Its safety
path is evaluated against 229 questions—including 44 deliberately unanswerable cases—and abstains
when the available evidence cannot support an answer. The system also includes multi-provider LLM
routing, production observability, and failure recovery.README 전문 보기 ↗English · 한국어
A production-oriented clinical RAG backend for evidence-grounded Korean medicine decision support.
CureAgent turns 63 clinical-guideline PDFs into 7,154 searchable evidence chunks, retrieves and reranks the most relevant passages, and streams answers with source-linked citations. Its safety path is evaluated against 229 questions—including 44 deliberately unanswerable cases—and abstains when the available evidence cannot support an answer. The system also includes multi-provider LLM routing, production observability, and failure recovery.
Live Demo · Frontend · API Docs
pg_trgm character n-gram
similarity.[n] markers to the source URL, section path, and supporting quote.User → Hybrid Retrieval → LLM Reranking → Grounded LLM → Citation / Abstention → SSE
The backend is a domain-oriented NestJS modular monolith backed by PostgreSQL and Redis. See the architecture document for the complete system design and step specifications for implementation-level decisions. These documents remain the source of truth; the README intentionally stays at system-overview level.
NestJS 11 · TypeScript 5 · Drizzle ORM · PostgreSQL 17 (pgvector exact cosine search + pg_trgm) ·
Redis 7 · SSE · OpenAPI · Prometheus · Jest + Testcontainers · Docker
The offline evaluation uses a production-corpus snapshot rather than synthetic retrieval fixtures,
and runs the deployed policy (hybrid-rrf60-top30x2-bm2575-cut0.48-score9-v6 with the qa-v6
generation prompt).
| Scope | Size |
|---|---|
| Clinical-guideline documents surveyed | 87 PDFs |
| Ingested into the searchable corpus | 63 PDFs |
| Indexed evidence corpus | 7,154 active chunks |
| Evaluation questions | 229 total |
| Answerable / expected-abstention split | 185 / 44 |
Representative results:
| Metric | Result |
|---|---|
| Hybrid candidate coverage | 100.0% |
| Keyword-arm Recall@30 | 100.0% |
| Reranked Recall@5 | 98.9% |
| Reranked MRR@5 | 0.942 |
| Out-of-scope questions answered (leakage) | 0 / 44 |
| Answerable questions answered | 185 / 185 |
| Claim-level support rate | 91.8% |
Abstention is reported end to end, because the layered gates only compose at the end. At the deployed relevance cutoff the retrieval-stage gates abstain on 41 of the 44 out-of-scope questions (93.2% abstention recall) and the generation-stage answerability gate catches the remaining 3, so none is answered; no answerable question is abstained (0.0% over-abstention). Retrieval-stage abstention recall is counted before the generation gate, which makes it an upper bound on leakage rather than the safety result itself.
Retrieval and abstention results come from the 2026-09-10 policy run; claim support comes from the qa-v5 groundedness run, measured under the preceding generation prompt. The 229-question set also informed cutoff selection, so these are diagnostic policy metrics—not an independent held-out generalization benchmark, and on the 44-question abstention axis repeated runs of one configuration move by one to two questions. See all evaluation reports for prompts, failure cases, distribution sweeps, and limitations.
Prerequisites: Node.js 22+, pnpm 10+, and Docker.
pnpm install
cp .env.example .env # Configure required secrets and at least one OAuth provider
docker compose up -d # PostgreSQL + pgvector and Redis
pnpm db:migrate # Apply Drizzle migrations
pnpm start:dev # API: http://localhost:3000/api/v1
# Swagger: http://localhost:3000/api/docs
Run the verification suites:
pnpm lint && pnpm test # Lint and unit tests
pnpm test:e2e # Testcontainers e2e; Docker required
OPENAI_API_KEY and ANTHROPIC_API_KEY are optional. Without them, deterministic fake LLM,
embedding, reranking, and guidance providers keep local and CI flows testable. Authentication still
requires at least one configured Google, Kakao, or Naver OAuth client ID; see
.env.example for every setting.
Each increment starts with a one-page specification. Acceptance e2e tests are derived independently before implementation, reviewed, and frozen; implementation must satisfy them without changing the test oracle. Hooks prevent edits to frozen tests, while a commit-based diff audit catches bypass attempts. The delivery pipeline then automates the path from dev PR and CI through the production deployment PR and CD.
See Specification-Driven Development for the enforcement model, automation harness, and a traceable production example.