imbajin commented on code in PR #157:
URL:
https://github.com/apache/incubator-hugegraph-ai/pull/157#discussion_r1918088015
##########
hugegraph-llm/src/hugegraph_llm/demo/rag_demo/rag_block.py:
##########
@@ -112,15 +112,21 @@ def rag_answer(
def create_rag_block():
- # pylint: disable=R0915 (too-many-statements)
+ # pylint: disable=R0915 (too-many-statements),C0301
gr.Markdown("""## 1. HugeGraph RAG Query""")
with gr.Row():
with gr.Column(scale=2):
- inp = gr.Textbox(value=prompt.default_question, label="Question",
show_copy_button=True, lines=2)
- raw_out = gr.Textbox(label="Basic LLM Answer",
show_copy_button=True)
- vector_only_out = gr.Textbox(label="Vector-only Answer",
show_copy_button=True)
- graph_only_out = gr.Textbox(label="Graph-only Answer",
show_copy_button=True)
- graph_vector_out = gr.Textbox(label="Graph-Vector Answer",
show_copy_button=True)
+ inp = gr.Textbox(value=prompt.default_question, label="Question",
show_copy_button=True, lines=3)
+
+ # TODO: Only support inline formula now. Should support block
formula
+ gr.Markdown("Basic LLM Answer", elem_classes="output-box-label")
+ raw_out = gr.Markdown(elem_classes="output-box",
show_copy_button=True, latex_delimiters=[{"left":"$", "right":"$",
"display":False}])
Review Comment:
latex_delimiters should support more pairs
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]