YazılımSoftware··3 dk okuma4 min read
Şartname okuyan asistan: 46 parametre, bir sürü istisnaThe spec-reading assistant: 46 parameters and a lot of exceptions
Teklif hazırlamanın en sıkıcı kısmı, kırk sayfalık bir şartnameden kırk altı değeri bulup seçim programına elle girmek. Bu işi yarı otomatik hâle getirdiğimizde teklif süresi %43 kısaldı. Tam otomatiğe ise bilerek gitmedik.The dullest part of preparing a quotation is digging forty-six values out of a forty-page specification and typing them into the selection program by hand. When we made that semi-automatic, quotation time dropped by 43%. Going fully automatic was something we decided against, on purpose.
Bir fan duvarı teklifi için seçim programına girilecek bilgiler bellidir: debi, dış statik basınç, yedeklilik seviyesi, motor koruma sınıfı, ses sınırı, filtre sınıfı, panel kalınlığı, bağlantı tipi, besleme gerilimi, istenen sertifikalar. Liste uzar gider. Oturup saydığımızda kırk altı parametre çıktı.
Hepsi şartnamede yazıyor. Sorun, nerede yazdıkları. Kırk sayfaya dağılmışlar; biri tabloda, biri dipnotta, bir başkası "ilgili standarda uygun olacaktır" gibi bir cümlenin içinde dolaylı olarak saklı. Deneyimli bir mühendis hepsini bulur, ama her teklifte aynı aramaya sıfırdan başlar.
İlk deneme ve uydurulan ses değeri
İlk denememizde işi tamamen büyük bir dil modeline verdik: "Bu PDF'ten şu parametreleri çıkar." Sonuç etkileyiciydi. Ta ki modelin, şartnamede hiç geçmeyen bir ses değerini kendinden son derece emin biçimde uydurduğunu görene kadar. Teklifte böyle bir hata, sahada iade demek. Yapıyı ters çevirdik:
- Önce kural tabanlı ayrıştırma. Birimler, anahtar kelimeler, tablo başlıkları: "m³/h", "Pa", "dB(A)", "IP", "N+1". Kalıplar belli olduğu için belgenin yarısından fazlası bu adımda güvenle çıkıyor.
- Sonra dil modeli. Kuralın bulamadığı ya da birden fazla aday bulduğu parametrelerde modele soruyoruz. Ama ondan cevabı istemiyoruz, cevabın geçtiği paragrafı istiyoruz. Belgeden alıntı gösteremeyen cevap kabul edilmiyor.
- En son insan. Kırk altı alanın hepsi tek ekranda, her birinin yanında kaynak paragraf ve bir güven işareti. Mühendis onaylıyor ya da düzeltiyor; değerler seçim programına ancak ondan sonra aktarılıyor.
Uydurulan değerin asıl tehlikesi saçma olmamasıydı. Fan duvarı için makul aralıkta bir ses sınırıydı; kimse durup "bu nereden çıktı" diye sormazdı. Bariz yanlış bir değeri her mühendis yakalar. Tehlikeli olan, makul görünen ve kaynağı olmayan değerdir. Alıntı şartı tam olarak bunun için var: model bir rakam söyleyebilir, ama o rakamın şartnamede hangi cümlede geçtiğini gösteremiyorsa rakam ekrana gelmiyor.
İmza yazılıma devredilmiyor
Neden tam otomatik değil? İlk sebep sorumluluk. Teklifin altında bir mühendisin imzası var ve "yazılım öyle okumuş" bir savunma sayılmaz.
İkinci sebep daha pratik. Tam otomatik bir sistem tutarlı belgeler ister; şartnameler ise tutarlı olmaz. Her müşteri kendi şablonunu kullanıyor. Bazıları tarama PDF gönderiyor, bazılarında Türkçe ile İngilizce aynı sayfada karışıyor, bazılarında aynı değer iki farklı bölümde iki farklı rakamla geçiyor. Bu istisnaları yazılımda tek tek kovalamak bitmeyen bir iş. Üstelik bir kısmının yazılımla çözülebilecek bir cevabı da yok: aynı basınç değeri bir bölümde 1.200, öbüründe 1.500 Pa yazıyorsa hangisinin geçerli olduğu bir okuma meselesi olmaktan çıkar, müşteriye sorulacak bir soruya dönüşür. Biz bu istisnaları insana bıraktık. Yazılım işin tekrar eden kısmını üstleniyor, muhakeme gerektiren kısım mühendiste kalıyor.
Ne değişti
Teklif hazırlama süresi ölçülebilir biçimde %43 kısaldı. Benim için asıl kazanç ise sayıya dökmesi zor olan tarafta duruyor: elle giriş hataları fiilen bitti. Arta kalan zamanın gitmesi gereken yer de belli; şartnamedeki çelişkileri müşteriyle netleştirmek, yazmaktan çok daha değerli bir mühendislik işi.
Eskiden en sık yaşadığımız hata son derece sıradandı. Şartnamede 1.500 Pa yazıyor, seçime 1.050 giriliyordu. Kimse dikkatsiz değildi; kırk sayfa ile bir teslim tarihi bu hatayı kendiliğinden üretiyordu. Şimdi her değer belgeden alıntısıyla birlikte geliyor ve ekranda kaynağıyla yan yana duruyor. Mühendisin işi rakam yazmaktan çıkıp rakamı kaynağıyla karşılaştırmaya dönüştü.
Yorgun bir akşamüstü 1.500'ü 1.050 diye yazmak kolay. Aynı kaymayı, hemen yanında duran kaynak paragrafa bakarken gözden kaçırmak çok daha zor.
What goes into the selection program for a fan wall quotation is well known: airflow, external static pressure, redundancy level, motor protection class, noise limit, filter class, panel thickness, connection type, supply voltage, required certifications. The list keeps going. When we actually sat down and counted, we got forty-six parameters.
Every one of them is in the specification. The trouble is where. They are scattered over forty pages: one in a table, one in a footnote, another tucked indirectly into a sentence like "shall comply with the relevant standard". An experienced engineer will find them all, but starts the same search from scratch on every quotation.
The first attempt and the invented noise value
On our first attempt we handed the whole job to a large language model: "Extract these parameters from this PDF." The result was impressive. Right up until we watched the model invent, with complete confidence, a noise value that appeared nowhere in the specification. A mistake like that in a quotation means a rejected unit on site. So we turned the structure upside down:
- Rule-based parsing first. Units, keywords, table headers: "m³/h", "Pa", "dB(A)", "IP", "N+1". Because the patterns are known, more than half of the document comes out reliably at this step.
- The language model second. For parameters the rules can't find, or find several candidates for, we ask the model. We don't ask it for the answer, though; we ask for the paragraph the answer appears in. If it can't quote the document, the answer is rejected.
- A human last. All forty-six fields on a single screen, each with its source paragraph and a confidence mark. The engineer confirms or corrects, and only then do the values go into the selection program.
The real danger of the invented value was that it wasn't absurd. It was a noise limit well within the plausible range for a fan wall; nobody would have stopped to ask where it came from. Any engineer catches an obviously wrong value. The dangerous one is plausible and has no source. That is exactly what the quotation rule is for: the model may suggest a number, but if it can't show the sentence in the specification where that number appears, the number never reaches the screen.
The signature stays with the engineer
Why not fully automatic? The first reason is responsibility. There is an engineer's signature under the quotation, and "the software read it that way" is no defence.
The second reason is more practical. A fully automatic system needs consistent documents, and specifications are anything but. Every client uses their own template. Some send scanned PDFs, some mix Turkish and English on the same page, and some give the same value two different numbers in two different sections. Chasing those exceptions one by one in software is work that never ends. And some of them have no software answer at all: if one section says 1,200 Pa and another says 1,500 Pa for the same pressure, deciding which one applies is no longer a reading problem. It is a question for the client. We left those exceptions to the human. The software takes the repetitive part of the job, and the part that calls for judgement stays with the engineer.
What changed
Quotation preparation time fell by a measurable 43%. For me, though, the real gain sits on the side that's hard to put into numbers: manual entry errors have effectively disappeared. And it's clear where the time freed up should go: sorting out the contradictions in a specification with the client is far more valuable engineering work than typing.
Our most common mistake used to be thoroughly ordinary. The specification said 1,500 Pa; the selection got 1,050. Nobody was careless. Forty pages and a deadline produced that error all by themselves. Now every value arrives with the quoted passage from the document, side by side with its source on the screen. The engineer's job has shifted from typing numbers to checking them against where they came from.
On a tired late afternoon, typing 1,500 as 1,050 is easy. Missing the same slip while the source paragraph sits right next to the field is a lot harder.