Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -47,8 +47,8 @@ def get_text_chunks(text:str) ->list:
|
|
| 47 |
|
| 48 |
|
| 49 |
def get_vectorstore(text_chunks : list) -> FAISS:
|
| 50 |
-
|
| 51 |
-
model="PartAI/Dorna-Llama3-8B-Instruct"
|
| 52 |
encode_kwargs = {
|
| 53 |
"normalize_embeddings": True
|
| 54 |
} # set True to compute cosine similarity
|
|
|
|
| 47 |
|
| 48 |
|
| 49 |
def get_vectorstore(text_chunks : list) -> FAISS:
|
| 50 |
+
model = "sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2"
|
| 51 |
+
#model="PartAI/Dorna-Llama3-8B-Instruct"
|
| 52 |
encode_kwargs = {
|
| 53 |
"normalize_embeddings": True
|
| 54 |
} # set True to compute cosine similarity
|