Spaces:
Running on Zero
Running on Zero
File size: 7,255 Bytes
f0fae3f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 | """
knowledge_base.py
------------------
A small in-house knowledge base describing generic intralogistics / smart
warehouse concepts (ASRS, AGV/AMR, WMS, conveyor sorting, safety, picking
strategy). This is original written content (not scraped from any vendor
site) used purely as grounding context for the Retrieval-Augmented
Generation (RAG) pipeline that powers the AI Assistant tab.
Each entry has:
id - short unique key
title - human readable title
text - the passage used for retrieval + generation grounding
category - tag used for the retrieval evaluation set
"""
KNOWLEDGE_BASE = [
{
"id": "asrs_overview",
"title": "Automated Storage & Retrieval Systems (AS/RS)",
"category": "equipment",
"text": (
"An Automated Storage and Retrieval System (AS/RS) uses stacker "
"cranes, shuttles, or mini-load systems to automatically place "
"and retrieve pallets, totes, or cartons from high-density "
"racking. AS/RS units are typically monitored for crane cycle "
"time, load/unload faults, and rail or lift motor temperature. "
"When a crane reports a fault code, the standard response is to "
"pause the aisle, dispatch a technician, and reroute retrieval "
"jobs to an adjacent aisle if one is available."
),
},
{
"id": "agv_amr_overview",
"title": "AGVs and Autonomous Mobile Robots (AMR)",
"category": "equipment",
"text": (
"Automated Guided Vehicles (AGV) follow fixed paths such as "
"magnetic tape or wires, while Autonomous Mobile Robots (AMR) "
"navigate dynamically using LiDAR and SLAM mapping. Both are "
"used to move totes between picking stations, buffer zones, and "
"packing lines. Fleet management software assigns tasks based "
"on battery level, current queue length, and distance to the "
"target station. A vehicle blocked for more than a defined "
"timeout is automatically re-routed and flagged for review."
),
},
{
"id": "wms_overview",
"title": "Warehouse Management System (WMS)",
"category": "software",
"text": (
"A Warehouse Management System (WMS) coordinates inbound "
"receiving, put-away, inventory tracking, order picking, "
"packing, and outbound shipping. It integrates with a "
"Warehouse Control System (WCS) that talks directly to "
"conveyors, sorters, and AS/RS controllers in real time. Key "
"WMS metrics include inventory accuracy, order cycle time, and "
"pick rate (lines picked per hour)."
),
},
{
"id": "conveyor_sorting",
"title": "Conveyor and Sortation Systems",
"category": "equipment",
"text": (
"Sortation systems such as cross-belt, tilt-tray, or shoe "
"sorters route totes and parcels to the correct chute based on "
"barcode or RFID reads. Conveyor health is typically monitored "
"through motor current, belt speed, and vibration sensors. A "
"sudden rise in motor temperature combined with increased "
"vibration usually indicates bearing wear or belt misalignment "
"and should trigger a maintenance work order before a jam or "
"unplanned stoppage occurs."
),
},
{
"id": "picking_strategies",
"title": "Order Picking Strategies",
"category": "process",
"text": (
"Common picking strategies include discrete picking (one order "
"at a time), batch picking (multiple orders in one pass), zone "
"picking (pickers assigned to fixed areas), and wave picking "
"(orders released in scheduled waves aligned with shipping "
"cutoffs). Goods-to-person systems, where an AS/RS or AMR "
"brings inventory to a stationary operator, generally reduce "
"walking time and increase pick rate compared to person-to-goods "
"picking."
),
},
{
"id": "predictive_maintenance",
"title": "Predictive Maintenance in Warehouse Equipment",
"category": "maintenance",
"text": (
"Predictive maintenance uses sensor data such as motor "
"temperature, vibration amplitude, and current draw to detect "
"abnormal equipment behaviour before a breakdown occurs. "
"Machine-learning models such as Isolation Forest or "
"autoencoders are commonly trained on historical sensor "
"readings to flag anomalies. Catching a deviation early lets "
"a technician schedule maintenance during a planned downtime "
"window instead of reacting to an unplanned line stoppage."
),
},
{
"id": "safety_protocol",
"title": "Warehouse Safety Protocols",
"category": "safety",
"text": (
"Safety protocols in automated warehouses cover pedestrian "
"separation from AGV/AMR traffic lanes, lockout-tagout (LOTO) "
"procedures before entering an AS/RS aisle, and near-miss "
"incident reporting. Any near-miss or safety incident should be "
"logged immediately with the location, equipment involved, and "
"a brief description, and forwarded to the site safety officer "
"the same shift."
),
},
{
"id": "inventory_accuracy",
"title": "Inventory Accuracy and Cycle Counting",
"category": "process",
"text": (
"Inventory accuracy is usually maintained through cycle "
"counting, where a subset of SKUs or storage locations is "
"counted on a rolling schedule rather than a single annual "
"count. Discrepancies between system quantity and physical "
"quantity above a defined tolerance trigger a recount and, if "
"confirmed, an inventory adjustment transaction in the WMS."
),
},
{
"id": "kpi_overview",
"title": "Core Warehouse KPIs",
"category": "process",
"text": (
"Frequently tracked warehouse KPIs include order accuracy, "
"on-time shipment rate, dock-to-stock time, pick rate (lines "
"per hour), equipment uptime, and inventory turns. Automation "
"projects are typically justified using expected improvements "
"in throughput, labour cost per order, and space utilisation."
),
},
{
"id": "energy_efficiency",
"title": "Energy Efficiency in Automated Warehouses",
"category": "sustainability",
"text": (
"Energy use in automated warehouses can be reduced through "
"regenerative braking on AS/RS cranes and conveyors, "
"variable-frequency drives on motors that scale power to load, "
"and scheduling high-throughput operations to avoid peak "
"electricity tariff windows."
),
},
]
|