Spaces:
Sleeping
Sleeping
ForStream Claude Opus 4.8 commited on
Commit ·
2ba4c4a
1
Parent(s): 108b34c
페이퍼 v6 PDF + 온톨로지 노드그래프 HF 업로드
Browse files- assets/paper_v6.pdf (§4 베이스라인 평가 신설 + figure 부록 포함) → /api/download/paper
- assets/ontology_*.png 노드그래프 3종 → /api/download/graph
- main.py: PAPER_PATH→paper_v6.pdf, ONT_GRAPH_PNG→class_hierarchy
- Dockerfile: COPY assets/ 추가(다운로드 404 해소) + CACHE_BUST v6
- .gitattributes: assets PDF/PNG git-lfs 추적
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- .gitattributes +2 -0
- Dockerfile +3 -2
- api/main.py +2 -2
- assets/ontology_business_process_v1_10.png +3 -0
- assets/ontology_class_hierarchy_v1_10.png +3 -0
- assets/ontology_counterparty_v1_10.png +3 -0
- assets/paper_v6.pdf +3 -0
.gitattributes
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
assets/*.pdf filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
assets/*.png filter=lfs diff=lfs merge=lfs -text
|
Dockerfile
CHANGED
|
@@ -39,13 +39,14 @@ RUN pip install --upgrade pip && pip install -r /app/api/requirements.txt
|
|
| 39 |
|
| 40 |
# 코드 (rag_engine·semantic_search 등 active/code의 핵심 모듈)
|
| 41 |
# 캐시 무효화용 ARG (commit SHA 다르면 캐시 무효화)
|
| 42 |
-
ARG CACHE_BUST=
|
| 43 |
COPY code/ /app/code/
|
| 44 |
# 백엔드
|
| 45 |
COPY api/ /app/api/
|
| 46 |
# 데이터
|
| 47 |
COPY data/ /app/active/ontology/
|
| 48 |
-
# assets/ (paper
|
|
|
|
| 49 |
|
| 50 |
# React 빌드 결과 (Stage 1)
|
| 51 |
COPY --from=web-build /web/dist /app/hf_app/web/dist
|
|
|
|
| 39 |
|
| 40 |
# 코드 (rag_engine·semantic_search 등 active/code의 핵심 모듈)
|
| 41 |
# 캐시 무효화용 ARG (commit SHA 다르면 캐시 무효화)
|
| 42 |
+
ARG CACHE_BUST=v6
|
| 43 |
COPY code/ /app/code/
|
| 44 |
# 백엔드
|
| 45 |
COPY api/ /app/api/
|
| 46 |
# 데이터
|
| 47 |
COPY data/ /app/active/ontology/
|
| 48 |
+
# assets/ (paper PDF + 온톨로지 노드그래프) — LFS로 추가됨, /api/download/{paper,graph}에서 서빙
|
| 49 |
+
COPY assets/ /app/assets/
|
| 50 |
|
| 51 |
# React 빌드 결과 (Stage 1)
|
| 52 |
COPY --from=web-build /web/dist /app/hf_app/web/dist
|
api/main.py
CHANGED
|
@@ -52,8 +52,8 @@ import semantic_search as ss
|
|
| 52 |
import llm_adapters
|
| 53 |
|
| 54 |
# 자산 파일 (다운로드 카드용 — assets/는 LFS 추가 전까지 미존재)
|
| 55 |
-
PAPER_PATH = HF_APP_DIR / "assets" / "
|
| 56 |
-
ONT_GRAPH_PNG = HF_APP_DIR / "assets" / "
|
| 57 |
|
| 58 |
TTL_PATH = ONTOLOGY_DIR / "investment_ontology_v1_10.ttl"
|
| 59 |
JSONL_PATH = ONTOLOGY_DIR / "regulations_chunks_v14.jsonl"
|
|
|
|
| 52 |
import llm_adapters
|
| 53 |
|
| 54 |
# 자산 파일 (다운로드 카드용 — assets/는 LFS 추가 전까지 미존재)
|
| 55 |
+
PAPER_PATH = HF_APP_DIR / "assets" / "paper_v6.pdf"
|
| 56 |
+
ONT_GRAPH_PNG = HF_APP_DIR / "assets" / "ontology_class_hierarchy_v1_10.png"
|
| 57 |
|
| 58 |
TTL_PATH = ONTOLOGY_DIR / "investment_ontology_v1_10.ttl"
|
| 59 |
JSONL_PATH = ONTOLOGY_DIR / "regulations_chunks_v14.jsonl"
|
assets/ontology_business_process_v1_10.png
ADDED
|
Git LFS Details
|
assets/ontology_class_hierarchy_v1_10.png
ADDED
|
Git LFS Details
|
assets/ontology_counterparty_v1_10.png
ADDED
|
Git LFS Details
|
assets/paper_v6.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2974a147faa10f4dd0852652e4a03f8914ce2ebf828b6877404e2608f8c8bcf6
|
| 3 |
+
size 4027987
|