Skip to content

prompts: knwu-agent document_library-oprufe batchen (parallel, max 2 rondes, geen tussentekst) #81

Closed

Description

@Atrium0804

Part of #78

Probleem

Traces (python scripts/trace_conversation.py --date 2026-11-13) tonen dat de knwu-agent 4-12 sequentiële document_library-calls doet, elk gevolgd door een LLM-ronde van 10-30s (mistral-large-latest) → 60-180s+ per vraag. De club-agent laat zien dat het kan: 3 parallelle retrievals in één beurt, 18,9s totaal voor een clubvraag. Websearch is géén factor (geen web_search in de trage traces).

Gewenst

Prompt-aanpassing in scripts/prompts/_shared.md (en zo nodig knwu-agent.md):

  • Doe ALLE document_library-opvragingen in één parallelle batch (meerdere tool-calls in één beurt), maximaal 2 retrievingsrondes per vraag.
  • Schrijf géén tekst tussendoor ("ik ga nu … opzoeken"); pas na de retrievals het antwoord formuleren.
  • Bij NK/deelnamerechten-vragen de waarschijnlijke hoofdstukken expliciet noemen: TITEL_20-... - Hoofdstuk 1 - WEDSTRIJDEN, ALGEMEEN.md en Nationale_Besluiten_... - 2. WEGWIELRENNEN.md.

Acceptatiecriteria

Context

Onderdeel van de diagnose in #78 (2026-11-13). Grootste latency-winst van alle tickets.

Activity

  1. added
    ready-for-agent
    on Nov 13, 2026
  2. Atrium0804 commented on Nov 13, 2026

    @Atrium0804
    OwnerAuthor

    Implemented in commits 3f567c5 (#81-84) and 049878b (#85); #80 was al geland in feb92a6. Alle tests groen (274 Python + 42 JS DOM).

  3. added a commit that references this issue on Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions