Update functions.py
Browse files- functions.py +1 -1
functions.py
CHANGED
@@ -154,7 +154,7 @@ def gen_embeddings(embedding_model):
|
|
154 |
|
155 |
if 'hkunlp' in embedding_model:
|
156 |
|
157 |
-
embeddings = HuggingFaceInstructEmbeddings(model_name=embedding_model
|
158 |
query_instruction='Represent the Financial question for retrieving supporting paragraphs: ',
|
159 |
embed_instruction='Represent the Financial paragraph for retrieval: ')
|
160 |
|
|
|
154 |
|
155 |
if 'hkunlp' in embedding_model:
|
156 |
|
157 |
+
embeddings = HuggingFaceInstructEmbeddings(model_name=embedding_model,
|
158 |
query_instruction='Represent the Financial question for retrieving supporting paragraphs: ',
|
159 |
embed_instruction='Represent the Financial paragraph for retrieval: ')
|
160 |
|