[Integration]: RAGDefender — filter poisoned passages out of retrieved documents
Maintainer thường phản hồi trong vòng 13 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 1/5
- Thời gian dự kiến
- Dưới một giờ
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- python
- Lĩnh vực
- documentation, machine-learning
Hướng nghiên cứu
The integration page is already written in the branch from PR #749, which the issue says can be reopened against this issue. Review that page against the listed RAGDefender package, component, example, tests, and integration documentation links. Done means the existing integration page is reviewed and the PR is reopened for review.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Stage
Ready: integration exists and works, proposing to list it
Integration or project name
RAGDefender
Integration type
Custom Component
Published package or repo (if it exists)
https://pypi.org/project/ragdefender (install with pip install "ragdefender[haystack]") and https://github.com/SecAI-Lab/RAGDefender
Need or proof of use
The Haystack integration is published, exercised and tested rather than planned:
- The component itself: https://github.com/SecAI-Lab/RAGDefender/blob/main/ragdefender/integrations/haystack.py
- A runnable pipeline using it: https://github.com/SecAI-Lab/RAGDefender/blob/main/examples/integrations/haystack_component.py
- End-to-end notebook, retrieval through generation: https://github.com/SecAI-Lab/RAGDefender/blob/main/examples/integrations/haystack_rag_poisoning_defense.ipynb
- Tests for the integration: https://github.com/SecAI-Lab/RAGDefender/blob/main/tests/integrations/test_haystack.py
- Integration docs: https://github.com/SecAI-Lab/RAGDefender/blob/main/docs/integrations.md
It ships as a declared extra on the published package (ragdefender[haystack], currently 0.3.0, four releases), so a Haystack user installs it without pulling in the other framework adapters.
Why Haystack users would want it: RAGDefenderFilter sits between the retriever and the prompt builder and drops passages that carry knowledge-corruption injections before they reach the LLM. A pipeline that indexes any corpus the operator does not fully control — scraped pages, user uploads, a shared wiki — currently has no in-framework defence against an attacker who gets a crafted passage indexed and retrieved. This is a drop-in component for that gap.
It is the reference implementation of a peer-reviewed method, not a heuristic: "Rescuing the Unpoisoned: Efficient Defense against Knowledge Corruption Attacks on RAG Systems", ACSAC 2025, https://doi.org/10.1109/ACSAC67867.2025.00093
Short description
RAGDefender is a defence component for retrieval-augmented generation pipelines. Its Haystack component, RAGDefenderFilter, takes the documents a retriever returned, removes the ones carrying knowledge-corruption (RAG-poisoning) content, and passes the rest to the prompt builder. Because it is a filter in the pipeline, it needs no change to the retriever, the document store or the generator.
Published on PyPI as ragdefender with a haystack extra; source and paper artifacts at https://github.com/SecAI-Lab/RAGDefender
The integration page itself is already written: it was #749, which was closed under the new process before review. The branch still holds the commit, so I can reopen that PR against this issue once approved rather than rewriting it.
- Ngôn ngữ chính
- Python
- Star
- 114
- Fork
- 324
- Merge trung bình
- 7 ngày 2 giờ
- Pull request đã merge (30 ngày)
- 13
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của deepset-ai/haystack-integrations
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
deepset-ai/haystack-integrations#788 ·
Maintainer thường phản hồi trong vòng 13 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
deepset-ai/haystack-integrations#785 ·
Maintainer thường phản hồi trong vòng 13 ngày
-
[Integration]: Converter StudioĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
deepset-ai/haystack-integrations#783 ·
Maintainer thường phản hồi trong vòng 13 ngày
-
[Integration]: APIVerveĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
deepset-ai/haystack-integrations#782 ·
Maintainer thường phản hồi trong vòng 13 ngày
-
[Integration]: DatacircleĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 62/100
deepset-ai/haystack-integrations#780 ·
Maintainer thường phản hồi trong vòng 13 ngày
Tất cả issue của deepset-ai/haystack-integrations
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
micronaut-projects/micronaut-core#14585 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
langgenius/graphon#443 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG]: Management endpoints /v1/memory/stats and /v1/memory/counts bypass API key authenticationĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
docling-project/docling-serve#788 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Mend: dependency security vulnerability untriaged
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
opensearch-project/cross-cluster-replication#1805 ·
Maintainer thường phản hồi trong vòng 1 ngày