Update app.py
Browse files
app.py
CHANGED
@@ -28,7 +28,7 @@ def load_vectorstore(model):
|
|
28 |
emb = HuggingFaceInstructEmbeddings(model_name=model,
|
29 |
query_instruction='Represent the Financial question for retrieving supporting paragraphs: ',
|
30 |
embed_instruction='Represent the Financial paragraph for retrieval: ')
|
31 |
-
return FAISS.load_local('
|
32 |
|
33 |
#default embeddings
|
34 |
vectorstore = load_vectorstore(model_options['all-mpnet-base-v2'])
|
|
|
28 |
emb = HuggingFaceInstructEmbeddings(model_name=model,
|
29 |
query_instruction='Represent the Financial question for retrieving supporting paragraphs: ',
|
30 |
embed_instruction='Represent the Financial paragraph for retrieval: ')
|
31 |
+
return FAISS.load_local('vanguard_embeddings_inst', emb)
|
32 |
|
33 |
#default embeddings
|
34 |
vectorstore = load_vectorstore(model_options['all-mpnet-base-v2'])
|