"""Small built-in sample documents so a visitor can try ingestion and search in one click.""" SAMPLES = [ ("sample/invoice-payment-policy.md", "invoice-payment-policy.md", """# Invoice payment policy ## Payment terms Customers must pay every invoice within 30 days of the invoice date (net 30). Invoices that are still unpaid after 45 days are flagged as overdue and a reminder is emailed to the billing contact. ## Late fees A late fee of 1.5 percent per month applies to overdue balances. Late fees are waived once for first-time customers. ## Disputes If an invoice looks wrong, reply to the invoice email within 10 days. Disputed amounts are paused while the rest of the invoice stays due. """), ("sample/vector-search-notes.md", "vector-search-notes.md", """# Notes on hybrid retrieval ## Why fuse rankings Dense embeddings find passages that mean the same thing even when the words differ. Keyword search finds exact terms such as error codes and product names. Reciprocal rank fusion combines the two by adding 1 / (60 + rank) from each ranking, so scores from different encoders are never compared directly. ## Encoders used Two small encoders run on CPU: BGE small (384 dimensions) and GTE small (384 dimensions). Each writes its own vector column, and the keyword ranking comes from a full-text index. """), ("sample/deploy-runbook.md", "deploy-runbook.md", """# Deploy runbook ## Environment Set the deployment variables before a release. ``` export API_BASE=https://api.example.com export api_key = "sk_live_FAKE_demo_value_1234567890abcdef" ``` The line above is a fake credential. The ingestion runner masks anything that looks like a password, token or key before text is chunked, embedded or stored, so it should show up as [REDACTED] in search results. ## Rollback To roll back, redeploy the previous release tag and confirm the health check returns 200. """), ]