Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,8 @@
|
|
| 1 |
"""
|
| 2 |
Question Answering with Retrieval QA and LangChain Language Models featuring FAISS vector stores.
|
| 3 |
This script uses the LangChain Language Model API to answer questions using Retrieval QA
|
| 4 |
-
and FAISS vector stores. It also uses the
|
|
|
|
| 5 |
"""
|
| 6 |
|
| 7 |
import os
|
|
@@ -143,7 +144,9 @@ def handle_userinput(user_question):
|
|
| 143 |
|
| 144 |
|
| 145 |
def main():
|
| 146 |
-
|
|
|
|
|
|
|
| 147 |
st.set_page_config(
|
| 148 |
page_title="Chat with a Bot that tries to answer questions about multiple PDFs",
|
| 149 |
page_icon=":books:",
|
|
|
|
| 1 |
"""
|
| 2 |
Question Answering with Retrieval QA and LangChain Language Models featuring FAISS vector stores.
|
| 3 |
This script uses the LangChain Language Model API to answer questions using Retrieval QA
|
| 4 |
+
and FAISS vector stores. It also uses the Mistral huggingface inference endpoint to
|
| 5 |
+
generate responses.
|
| 6 |
"""
|
| 7 |
|
| 8 |
import os
|
|
|
|
| 144 |
|
| 145 |
|
| 146 |
def main():
|
| 147 |
+
"""
|
| 148 |
+
Putting it all together.
|
| 149 |
+
"""
|
| 150 |
st.set_page_config(
|
| 151 |
page_title="Chat with a Bot that tries to answer questions about multiple PDFs",
|
| 152 |
page_icon=":books:",
|