Component
core/security/trustyai-huggingface-detector
TrustyAI's Hugging Face detector: a service that runs one text classifier from the Hugging Face Hub and reports what it detects in the texts a caller sends. For each text posted to its content route with a threshold, it answers with every label the classifier scores at or above it, never the classifier's first label, read as the one for harmless text. It changes nothing and forwards nothing: what to do about a detection is the caller's decision, and core/security/nemo-guardrails is one such caller. The classifier is values.model at values.model_revision. The default, protectai/deberta-v3-base-prompt-injection-v2 (Apache-2.0), labels each text SAFE or INJECTION, and its own model card states that the project which published it is archived and no longer maintained. Another model labels and scores differently, so a caller's labels and thresholds follow it. The verdict misses some attacks and flags some ordinary requests. The weights are fetched where the service runs, never at build time. It authenticates no caller and every text reaches it as sent, so it is published on an in-cluster address only. Its own metrics, in the Prometheus format at /metrics on the same port, are published as `metrics_endpoint`. The Release supplies the image in infra.image and the catalog names none: TrustyAI's published build carries NVIDIA's proprietary CUDA runtime, whose licence agreement limits its use to systems with NVIDIA GPUs, and is published only under a floating tag, whose superseded digests stop resolving. Nothing renders until the Release sets `infra.image`.
Nguồn gốc
- Digest nội dung
- sha256:8f985fb76602947f3d871a7625d6614d76375528aa12e151d26a51559254d630
- Đã xuất bản
- 2026-11-10T10:13:59Z
- Danh tính ký
- https://token.actions.githubusercontent.com/https://github.com/aggrega-ai/aggrega-hub/.github/workflows/catalog-publish-sign.yml@refs/heads/main
Chữ ký
- Chính thứcapplication/vnd.dev.sigstore.bundle.v0.3+json
https://token.actions.githubusercontent.com/https://github.com/aggrega-ai/aggrega-hub/.github/workflows/catalog-publish-sign.yml@refs/heads/main
sha256:c34f4d9c71225ccd5e22a7d802c196dda140050af22eb57aa716bedbe73525f8
Tham chiếu ở phiên bản này
oci://hub.aggrega.ai/component/core/security/trustyai-huggingface-detector:1.0.0Tham số của nhà phát triển
Các giá trị mà nhà phát triển đặt trong Aggregate.
| Tên | Kiểu | Mặc định | Bắt buộc | Mô tả |
|---|---|---|---|---|
| model | string | protectai/deberta-v3-base-prompt-injection-v2 | không | Hugging Face model id of the sequence-classification model the service runs. The default is a prompt-injection classifier labelling each text SAFE or INJECTION; another model labels by its own vocabulary, which a caller's refusal labels must then follow. |
| model_revision | string | 90c9989b1a342275dd0d1a95aad283c04e075671 | không | Revision of values.model to fetch — a commit id, a tag or a branch. The default is the commit of the default model whose scores a caller's thresholds are measured against; set it together with values.model, and main follows the repository's newest revision. |
Định cỡ của người vận hành
Định cỡ hạ tầng mà người vận hành tinh chỉnh theo từng môi trường.
| Tên | Kiểu | Mặc định | Bắt buộc | Mô tả |
|---|---|---|---|---|
| port | integer (min 1024, max 65535) | 8000 | không | Port the service listens on and its Service accepts callers on. Most operators should omit this and let the Recipe assign the default (8000), the port the published image listens on unless told otherwise. |
| image | string | — | có | Image the service and its weights-pull step run, supplied by the Release; the catalog names none. The Recipes run the published build's own server command, log configuration and Hugging Face command-line tool, so the image is TrustyAI's Hugging Face detector or a copy of it. That build carries NVIDIA's proprietary CUDA runtime, whose licence agreement limits its use to systems with NVIDIA GPUs, and is tagged only as latest, under which the registry stops serving a build once the tag moves on, so a Release that must keep one build mirrors it and names the copy here. |
| compute | object | — | không | — |
| model_cache | object | — | không | The volume the pull step writes the weights to and the server reads them from. |
Hợp đồng đầu ra
Các giá trị mà thành phần này xuất bản cho bên tiêu thụ qua cấu trúc liên kết uses.
| Tên | Kiểu | Mặc định | Bắt buộc | Mô tả |
|---|---|---|---|---|
| host | string | — | có | In-cluster DNS name of the Service fronting the detector. Every caller reaching this name can submit text, so it is an address for the component that calls the service rather than one to publish. |
| port | integer | — | có | TCP port that Service accepts callers on. It follows the port an operator set in the Release, so a consumer reads it rather than assuming a default. |
| endpoint | string | — | có | Base URL of the detector's HTTP API, with the host and the port already composed and no path. A caller posts the texts to check to the content route under it. |
| model | string | — | có | Hugging Face model id of the classifier the service loaded, so a caller can record which model gave a verdict. |
| protocol | string | — | không | URL scheme to reach `host` and `port` over, for a consumer composing its own address rather than reading `endpoint`. |
| metrics_endpoint | string | — | không | The full address Prometheus scrapes this component's metrics at — scheme, host, port and path, `http://<host>:<port>/metrics` on the port callers reach. Empty where the component serves none reachable. |
Các socket uses
Các socket phụ thuộc mà thành phần này kết nối qua. Đích của mọi kết nối được nối qua một socket phải thỏa mãn bộ chọn nhãn của socket đó, và mỗi kết nối có thể mang theo phần đính kèm trong các slot mà socket khai báo. Một slot bắt buộc phải được đáp ứng bởi mỗi kết nối mà Aggregate hoặc Release nối qua socket.
Chưa khai báo socket uses nào.
Slot đính kèm
Các điểm liên kết có tên mà tại đó một Feature được gắn vào thành phần này. Bộ chọn của một slot giới hạn Feature nào có thể lấp đầy nó, và danh sách tiêm của slot nêu cách nội dung của Feature có thể được chuyển giao. Một slot bắt buộc phải được liên kết trên mọi thể hiện, bằng một phần đính kèm trên thể hiện đó hoặc ở một phạm vi phía trên nó, và một slot nhạy cảm được khai báo để xử lý nội dung bí mật. Một Feature cũng có thể được gắn dưới một tên mà không slot nào khai báo.
| Slot | Bộ chọn | Bắt buộc | Tiêm | Nhạy cảm | Mô tả |
|---|---|---|---|---|---|
| model_pull_token | feature.aggrega.ai/kind=secret | không | env | có | Optional Hugging Face Hub access token for a gated model. When attached, the weights-pull step receives it as an environment variable, and the server itself never does; unattached, weights are pulled anonymously, which the default model allows. |
Danh sách cho phép tự tiêm
Chưa khai báo đường ống tự tiêm nào.
Quan hệ
Các cạnh có kiểu đi tới và đi từ các thực thể đã xuất bản khác. Một tham chiếu không có đích đã xuất bản được hiển thị là một cạnh bị đứt thay vì một liên kết.
Sử dụng
Thực thể này không sử dụng gì trong danh mục.
Được sử dụng bởi
sử dụng socket «auth_core»
sử dụng socket «auth_core»
sử dụng socket «auth_core»
sử dụng socket «auth_core»
sử dụng socket «upstream»
sử dụng socket «forward_target»
sử dụng socket «scrape_target»
sử dụng socket «store»
sử dụng socket «detector»
sử dụng socket «detector»
sử dụng socket «jailbreak_detection»
áp dụng cho
áp dụng cho
áp dụng cho
áp dụng cho
áp dụng cho
áp dụng cho
áp dụng cho
triển khai
triển khai