Update app.py
Browse files
app.py
CHANGED
|
@@ -12,6 +12,7 @@ from together import Together
|
|
| 12 |
import pandas as pd
|
| 13 |
import streamlit as st
|
| 14 |
from docx import Document as DocxDocument
|
|
|
|
| 15 |
|
| 16 |
|
| 17 |
st.markdown("""
|
|
@@ -291,7 +292,7 @@ llm = ChatOpenAI(
|
|
| 291 |
chain = RetrievalQA.from_chain_type(
|
| 292 |
llm=llm,
|
| 293 |
chain_type='stuff',
|
| 294 |
-
retriever=
|
| 295 |
input_key='question'
|
| 296 |
)
|
| 297 |
|
|
|
|
| 12 |
import pandas as pd
|
| 13 |
import streamlit as st
|
| 14 |
from docx import Document as DocxDocument
|
| 15 |
+
import os
|
| 16 |
|
| 17 |
|
| 18 |
st.markdown("""
|
|
|
|
| 292 |
chain = RetrievalQA.from_chain_type(
|
| 293 |
llm=llm,
|
| 294 |
chain_type='stuff',
|
| 295 |
+
retriever=docx_index.vectorstore.as_retriever(),
|
| 296 |
input_key='question'
|
| 297 |
)
|
| 298 |
|