---
title: "Discussion on \"rag 攻击 | 本地靶场搭建 | google AI 响应\" | Hashnode"
description: "Discussion on \"rag 攻击 | 本地靶场搭建 | google AI 响应\". 安装向量库与本地 Embedding 依赖\n(python312) $ pip install chromadb sentence-transformers\n\n\n构建易受攻击的 RAG 靶场代码\n\n创建一个名为 vulnerable_rag.py 的文件\n该脚本模拟了一个企业内部客服/助手系统，具备“检索知识库”和“模拟执行敏感工具（如发送邮件/读取机密）”的能力，且未做任何输入输出隔离\nimpo"
url: "https://hashnode.com/posts/rag-google-ai/6afe67381cc017897d38413a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [rag 攻击 | 本地靶场搭建 | google AI 响应](https://heresy.hashnode.dev/rag-google-ai?utm_source=hashnode&utm_medium=feed)

安装向量库与本地 Embedding 依赖 (python312) $ pip install chromadb sentence-transformers 构建易受攻击的 RAG 靶场代码 创建一个名为 vulnerable\_rag.py 的文件 该脚本模拟了一个企业内部客服/助手系统，具备“检索知识库”和“模拟执行敏感工具（如发送邮件/读取机密）”的能力，且未做任何输入输出隔离 impo

Nov 19 · 3 min read · heresy.hashnode.dev  
Read the article

-   [#rag](https://hashnode.com/tag/rag)
-   [#attack](https://hashnode.com/tag/attack)

## Written by

[Carla Reyes](https://hashnode.com/@Heresy)

@Heresy

  
[View profile](https://hashnode.com/@Heresy)

Anti-Money Laundering

酷愛計算機技術Ardently Love Computer Technology 長期關註反洗錢反欺詐Long-term Focus on Anti-Money Laundering and Anti-Fraud 精通支付結算的技術、系統、流程和製度Proficient in the Technology, System, Process and Institution of Payment and Settlement

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
