emar commited on
Commit
58442f5
1 Parent(s): 66c3bb5

trying ada embeddings

Browse files
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.llms.huggingface import HuggingFaceLLM
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:6810463cffd5fbaec06192c5abca1003177629d221a4fa589ccee79d7e50ffa2
3
- size 200616584
 
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:ff56df5524d10282d6a8fd911cd9718320dc58bcf2995c8f1c8d909a344e13aa
3
- size 55884294
 
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:0c1c2fe69a4be4c0394fae2fa339b15e24d4cc8d4c09a3e37b629e4b9dc158f7
3
- size 958771
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:00d5d0f5b20c06f13b0dd622d898396862fd12d77a1fd5e55550704bda465c6d
3
+ size 959947