diff --git a/backend/open_webui/retrieval/utils.py b/backend/open_webui/retrieval/utils.py index 4ab8bdf7c0..d2a62b9abd 100644 --- a/backend/open_webui/retrieval/utils.py +++ b/backend/open_webui/retrieval/utils.py @@ -368,7 +368,7 @@ def merge_and_sort_query_results(query_results: list[dict], k: int) -> dict: combined[doc_hash] = (distance, document, metadata) continue # if doc is new, no further comparison is needed - # if doc is alredy in, but new distance is better, update + # if doc is already in, but new distance is better, update if distance > combined[doc_hash][0]: combined[doc_hash] = (distance, document, metadata) @@ -948,7 +948,7 @@ async def get_sources_from_items( if item.get('type') == 'text': # Raw Text - # Used during temporary chat file uploads or web page & youtube attachements + # Used during temporary chat file uploads or web page & youtube attachments if item.get('context') == 'full': if item.get('file'): diff --git a/backend/open_webui/retrieval/vector/dbs/elasticsearch.py b/backend/open_webui/retrieval/vector/dbs/elasticsearch.py index 201a5e1706..d560cb9414 100644 --- a/backend/open_webui/retrieval/vector/dbs/elasticsearch.py +++ b/backend/open_webui/retrieval/vector/dbs/elasticsearch.py @@ -30,7 +30,7 @@ class ElasticsearchClient(VectorDBBase): """ Important: in order to reduce the number of indexes and since the embedding vector length is fixed, we avoid creating - an index for each file but store it as a text field, while seperating to different index + an index for each file but store it as a text field, while separating to different index baesd on the embedding length. """ diff --git a/src/lib/components/chat/MessageInput/IntegrationsMenu.svelte b/src/lib/components/chat/MessageInput/IntegrationsMenu.svelte index 3659122152..41a175cd58 100644 --- a/src/lib/components/chat/MessageInput/IntegrationsMenu.svelte +++ b/src/lib/components/chat/MessageInput/IntegrationsMenu.svelte @@ -359,7 +359,7 @@ }} > {#if !(tools[toolId]?.authenticated ?? true)} - +
{/if}
diff --git a/src/lib/components/chat/Suggestions.svelte b/src/lib/components/chat/Suggestions.svelte index c41767a9af..7ea9b25fbf 100644 --- a/src/lib/components/chat/Suggestions.svelte +++ b/src/lib/components/chat/Suggestions.svelte @@ -30,7 +30,7 @@ $: getFilteredPrompts(inputValue); // Helper function to check if arrays are the same - // (based on unique IDs oder content) + // (based on unique IDs or content) function arraysEqual(a, b) { if (a.length !== b.length) return false; for (let i = 0; i < a.length; i++) { diff --git a/src/lib/components/common/Textarea.svelte b/src/lib/components/common/Textarea.svelte index 148c3a46ee..1bc9c59704 100644 --- a/src/lib/components/common/Textarea.svelte +++ b/src/lib/components/common/Textarea.svelte @@ -23,7 +23,7 @@ resize(); requestAnimationFrame(() => { - // setInterveal to cehck until textareaElement is set + // setInterval to check until textareaElement is set const interval = setInterval(() => { if (textareaElement) { clearInterval(interval); diff --git a/src/lib/components/workspace/Knowledge/KnowledgeBase.svelte b/src/lib/components/workspace/Knowledge/KnowledgeBase.svelte index 64438e23fc..40d82e884a 100644 --- a/src/lib/components/workspace/Knowledge/KnowledgeBase.svelte +++ b/src/lib/components/workspace/Knowledge/KnowledgeBase.svelte @@ -669,7 +669,7 @@ continue; } - // Not sure why you have to call webkitGetAsEntry and isDirectory seperate, but it won't work if you try item.webkitGetAsEntry().isDirectory + // Not sure why you have to call webkitGetAsEntry and isDirectory separately, but it won't work if you try item.webkitGetAsEntry().isDirectory const wkentry = item.webkitGetAsEntry(); const isDirectory = wkentry.isDirectory; if (isDirectory) { diff --git a/src/lib/components/workspace/Tools/ToolkitEditor.svelte b/src/lib/components/workspace/Tools/ToolkitEditor.svelte index 44893ad988..da20b07d08 100644 --- a/src/lib/components/workspace/Tools/ToolkitEditor.svelte +++ b/src/lib/components/workspace/Tools/ToolkitEditor.svelte @@ -66,7 +66,7 @@ class Tools: Get the user name, Email and ID from the user object. """ - # Do not include a descrption for __user__ as it should not be shown in the tool's specification + # Do not include a description for __user__ as it should not be shown in the tool's specification # The session user object will be passed as a parameter when the function is called print(__user__) diff --git a/src/lib/utils/index.ts b/src/lib/utils/index.ts index c11c33ac33..7da6ce4cfc 100644 --- a/src/lib/utils/index.ts +++ b/src/lib/utils/index.ts @@ -110,7 +110,7 @@ function processChineseContent(content: string): string { const processedLines = lines.map((line) => { if (/[\u4e00-\u9fa5]/.test(line)) { // Problems caused by Chinese parentheses - /* Discription: + /* Description: * When `*` has Chinese delimiters on the inside, markdown parser ignore bold or italic style. * - e.g. `**中文名(English)**中文内容` will be parsed directly, * instead of `中文名(English)中文内容`.