Kroki Test: Difference between revisions

From VoIPmonitor.org
(Add test section for incremental indexer verification)
(Fix formatting - remove leading spaces from headers for proper parsing)
Line 1: Line 1:
== Kroki Extension Test ==
== Kroki Extension Test ==


  === Test 1: PlantUML Sequence Diagram ===
=== Test 1: PlantUML Sequence Diagram ===
  <kroki lang="plantuml">
<kroki lang="plantuml">
  @startuml
@startuml
  Alice -> Bob: Authentication Request
Alice -> Bob: Authentication Request
  Bob --> Alice: Authentication Response
Bob --> Alice: Authentication Response


  Alice -> Bob: Another authentication Request
Alice -> Bob: Another authentication Request
  Alice <-- Bob: Another authentication Response
Alice <-- Bob: Another authentication Response
  @enduml
@enduml
  </kroki>
</kroki>


  === Test 2: PlantUML Class Diagram ===
=== Test 2: PlantUML Class Diagram ===
  <kroki lang="plantuml">
<kroki lang="plantuml">
  @startuml
@startuml
  class VoIPCall {
class VoIPCall {
    +String callId
  +String callId
    +DateTime startTime
  +DateTime startTime
    +DateTime endTime
  +DateTime endTime
    +int duration
  +int duration
    +makeCall()
  +makeCall()
    +endCall()
  +endCall()
  }
}


  class CDR {
class CDR {
    +String recordId
  +String recordId
    +VoIPCall call
  +VoIPCall call
    +generateReport()
  +generateReport()
  }
}


  VoIPCall "1" -- "1" CDR
VoIPCall "1" -- "1" CDR
  @enduml
@enduml
  </kroki>
</kroki>


  === Test 3: Mermaid Flowchart ===
=== Test 3: Mermaid Flowchart ===
  <kroki lang="mermaid">
<kroki lang="mermaid">
  graph TD
graph TD
      A[Start VoIP Call] -->|Dial| B{Number Valid?}
    A[Start VoIP Call] -->|Dial| B{Number Valid?}
      B -->|Yes| C[Connect Call]
    B -->|Yes| C[Connect Call]
      B -->|No| D[Error Message]
    B -->|No| D[Error Message]
      C --> E[Call in Progress]
    C --> E[Call in Progress]
      E --> F[End Call]
    E --> F[End Call]
      D --> F
    D --> F
  </kroki>
</kroki>


  === Test 4: GraphViz Network Diagram ===
=== Test 4: GraphViz Network Diagram ===
  <kroki lang="graphviz">
<kroki lang="graphviz">
  digraph G {
digraph G {
      rankdir=LR;
    rankdir=LR;
      node [shape=box];
    node [shape=box];


      SIPPhone1 [label="SIP Phone 1"];
    SIPPhone1 [label="SIP Phone 1"];
      SIPPhone2 [label="SIP Phone 2"];
    SIPPhone2 [label="SIP Phone 2"];
      PBX [label="VoIPmonitor\nPBX"];
    PBX [label="VoIPmonitor\nPBX"];


      SIPPhone1 -> PBX [label="SIP"];
    SIPPhone1 -> PBX [label="SIP"];
      PBX -> SIPPhone2 [label="RTP"];
    PBX -> SIPPhone2 [label="RTP"];
  }
}
  </kroki>
</kroki>


  == New Test Section ==
== New Test Section for Incremental Indexing ==
  This is a completely new section added to test incremental wiki indexing with section-based chunks.
This is a completely new section added to test the incremental wiki indexer.
 
 
  The incremental indexer should detect this change and create a new section document in Qdrant with doc_type=section metadata.
The section-based indexer should create a doc_type=section document in Qdrant for this content. This verifies that update_wiki_incremental.sh correctly indexes new wiki sections using the agentic RAG format.

Revision as of 03:18, 9 January 2026

Kroki Extension Test

Test 1: PlantUML Sequence Diagram

Test 2: PlantUML Class Diagram

Test 3: Mermaid Flowchart

Test 4: GraphViz Network Diagram

New Test Section for Incremental Indexing

This is a completely new section added to test the incremental wiki indexer.

The section-based indexer should create a doc_type=section document in Qdrant for this content. This verifies that update_wiki_incremental.sh correctly indexes new wiki sections using the agentic RAG format.