You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clicking the below button on a created chat in Ragna UI does not display chat information
Additionally, the following error logs are generated in console
ERROR:bokeh.server.protocol_handler:error handling message
message: Message 'PATCH-DOC' content: {'events': [{'kind': 'MessageSent', 'msg_type': 'bokeh_event', 'msg_data': {'type': 'event', 'name': 'button_click', 'values': {'type': 'map', 'entries': [['model', {'id': 'p1632'}]]}}}]}
error: KeyError('chunk_size')
Traceback (most recent call last):
File "/home/tazukiswift/.local/lib/python3.10/site-packages/bokeh/server/protocol_handler.py", line 97, in handle
work = await handler(message, connection)
File "/home/tazukiswift/.local/lib/python3.10/site-packages/bokeh/server/session.py", line 94, in _needs_document_lock_wrapper
result = func(self, *args, **kwargs)
File "/home/tazukiswift/.local/lib/python3.10/site-packages/bokeh/server/session.py", line 286, in _handle_patch
message.apply_to_document(self.document, self)
File "/home/tazukiswift/.local/lib/python3.10/site-packages/bokeh/protocol/messages/patch_doc.py", line 104, in apply_to_document
invoke_with_curdoc(doc, lambda: doc.apply_json_patch(self.payload, setter=setter))
File "/home/tazukiswift/.local/lib/python3.10/site-packages/bokeh/document/callbacks.py", line 443, in invoke_with_curdoc
return f()
File "/home/tazukiswift/.local/lib/python3.10/site-packages/bokeh/protocol/messages/patch_doc.py", line 104, in <lambda>
invoke_with_curdoc(doc, lambda: doc.apply_json_patch(self.payload, setter=setter))
File "/home/tazukiswift/.local/lib/python3.10/site-packages/bokeh/document/document.py", line 391, in apply_json_patch
DocumentPatchedEvent.handle_event(self, event, setter)
File "/home/tazukiswift/.local/lib/python3.10/site-packages/bokeh/document/events.py", line 245, in handle_event
event_cls._handle_event(doc, event)
File "/home/tazukiswift/.local/lib/python3.10/site-packages/bokeh/document/events.py", line 280, in _handle_event
cb(event.msg_data)
File "/home/tazukiswift/.local/lib/python3.10/site-packages/bokeh/document/callbacks.py", line 390, in trigger_event
model._trigger_event(event)
File "/home/tazukiswift/.local/lib/python3.10/site-packages/bokeh/util/callback_manager.py", line 113, in _trigger_event
self.document.callbacks.notify_event(cast(Model, self), event, invoke)
File "/home/tazukiswift/.local/lib/python3.10/site-packages/bokeh/document/callbacks.py", line 260, in notify_event
invoke_with_curdoc(doc, callback_invoker)
File "/home/tazukiswift/.local/lib/python3.10/site-packages/bokeh/document/callbacks.py", line 443, in invoke_with_curdoc
return f()
File "/home/tazukiswift/.local/lib/python3.10/site-packages/bokeh/util/callback_manager.py", line 109, in invoke
cast(EventCallbackWithEvent, callback)(event)
File "/home/tazukiswift/.local/lib/python3.10/site-packages/panel/reactive.py", line 494, in _server_event
self._comm_event(doc, event)
File "/home/tazukiswift/.local/lib/python3.10/site-packages/panel/reactive.py", line 481, in _comm_event
state._handle_exception(e)
File "/home/tazukiswift/.local/lib/python3.10/site-packages/panel/io/state.py", line 440, in _handle_exception
raise exception
File "/home/tazukiswift/.local/lib/python3.10/site-packages/panel/reactive.py", line 479, in _comm_event
self._process_bokeh_event(doc, event)
File "/home/tazukiswift/.local/lib/python3.10/site-packages/panel/reactive.py", line 416, in _process_bokeh_event
self._process_event(event)
File "/home/tazukiswift/.local/lib/python3.10/site-packages/panel/widgets/button.py", line 247, in _process_event
self.clicks += 1
File "/home/tazukiswift/.local/lib/python3.10/site-packages/param/parameterized.py", line 525, in _f
instance_param.__set__(obj, val)
File "/home/tazukiswift/.local/lib/python3.10/site-packages/param/parameterized.py", line 527, in _f
return f(self, obj, val)
File "/home/tazukiswift/.local/lib/python3.10/site-packages/param/parameters.py", line 542, in __set__
super().__set__(obj,val)
File "/home/tazukiswift/.local/lib/python3.10/site-packages/param/parameterized.py", line 527, in _f
return f(self, obj, val)
File "/home/tazukiswift/.local/lib/python3.10/site-packages/param/parameterized.py", line 1545, in __set__
obj.param._call_watcher(watcher, event)
File "/home/tazukiswift/.local/lib/python3.10/site-packages/param/parameterized.py", line 2486, in _call_watcher
self_._execute_watcher(watcher, (event,))
File "/home/tazukiswift/.local/lib/python3.10/site-packages/param/parameterized.py", line 2468, in _execute_watcher
watcher.fn(*args, **kwargs)
File "/home/tazukiswift/.local/lib/python3.10/site-packages/ragna/_ui/central_view.py", line 259, in on_click_chat_info_wrapper
"Chunk size": self.current_chat["metadata"]["params"]["chunk_size"],
KeyError: 'chunk_size'
If using a vector database like chromadb a slightly different error is created.
ERROR:bokeh.server.protocol_handler:error handling message
message: Message 'PATCH-DOC' content: {'events': [{'kind': 'MessageSent', 'msg_type': 'bokeh_event', 'msg_data': {'type': 'event', 'name': 'button_click', 'values': {'type': 'map', 'entries': [['model', {'id': 'p1810'}]]}}}]}
error: KeyError('max_new_tokens')
Traceback (most recent call last):
File "/home/tazukiswift/.local/lib/python3.10/site-packages/bokeh/server/protocol_handler.py", line 97, in handle
work = await handler(message, connection)
File "/home/tazukiswift/.local/lib/python3.10/site-packages/bokeh/server/session.py", line 94, in _needs_document_lock_wrapper
result = func(self, *args, **kwargs)
File "/home/tazukiswift/.local/lib/python3.10/site-packages/bokeh/server/session.py", line 286, in _handle_patch
message.apply_to_document(self.document, self)
File "/home/tazukiswift/.local/lib/python3.10/site-packages/bokeh/protocol/messages/patch_doc.py", line 104, in apply_to_document
invoke_with_curdoc(doc, lambda: doc.apply_json_patch(self.payload, setter=setter))
File "/home/tazukiswift/.local/lib/python3.10/site-packages/bokeh/document/callbacks.py", line 443, in invoke_with_curdoc
return f()
File "/home/tazukiswift/.local/lib/python3.10/site-packages/bokeh/protocol/messages/patch_doc.py", line 104, in <lambda>
invoke_with_curdoc(doc, lambda: doc.apply_json_patch(self.payload, setter=setter))
File "/home/tazukiswift/.local/lib/python3.10/site-packages/bokeh/document/document.py", line 391, in apply_json_patch
DocumentPatchedEvent.handle_event(self, event, setter)
File "/home/tazukiswift/.local/lib/python3.10/site-packages/bokeh/document/events.py", line 245, in handle_event
event_cls._handle_event(doc, event)
File "/home/tazukiswift/.local/lib/python3.10/site-packages/bokeh/document/events.py", line 280, in _handle_event
cb(event.msg_data)
File "/home/tazukiswift/.local/lib/python3.10/site-packages/bokeh/document/callbacks.py", line 390, in trigger_event
model._trigger_event(event)
File "/home/tazukiswift/.local/lib/python3.10/site-packages/bokeh/util/callback_manager.py", line 113, in _trigger_event
self.document.callbacks.notify_event(cast(Model, self), event, invoke)
File "/home/tazukiswift/.local/lib/python3.10/site-packages/bokeh/document/callbacks.py", line 260, in notify_event
invoke_with_curdoc(doc, callback_invoker)
File "/home/tazukiswift/.local/lib/python3.10/site-packages/bokeh/document/callbacks.py", line 443, in invoke_with_curdoc
return f()
File "/home/tazukiswift/.local/lib/python3.10/site-packages/bokeh/util/callback_manager.py", line 109, in invoke
cast(EventCallbackWithEvent, callback)(event)
File "/home/tazukiswift/.local/lib/python3.10/site-packages/panel/reactive.py", line 494, in _server_event
self._comm_event(doc, event)
File "/home/tazukiswift/.local/lib/python3.10/site-packages/panel/reactive.py", line 481, in _comm_event
state._handle_exception(e)
File "/home/tazukiswift/.local/lib/python3.10/site-packages/panel/io/state.py", line 440, in _handle_exception
raise exception
File "/home/tazukiswift/.local/lib/python3.10/site-packages/panel/reactive.py", line 479, in _comm_event
self._process_bokeh_event(doc, event)
File "/home/tazukiswift/.local/lib/python3.10/site-packages/panel/reactive.py", line 416, in _process_bokeh_event
self._process_event(event)
File "/home/tazukiswift/.local/lib/python3.10/site-packages/panel/widgets/button.py", line 247, in _process_event
self.clicks += 1
File "/home/tazukiswift/.local/lib/python3.10/site-packages/param/parameterized.py", line 525, in _f
instance_param.__set__(obj, val)
File "/home/tazukiswift/.local/lib/python3.10/site-packages/param/parameterized.py", line 527, in _f
return f(self, obj, val)
File "/home/tazukiswift/.local/lib/python3.10/site-packages/param/parameters.py", line 542, in __set__
super().__set__(obj,val)
File "/home/tazukiswift/.local/lib/python3.10/site-packages/param/parameterized.py", line 527, in _f
return f(self, obj, val)
File "/home/tazukiswift/.local/lib/python3.10/site-packages/param/parameterized.py", line 1545, in __set__
obj.param._call_watcher(watcher, event)
File "/home/tazukiswift/.local/lib/python3.10/site-packages/param/parameterized.py", line 2486, in _call_watcher
self_._execute_watcher(watcher, (event,))
File "/home/tazukiswift/.local/lib/python3.10/site-packages/param/parameterized.py", line 2468, in _execute_watcher
watcher.fn(*args, **kwargs)
File "/home/tazukiswift/.local/lib/python3.10/site-packages/ragna/_ui/central_view.py", line 266, in on_click_chat_info_wrapper
"Max new tokens": self.current_chat["metadata"]["params"][
KeyError: 'max_new_tokens'
The text was updated successfully, but these errors were encountered:
Bug description
Clicking the below button on a created chat in Ragna UI does not display chat information
Additionally, the following error logs are generated in console
How to reproduce the bug?
ragna init
, testing shows the configuration does not affect this bugragna ui
and connect tolocalhost:port
Versions and dependencies used
v0.1.1
3d8541f15ca187b6ef01d49e40db8f33fc9d7ec4
(tags/v0.1.1)3.10.12
Linux Mint 21.2 (Victoria)
Anything else?
If using a vector database like chromadb a slightly different error is created.
The text was updated successfully, but these errors were encountered: