浏览代码

add svelte type to RAG

Marclass 1 年之前
父节点
当前提交
6070e6bcd1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      backend/apps/rag/main.py

+ 1 - 1
backend/apps/rag/main.py

@@ -166,7 +166,7 @@ def store_doc(
         "css", "cpp", "hpp","h", "c", "cs", "sql", "log", "ini",
         "css", "cpp", "hpp","h", "c", "cs", "sql", "log", "ini",
         "pl" "pm", "r", "dart", "dockerfile", "env", "php", "hs",
         "pl" "pm", "r", "dart", "dockerfile", "env", "php", "hs",
         "hsc", "lua", "nginxconf", "conf", "m", "mm", "plsql", "perl",
         "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()
     file_ext=file.filename.split(".")[-1].lower()
     if file.content_type == "application/octet-stream" and file_ext not in (octet_markdown + octet_plain):
     if file.content_type == "application/octet-stream" and file_ext not in (octet_markdown + octet_plain):