graphrag
Browse files- app.py +1 -1
- graphrag.py +1 -1
app.py
CHANGED
@@ -67,7 +67,7 @@ https://kevinwkc.github.io/davinci/
|
|
67 |
""")
|
68 |
in_verbatim = gr.Textbox(label="Context")
|
69 |
in_question = gr.Textbox(label="Question")
|
70 |
-
out_product = gr.
|
71 |
|
72 |
gr.Examples(
|
73 |
[
|
|
|
67 |
""")
|
68 |
in_verbatim = gr.Textbox(label="Context")
|
69 |
in_question = gr.Textbox(label="Question")
|
70 |
+
out_product = gr.Markdown(label="Answer")
|
71 |
|
72 |
gr.Examples(
|
73 |
[
|
graphrag.py
CHANGED
@@ -81,7 +81,7 @@ def reasoning(text, question):
|
|
81 |
|
82 |
print("Answering through GraphQAChain...")
|
83 |
answer = graph_rag.invoke(question)
|
84 |
-
return answer
|
85 |
|
86 |
except Exception as e:
|
87 |
print(f"An error occurred in process_text: {str(e)}")
|
|
|
81 |
|
82 |
print("Answering through GraphQAChain...")
|
83 |
answer = graph_rag.invoke(question)
|
84 |
+
return answer['result']
|
85 |
|
86 |
except Exception as e:
|
87 |
print(f"An error occurred in process_text: {str(e)}")
|