Stream answers token by token in the Assistant
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 76/100
Rechercherichtung
Read gknowledge/providers/chatgpt.py and trace how _stream() handles response.output_text.delta events through gknowledge/core/query.py into gknowledge/ui/window.py's _on_ask(). Start with make test and use make start to try the demo; add the optional provider callback and UI updates through GLib.idle_add. Done means answers appear as they arrive and offline mode still works.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
The ChatGPT provider already receives the answer as a stream, but the Assistant shows Thinking… for several seconds and then everything at once.
Where to look
gknowledge/providers/chatgpt.py:_stream()collectsresponse.output_text.deltaevents.gknowledge/core/query.py:QueryEngine.query().gknowledge/ui/window.py:_on_ask().
Done when
- Providers can take an optional
on_deltacallback. - The Assistant appends text as it arrives (via
GLib.idle_add). - Offline mode keeps working unchanged.
New here? Run make start to open a demo project that restarts on every save, and make test for the core tests. See CONTRIBUTING.md. Comment below to claim the issue.
- Vorherrschende Sprache
- Python
- Sterne
- 13
- Forks
- 0
- Ø Merge
- 17 Min.
- Gemergte PRs (30 T.)
- 4
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus openapi/gknowledge
-
area: docs good first issue translation
Schwierigkeit 2/5 Ein halber Tag Anfängerfreundlichkeit 62/100
openapi/gknowledge#40 ·
-
area: docs good first issue translation
Schwierigkeit 2/5 1-2 Tage Anfängerfreundlichkeit 62/100
openapi/gknowledge#39 ·
-
area: docs good first issue translation
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
openapi/gknowledge#37 ·
-
area: docs good first issue translation
Schwierigkeit 2/5 Ein halber Tag Anfängerfreundlichkeit 70/100
openapi/gknowledge#36 ·
-
area: docs good first issue translation
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
openapi/gknowledge#35 ·
Alle Issues in openapi/gknowledge
Ähnliche Issues
-
Questions crashes on a real SQuAD2 no-answer predictionEvtl. vergeben @HuaTNA hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag
-
GST is read as Gulf Standard Time (UTC+4) instead of Guam Standard Time (UTC+10)Evtl. vergeben @yang00333 hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
DOI-USGS/dataretrieval-python#454 ·
Maintainer antworten meist innerhalb von 4 Tagen
-
area:core-platform effort:S priority:P3 status:in-review type:test
Schwierigkeit 2/5 Unter einer Stunde Anfängerfreundlichkeit 80/100
randomparity/kdive#3246 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Requantification library converts m/z to mass with the hydrogen-atom mass instead of the proton massOffenbug
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 85/100
nf-core/metaboigniter#130 ·
Maintainer antworten meist innerhalb von 1 Tag
-
netbox status: needs owner type: documentation
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 75/100
netbox-community/netbox#23412 · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag