Spaces:
Runtime error
Runtime error
Download docs/operations.html from welcometoFightclub/datacollection_server: direct link, hf CLI and curl.
- Browser
- Download file 2.6 kB
-
https://huggingface.co/spaces/welcometoFightclub/datacollection_server/resolve/main/docs/operations.html
- Command line
-
hf download hf://spaces/welcometoFightclub/datacollection_server/docs/operations.html
-
curl -L -o operations.html https://huggingface.co/spaces/welcometoFightclub/datacollection_server/resolve/main/docs/operations.html
2.6 kB
| <html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>Operations | PDF Extractor Docs</title><link rel="stylesheet" href="guide.css"></head><body><a class="skip-link" href="#content">Skip to content</a><header class="topbar"><a class="brand" href="index.html">PDF Extractor <span>Docs</span></a><button class="menu-button" type="button" aria-expanded="false" aria-controls="navigation">Menu</button><button class="theme-button" type="button">Theme</button></header><div class="layout"><nav id="navigation" class="navigation" aria-label="Documentation"><a href="index.html">Overview</a><a href="architecture.html">Architecture</a><a href="low-level-design.html">Low-level design</a><a href="dependencies.html">External dependencies</a><a href="api.html">API contract</a><a href="operations.html">Operations and limits</a><a href="setup.html">Local setup</a></nav><main id="content"><p class="eyebrow">Run and maintain</p><h1>Operations and limits</h1><section><h2>Validation rules</h2><ul><li>The name must end with <code>.pdf</code>.</li><li>The MIME type must identify a PDF.</li><li>The file must not be empty.</li><li>The file must be within <code>MAX_FILE_SIZE_MB</code>.</li><li>The file must start with the <code>%PDF</code> header.</li></ul></section><section><h2>Security rules</h2><ul><li>Keep <code>LLAMA_CLOUD_API_KEY</code> in <code>.env</code> or a secret store.</li><li>Do not commit <code>.env</code>.</li><li>Do not expose external IDs through the public API.</li><li>Do not return raw provider errors to browser users.</li><li>Do not log the full PDF or extracted private data.</li></ul></section><section><h2>SQLite limit</h2><p>SQLite is correct for one API instance and moderate local traffic. SQLite has one writer at a time. Use PostgreSQL before you scale to multiple application instances or frequent concurrent writes.</p></section><section><h2>Required production changes</h2><ol><li>Add authentication and job ownership checks.</li><li>Add Alembic migrations before schema changes.</li><li>Move from SQLite to PostgreSQL when traffic requires it.</li><li>Add structured logs and error monitoring.</li><li>Set data retention rules for results and source files.</li></ol></section><section><h2>When to add Celery</h2><p>Add Celery only when the application runs its own long jobs. Examples include OCR, custom post-processing, batch operations, embeddings, or retry workflows. Do not add Celery only to wait for LlamaCloud.</p></section></main></div><script src="guide.js"></script></body></html> | |