Spaces:
Running
Running
Download index.html from iankamar/fieldnotes-rag: direct link, hf CLI and curl.
- Browser
- Download file 7.45 kB
-
https://huggingface.co/spaces/iankamar/fieldnotes-rag/resolve/main/index.html
- Command line
-
hf download hf://spaces/iankamar/fieldnotes-rag/index.html
-
curl -L -o index.html https://huggingface.co/spaces/iankamar/fieldnotes-rag/resolve/main/index.html
7.45 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <meta name="viewport" content="width=device-width,initial-scale=1" /> | |
| <title>Fieldnotes · Document intelligence</title> | |
| <link rel="stylesheet" href="style.css" /> | |
| </head> | |
| <body id="top"> | |
| <header> | |
| <nav> | |
| <a class="brand" href="#top">FIELDNOTES</a> | |
| <div class="navlinks"> | |
| <a | |
| href="https://huggingface.co/spaces/iankamar/fieldnotes-rag/blob/main/DEMO.md" | |
| target="_blank" | |
| rel="noopener noreferrer" | |
| >Guide</a | |
| ><a | |
| href="https://huggingface.co/spaces/iankamar/fieldnotes-rag/tree/main" | |
| target="_blank" | |
| rel="noopener noreferrer" | |
| >Code</a | |
| ><a | |
| href="https://huggingface.co/spaces/iankamar/fieldnotes-rag/blob/main/VALIDATION.md" | |
| target="_blank" | |
| rel="noopener noreferrer" | |
| >Test report</a | |
| > | |
| </div> | |
| </nav> | |
| <div class="hero"> | |
| <p class="eyebrow">BROWSER-LOCAL DOCUMENT Q&A</p> | |
| <h1>Find the answer.<br /><em>Read the source.</em></h1> | |
| <p> | |
| Search across documents, inspect cited passages, and export an | |
| incident brief. | |
| </p> | |
| <div class="tags"> | |
| <span>Runs on your device</span><span>Semantic + keyword search</span | |
| ><span>30-query benchmark</span><span>No API subscription</span> | |
| </div> | |
| </div> | |
| </header> | |
| <main> | |
| <aside class="card"> | |
| <p class="step">DOCUMENTS</p> | |
| <h2>Add documents</h2> | |
| <label class="upload" | |
| >Choose PDF, TXT or Markdown<input | |
| id="files" | |
| type="file" | |
| accept=".pdf,.txt,.md" | |
| multiple /></label | |
| ><button id="index">Index documents</button | |
| ><button class="secondary" id="sample">Load HBR-1042 demo case</button> | |
| <p id="indexStatus" role="status">No documents loaded.</p> | |
| <hr /> | |
| <h3>Local processing</h3> | |
| <p class="small"> | |
| Text is processed in this browser tab. No document or question is sent | |
| to an inference service. Model and library files download from Hugging | |
| Face and public CDNs. | |
| </p> | |
| <p class="small"> | |
| Semantic search downloads a small embedding model. The first LLM | |
| answer downloads roughly 500 MB and can take several minutes. Browser | |
| processing uses your device's memory and power. Best on desktop Chrome | |
| or Edge. | |
| </p> | |
| <button class="secondary" id="clear">Clear session</button> | |
| </aside> | |
| <section> | |
| <div class="card"> | |
| <p class="step">QUESTION</p> | |
| <h2>What do you need to know?</h2> | |
| <label for="question">Question</label | |
| ><textarea | |
| id="question" | |
| maxlength="1500" | |
| placeholder="Why did HBR-1042 happen?" | |
| ></textarea | |
| ><label for="mode">Retrieval method</label | |
| ><select id="mode"> | |
| <option value="hybrid">Hybrid · semantic + keyword</option> | |
| <option value="lexical">Original · keyword baseline</option> | |
| </select> | |
| <div class="actions"> | |
| <button id="ask">Find evidence & answer →</button | |
| ><button class="secondary" id="evidenceOnly">Evidence only</button> | |
| </div> | |
| <p id="status" role="status"> | |
| First model load can take a few minutes. Evidence-only mode skips | |
| the LLM. | |
| </p> | |
| <button id="export" class="secondary"> | |
| Export evidence record ↓ | |
| </button> | |
| <div id="answer" aria-live="polite"> | |
| Load documents or the demo case, then ask a question. | |
| </div> | |
| </div> | |
| <div class="card evidence"> | |
| <p class="step">SOURCES</p> | |
| <h2>Retrieved evidence</h2> | |
| <div id="sources">Passages appear here after you ask a question.</div> | |
| </div> | |
| <div class="card evidence"> | |
| <p class="step">DEMO WORKFLOW</p> | |
| <h2>Build the HBR-1042 brief</h2> | |
| <p class="small"> | |
| Five focused checks: cause, impact, decision owner, current rollback | |
| rule, and prevention. Each finding keeps its own sources. Designed | |
| for the fictional HBR-1042 demo; incomplete answers remain possible. | |
| </p> | |
| <div class="actions"> | |
| <button id="investigate">Build incident brief</button | |
| ><button class="secondary" id="exportBrief">Export brief ↓</button> | |
| </div> | |
| <div id="brief"></div> | |
| </div> | |
| <div class="card evidence"> | |
| <p class="step">RETRIEVAL EVALUATION</p> | |
| <h2>Compare retrieval methods</h2> | |
| <p class="small"> | |
| Reproduce a 30-query comparison on nine fictional operational | |
| documents. Includes paraphrases, an obsolete policy, and six | |
| questions with no documented answer. This measures retrieval—not LLM | |
| answer accuracy. | |
| </p> | |
| <div class="actions"> | |
| <button id="evaluate">Run retrieval benchmark</button | |
| ><button class="secondary" id="exportEval"> | |
| Export full results ↓ | |
| </button> | |
| </div> | |
| <div id="evaluation"> | |
| Run the comparison to see results from this browser. | |
| </div> | |
| </div> | |
| <div class="card evidence"> | |
| <p class="step">ANSWER EVALUATION</p> | |
| <h2>Check the returned answers</h2> | |
| <p class="small"> | |
| Run ten actual model checks: eight factual questions and two | |
| unsupported questions. See required-fact checks, citation | |
| validation, fallback routes, and every failure. This goes beyond | |
| retrieval scores; it is still a small synthetic development audit. | |
| </p> | |
| <div class="actions"> | |
| <button id="answerAudit">Run end-to-end answer checks</button | |
| ><button class="secondary" id="exportAudit"> | |
| Export answer checks ↓ | |
| </button> | |
| </div> | |
| <div id="answerAuditResult" aria-live="polite"> | |
| No answer checks run in this session. | |
| </div> | |
| </div> | |
| <div class="card evidence" id="exportPanel" hidden> | |
| <p class="step">YOUR EXPORT</p> | |
| <h2 id="exportName">Evidence record</h2> | |
| <a id="saveExport" download>Save file ↓</a> | |
| <p class="small"> | |
| If your browser blocks downloads, select and copy the complete text | |
| below. | |
| </p> | |
| <label for="exportText">Export contents</label | |
| ><textarea id="exportText" readonly rows="12"></textarea> | |
| </div> | |
| </section> | |
| </main> | |
| <footer> | |
| Fieldnotes · Qwen2.5 + MiniLM · Source quotations still need human | |
| review.<br /><a | |
| href="https://huggingface.co/spaces/iankamar/fieldnotes-rag/blob/main/README.md" | |
| target="_blank" | |
| rel="noopener noreferrer" | |
| >Methods, limitations, and AI assistance</a | |
| > | |
| · | |
| <a | |
| href="https://huggingface.co/spaces/iankamar/fieldnotes-rag/blob/main/LICENSE" | |
| target="_blank" | |
| rel="noopener noreferrer" | |
| >MIT license</a | |
| > | |
| </footer> | |
| <script type="module" src="app.mjs"></script> | |
| </body> | |
| </html> | |