Spaces:
Running
on
Zero
Running
on
Zero
emar
commited on
Commit
•
58442f5
1
Parent(s):
66c3bb5
trying ada embeddings
Browse files- app.py +4 -3
- storage/default__vector_store.json +2 -2
- storage/docstore.json +2 -2
- storage/index_store.json +2 -2
app.py
CHANGED
@@ -5,15 +5,16 @@ from llama_index.core import (
|
|
5 |
StorageContext,
|
6 |
load_index_from_storage, Settings,
|
7 |
)
|
8 |
-
from llama_index.
|
9 |
import torch
|
10 |
PERSIST_DIR = './storage'
|
11 |
|
|
|
12 |
# Configure the settings
|
13 |
DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
14 |
|
15 |
-
|
16 |
-
Settings.embed_model = HuggingFaceEmbedding(model_name="BAAI/bge-base-en-v1.5", device="cpu")
|
17 |
|
18 |
Settings.llm = HuggingFaceLLM(
|
19 |
model_name="meta-llama/Meta-Llama-3-8B-Instruct",
|
|
|
5 |
StorageContext,
|
6 |
load_index_from_storage, Settings,
|
7 |
)
|
8 |
+
from llama_index.embeddings.openai import OpenAIEmbedding
|
9 |
import torch
|
10 |
PERSIST_DIR = './storage'
|
11 |
|
12 |
+
|
13 |
# Configure the settings
|
14 |
DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
15 |
|
16 |
+
Settings.embed_model = OpenAIEmbedding()
|
17 |
+
# Settings.embed_model = HuggingFaceEmbedding(model_name="BAAI/bge-base-en-v1.5", device="cpu")
|
18 |
|
19 |
Settings.llm = HuggingFaceLLM(
|
20 |
model_name="meta-llama/Meta-Llama-3-8B-Instruct",
|
storage/default__vector_store.json
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:eb0befaddec7950c565951a9cc8e60acaba5d197c2d4886f419dcee6896680b2
|
3 |
+
size 397136247
|
storage/docstore.json
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:46fd63226ff854bab49a645a2194317b3883247b4ecb98f7944438044e06349f
|
3 |
+
size 44043711
|
storage/index_store.json
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:00d5d0f5b20c06f13b0dd622d898396862fd12d77a1fd5e55550704bda465c6d
|
3 |
+
size 959947
|