Update app.py
Browse files
app.py
CHANGED
@@ -31,9 +31,9 @@ It works by first retrieving relevant documents from an external knowledge sourc
|
|
31 |
This method enhances factual correctness and allows the model to access up-to-date or domain-specific information without retraining.
|
32 |
|
33 |
Click the button below to load a **User Guide** and an **Installation Guide** for a smoke alarm device into the vector database. It could take a couple of minutes to process.
|
34 |
-
Once you see the message *"PDF indexed successfully!"*, go to the **Chatbot** tab to ask any relevant questions about the device.
|
35 |
|
36 |
-
You can change the LLM models in the **Additional Inputs** at the bottom of the **Chatbot** tab,
|
37 |
|
38 |
"""
|
39 |
|
@@ -103,7 +103,7 @@ def load_sample_pdf():
|
|
103 |
# Store the embeddings in the vector store
|
104 |
vector_store = FAISS.from_documents(texts, embeddings)
|
105 |
|
106 |
-
return "
|
107 |
|
108 |
|
109 |
def format_docs(docs):
|
|
|
31 |
This method enhances factual correctness and allows the model to access up-to-date or domain-specific information without retraining.
|
32 |
|
33 |
Click the button below to load a **User Guide** and an **Installation Guide** for a smoke alarm device into the vector database. It could take a couple of minutes to process.
|
34 |
+
Once you see the message *"PDF(s) indexed successfully!"*, go to the **Chatbot** tab to ask any relevant questions about the device.
|
35 |
|
36 |
+
You can change the LLM models in the **Additional Inputs** at the bottom of the **Chatbot** tab, in case of certain model is out of date. You can also adjust the LLM parameters there.
|
37 |
|
38 |
"""
|
39 |
|
|
|
103 |
# Store the embeddings in the vector store
|
104 |
vector_store = FAISS.from_documents(texts, embeddings)
|
105 |
|
106 |
+
return "PDF(s) indexed successfully!"
|
107 |
|
108 |
|
109 |
def format_docs(docs):
|