<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Seven Billion Analytics</title>
    <description>The latest articles on DEV Community by Seven Billion Analytics (@seven_billion_ffd761d9574).</description>
    <link>https://dev.to/seven_billion_ffd761d9574</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4074187%2Faabee2d1-7109-408c-8b51-8c4843d2e1be.png</url>
      <title>DEV Community: Seven Billion Analytics</title>
      <link>https://dev.to/seven_billion_ffd761d9574</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/seven_billion_ffd761d9574"/>
    <language>en</language>
    <item>
      <title>MRP Is Correct and Still Wrong: A Worked Example</title>
      <dc:creator>Seven Billion Analytics</dc:creator>
      <pubDate>Wed, 14 Oct 2026 13:02:56 +0000</pubDate>
      <link>https://dev.to/seven_billion_ffd761d9574/mrp-is-correct-and-still-wrong-a-worked-example-d0l</link>
      <guid>https://dev.to/seven_billion_ffd761d9574/mrp-is-correct-and-still-wrong-a-worked-example-d0l</guid>
      <description>&lt;p&gt;If you work on ERP integrations, you will meet MRP sooner or later. It is worth understanding exactly what it computes, because its blind spot explains a lot of support tickets from the shop floor.&lt;/p&gt;

&lt;p&gt;Take an illustrative snack maker. The master production schedule says week 3 needs 11,000 cases of a 200 g pack. That figure came from a 12,000-case forecast, minus 2,000 in stock, plus a 1,000-case buffer.&lt;/p&gt;

&lt;p&gt;MRP now runs three steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Explode the BOM.&lt;/strong&gt; Each case needs 24 pouches of film, so 11,000 cases need 264,000 pouches.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Net against stock.&lt;/strong&gt; There are 64,000 pouches on hand, leaving 200,000 to buy.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Offset by lead time.&lt;/strong&gt; The supplier needs two weeks, so the purchase order releases two weeks before week 3.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Clean, deterministic, and correct. Now notice what is missing. Nothing in that calculation checks whether the packing line can run 11,000 cases in that week alongside everything else. Nothing knows that two big orders share a due date and pile onto Tuesday. Nothing prices the changeovers between flavours. MRP assumes infinite capacity and fixed lead times, on purpose.&lt;/p&gt;

&lt;p&gt;Most ERPs add a rough-cut capacity check by work center and week. It might say packing is at 90%, which looks fine, while one day inside that week is badly overloaded. RCCP tells you a week is too full. It does not tell you which order to move.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Takeaway for developers:&lt;/strong&gt; if you are building reports or alerts on ERP data, do not treat MRP planned orders as a schedule. They are material timing. A schedule needs a finite model where every resource has a calendar and setups are sequence-dependent. Label your dashboards accordingly and you will avoid a whole class of confused users.&lt;/p&gt;

&lt;p&gt;That finite layer is what our &lt;a href="https://www.sevenbillion.co/accelerators/production-planning" rel="noopener noreferrer"&gt;finite capacity production scheduling&lt;/a&gt; accelerator adds, reading from the ERP and writing back only approved plans.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Full comparison of MPS, MRP and APS:&lt;/strong&gt; &lt;a href="https://www.sevenbillion.co/blog/mps-vs-mrp-vs-aps-mid-size-manufacturers?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=mps-mrp-aps" rel="noopener noreferrer"&gt;MRP vs APS vs MPS: What Each Layer Decides&lt;/a&gt;&lt;/p&gt;

</description>
      <category>erp</category>
      <category>supplychain</category>
      <category>manufacturing</category>
      <category>algorithms</category>
    </item>
    <item>
      <title>Scheduling Is a Constraint Problem Before It Is an AI Problem</title>
      <dc:creator>Seven Billion Analytics</dc:creator>
      <pubDate>Wed, 14 Oct 2026 13:01:51 +0000</pubDate>
      <link>https://dev.to/seven_billion_ffd761d9574/scheduling-is-a-constraint-problem-before-it-is-an-ai-problem-3g5b</link>
      <guid>https://dev.to/seven_billion_ffd761d9574/scheduling-is-a-constraint-problem-before-it-is-an-ai-problem-3g5b</guid>
      <description>&lt;p&gt;If you are a developer handed a "make our factory schedule smarter" ticket, the first instinct is often to reach for a model. Resist it for a moment. Production scheduling is mostly a constraint satisfaction problem, and the hard part is getting the constraints right.&lt;/p&gt;

&lt;p&gt;Here is the shape of it. Inputs come from the ERP: production orders, routings, bills of materials, work-center calendars and stock. Then come the limits. Line capacity, shifts and operator skills, maintenance windows, tooling, material arrival dates, and sequence-dependent changeover times from a changeover matrix. Then the odd plant-specific rules. One dairy plant we built for had to respect blast-freezer curves, because a run that clashes with freezer capacity simply cannot happen.&lt;/p&gt;

&lt;p&gt;The solver underneath is a constraint-programming and mixed-integer model (CP-SAT or MILP). Its job is not to find one perfect answer. It returns several feasible plans that trade changeovers against overtime against late orders, fast enough for a person to compare them. In that dairy case, a week of plans comes back in 90 seconds.&lt;/p&gt;

&lt;p&gt;The key concept is &lt;strong&gt;finite capacity&lt;/strong&gt;. Basic ERP logic usually assumes every machine has unlimited capacity, so it can load three weeks of work onto a line that has two. A finite model only places an operation where a resource actually has room, which is why its output can run as written.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Takeaway for builders:&lt;/strong&gt; the most valuable artifact in these projects is often not code. It is the written list of rules that until now lived in a senior planner's head. Many of them have never been documented anywhere. Spend your first session extracting and encoding those rules, and the solver work gets much easier.&lt;/p&gt;

&lt;p&gt;The approved plan then goes back to the ERP or MES with an audit trail, and the ERP stays the system of record. Our &lt;a href="https://www.sevenbillion.co/accelerators/production-planning" rel="noopener noreferrer"&gt;AI production scheduling&lt;/a&gt; page shows how that integration is structured.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Full walkthrough, step by step:&lt;/strong&gt; &lt;a href="https://www.sevenbillion.co/blog/how-mid-size-manufacturers-schedule-production-with-ai?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=ai-scheduling" rel="noopener noreferrer"&gt;How to Schedule Production with AI: A Guide&lt;/a&gt;&lt;/p&gt;

</description>
      <category>optimization</category>
      <category>operationsresearch</category>
      <category>manufacturing</category>
      <category>ai</category>
    </item>
    <item>
      <title>Designing RAG for Lawyers: Refusal Is a Feature</title>
      <dc:creator>Seven Billion Analytics</dc:creator>
      <pubDate>Wed, 14 Oct 2026 13:01:36 +0000</pubDate>
      <link>https://dev.to/seven_billion_ffd761d9574/designing-rag-for-lawyers-refusal-is-a-feature-2cfp</link>
      <guid>https://dev.to/seven_billion_ffd761d9574/designing-rag-for-lawyers-refusal-is-a-feature-2cfp</guid>
      <description>&lt;p&gt;Building retrieval-augmented generation for a law firm teaches you something general chat products tend to hide: the most important output is sometimes "I can't answer that."&lt;/p&gt;

&lt;p&gt;The pattern itself is familiar. Ingest the firm's corpus (briefs, memos, contracts, matter files, playbooks), usually from SharePoint, iManage or a document store. Group it into matter workspaces. At query time, retrieve passages by meaning, then generate an answer only from what was retrieved, with a numbered citation per claim that links back to the source paragraph.&lt;/p&gt;

&lt;p&gt;Three design choices matter more than model choice:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Semantic retrieval.&lt;/strong&gt; Lawyers ask questions the way a partner would. "Who carries the risk if the platform leaks customer data" should surface indemnity and confidentiality clauses even if neither contains the word "leak." On one SEC filing search project, plain-English queries ran 3.4x faster than the 256-character Boolean strings analysts had been writing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hard refusal.&lt;/strong&gt; If retrieval does not support an answer, the system says so and stops. Filling gaps with something plausible is exactly the behaviour you are designing out.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Human gate in the pipeline.&lt;/strong&gt; Drafts come back as tracked changes with Accept or Reject per change. Nothing is filed or sent until an attorney signs off, and that event is logged.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Corpus condition also beats corpus size. Clean case law ingests quickly. Twenty years of scanned matter files need cleanup first, and that work shows up in the estimate.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Takeaway for engineers:&lt;/strong&gt; write your evaluation set before you tune anything. Use research the firm's team already did by hand, measure precision and recall against it, and add missed-case audits on live work. Those numbers, not demo impressions, should decide whether the system goes to production.&lt;/p&gt;

&lt;p&gt;For scope, integrations and how a build runs, see our &lt;a href="https://www.sevenbillion.co/solutions/legal-ai-compliance-analytics" rel="noopener noreferrer"&gt;custom legal AI for law firms&lt;/a&gt; service page.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Full step-by-step architecture:&lt;/strong&gt; &lt;a href="https://www.sevenbillion.co/blog/how-custom-legal-ai-works-for-law-firms?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=legal-ai" rel="noopener noreferrer"&gt;Custom Legal AI for Law Firms: How It Works&lt;/a&gt;&lt;/p&gt;

</description>
      <category>rag</category>
      <category>llm</category>
      <category>legaltech</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
