From 1ff5f429c4aa140d52257e80a03a251189326d20 Mon Sep 17 00:00:00 2001 From: Andreas Knuth Date: Sun, 12 Jul 2026 17:36:58 -0500 Subject: [PATCH] asdasd --- bayarea-ai-server/docker-compose.yml | 4 ++-- vision_runner.ts | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/bayarea-ai-server/docker-compose.yml b/bayarea-ai-server/docker-compose.yml index b780837..29fa60b 100644 --- a/bayarea-ai-server/docker-compose.yml +++ b/bayarea-ai-server/docker-compose.yml @@ -107,7 +107,7 @@ services: - -fa - "on" - -c - - "32768" + - "40960" - --parallel - "1" # KV-Cache quantisieren — 32GB VRAM, 35B-A3B + mmproj + Bildkontext: @@ -121,7 +121,7 @@ services: - --image-min-tokens - "1024" - --image-max-tokens - - "4096" + - "6144" - --temp - "0.1" - --top-p diff --git a/vision_runner.ts b/vision_runner.ts index 26e9387..03ca9ca 100644 --- a/vision_runner.ts +++ b/vision_runner.ts @@ -305,7 +305,9 @@ Task: Classify the document and transcribe form fields from a business brokerage 6. If doc_type is "ca_only": transcribe what the confidentiality agreement page offers — the prospective buyer's printed or signed name into prospective_buyer, plus address/phone/email if they appear on that page. Everything not present stays null. 7. date_of_introduction_raw: the date written next to the buyer's signature on the confidentiality agreement page, verbatim (e.g. "6/25/26"), else null. -A blank field, "N/A", "n", or an empty line = transcribe it as written; if truly empty, use null. Return only the JSON object.`; +A blank field, "N/A", "n", or an empty line = transcribe it as written; if truly empty, use null. +Handwriting rules: Transcribe handwritten values letter by letter — do NOT complete them from context or from other fields. Email addresses are the most reliable spelling source on the page: read the email character by character, and if a handwritten name is ambiguous (e.g. B vs D), prefer the spelling that appears in the email address. Never alter the email itself to match your reading of the name. +Return only the JSON object.`; async function fetchModelId(api: string): Promise { try {