Skip to content

Tags

#llm

Large language models in production: prompting, retrieval, evals, costs and failure modes.

19 posts

Posts tagged #llm

  1. Question

    RAG retrieve the correct chunk but model still answer wrong, why?

    After fixing our retrieval (thanks for the help in my other post), now I see a different problem. In maybe 10% of the failed eval cases, the correct chunk IS in the context, I check it, but the model still answer wrong. Example: chunk say return window is 7 days for electronics and 30 days for clothes. Customer ask about headphones, bot say 30 days. Our context has 5 chunks, about 3000 tokens total, the correct one…

    Nguyen Minh Anh2likes3comments

  2. Question

    How are you versioning prompts together with their eval results?

    A practical question rather than an opinion, for once. We have about 30 prompts in production across six features, and each has an eval set. Today the prompts live in the application repo as text files, eval results go into a spreadsheet, and the link between "this prompt version" and "these scores" is a commit hash someone pastes into a cell. It works until it does not: last week nobody could tell me which version…

    Dana Kowalski10likes7comments

  3. Article

    What I learn after 3 months building eval set for our support bot

    Three months ago our support bot go to production. Two weeks after, it tell a customer there is a discount code "SALE50". There was no such code. Customer was very angry, my boss was more angry. This is how we started to take evals seriously. Here is what I learn, maybe useful for someone. 1. Start from real conversations, not invented questions At first we write 50 test questions ourself. Bot pass almost all. Then…

    Nguyen Minh Anh5likes5comments

  4. Experience

    I logged every AI-assisted coding task for a month. Here is the honest ledger

    I keep asking people to measure, so it is only fair that I did it myself. For September I logged every coding task at work where I used an AI assistant: what it was, how long it took, how long I estimate it would have taken without, and whether I had to fix the output. The estimates are mine and biased; I tried to be conservative in both directions. The ledger tasks logged: 47 clearly faster: 29 (est. 11.5 h saved)…

    Dana Kowalski13likes10comments

  5. Question

    Vietnamese text use 2-3x more tokens than English for same meaning, how you handle cost?

    Hi all, first post here. I build support chatbot for an e-commerce company, customers write in Vietnamese and English. I notice our token cost per conversation is much higher for Vietnamese. I test same FAQ answer in both language, the Vietnamese version is around 2.3x tokens of the English version with the tokenizer of our model. It make two problem: cost per conversation is higher our RAG chunk size is set by…

    Nguyen Minh Anh2likes3comments

  6. Article

    We replaced an LLM feature with a regex and nobody noticed

    This is the regex post I threatened in June. Context: one step of our support pipeline extracts identifiers from inbound emails: order numbers, return authorisation (RMA) codes and carrier tracking numbers. Last year, in the general enthusiasm, this step was moved from a pile of old code to an LLM call: "here is an email, return JSON with any order number, RMA code and tracking number you find". It worked. It demoed…

    Dana Kowalski84likes37comments

  7. Article

    Agent demo vs production: what happened when our 9-out-of-10 demo met 1,200 real tickets

    In the spring we were shown an agent demo: give it a customer request ("I was charged twice, please fix it"), and it reads the account, finds the duplicate charge, issues a refund and writes a reply. Ten scripted requests, nine handled end to end. Leadership was ready to staff down a queue. We ran a four-week shadow pilot instead: the agent processed real tickets in parallel with humans, with its actions logged but…

    Dana Kowalski15likes13comments

  8. Question

    boss wants 'chat with your data' by Q4. anyone actually running LLM-to-SQL for business users?

    hi all. data analyst kat a bank in KL. my boss went to a vendor event and now he wants "chat with your data" for the business users by Q4 lah. type a question in English or Malay, get the answer from our warehouse. sounds very nice on the slide. my worries, maybe I am overthinking: our schema has 600+ tables, column names like TXN_AMT_2 and CUST_FLG_X . even humans don't know what they mean. "revenue" means 3…

    Nurul Aisyah8likes8comments

  9. Article

    The cost-per-request maths nobody does before launch

    Every few weeks somebody tells me an LLM feature will cost "basically nothing" because the per-token price is small. Then the first invoice arrives. Here is the arithmetic I now ask for before anything ships, using a real feature with the numbers rounded. (I am using illustrative prices: $3 per million input tokens and $15 per million output tokens. Plug in your provider's current numbers. The structure is the…

    Dana Kowalski16likes8comments

  10. Question

    If I may ask: how do you use AI for COBOL to Java migration when the bank forbids internet?

    Good evening. I am sorry for my poor English. I am system engineer at an SIer in Osaka and our project is the migration of a regional bank system from COBOL to Java. About 1.8 million lines of COBOL, the oldest parts written in 1987. Many people on this site and in the news say "just use AI for legacy migration". I would like to try, but I have some conditions: The bank does not allow source code to leave the…

    Kazuhiro Yamamoto11likes12comments

  11. Article

    Your model didn't get better, your test set leaked (a checklist)

    A ver. Three times this year a model "improved" by a lot, and three times it was leakage. The last one was a fine-tuned classifier that jumped from 0.81 to 0.93 F1, and my manager already had a slide 🙃 This is the checklist I run now before I believe anything. 1. Exact and near duplicates between train and test The 80% of my leakage problems are this. Customer reviews, support tickets, product descriptions: people…

    Núria Puig19likes7comments

  12. Article

    Postmortem: our support assistant invented a refund policy

    A short postmortem, shared with permission from the team and with details changed enough that I am comfortable posting it. Summary For 41 hours, a retrieval-augmented assistant that drafts replies for our support agents told some customers that orders could be refunded within 60 days. The policy is 30 days. Agents approve every draft before it is sent; 23 drafts with the wrong number were sent anyway. We honoured…

    Dana Kowalski22likes7comments

  13. Article

    How I build evals for an LLM feature (the boring version)

    This topic exists because I kept seeing launches justified with a demo video and a feeling. So here is the first real post: how I evaluate an LLM feature before it ships. Nothing here is novel. That is the point. The feature, for context: classifying inbound support tickets into one of 14 categories and extracting an order ID if there is one. It is currently handled by a gradient-boosted model plus a regex (more on…

    Dana Kowalski33likes14comments

Get the best of Dynamo Geeks weekly

One email each Monday with the most useful posts. No spam; unsubscribe in one click.