gyubin02 commited on
Commit
2ffd1e2
Β·
1 Parent(s): f043bc6

Add configuration to README

Browse files
Files changed (1) hide show
  1. README.md +17 -90
README.md CHANGED
@@ -1,90 +1,17 @@
1
- # MapleStory Ranking Icon Pipeline
2
-
3
- Data based on NEXON Open API.
4
-
5
- ## Overview
6
- Collects MapleStory overall ranking (1-100) characters and stores:
7
- - Equipment shape icons (`item_shape_icon`) + metadata
8
- - Cash item icons (`cash_item_icon`) + metadata
9
-
10
- Output includes:
11
- - Raw JSON responses for audit/replay
12
- - SQLite database with idempotent upserts
13
- - Optional icon downloads with SHA256 integrity tracking
14
-
15
- ## Requirements
16
- - Python 3.11+
17
- - Nexon Open API key (set `NEXON_API_KEY`)
18
-
19
- ## Install
20
- ```bash
21
- python -m venv .venv
22
- source .venv/bin/activate
23
- pip install -r requirements.txt
24
- ```
25
-
26
- ## Configuration
27
- Create `.env` (see `.env.example`) or export env vars:
28
- - `NEXON_API_KEY` (required)
29
- - `OUTPUT_DIR` (optional, default `data/`)
30
- - `DB_PATH` (optional, default `data/YYYY-MM-DD/db.sqlite`)
31
-
32
- ## Usage
33
- ```bash
34
- python -m pipeline run --date 2026-01-10 --top 100 --download-icons --concurrency 8 --rps 5
35
- python -m pipeline run --top 100 --no-download
36
- python -m pipeline --top 100
37
- python -m pipeline --start-rank 101 --end-rank 200 --date 2026-01-10
38
- ```
39
-
40
- The `run` subcommand is optional.
41
-
42
- Optional filters:
43
- - `--world-name`
44
- - `--world-type`
45
- - `--class-name`
46
-
47
- Rank range:
48
- - `--start-rank` (default 1)
49
- - `--end-rank` (default = `--top`)
50
- - `--top` remains as an alias for `--end-rank`
51
-
52
- Merge additional ranges into the same run:
53
- - Use `--run-id` with a previous `Run ID` from `README_run.md`
54
-
55
- Preset handling:
56
- - Default: only current preset (or preset 1 if missing)
57
- - `--all-presets` to store all presets
58
-
59
- ## Output Layout
60
- ```
61
- project/
62
- src/
63
- data/
64
- YYYY-MM-DD/
65
- raw/
66
- ranking_overall.json
67
- ocid/{rank}_{character_name}.json
68
- item_equipment/{ocid}.json
69
- cashitem_equipment/{ocid}.json
70
- db.sqlite
71
- icons/
72
- equipment_shape/
73
- cash/
74
- ```
75
-
76
- ## Idempotency
77
- Runs are keyed by a deterministic `run_id` derived from `target_date` and ranking parameters, so re-running with the same inputs updates existing rows instead of creating duplicates.
78
-
79
- ## Compliance
80
- - Data based on NEXON Open API.
81
- - Refresh data within 30 days to stay compliant; the CLI is scheduler-friendly (cron, etc.).
82
-
83
- ## Tests
84
- ```bash
85
- pytest
86
- ```
87
-
88
- ## Notes
89
- - Ranking pagination continues until the requested rank range is collected or pages are exhausted.
90
- - Raw JSON is stored unmodified (for recovery if field names change).
 
1
+ ---
2
+ title: Maple Story AI Search
3
+ emoji: 🍁
4
+ colorFrom: green
5
+ colorTo: yellow
6
+ sdk: docker
7
+ pinned: false
8
+ app_port: 7860
9
+ ---
10
+
11
+ # MapleStory AI Search Backend
12
+
13
+ 이 ν”„λ‘œμ νŠΈλŠ” λ©”μ΄ν”ŒμŠ€ν† λ¦¬ μ•„μ΄ν…œ 이미지λ₯Ό AI(SigLIP + LoRA)둜 λΆ„μ„ν•˜μ—¬, ν…μŠ€νŠΈλ‘œ 검색할 수 있게 ν•΄μ£ΌλŠ” λ°±μ—”λ“œ μ„œλ²„μž…λ‹ˆλ‹€.
14
+
15
+ - **Model:** SigLIP (LoRA Fine-tuned)
16
+ - **Database:** ChromaDB (Vector Search)
17
+ - **Framework:** FastAPI