8f312f50a74a8b1c42a0e87a0472e1449847c3b9
- 검색바 아래 새 필터 칩 row: domain/tag/format/source 활성 필터를 인라인 칩으로 렌더, 각 칩에 X 버튼으로 제거. - `+ 태그` popover: 현재 결과의 상위 20개 태그 클라이언트 집계 (items.flatMap(d => d.ai_tags).counts + sort) → 선택 시 ?tag=... - `+ 형식` popover: FORMATS 화이트리스트 (pdf/hwp/hwpx/md/docx/xlsx/png/jpg) → 선택 시 ?format=... - 바깥 클릭으로 popover 자동 close ($effect + document listener) - filterFormat $derived + loadDocuments params 확장 + hasActiveFilters 확장 - 결과 헤더는 카운트만 남기고 필터 표시/초기화는 칩 row로 이전 (중복 제거) - addFilter/removeFilter 헬퍼로 URL 라운드트립 관리 (domain 제거 시 sub_group 함께) - 백엔드 변경 없음 (GET /documents/가 이미 tag/format 지원) 검증: - npm run build 통과 - npm run lint:tokens 236 → 231 (신규 코드 0 위반, 결과 헤더 리팩토링으로 5건 organically 감소) - popover 키보드 a11y (role=listbox/option, aria-expanded, aria-selected) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
hyungi_Document_Server
Self-hosted 개인 지식관리(PKM) 웹 애플리케이션
기술 스택
- 백엔드: FastAPI + SQLAlchemy (async)
- 데이터베이스: PostgreSQL 16 + pgvector + pg_trgm
- 프론트엔드: SvelteKit
- 문서 파싱: kordoc (HWP/HWPX/PDF → Markdown)
- AI: Qwen3.5-35B-A3B (MLX), nomic-embed-text, Claude API (폴백)
- 인프라: Docker Compose, Caddy, Synology NAS
주요 기능
- 문서 자동 분류/태그/요약 (AI 기반)
- 전문검색 + 벡터 유사도 검색
- HWP/PDF/Markdown 문서 뷰어
- 법령 변경 모니터링 (산업안전보건법 등)
- 이메일 자동 수집 (MailPlus IMAP)
- 일일 다이제스트
- CalDAV 태스크 연동 (Synology Calendar)
Quick Start
git clone https://git.hyungi.net/hyungi/hyungi_document_server.git hyungi_Document_Server
cd hyungi_Document_Server
# 인증 정보 설정
cp credentials.env.example credentials.env
nano credentials.env # 실제 값 입력
# 실행
docker compose up -d
http://localhost:8000/docs 에서 API 문서 확인
디렉토리 구조
├── app/ FastAPI 백엔드 (API, 워커, AI 클라이언트)
├── frontend/ SvelteKit 프론트엔드
├── services/kordoc/ 문서 파싱 마이크로서비스 (Node.js)
├── gpu-server/ GPU 서버 배포 (AI Gateway)
├── migrations/ PostgreSQL 스키마
├── docs/ 설계 문서, 배포 가이드
└── tests/ 테스트 코드
인프라 구성
| 서버 | 역할 |
|---|---|
| Mac mini M4 Pro | Docker Compose (FastAPI, PostgreSQL, kordoc, Caddy) + MLX AI |
| Synology NAS | 파일 원본 저장, Synology Office/Drive/Calendar/MailPlus |
| GPU 서버 | AI Gateway, 벡터 임베딩, OCR, 리랭킹 |
문서
Description
Languages
Python
51.7%
Svelte
40.1%
TypeScript
3.4%
HTML
2.4%
CSS
1%
Other
1.4%