From 0ead3ed37a8e17075da72614726ff26d56330ce7 Mon Sep 17 00:00:00 2001 From: Jannik Streidl Date: Thu, 29 Aug 2024 16:30:34 +0200 Subject: [PATCH 1/4] feat: show total number of documents --- src/lib/components/workspace/Documents.svelte | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/components/workspace/Documents.svelte b/src/lib/components/workspace/Documents.svelte index be3be082c..e300d2315 100644 --- a/src/lib/components/workspace/Documents.svelte +++ b/src/lib/components/workspace/Documents.svelte @@ -215,7 +215,10 @@
-
{$i18n.t('Documents')}
+
+ {$i18n.t('Documents')} + ({$documents.length}) +
From 9aa8eff44e0c1ca8881b7d2bea7884cc97f4dd73 Mon Sep 17 00:00:00 2001 From: "Jannik S." <69747628+jannikstdl@users.noreply.github.com> Date: Sat, 7 Sep 2024 15:08:25 +0200 Subject: [PATCH 2/4] styling --- src/lib/components/workspace/Documents.svelte | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/lib/components/workspace/Documents.svelte b/src/lib/components/workspace/Documents.svelte index e300d2315..db101dd0a 100644 --- a/src/lib/components/workspace/Documents.svelte +++ b/src/lib/components/workspace/Documents.svelte @@ -215,9 +215,10 @@
-
- {$i18n.t('Documents')} - ({$documents.length}) +
+ {$i18n.t('Documents')} +
+ {$documents.length}
From 214722d39e4948eaf5f8affb0db9e535ea8e35b5 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sun, 8 Sep 2024 00:51:12 +0100 Subject: [PATCH 3/4] enh: search query generation prompt --- backend/open_webui/main.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/backend/open_webui/main.py b/backend/open_webui/main.py index 9e6aa6fab..dbad78c25 100644 --- a/backend/open_webui/main.py +++ b/backend/open_webui/main.py @@ -1454,10 +1454,11 @@ async def generate_search_query(form_data: dict, user=Depends(get_verified_user) else: template = """Assess the need for a web search based on the current question and prior interactions, but lean towards suggesting a Google search query if uncertain. Generate a Google search query even when the answer might be straightforward, as additional information may enhance comprehension or provide updated data. If absolutely certain that no further information is required, return an empty string. Default to a search query if unsure or in doubt. Today's date is {{CURRENT_DATE}}. -Interaction History: -{{MESSAGES:END:6}} Current Question: -{{prompt:end:4000}}""" +{{prompt:end:4000}} + +Interaction History: +{{MESSAGES:END:6}}""" content = search_query_generation_template( template, form_data["messages"], {"name": user.name} From 0beaab51ae7322f0a5786db56e24d8f943ba39be Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sun, 8 Sep 2024 00:57:59 +0100 Subject: [PATCH 4/4] doc: changelog --- CHANGELOG.md | 15 +++++++++++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d1da28a11..19686d028 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,21 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.3.21] - 2024-09-08 + +### Added + +- **📊 Document Count Display**: Now displays the total number of documents directly within the dashboard. +- **🚀 Ollama Embed API Endpoint**: Enabled /api/embed endpoint proxy support. + +### Fixed + +- **🐳 Docker Launch Issue**: Resolved the problem preventing Open-WebUI from launching correctly when using Docker. + +### Changed + +- **🔍 Enhanced Search Prompts**: Improved the search query generation prompts for better accuracy and user interaction, enhancing the overall search experience. + ## [0.3.20] - 2024-09-07 ### Added diff --git a/package-lock.json b/package-lock.json index 68ddca2af..9ec44ffa7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "open-webui", - "version": "0.3.20", + "version": "0.3.21", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "open-webui", - "version": "0.3.20", + "version": "0.3.21", "dependencies": { "@codemirror/lang-javascript": "^6.2.2", "@codemirror/lang-python": "^6.1.6", diff --git a/package.json b/package.json index 05a5cf9d1..08c101384 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "open-webui", - "version": "0.3.20", + "version": "0.3.21", "private": true, "scripts": { "dev": "npm run pyodide:fetch && vite dev --host",