debug
Browse files
app.py
CHANGED
@@ -97,7 +97,10 @@ if __name__ == "__main__":
|
|
97 |
if st.button("Submit"):
|
98 |
try:
|
99 |
query = question.strip()
|
100 |
-
st.write(
|
|
|
|
|
|
|
101 |
docs = docsearch.similarity_search(query, k=3)
|
102 |
result = chain(
|
103 |
{"input_documents": docs, "question": query},
|
|
|
97 |
if st.button("Submit"):
|
98 |
try:
|
99 |
query = question.strip()
|
100 |
+
# st.write("len(docsearch):", len(docsearch))
|
101 |
+
# st.write("help(docsearch.index):", help(docsearch.index))
|
102 |
+
# st.write("help(docsearch.index.search):", help(docsearch.index.search))
|
103 |
+
st.write(len(docsearch.index_to_docstore_id))
|
104 |
docs = docsearch.similarity_search(query, k=3)
|
105 |
result = chain(
|
106 |
{"input_documents": docs, "question": query},
|