awacke1 commited on
Commit
b694aa3
ยท
verified ยท
1 Parent(s): ae2a8a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -24
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
- DEFAULT_MERMAID_old = """
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" _self
430
 
431
  LLM -- "Query ๐Ÿ”" --> HS[Hybrid Search ๐Ÿ”Ž\\nVector+NER+Lexical]
432
- click HS "/?q=Hybrid%20Search%20Vector+NER+Lexical" _self
433
 
434
  HS -- "Reason ๐Ÿค”" --> RE[Reasoning Engine ๐Ÿ› ๏ธ\\nNeuralNetwork+Medical]
435
- click RE "/?q=Reasoning%20Engine%20NeuralNetwork+Medical" _self
436
 
437
  RE -- "Link ๐Ÿ“ก" --> KG((Knowledge Graph ๐Ÿ“š\\nOntology+GAR+RAG))
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
 
 
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