Download tests/export_usecases.mjs from solvi-ai/documents: direct link, hf CLI and curl.
- Browser
- Download file 327 Bytes
-
https://huggingface.co/spaces/solvi-ai/documents/resolve/main/tests/export_usecases.mjs
- Command line
-
hf download hf://spaces/solvi-ai/documents/tests/export_usecases.mjs
-
curl -L -o export_usecases.mjs https://huggingface.co/spaces/solvi-ai/documents/resolve/main/tests/export_usecases.mjs
327 Bytes
| // node tests/export_usecases.mjs > usecases.json : the use-case library as JSON (texts NFC-normalized, as in the page) | |
| import { USE_CASES } from "../usecases/index.js"; | |
| const out = USE_CASES.map((u) => ({ ...u, docs: u.docs.map((d) => ({ ...d, text: d.text.normalize("NFC") })) })); | |
| process.stdout.write(JSON.stringify(out)); | |