Spaces:
Sleeping
Sleeping
Replace Gemma embedding model with BAAI/bge-small-en-v1.5 and cache at build time
Browse files- Dockerfile +1 -0
- backend/constants.py +1 -1
- frontend/index.html +3 -3
Dockerfile
CHANGED
|
@@ -21,6 +21,7 @@ RUN mkdir -p /app/nltk_data && \
|
|
| 21 |
RUN python -c "from huggingface_hub import snapshot_download; \
|
| 22 |
snapshot_download(repo_id='nomic-ai/nomic-embed-text-v1.5'); \
|
| 23 |
snapshot_download(repo_id='C10X/Qwen3-Embedding-TurboX.v2'); \
|
|
|
|
| 24 |
snapshot_download(repo_id='Qwen/Qwen2.5-0.5B-Instruct')"
|
| 25 |
|
| 26 |
|
|
|
|
| 21 |
RUN python -c "from huggingface_hub import snapshot_download; \
|
| 22 |
snapshot_download(repo_id='nomic-ai/nomic-embed-text-v1.5'); \
|
| 23 |
snapshot_download(repo_id='C10X/Qwen3-Embedding-TurboX.v2'); \
|
| 24 |
+
snapshot_download(repo_id='BAAI/bge-small-en-v1.5'); \
|
| 25 |
snapshot_download(repo_id='Qwen/Qwen2.5-0.5B-Instruct')"
|
| 26 |
|
| 27 |
|
backend/constants.py
CHANGED
|
@@ -95,6 +95,6 @@ Passage:"""
|
|
| 95 |
|
| 96 |
MODEL_MAP = {
|
| 97 |
"nomic-embed-text": "nomic-ai/nomic-embed-text-v1.5",
|
| 98 |
-
"
|
| 99 |
"qwen3-embedding:0.6b": "C10X/Qwen3-Embedding-TurboX.v2",
|
| 100 |
}
|
|
|
|
| 95 |
|
| 96 |
MODEL_MAP = {
|
| 97 |
"nomic-embed-text": "nomic-ai/nomic-embed-text-v1.5",
|
| 98 |
+
"bge-small-en": "BAAI/bge-small-en-v1.5",
|
| 99 |
"qwen3-embedding:0.6b": "C10X/Qwen3-Embedding-TurboX.v2",
|
| 100 |
}
|
frontend/index.html
CHANGED
|
@@ -168,7 +168,7 @@
|
|
| 168 |
<label for="embedding-model">Embedding Model</label>
|
| 169 |
<select id="embedding-model" class="select-input">
|
| 170 |
<option value="nomic-embed-text" selected>Nomic Embed Text</option>
|
| 171 |
-
<option value="
|
| 172 |
<option value="qwen3-embedding:0.6b">Qwen3 Embedding</option>
|
| 173 |
</select>
|
| 174 |
</div>
|
|
@@ -375,7 +375,7 @@
|
|
| 375 |
</select>
|
| 376 |
<select id="arena-model-a" class="select-input">
|
| 377 |
<option value="nomic-embed-text">Nomic Embed</option>
|
| 378 |
-
<option value="
|
| 379 |
<option value="qwen3-embedding:0.6b">Qwen3 Embed</option>
|
| 380 |
</select>
|
| 381 |
<select id="arena-strategy-a" class="select-input">
|
|
@@ -404,7 +404,7 @@
|
|
| 404 |
</select>
|
| 405 |
<select id="arena-model-b" class="select-input">
|
| 406 |
<option value="nomic-embed-text">Nomic Embed</option>
|
| 407 |
-
<option value="
|
| 408 |
<option value="qwen3-embedding:0.6b">Qwen3 Embed</option>
|
| 409 |
</select>
|
| 410 |
<select id="arena-strategy-b" class="select-input">
|
|
|
|
| 168 |
<label for="embedding-model">Embedding Model</label>
|
| 169 |
<select id="embedding-model" class="select-input">
|
| 170 |
<option value="nomic-embed-text" selected>Nomic Embed Text</option>
|
| 171 |
+
<option value="bge-small-en">BGE Small English</option>
|
| 172 |
<option value="qwen3-embedding:0.6b">Qwen3 Embedding</option>
|
| 173 |
</select>
|
| 174 |
</div>
|
|
|
|
| 375 |
</select>
|
| 376 |
<select id="arena-model-a" class="select-input">
|
| 377 |
<option value="nomic-embed-text">Nomic Embed</option>
|
| 378 |
+
<option value="bge-small-en">BGE Small</option>
|
| 379 |
<option value="qwen3-embedding:0.6b">Qwen3 Embed</option>
|
| 380 |
</select>
|
| 381 |
<select id="arena-strategy-a" class="select-input">
|
|
|
|
| 404 |
</select>
|
| 405 |
<select id="arena-model-b" class="select-input">
|
| 406 |
<option value="nomic-embed-text">Nomic Embed</option>
|
| 407 |
+
<option value="bge-small-en">BGE Small</option>
|
| 408 |
<option value="qwen3-embedding:0.6b">Qwen3 Embed</option>
|
| 409 |
</select>
|
| 410 |
<select id="arena-strategy-b" class="select-input">
|