Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -422,7 +422,7 @@ def inject_base_url(url: str) -> str:
|
|
422 |
return f"{BASE_URL}{url}"
|
423 |
|
424 |
# Our default diagram, containing the "click" lines with /?q=...
|
425 |
-
|
426 |
flowchart LR
|
427 |
U((User π)) -- "Talk π£οΈ" --> LLM[LLM Agent π€\\nExtract Info]
|
428 |
click U "/?q=User%20π" _self
|
@@ -438,6 +438,25 @@ flowchart LR
|
|
438 |
click KG "/?q=Knowledge%20Graph%20Ontology+GAR+RAG" _self
|
439 |
"""
|
440 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
441 |
def main():
|
442 |
st.set_page_config(page_title="Mermaid + Clickable Links with Base URL", layout="wide")
|
443 |
|
|
|
422 |
return f"{BASE_URL}{url}"
|
423 |
|
424 |
# Our default diagram, containing the "click" lines with /?q=...
|
425 |
+
DEFAULT_MERMAID_old = """
|
426 |
flowchart LR
|
427 |
U((User π)) -- "Talk π£οΈ" --> LLM[LLM Agent π€\\nExtract Info]
|
428 |
click U "/?q=User%20π" _self
|
|
|
438 |
click KG "/?q=Knowledge%20Graph%20Ontology+GAR+RAG" _self
|
439 |
"""
|
440 |
|
441 |
+
DEFAULT_MERMAID = """
|
442 |
+
flowchart LR
|
443 |
+
U((User π)) -- "Talk π£οΈ" --> LLM[LLM Agent π€\nExtract Info]
|
444 |
+
|
445 |
+
%% Notice the two added strings: "Tooltip text" and "_blank"
|
446 |
+
click U "/?q=User%20π" "Open 'User π' in new window" "_blank"
|
447 |
+
click LLM "/?q=LLM%20Agent%20Extract%20Info" "Open LLM Agent" "_blank"
|
448 |
+
|
449 |
+
LLM -- "Query π" --> HS[Hybrid Search π\nVector+NER+Lexical]
|
450 |
+
click HS "/?q=Hybrid%20Search%20Vector+NER+Lexical" "Open Hybrid Search" "_blank"
|
451 |
+
|
452 |
+
HS -- "Reason π€" --> RE[Reasoning Engine π οΈ\nNeuralNetwork+Medical]
|
453 |
+
click RE "/?q=Reasoning%20Engine%20NeuralNetwork+Medical" "Open Reasoning Engine" "_blank"
|
454 |
+
|
455 |
+
RE -- "Link π‘" --> KG((Knowledge Graph π\nOntology+GAR+RAG))
|
456 |
+
click KG "/?q=Knowledge%20Graph%20Ontology+GAR+RAG" "Open Knowledge Graph" "_blank"
|
457 |
+
"""
|
458 |
+
|
459 |
+
|
460 |
def main():
|
461 |
st.set_page_config(page_title="Mermaid + Clickable Links with Base URL", layout="wide")
|
462 |
|