FEAT GUI: Add paginated seed browsing API
Los mantenedores suelen responder en 1 día
@jacksonsr451 ya está trabajando en esto.
Desde el 25/9/2026.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 48/100
Línea de trabajo
Start with the dataset routes, services, models, MemoryInterface.get_seeds(), the seed/group models, and pyrit/backend/services/pagination.py; also review doc/code/framework.md and existing paging tests. Define the service and query boundaries before implementation, then use local fixtures to verify grouped pagination, search and filter semantics, previews versus full content, errors, and bounded database queries without downloads or model calls.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Is your feature request related to a problem? Please describe.
A dataset name list cannot support a scalable prompt table or a reliable selection for chat/scenarios. The GUI needs bounded retrieval, searchable metadata, and complete logical examples rather than disconnected media pieces.
Work item 2 of 17 in #2744. Technical prerequisite: item 1's dataset identity and count contract. Keep not ready yet until promoted by the maintainer.
Describe the solution you'd like
Add typed, read-only dataset browsing/detail APIs on top of existing seed memory.
- Support bounded server-side pagination with deterministic ordering and stable seed/group identifiers. A page boundary must not split a logical example.
- Support prompt-text search and existing metadata filters, including modality, harm category, and seed type. Document and test filter-combination and category-matching semantics.
- Return compact previews for listing and full content/metadata for an expanded example. Do not send media bytes in the list response.
- Preserve related pieces, roles, and sequence information. A modality match on one member must not silently remove the other members of the selected example.
- Distinguish SeedPrompt, SeedObjective, templates, and simulated-conversation configuration. Browsing must not render templates or generate conversations.
- Retain provenance and identifiers needed by later import/scenario requests. Return repository-standard errors for invalid filters, missing examples, and invalid paging inputs.
Acceptance criteria:
- Multiple pages do not duplicate or omit rows under a stable dataset, and grouped media stays together.
- Search/filter results and counts use the documented semantics.
- Full text is available even when the list preview is truncated.
- Empty results, unnamed datasets, mixed types, missing IDs, and invalid requests have deliberate behavior.
- Queries are bounded at the database layer rather than slicing a fully materialized seed list.
- Tests use local fixtures; reads perform no downloads, writes, model calls, or template execution.
Describe alternatives you've considered, if relevant
Avoid client-side paging of entire datasets, separate GUI storage, or schema migrations. Narrow memory query helpers are acceptable, but selection/presentation policy belongs in the service rather than memory.
Additional context
Start with the dataset routes/service/models, MemoryInterface.get_seeds(), the seed/group models, and pyrit\backend\services\pagination.py. Follow doc\code\framework.md and applicable database/model/test instructions. Reuse existing paging conventions where their contract fits; do not copy attack-history semantics without checking group boundaries.
- Lenguaje dominante
- Python
- Estrellas
- 4.5k
- Forks
- 896
- Merge medio
- 3 d 2 h
- PR fusionados (30 d)
- 210
Preparar el entorno
Aún no hemos revisado los archivos de configuración de este proyecto. Empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de microsoft/PyRIT
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 91/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
Bug: triage GUI help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
microsoft/PyRIT#2868 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
Todos los issues de microsoft/PyRIT
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
PedestrianDynamics/pyFDS-Evac#199 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
521xueweihan/HelloGitHub#3790 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
sandialabs/atlas-ui-3#978 ·
Los mantenedores suelen responder en 1 día
-
area: tests perceived difficulty: 2
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Nitjsefnie-Harness-Commons/daedalus#1255 ·
Los mantenedores suelen responder en 1 día
-
hf-audiolm-qwen: `generate_until` hardcodes `.to("cuda")` and aborts on non-CUDA acceleratorsAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
EleutherAI/lm-evaluation-harness#4256 ·
Los mantenedores suelen responder en 1 día