diff --git a/CHANGELOG.md b/CHANGELOG.md index d1da28a11e..19686d0289 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/backend/open_webui/main.py b/backend/open_webui/main.py index 9e6aa6fab2..dbad78c25a 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} diff --git a/package-lock.json b/package-lock.json index 68ddca2afc..9ec44ffa7d 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 05a5cf9d1c..08c1013840 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", diff --git a/src/lib/components/workspace/Documents.svelte b/src/lib/components/workspace/Documents.svelte index be3be082c3..db101dd0ae 100644 --- a/src/lib/components/workspace/Documents.svelte +++ b/src/lib/components/workspace/Documents.svelte @@ -215,7 +215,11 @@
-
{$i18n.t('Documents')}
+
+ {$i18n.t('Documents')} +
+ {$documents.length} +