forked from sbabyanusha/cBioAbstractor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
21 lines (18 loc) · 1010 Bytes
/
Copy pathconfig.py
File metadata and controls
21 lines (18 loc) · 1010 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
"""
config.py
---------
Central configuration for cBioAbstractor.
All tunable constants live here.
Notes
-----
The Anthropic API key is read directly from the ANTHROPIC_API_KEY environment
variable (or Streamlit secret / sidebar input) inside streamlit_app.py, so it
deliberately is not re-exported here.
"""
import os
# ── Paths ─────────────────────────────────────────────────────────────────────
FEW_SHOT_DIR = os.getenv("FEW_SHOT_DIR", "./few_shot_examples")
# ── Detection / transform settings ────────────────────────────────────────────
DETECTION_SAMPLE_ROWS = 10 # rows sampled for type detection
TRANSFORM_SAMPLE_ROWS = 20 # rows sampled for LLM transform
DETECTION_CONFIDENCE_THRESHOLD = 0.6 # below this → fall back to LLM detection