Update app.py
Browse files
app.py
CHANGED
@@ -27,8 +27,8 @@ def chunk_text(text, chunk_size=50, chunk_overlap=10):
|
|
27 |
return chunks
|
28 |
|
29 |
# Function to build FAISS index
|
|
|
30 |
def build_faiss_vectorstore(chunks):
|
31 |
-
embedding_model = HuggingFaceEmbeddings(model_name="sentence-transformers/all-MiniLM-L6-v2")
|
32 |
vectorstore = FAISS.from_texts(chunks, embedding_model)
|
33 |
return vectorstore
|
34 |
|
|
|
27 |
return chunks
|
28 |
|
29 |
# Function to build FAISS index
|
30 |
+
embedding_model = HuggingFaceEmbeddings(model_name="sentence-transformers/all-MiniLM-L6-v2")
|
31 |
def build_faiss_vectorstore(chunks):
|
|
|
32 |
vectorstore = FAISS.from_texts(chunks, embedding_model)
|
33 |
return vectorstore
|
34 |
|