Update app.py
Browse files
app.py
CHANGED
|
@@ -96,7 +96,7 @@ class GenAIQASystem:
|
|
| 96 |
text_splitter = CharacterTextSplitter(chunk_size=1000, chunk_overlap=100)
|
| 97 |
texts = text_splitter.split_text(self.content)
|
| 98 |
|
| 99 |
-
embeddings = HuggingFaceEmbeddings(model_name="
|
| 100 |
|
| 101 |
if os.path.exists("faiss_index"):
|
| 102 |
print("Loading FAISS index from disk...")
|
|
|
|
| 96 |
text_splitter = CharacterTextSplitter(chunk_size=1000, chunk_overlap=100)
|
| 97 |
texts = text_splitter.split_text(self.content)
|
| 98 |
|
| 99 |
+
embeddings = HuggingFaceEmbeddings(model_name="all-MiniLM-L6-v2")
|
| 100 |
|
| 101 |
if os.path.exists("faiss_index"):
|
| 102 |
print("Loading FAISS index from disk...")
|