Fix some typos (mostly in comments)

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2026-04-08 14:46:52 +02:00
parent 9f1b279e88
commit 716207b6da
8 changed files with 9 additions and 9 deletions

View file

@ -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'):

View file

@ -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.
"""

View file

@ -359,7 +359,7 @@
}}
>
{#if !(tools[toolId]?.authenticated ?? true)}
<!-- make it slighly darker and not clickable -->
<!-- make it slightly darker and not clickable -->
<div class="absolute inset-0 opacity-50 rounded-xl cursor-pointer z-10" />
{/if}
<div class="flex-1 truncate">

View file

@ -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++) {

View file

@ -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);

View file

@ -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) {

View file

@ -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__)

View file

@ -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 `<strong>中文名(English)</strong>中文内容`.