A privacy-first, fully local Agentic AI legal assistant. Combines multimodal RAG (DeepSeek-R1 + Llama 3.2 Vision) via Telegram for zero-data-leakage contract analysis.
# ⚖️ Contract Buddy An asynchronous, multimodal, and fully localized AI legal assistant deployed via Telegram. Designed with privacy and performance in mind, this project demonstrates advanced Agentic AI architecture, combining Retrieval-Augmented Generation (RAG) with local multimodal vision models to analyze, query, and summarize legal contracts. ## 🧠 Architecture Overview Built to run entirely locally, ensuring zero data leakage for sensitive legal documents. The system dynamically manages VRAM by swapping between reasoning and translation models on the fly. ### 🚀 Core Features (Updated for Milestone 1) * **The Universal Translator Pipeline:** Natively processes legal documents in **English** and **6 Indic Languages** (Hindi, Marathi, Gujarati, Kannada, Tamil, Telugu). * **Smart OCR Extraction:** Bypasses standard vision models in favor of `EasyOCR`, successfully extracting raw Devanagari and Latin scripts from physical document images and handwritten notes. * **Dynamic AI Routing:** Uses a "Translate-Reason-Translate" workflow: * `langdetect` identifies the document language. * `Sarvam-1` (an Indic-optimized LLM) translates regional text into English to prevent hallucination. * `DeepSeek-R1` acts as the core legal brain, running risk analysis on the normalized English text. * `Sarvam-1` translates the final legal analysis back into the user's selected UI language. * **Local RAG Pipeline:** Utilizes `sqlite-vec` for ultra-fast, lightweight vector storage and `sentence-transformers` for embedding contract chunks. * **Stateful Memory:** Implements a custom chat_id-keyed conversational memory buffer, enabling contextual follow-up questions and executive session summaries. * **Asynchronous Routing:** Built with `python-telegram-bot` and `asyncio.to_thread` to prevent API timeouts during heavy local GPU inference. * **Output Sanitization:** Engineered regex layers to cleanly parse and remove internal `<think>` tags from reasoning models. ## 🛠️ Tech S
HAL 分层混合模型工作流 — 强模型(Claude)负责理解/拆解/验收,低成本模型(DeepSeek)负责检索/提取/清洗。Hermes Agent skill。
An LLM agent fine-tuned on DeepSeek for spaced repetition, dynamically integrating knowledge points based on the Ebbinghaus forgetting curve.
基于 STM32F103 构建的端到端 AI 智能手表生态。自研“零重定位”原生机器码动态加载引擎与页面栈式 UI 框架;集成生产级 OTA 回滚保护机制与高带宽(921600 baud)串口协议栈。通过 Node.js 中继实现 DeepSeek AI 语义控制及 ASRPRO 语音全双工交互,是一个集成了分布式计算、现代存储管理与 AI Agent 的嵌入式全栈工程。
A Meta-Agent-Driven Self-Evolving Multi-Agent System for UAV Detection and Tracking
One command to run Hermes AI Agent with a browser UI. Zero prerequisites. 一行命令,AI 就位。
网页应用Agent,接入DeepSeek、Mimo等模型