stutiagrawal commited on
Commit
948d6ef
Β·
1 Parent(s): 3da97ef

add ui run instructions

Browse files
Files changed (1) hide show
  1. README.md +15 -4
README.md CHANGED
@@ -95,11 +95,18 @@ If you change the KB, rebuild the index by deleting the `kb/index/` folder.
95
 
96
  ### 4) Run the API
97
  ```bash
98
- # macOS OpenMP fix (optional) + run
99
- KMP_DUPLICATE_LIB_OK=TRUE OMP_NUM_THREADS=1 uvicorn app.main:app --reload
100
  ```
101
 
102
- ### 5) Try it
 
 
 
 
 
 
 
 
103
 
104
  **Transcript path (no audio):**
105
  ```bash
@@ -147,5 +154,9 @@ ClaimCheck.AI combines modern **agentic AI** orchestration with core NLP, IR, an
147
  - **FAISS dim mismatch** β†’ delete `kb/index/` after changing embedding model.
148
  - **OpenMP error (macOS)** β†’ set `KMP_DUPLICATE_LIB_OK=TRUE` and `OMP_NUM_THREADS=1`.
149
  - **JSON parse errors** β†’ we use a robust extractor; check server logs `[RAW OUTPUT]`.
150
-
 
 
 
 
151
 
 
95
 
96
  ### 4) Run the API
97
  ```bash
98
+ uvicorn app.main:app --reload
 
99
  ```
100
 
101
+ ### 5) Run the UI
102
+ ```bash
103
+ cd ui/claimcheck-ui
104
+ pnpm install
105
+ pnpm dev
106
+ ```
107
+ - If you change the UI dev port/host, add it to `allow_origins` in `app/main.py`.
108
+
109
+ ### 6) Try it
110
 
111
  **Transcript path (no audio):**
112
  ```bash
 
154
  - **FAISS dim mismatch** β†’ delete `kb/index/` after changing embedding model.
155
  - **OpenMP error (macOS)** β†’ set `KMP_DUPLICATE_LIB_OK=TRUE` and `OMP_NUM_THREADS=1`.
156
  - **JSON parse errors** β†’ we use a robust extractor; check server logs `[RAW OUTPUT]`.
157
+ - **Rebuild index** β†’ Incorrect evidence showing up in the evidence drawer
158
+ ```bash
159
+ rm -f kb/index/kb.index kb/index/kb_meta.json
160
+ python -c "from app.agents.retriever import _build_or_load; _build_or_load(); print('rebuild done')"
161
+ ```
162