Spaces:
Sleeping
Sleeping
Add configuration to README
Browse files
README.md
CHANGED
|
@@ -1,90 +1,17 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
-
|
| 17 |
-
-
|
| 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|