Skip to content

Commit 295b3f8

Browse files
authored
refactor(ui): redesign history UI, allow history configuration in config (#744)
1 parent f5a4fb2 commit 295b3f8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+1121
-960
lines changed

examples/chat/chat.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ class MyChat(ChatInterface):
8686
),
8787
)
8888

89+
conversation_history = True
90+
8991
def __init__(self) -> None:
9092
self.llm = LiteLLM(model_name="gpt-4o-mini")
9193

packages/ragbits-chat/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
- Added unit tests for UI's core components (#717)
1010
- Added share functionality with informative modal (#726)
1111
- Added persisent chat history to the default UI using IndexedDB (#732)
12+
- Redesigned history UI, allowed enabling of client side history using config (#744)
1213

1314
## 1.1.0 (2025-07-09)
1415

packages/ragbits-chat/src/ragbits/chat/api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ async def config() -> JSONResponse:
152152
else None,
153153
"user_settings": {"form": user_settings_config},
154154
"debug_mode": self.debug_mode,
155+
"conversation_history": self.chat_interface.conversation_history,
155156
}
156157

157158
return JSONResponse(content=config_dict)

packages/ragbits-chat/src/ragbits/chat/interface/_interface.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ class ChatInterface(ABC):
177177

178178
feedback_config: FeedbackConfig = FeedbackConfig()
179179
user_settings: UserSettings = UserSettings()
180+
conversation_history: bool = False
180181
ui_customization: UICustomization | None = None
181182
history_persistence: HistoryPersistenceStrategy | None = None
182183

packages/ragbits-chat/src/ragbits/chat/ui-build/assets/ChatHistory-BLuIzcDI.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/ragbits-chat/src/ragbits/chat/ui-build/assets/ChatOptionsForm-CJcJ5hZI.js renamed to packages/ragbits-chat/src/ragbits/chat/ui-build/assets/ChatOptionsForm-CCYdcayy.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/ragbits-chat/src/ragbits/chat/ui-build/assets/FeedbackForm-BvhOfP9e.js renamed to packages/ragbits-chat/src/ragbits/chat/ui-build/assets/FeedbackForm-Cwsgnbb9.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)