Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -422,41 +422,22 @@ 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
|
429 |
-
click LLM "/?q=LLM%20Agent%20Extract%20Info"
|
430 |
|
431 |
LLM -- "Query π" --> HS[Hybrid Search π\\nVector+NER+Lexical]
|
432 |
-
click HS "/?q=Hybrid%20Search%20Vector+NER+Lexical"
|
433 |
|
434 |
HS -- "Reason π€" --> RE[Reasoning Engine π οΈ\\nNeuralNetwork+Medical]
|
435 |
-
click RE "/?q=Reasoning%20Engine%20NeuralNetwork+Medical"
|
436 |
|
437 |
RE -- "Link π‘" --> KG((Knowledge Graph π\\nOntology+GAR+RAG))
|
438 |
-
click KG "/?q=Knowledge%20Graph%20Ontology+GAR+RAG"
|
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 |
|
|
|
422 |
return f"{BASE_URL}{url}"
|
423 |
|
424 |
# Our default diagram, containing the "click" lines with /?q=...
|
425 |
+
DEFAULT_MERMAID = """
|
426 |
flowchart LR
|
427 |
U((User π)) -- "Talk π£οΈ" --> LLM[LLM Agent π€\\nExtract Info]
|
428 |
click U "/?q=User%20π" _self
|
429 |
+
click LLM "/?q=LLM%20Agent%20Extract%20Info" _blank
|
430 |
|
431 |
LLM -- "Query π" --> HS[Hybrid Search π\\nVector+NER+Lexical]
|
432 |
+
click HS "/?q=Hybrid%20Search%20Vector+NER+Lexical" _blank
|
433 |
|
434 |
HS -- "Reason π€" --> RE[Reasoning Engine π οΈ\\nNeuralNetwork+Medical]
|
435 |
+
click RE "/?q=Reasoning%20Engine%20NeuralNetwork+Medical" _blank
|
436 |
|
437 |
RE -- "Link π‘" --> KG((Knowledge Graph π\\nOntology+GAR+RAG))
|
438 |
+
click KG "/?q=Knowledge%20Graph%20Ontology+GAR+RAG" _blank
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
439 |
"""
|
440 |
|
|
|
441 |
def main():
|
442 |
st.set_page_config(page_title="Mermaid + Clickable Links with Base URL", layout="wide")
|
443 |
|