Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
6070e6bc
Commit
6070e6bc
authored
Jan 17, 2024
by
Marclass
Browse files
add svelte type to RAG
parent
c7cee3ec
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
backend/apps/rag/main.py
backend/apps/rag/main.py
+1
-1
No files found.
backend/apps/rag/main.py
View file @
6070e6bc
...
...
@@ -166,7 +166,7 @@ def store_doc(
"css"
,
"cpp"
,
"hpp"
,
"h"
,
"c"
,
"cs"
,
"sql"
,
"log"
,
"ini"
,
"pl"
"pm"
,
"r"
,
"dart"
,
"dockerfile"
,
"env"
,
"php"
,
"hs"
,
"hsc"
,
"lua"
,
"nginxconf"
,
"conf"
,
"m"
,
"mm"
,
"plsql"
,
"perl"
,
"rb"
,
"rs"
,
"db2"
,
"scala"
,
"bash"
,
"swift"
,
"vue"
"rb"
,
"rs"
,
"db2"
,
"scala"
,
"bash"
,
"swift"
,
"vue"
,
"svelte"
]
file_ext
=
file
.
filename
.
split
(
"."
)[
-
1
].
lower
()
if
file
.
content_type
==
"application/octet-stream"
and
file_ext
not
in
(
octet_markdown
+
octet_plain
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment