Spaces:
Runtime error
Runtime error
Paul-Joshi
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -93,7 +93,6 @@ def main():
|
|
93 |
doc_splits = method_get_text_chunks(raw_text)
|
94 |
# create vector store
|
95 |
vector_store = method_get_vectorstore(doc_splits)
|
96 |
-
# Generate response using the RAG pipeline
|
97 |
|
98 |
# Input fields
|
99 |
question = st.text_input("Question")
|
@@ -107,7 +106,7 @@ def main():
|
|
107 |
# doc_splits = method_get_text_chunks(raw_text)
|
108 |
# # create vector store
|
109 |
# vector_store = method_get_vectorstore(doc_splits)
|
110 |
-
#
|
111 |
answer = get_context_retriever_chain(vector_store,question)
|
112 |
# Display the generated answer
|
113 |
split_string = "Question: " + str(question)
|
|
|
93 |
doc_splits = method_get_text_chunks(raw_text)
|
94 |
# create vector store
|
95 |
vector_store = method_get_vectorstore(doc_splits)
|
|
|
96 |
|
97 |
# Input fields
|
98 |
question = st.text_input("Question")
|
|
|
106 |
# doc_splits = method_get_text_chunks(raw_text)
|
107 |
# # create vector store
|
108 |
# vector_store = method_get_vectorstore(doc_splits)
|
109 |
+
# Generate response using the RAG pipeline
|
110 |
answer = get_context_retriever_chain(vector_store,question)
|
111 |
# Display the generated answer
|
112 |
split_string = "Question: " + str(question)
|