Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ from langchain_community.embeddings import HuggingFaceEmbeddings
|
|
| 12 |
embedding_model = HuggingFaceEmbeddings(model_name = "all-MiniLM-L6-v2")
|
| 13 |
|
| 14 |
from langchain_community.vectorstores import FAISS
|
| 15 |
-
data = FAISS.
|
| 16 |
|
| 17 |
#data = dataset["train"]
|
| 18 |
data = data.add_faiss_index("embeddings") # column name that has the embeddings of the dataset
|
|
|
|
| 12 |
embedding_model = HuggingFaceEmbeddings(model_name = "all-MiniLM-L6-v2")
|
| 13 |
|
| 14 |
from langchain_community.vectorstores import FAISS
|
| 15 |
+
data = FAISS.from_texts(docs, embedding_model)
|
| 16 |
|
| 17 |
#data = dataset["train"]
|
| 18 |
data = data.add_faiss_index("embeddings") # column name that has the embeddings of the dataset
|