---
title: "Discussion on \"rag 攻击 | 本地靶场搭建 | duck AI 响应\" | Hashnode"
description: "Discussion on \"rag 攻击 | 本地靶场搭建 | duck AI 响应\". 安装依赖并下载模型\n\n(python312) $ pip install huggingface_hub\n\n将以下内容保存为 download_models.py 这是下载模型的代码\nfrom pathlib import Path\nfrom huggingface_hub import hf_hub_download\n\nMODEL_DIR = Path(\"models\")\nMODEL_DIR.m"
url: "https://hashnode.com/posts/rag-duck-ai/6afe6274422e0697068bb752"
---

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

Discussion

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

安装依赖并下载模型 (python312) $ pip install huggingface\_hub 将以下内容保存为 download\_models.py 这是下载模型的代码 from pathlib import Path from huggingface\_hub import hf\_hub\_download MODEL\_DIR = Path("models") MODEL\_DIR.m

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

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

## 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.
