Update rag.py
Browse files
rag.py
CHANGED
|
@@ -4,7 +4,7 @@ from langchain.embeddings import HuggingFaceEmbeddings
|
|
| 4 |
from langchain.vectorstores import FAISS
|
| 5 |
from langchain.llms import Ollama
|
| 6 |
db = FAISS.load_local(
|
| 7 |
-
folder_path="
|
| 8 |
embeddings=HuggingFaceEmbeddings(model_name="all-MiniLM-L6-v2"),
|
| 9 |
allow_dangerous_deserialization=True
|
| 10 |
)
|
|
|
|
| 4 |
from langchain.vectorstores import FAISS
|
| 5 |
from langchain.llms import Ollama
|
| 6 |
db = FAISS.load_local(
|
| 7 |
+
folder_path="./",
|
| 8 |
embeddings=HuggingFaceEmbeddings(model_name="all-MiniLM-L6-v2"),
|
| 9 |
allow_dangerous_deserialization=True
|
| 10 |
)
|