Zum Hauptinhalt springen
LIVE
CVSS 7.0CVE-2026-138158 | libgphoto2 through 2.5.34 contains a stack buffer overflow in sierra_get_string_register() that lets a malicious sierra-protocol camera or USB device overwrite stack memory. When files are listed, the device can answer the file-name register with an oversized packet, writing up to 32 KB past small stack buffers to cause crashes or possible code execution.CVSS 7.7CVE-2026-138159 | edbrowse through 3.8.19 contains an integer overflow in stringAndBytes() that allows malicious servers to write past a heap buffer by sending response bodies larger than 2 GB. When a user browses to an attacker-controlled HTTP, FTP, or gopher server, the oversized body skips reallocation and corrupts the heap, causing crashes or potentially code execution.CVSS 8.5CVE-2026-138160 | Gammu before 1.45.2 contains a stack-based buffer overflow vulnerability in ReadBackupTextLen() that allows attackers to overwrite stack memory via crafted backup files. Attackers can supply overlong quoted text values decoded into a 10,000-byte stack array during convertbackup, restore, or GSM_ReadBackupFile calls, causing crashes or potential code execution.CVSS 8.5CVE-2026-138161 | Gammu before 1.45.2 contains a buffer overflow vulnerability in LoadBackup() that allows attackers to corrupt memory by supplying an overlong MD5 value in a crafted backup file. Attackers can overwrite adjacent phonebook and calendar entry pointers via strcpy() into MD5Original when files are loaded with convertbackup or restore, causing crashes or potential code execution.CVSS 7.3CVE-2026-138162 | Gammu before 1.45.2 contains a stack-based buffer overflow vulnerability in ALCATEL_EncodeString() that allows attackers to overwrite stack memory via oversized encoded phonebook text. Attackers can supply a crafted backup restored with gammu restore or addnew to an attached Alcatel phone, using GSM extension characters to crash Gammu or potentially execute code.CVSS 8.5CVE-2026-138163 | Gammu before 1.45.2 contains a heap-based buffer overflow in ReadWAPSettingsEntry() that allows attackers to corrupt heap memory via crafted backup files with excess WAP or MMS settings entries. Attackers can supply a backup with more than four TitleNN keys in a [WAPSettings] or [MMSSettings] section, loaded via convertbackup, restore, or GSM_ReadBackupFile, causing crashes or potential code execution.CVSS 4.8CVE-2026-138164 | Gammu before 1.45.2 contains a stack-based buffer overflow vulnerability in SaveBackupText() in backtext.c that allows attackers to corrupt stack memory by supplying long text fields. Attackers can craft a backup with long calendar or note fields that, when converted with gammu convertbackup, writes hex digits past the 10,000-byte stack buffer.CVSS 9.3CVE-2026-138154 | POSTAL 2 before build 26810491 contains a sandbox escape vulnerability that allows malicious Steam Workshop mods to execute code by calling ConsoleCommand with a start file URI. Attackers can ship a batch file in a mod at the predictable workshop install path and launch it via ShellExecuteW, executing commands as the player on Windows.
Alle im Drawer
Intelligence View
⚡ tsecurity.de Intelligence

Local-First RAG Pipeline in Pure Python

Stop Wasting Cloud Budget: Ingest & Chunk Unstructured Local Data in Milliseconds Let's be honest: building Retrieval-Augmented Generation (RAG) pipelines,…

Beitrag
0
Seite
0
↗ Quelle (dev.to)
Quelle & Fakten · 4 Min. Lesezeit
Quelle: dev.to
Rubrik: Programmation sécurisée




Stop Wasting Cloud Budget: Ingest & Chunk Unstructured Local Data in Milliseconds



Let's be honest: building Retrieval-Augmented Generation (RAG) pipelines, context-aware LLM agents, or local semantic search engines is incredibly exciting. What isn't exciting is wasting days writing boilerplate ingestion logic or pulling in bloated, multi-gigabyte frameworks just to split a folder of local Markdown and text files.



When did parsing a local directory and breaking text into clean chunks become so heavy? Monolithic AI orchestrators introduce massive dependency chains, require internet connectivity to calculate basic token metrics, and frequently mangle structural context by splitting text arbitrarily mid-word or mid-sentence.



To solve this exact engineering friction point, I built NexusFlow—a high-performance, zero-configuration local data pipeline engine designed to turn messy local text streams into optimized, context-preserving semantic chunks entirely offline.









Interactive Repository



Check out the full source code, architecture logs, and contribution guidelines natively on GitHub:









RAGMill



PyPI
CI
License: MIT
Python


A lightweight, zero-config local pipeline engine for AI data ingestion, semantic chunking, embeddings, and vector search.



Install




pip install ragmill[all]   # includes PDF + DOCX + embeddings support
# or
pip install ragmill # core only (txt/md), zero dependencies



Developing locally instead? Clone the repo and use an editable install:



pip install -e ".[dev]"
pytest tests/ -v




Usage




Ingest + chunk





from ragmill import RAGEngine

engine = RAGEngine(chunk_size=500, overlap=50)
chunks = engine.execute_pipeline("./my_documents")

for chunk in chunks:
print(chunk["metadata"]["filename"], chunk["content"][:80])



Supports .txt, .md, .log, .rst, .pdf, and .docx out of the box.



Embed + search locally




Requires the embeddings extra (pip install -e ".[embeddings]"). The model
(a quantized MiniLM ONNX export, ~23MB) downloads once to
~/.cache/ragmill/models…







(If you find this project useful for your local workflows, feel free to drop a STAR to support open-source development!)









The Solution: High-Performance Local-First Architecture



RAGMill breaks data preparation into three highly efficient, completely decoupled stages:





  1. The Ingestion Engine: An asynchronous, zero-copy structural directory crawler that streams raw text while keeping your system's memory consumption flat.


  2. The Semantic Chunking Router: Rejects naive character-based thresholds. It uses recursive boundary analysis to split text at natural structural breaks (like double-newlines, markdown headers, and sentence punctuation).


  3. Context Preservation: Dynamically manages sliding-window overlaps to carry vital context across boundaries so your downstream embedding vectors retain optimal meaning.









Quick Start (Under 30 Seconds)



RAGMill is written with strict type-safety, ensuring instant autocomplete support inside modern code editors like Cursor or VS Code.



Install it cleanly from PyPI:




pip install ragmill[all]












The Architectural Deep Dive






Why Custom Regex Over Heavy Tokenizer Dependencies?



Standard tokenizers (like tiktoken or HuggingFace transformers) introduce heavy binaries and active model weight requirements into your environment just to calculate safe text splitting boundaries.



RAGMill optimizes this process using a custom deterministic regex routine. By scoring structural text markers recursively:




  • It keeps logically connected paragraphs completely whole.

  • If a paragraph exceeds the maximum chunk size, it effortlessly steps down to sentence-level token tracking.

  • It safely falls back to safe string slices only as an absolute last resort, keeping execution speed down to a fraction of a millisecond.



The output payload is a highly structured, model-ready JSON-like dictionary containing granular file manifests, index tracking, and character lengths—ready to dump straight into local caches, NumPy arrays, or vector layers like SQLite or Cloud Firestore.









Roadmap & Contributing



RAGMill is built with a lightweight footprint to prevent dependency conflicts across your production applications. Moving forward, the roadmap includes:




  • [ ] Native multi-threaded PDF and unformatted JSON parsing layers.

  • [ ] An ultra-lightweight ONNX runtime vector embedding execution module.

  • [ ] Out-of-the-box pipeline export adapters for common vector databases.



As an open-source project, contributions are incredibly welcome! If you want to add support for extra file abstractions or optimize the regex array, check out our GitHub repository, take a look at the good-first-issue tags, and submit a PR.



How are you optimizing your text ingestion pipelines for RAG systems today? Let's discuss in the comments below!



GitHub: https://github.com/Abdullahbinaqeel/RAGMill

PyPI: https://pypi.org/project/ragmill/

Medium: https://medium.com/@abdulbinaqeel/local-first-rag-pipeline-in-pure-python-1f8fbc79b5de?sharedUserId=abdulbinaqeel

Information ergänzen Fachhinweis, Update, Korrektur oder Quelle zur Meldung beitragen
Gäste-Hinweise werden kurz redaktionell geprüft und danach hier angezeigt.

Community-Hinweise zur Meldung

0 freigegeben
Social ReaktionenReagiere als Erste:r — dein Feedback zählt!
Informations-Bewertung:

💬 Discussion communautaire et commentaires

🌐 Rejoindre le chat principal

Lancez la discussion dans le flux diffusé du Social Chat ou proposez ci-dessus une contribution experte via le formulaire de complément.

Évaluation communautaire & preuve sociale
⭐ Avis des lecteurs
–
Ø / 5.0
Pas encore d'évaluation des lecteurs
Cet article vous a-t-il été utile ?
0
Donner votre évaluation
Évaluation détaillée (facultatif)
Contenu & qualité
Source & fiabilité
Actualité
Briefing sécurité Gratuit · désabonnement en 1 clic

Intelligence Digest — gratuit

Chaque jour, les principales actualités sécurité · résiliable à tout moment

Groupes d’histoires apparentées & sources (IA vectorielle)

6 Cluster
20 sources
Air Purifier Black Friday Sale: Levoit, Blueair (2026)
WIRED il y a 53 min.
19 autres sources
Latest from TechRadaril y a 1 hBlack Friday MacBook deals 2026: even bigger savings on MacBook Neo, MacBook Pro M6, and the new PROLED MacBook Pros as Cyber Monday draws near WIREDil y a 58 min.The Best Black Friday MacBook Deals Take Up to $300 Off The Vergeil y a 58 min.A tech girlie’s Black Friday guide to fabulous nails WIREDil y a 1 hThe Best Black Friday Action Camera Deals (2026) Latest from Windows Centralil y a 1 hBought a new PC or monitor on Black Friday? Don't plug it into a cheap power strip Latest from TechRadaril y a 1 hHere’s the best Black Friday MacBook Air deal available right now Latest from TechRadaril y a 2 hI've reviewed a whole host of docking stations — here are the 8 worth buying in the holiday deals now Black Friday is done Latest from TechRadaril y a 2 hFastestVPN vs PrivadoVPN vs Windscribe: which cheap VPN should you buy this Black Friday? Latest from TechRadaril y a 2 hWalmart's Black Friday event ends tomorrow — see the 20 best last chance deals on TVs, appliances, laptops, headphones, ahead of Cyber Monday WIREDil y a 2 hBest JBL Black Friday Deals (2026): Save on JBL Flip 7 and More The Vergeil y a 1 hBirdbuddy’s latest smart feeders are still at their low Black Friday prices WIREDil y a 2 hBest Black Friday Meal Kit Deals: CookUnity, Green Chef, & More Latest from TechRadaril y a 3 hPSA: Samsung's Black Friday event is still ongoing and the retailer has actually dropped prices even further on the Galaxy S26, OLED TVs, headphones, and more Latest from Windows Centralil y a 3 hYou can grab a 15-inch whole Snapdragon X2 Plus laptop for just $599 this Black Friday weekend Latest from Windows Centralil y a 3 hBest GTA 6 accessory deals for Black Friday DEV Communityil y a 3 hThe Top Black Friday Deal on r/buildapcsales Came With Canceled Orders CNETil y a 3 hThis Holdover Black Friday Sale Will Save You 20% on Branch’s Well-Built Ergonomic Furniture Latest from TechRadaril y a 4 hHave power at your fingertips with these top power station deals this Black Friday weekend — I've tested some impressive battery systems, here are my top picks from Bluetti, Jackery and more CNETil y a 4 hShopping for a Gearhead? These Car Gifts Are Up to 40% Off for Black Friday and Cyber Monday
Articles similaires
🔍 Verwandte News

Auch interessante Nachrichten Local-First RAG Pipeline in Pure Python

Thematisch verwandte Begriffe: LocalFirst, Pipeline, Pure, Python · 6 Treffer

Laden...

Chargement des vidéos ...

Laden...

Chargement des articles ...

Laden...

Chargement des vidéos ...

Laden...

Chargement des articles ...

Laden...

Chargement des vidéos ...

Laden...

Chargement des articles ...

Laden...

Chargement des vidéos ...

Laden...

Chargement des articles ...

Laden...

Chargement des vidéos ...

💬 Chargement des commentaires…
Sentinel CTI: ONLINE
Tirer pour actualiser
Widgets & Topics
Loading widgets…
Nächster Beitrag