[Integration]: polanon
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
- 84/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
Hướng nghiên cứu
Đọc trang tích hợp hiện có được nhắc đến trong #730 và so sánh trang đó với thông tin chi tiết và các liên kết về bản phát hành hiện tại của polanon trong issue này. Cập nhật trang để mô tả bản phát hành hiện tại và liên kết đến issue này; công việc hoàn tất khi trang phản ánh các chi tiết đã cung cấp và tác giả có thể mở PR dự kiến.
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
polanon
Integration type
Custom Component
Published package or repo (if it exists)
https://pypi.org/project/polanon/ and https://github.com/boromat/polanon
Need or proof of use
- Published on PyPI under the MIT license.
pip install "polanon[haystack]"adds four Haystack 3 components:PolanonDocumentMasker,PolanonQueryMasker,PolanonRestorerandPolanonStreamRestorer. The current release is 0.4.4. - examples/haystack_rag.py is a complete indexing and query pipeline that runs offline with Haystack's mock embedder and chat generator. examples/haystack_openai.py is the same pipeline with OpenAI.
- CI runs on every commit. It runs the component tests and the offline example against the latest Haystack 3 release and against
haystack-ai==3.0.0, and type-checks the module with Haystack installed. - PolGate, a self-hosted company chat with RAG over attachments, uses the same masking for retrieval without Haystack:
index_chunksandmask_query, whichPolanonDocumentMaskerandPolanonQueryMaskercall. - The use case is RAG over Polish documents such as contracts, invoices, CVs and customer e-mails. Names, PESEL numbers and addresses must not reach a hosted embedder, a vector store or a model (GDPR), but the reader still gets an answer with the real names in it.
Short description
polanon masks personal data reversibly before text reaches an embedder, a document store or a model. It puts the originals back into the answer, also while the answer streams. It is Polish-first: it validates the checksums of Polish identifiers (PESEL, NIP, REGON, ID card, IBAN) and reads Polish names in all seven grammatical cases.
For retrieval, tokens are computed with HMAC-SHA256 under a secret key. The same person gets the same token in every document and in every question, also when the name is in another grammatical case, so a masked question finds the masked passages. What each token stands for stays in the application's own mapping store, never in a document's content, meta or id.
I tested it on 1,000 Polish texts from ai4privacy's OpenPII that it was never tuned on, against Presidio set up for Polish with the same spaCy model:
| polanon | Presidio | |
|---|---|---|
| Values masked whole | 72% | 66% |
| Spans masked outside the values | 306 | 2,641 |
The details are in the benchmarks.
The integration page from #730 is ready; that PR was closed when this process started. Once this is approved, I'll open a PR with the page updated for the current release, linking this issue.
- 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