Synaplan
開源 AI 平台,供企業使用:自行託管的 AI 代理、符合 GDPR 的聊天機器人小工具、RAG 知識庫、WhatsApp 與 Outlook AI、MCP、多模型路由。Docker、Kubernetes 或託管於 Germ
AI 翻譯
尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證Compare an original commercial offer and its revision (PDF): substantive changes with source references, uncertain matches, arithmetic checks.
翻譯準備中
取自儲存庫 README
正在載入完整 README。 以下為已儲存的摘錄。
Offer Compare — commercial offer comparison (AI-First Product Builder take-home) Live demo: https://test-codebridge-offert-compare.vercel.app Repo: https://github.com/untxia/test-codebridge-offert-compare檢視完整 README ↗
Live demo: https://test-codebridge-offert-compare.vercel.app
Repo: https://github.com/untxia/test-codebridge-offert-compare
Upload an original commercial offer and its revision (two text documents — PDF, Word, Excel, OpenDocument, CSV, HTML, JSON, text/Markdown; formats can be mixed). The app lists the substantive changes
(scope, quantities, unit prices, totals, delivery dates), each with a clickable reference to both locations
(PDF: page + highlighted area; Excel: cell reference such as Offre!A7:F7; Word/HTML: table + row; text/CSV: line; JSON: item) and a side-by-side viewer. No line item is retyped.
python3 -m venv .venv && . .venv/bin/activate
pip install -r requirements.txt
python3 -m uvicorn server:app --port 8000 # http://localhost:8000
Use the four example links on the page (normal case, formatting only, ambiguous case, scanned document) or upload your own files (.pdf .docx .xlsx .ods .odt .csv .tsv .html .json .txt .md). "Excel vs Word" compares a spreadsheet with a Word document. Legacy .xls/.doc/.rtf, images and scans are refused with an explicit message.
Dev extras (regenerate the test PDFs): pip install -r requirements-dev.txt.
CLI: python3 -m offercompare compare original.pdf revised.pdf (JSON report).
python3 -m unittest discover -s tests -t . # 23 unit/integration tests
python3 testset/verify_testset.py # independent check of the test PDFs against their answer key
python3 evaluation/evaluate.py # missed / false changes, source references, timing (writes evaluation/results.json)
python3 testset/generate_formats.py # same offers as xlsx/docx/ods/csv/html/md/txt/json (cross-format tests)
python3 testset/generate_testset.py # regenerate the 5 sample PDFs + expected_differences.json
python3 evaluation/holdout/make_holdout.py # regenerate the hold-out pairs (other vendor, EN, USD, other column order)
offercompare/extract.py, pdfplumber; other formats are read by offercompare/readers.py into cell grids — openpyxl for Excel, stdlib XML/HTML/CSV/JSON parsers for the rest — then go through the same header-keyword rules, so a PDF can be compared with an Excel file; Excel formulas without a saved value are ignored and flagged, never recomputed): columns are recognised by header keywords (FR/EN), never by position; two strategies (ruled tables, then header-anchored word alignment for tables without borders); wrapped labels are re-attached; every row, cell and total keeps its page and bounding box. Numeric dates: day-first/month-first decided by the document itself, otherwise by currency, with a warning.match.py): score = 0.55·label similarity + 0.35·terms (price/qty/date) + 0.10·position. A pair is confirmed only if the label is near-identical or renamed with a high global score, and in both cases with a clear margin over the runner-up. Plausible but unconfirmed pairs form connected groups → uncertain (one-to-one, split/merge, many-to-many); the rest are removed/added. Thresholds are constants at the top of the file.diff.py): change list, arithmetic checks, net effect (stated vs recomputed, amount left unattributed by uncertain groups), decision: conclude, no_changes, conclude_partially_and_ask, decline.public/): vanilla JS; pdf.js (vendored, Apache-2.0) for the side-by-side viewer with highlights; all text inserted with textContent. Look and feel: Tailwind CSS (compiled to public/vendor/tailwind.css), inertial smooth scrolling (Lenis), a three.js hero scene (two floating sheets linked by the changed line, bundled to public/vendor/hero.js) and a floating 3D viewer window; both respect prefers-reduced-motion. Fonts (Bricolage Grotesque, IBM Plex Sans, OFL) are self-hosted. To rebuild the assets: cd frontend && npm install && npm run build (the built files are committed, no build step on Vercel).The comparison itself stays deterministic. On top of it, an optional assistant answers questions about the already computed report ("why doesn't the total add up?", "draft an email to the supplier"). It is off unless ANTHROPIC_API_KEY is set (Vercel → Settings → Environment Variables; optional ANTHROPIC_MODEL, default claude-haiku-4-5-20251001). Without the key the panel is simply hidden.
Guard-rails (offercompare/agent.py, tests/test_agent.py): the model only receives the report (geometry stripped), never the files; the system prompt forbids recomputing or "correcting" amounts and requires source citations; document excerpts are declared as data, not instructions; every figure in the answer is searched in the report and unmatched figures are flagged to the user. Privacy note: when used, the report (not the files) is sent to the Anthropic API.
vercel.json + requirements.txt + api/index.py (FastAPI) + public/ (static). vercel --prod from this folder, or import the GitHub repo in Vercel with the Other preset (the config is in vercel.json).
pdfplumber (pdfminer.six), openpyxl, FastAPI, pdf.js, reportlab/Pillow (test data only). Everything else is written for this test.
Limits: text documents only (no OCR — scans and images are declined on purpose; legacy .xls/.doc refused), FR/EN column and total labels, one currency per document, layouts tested on the included samples only (see DELIVERY_NOTES.md), 2 MB per file.