类库
› rag-poisoning-lab
urcuqui/rag-poisoning-lab
这是一个RAG投毒安全实验项目,通过将恶意数据注入向量数据库来演示如何污染检索增强生成系统。包含Flask界面、FAISS向量存储和轻量级演示,帮助学习RAG架构、攻击面、投毒技术及防御策略。
技术栈
框架
Tornado
网络
Requests
查看全部依赖 (159)
依赖
Flask
Jinja2
MarkupSafe
NumPy
PyPika
PyYAML
Pydantic
Pygments
SQLAlchemy
Werkzeug
aiohappyeyeballs
aiohttp
aiosignal
annotated-types
anyio
asttokens
attrs
backoff
bcrypt
blinker
build
cachetools
certifi
charset-normalizer
chromadb
click
colorama
coloredlogs
comm
dataclasses-json
debugpy
decorator
distro
durationpy
executing
faiss-cpu
filelock
flatbuffers
frozenlist
fsspec
google-auth
googleapis-common-protos
greenlet
grpcio
h11
httpcore
httptools
httpx
httpx-sse
huggingface-hub
humanfriendly
idna
importlib_metadata
importlib_resources
ipykernel
ipython
ipython_pygments_lexers
itsdangerous
jedi
jiter
joblib
jsonpatch
jsonpointer
jsonschema
jsonschema-specifications
jupyter_client
jupyter_core
kubernetes
langchain
langchain-classic
langchain-community
langchain-core
langchain-openai
langchain-text-splitters
langgraph
langgraph-checkpoint
langgraph-prebuilt
langgraph-sdk
langsmith
markdown-it-py
marshmallow
matplotlib-inline
mdurl
mmh3
mpmath
multidict
mypy_extensions
nest-asyncio
networkx
oauthlib
onnxruntime
openai
opentelemetry-api
opentelemetry-exporter-otlp-proto-common
opentelemetry-exporter-otlp-proto-grpc
opentelemetry-proto
opentelemetry-sdk
opentelemetry-semantic-conventions
orjson
ormsgpack
overrides
packaging
parso
pillow
platformdirs
posthog
prompt_toolkit
propcache
protobuf
psutil
pure_eval
pyasn1
pyasn1_modules
pybase64
pydantic-settings
pydantic_core
pyproject_hooks
pyreadline3
python-dateutil
python-dotenv
pyzmq
referencing
regex
requests-oauthlib
requests-toolbelt
rich
rpds-py
rsa
safetensors
scikit-learn
scipy
sentence-transformers
shellingham
six
sniffio
stack-data
sympy
tenacity
threadpoolctl
tiktoken
tokenizers
torch
tqdm
traitlets
transformers
typer
typing-inspect
typing-inspection
typing_extensions
urllib3
uvicorn
watchfiles
wcwidth
websocket-client
websockets
xxhash
yarl
zipp
zstandard
截图