Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ embeddings = SentenceTransformer("sentence-transformers/all-mpnet-base-v2")
|
|
20 |
texts = [doc.page_content for doc in texts] # Get the text content from the documents
|
21 |
embeddings = embeddings.encode(texts) # Get the embeddings for the texts
|
22 |
|
23 |
-
vector_store = FAISS.
|
24 |
|
25 |
# Initialize the HuggingFaceHub LLM
|
26 |
llm = HuggingFaceHub(repo_id="HuggingFaceH4/zephyr-7b-beta", model_kwargs={"temperature": None, "top_p": None})
|
|
|
20 |
texts = [doc.page_content for doc in texts] # Get the text content from the documents
|
21 |
embeddings = embeddings.encode(texts) # Get the embeddings for the texts
|
22 |
|
23 |
+
vector_store = FAISS.from_documents(texts, embeddings)
|
24 |
|
25 |
# Initialize the HuggingFaceHub LLM
|
26 |
llm = HuggingFaceHub(repo_id="HuggingFaceH4/zephyr-7b-beta", model_kwargs={"temperature": None, "top_p": None})
|