This commit is contained in:
Saifeddine ALOUI 2024-12-16 00:47:58 +01:00
parent dba358e475
commit dacdf3e077
8 changed files with 106 additions and 84 deletions

9
app.py
View File

@ -30,6 +30,7 @@ import pipmaster as pm
ASCIIColors.success("OK")
def animate(text: str, stop_event: threading.Event):
animation = "⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏"
idx = 0
@ -70,9 +71,15 @@ packages: List[Tuple[str, str]] = [
("freedom_search", "0.1.9"),
("scrapemaster", "0.2.1"),
("lollms_client", "0.7.7"),
("lollmsvectordb", "1.2.7"),
("lollmsvectordb", "1.2.8"),
]
if pm.is_installed("einops"):
pm.install("einops")
if pm.is_installed("datasets"):
pm.install("datasets")
#einops datasets
def check_pn_libs():
ASCIIColors.cyan("Checking ParisNeo libraries installation")
print()

View File

@ -1,5 +1,5 @@
# =================== Lord Of Large Language Multimodal Systems Configuration file ===========================
version: 145
version: 146
# video viewing and news recovering
last_viewed_video: null
@ -283,6 +283,7 @@ rag_databases: [] # This is the list of paths to database sources. Each database
rag_vectorizer: semantic # possible values semantic, tfidf, openai, ollama
rag_service_url: "http://localhost:11434" # rag service url for ollama
rag_vectorizer_model: "BAAI/bge-m3" # The model name if applicable
rag_vectorizer_execute_remote_code: false # do not execute remote code or do
rag_vectorizer_parameters: null # Parameters of the model in json format
rag_chunk_size: 512 # number of tokens per chunk
rag_overlap: 0 # number of tokens of overlap

@ -1 +1 @@
Subproject commit 39e7d5ea3e6bf838663f56c60b5f01643e240027
Subproject commit e030d32675632438891a7fd5b3084d200e14d974

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

4
web/dist/index.html vendored
View File

@ -6,8 +6,8 @@
<script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>LoLLMS WebUI</title>
<script type="module" crossorigin src="/assets/index-Jw3bEM7C.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-gFczogus.css">
<script type="module" crossorigin src="/assets/index-sF4e5ZRd.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-CgKrUHEu.css">
</head>
<body>
<div id="app"></div>

View File

@ -1133,6 +1133,20 @@
</select>
</td>
</tr>
<tr>
<td style="min-width: 200px;">
<label for="rag_vectorizer_execute_remote_code" class="text-sm font-bold" style="margin-right: 1rem;">Allow executing remote code:</label>
</td>
<td>
<input v-model="configFile.rag_vectorizer_execute_remote_code"
type="checkbox"
@change="settingsChanged=true"
class="w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"
>
</td>
</tr>
<tr>
<td style="min-width: 200px;">
<label for="rag_vectorizer_model" class="text-sm font-bold" style="margin-right: 1rem;">RAG Vectorizer model:</label>

@ -1 +1 @@
Subproject commit 8d3798f08ee6d056887663b59a6c00bccf06825b
Subproject commit 7a90b26a1b806ffa0b9b47e4e83492c55e4df7ba