Skip to content
View Mar-alf's full-sized avatar

Block or report Mar-alf

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Content in all repositories owned by your account will be closed.
Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
Mar-alf/README.md

mar · Mar-alf

LLM 应用工程 / RAG 与 Agent 落地

把「模型说的话到底有没有依据」当成工程问题:先量化,再优化,再拿同题对照实验证明。

GitHub stats Top languages

在做的事

  • RAG 幻觉治理 —— 把幻觉拆成可复算的指标(无依据仍作答 / 明确拒答 / 回答含未检索材料),同题对照不同 Prompt 与检索策略,让「改了什么、好了多少」可验证。
  • Agent 服务化 —— Skill 决定「怎么问、怎么答」,MySQL / ChromaDB 作为唯一事实来源,FastAPI 只做薄接口层。价格、参数不让模型心算。
  • 把踩坑写成索引 —— 报错现象 → 原因 → 解法,下次 30 秒能定位,而不是重新读一遍文档。

项目

RAG 幻觉治理的对照实验:同一批 50 个问题、同一条生成链路、逐题相同的检索结果,只把 Prompt 从裸指令换成 few-shot + 事实约束,看模型从「编」变成「拒答」。原始输出与当次检索片段全部入库,每条回答都能判断是检索错了还是生成编了。

无依据仍作答 8 → 0 · 明确拒答 1 → 31 · 指标可复算 · Python / ChromaDB / Rank-BM25 / Cross-Encoder / RAGAS

床垫材料智能选购 Agent:需求询问 → 材料推荐 → 材质问答 → 价格计算 → 方案对比。仓库里保留了两版 Skill —— 查库版(MySQL + ChromaDB)与数据内嵌版(零外部依赖),用来对比「数据放哪儿」对部署与维护的实际影响。

3 类 15 种材料 · 5 个接口 · DeerFlow 2.0 / FastAPI / MySQL / ChromaDB

DeerFlow 2.0 / Docker / RAG 落地过程中被卡住的 20 个问题,按「现象 → 原因 → 解法」整理成可检索的排错索引,含当时实际用的命令。

20 条 · 5 类 · Docker / WSL2 / RAG / 容错设计

技术栈

语言      Python · PowerShell
服务      FastAPI · MySQL · ChromaDB
检索       Sentence-Transformers · Rank-BM25 · Cross-Encoder · RRF
评测       RAGAS · LLM-as-judge · 自定义指标复算脚本
模型/平台  DeepSeek API · DeerFlow 2.0

关注的方向

  • 让 RAG 的幻觉与召回问题可度量,而不是靠调参玄学;
  • 让 Agent 的输出可归因 —— 错在检索、错在提示、还是错在生成;
  • 把 demo 做成能交付的服务:接口薄、事实来源唯一、降级路径明确;
  • 只写在代码里能验证的结论:跑过、留档、可复算。

三个项目均以 MIT 协议开源。

Popular repositories Loading

  1. daily_stock_analysis daily_stock_analysis Public

    Forked from ZhuLinsen/daily_stock_analysis

    LLM 驱动的多市场股票智能分析系统:多源行情、实时新闻、决策看板与自动推送,支持零成本定时运行。 LLM-powered multi-market stock analysis system with multi-source market data, real-time news, decision dashboard, automated notifications, and cost…

    Python

  2. rag-soc-search rag-soc-search Public

  3. mattress-advisor mattress-advisor Public

    床垫材料智能选购 Agent:DeerFlow 2.0 Skill + FastAPI + MySQL/ChromaDB,含工具版与数据内嵌版两套 Skill

    Python

  4. rag-hallucination-lab rag-hallucination-lab Public

    RAG 幻觉治理对照实验:BM25+向量混合检索 / RRF 融合 / Cross-Encoder 重排 / few-shot 事实约束,幻觉率 28%→10%

    Python

  5. Mar-alf Mar-alf Public

    个人主页 README —— LLM 应用 / RAG 与 Agent 工程

  6. agent-pitfalls agent-pitfalls Public

    DeerFlow 2.0 / Docker / RAG 落地踩过的 20 个坑:现象 → 原因 → 解法,可检索的排错索引