Improve behavior of simple reasoning (#157)

* Add base reasoning implementation

* Provide explicit async and streaming capability

* Allow refreshing the information panel
This commit is contained in:
Duc Nguyen (john)
2024-03-12 13:03:38 +07:00
committed by GitHub
parent cb01d27d19
commit 2950e6ed02
7 changed files with 174 additions and 28 deletions

View File

@@ -209,7 +209,10 @@ class ChatPage(BasePage):
if "output" in response:
text += response["output"]
if "evidence" in response:
refs += response["evidence"]
if response["evidence"] is None:
refs = ""
else:
refs += response["evidence"]
if len(refs) > len_ref:
print(f"Len refs: {len(refs)}")