Spaces:
				
			
			
	
			
			
		Paused
		
	
	
	
			
			
	
	
	
	
		
		
		Paused
		
	Update app.py
Browse files
    	
        app.py
    CHANGED
    
    | @@ -87,32 +87,19 @@ tips_md = r""" | |
| 87 | 
             
              • Dokumentasi chatbot mungkin berbeda penomoran-nya dengan dokumentasi yang Anda punya karena diefisiensi/diorganisasi untuk vector storage, sehingga jangan mereferensi nomor atau butir, tapi langsung sebutkan konsepnya.
         | 
| 88 | 
             
              • Jika konsep sangat luas atau terlalu kompleks, coba breakdown konsep ke bagian-bagiannya.  Usahakan satu pertanyaan mendalam yang dilengkapi konteks daripada banyak pertanyaan yang menyangkut banyak aspek berbeda.
         | 
| 89 |  | 
| 90 | 
            -
            - **Examples** (click to try)  
         | 
| 91 | 
            -
             | 
| 92 | 
            -
              ```text
         | 
| 93 | 
            -
              Jelaskan konsep PRECISE secara sederhana.
         | 
| 94 | 
            -
              ```
         | 
| 95 | 
            -
             | 
| 96 | 
            -
              ```text
         | 
| 97 | 
            -
              Berapa keuntungan finansial yang didapat menggunakan PRECISE?
         | 
| 98 | 
            -
              ```
         | 
| 99 | 
            -
             | 
| 100 | 
            -
              ```text
         | 
| 101 | 
            -
              Tuliskan implementasi logika LOESS menggunakan JAVA
         | 
| 102 | 
            -
              ```
         | 
| 103 | 
             
            """
         | 
| 104 |  | 
| 105 | 
             
            # 4.2  Footer – the old description / notes
         | 
| 106 | 
             
            footer_md = r"""
         | 
| 107 | 
             
            ---  
         | 
| 108 | 
            -
            **Frameworks**: LangChain + FAISS | **Model**: gpt‑oss‑20b, gemma‑3‑3n4B  
         | 
| 109 | 
             
            *Updated 07 Sep 2025 – YOI*  
         | 
| 110 |  | 
| 111 | 
             
            """
         | 
| 112 |  | 
| 113 | 
             
            # 4.3  Chat component (no description here)
         | 
| 114 | 
             
            chatbot = gr.ChatInterface(
         | 
| 115 | 
            -
                respond,
         | 
| 116 | 
             
                type="messages",
         | 
| 117 | 
             
                title="PRECISE RAG Agent",
         | 
| 118 | 
             
                examples=[
         | 
| @@ -127,8 +114,8 @@ chatbot = gr.ChatInterface( | |
| 127 | 
             
            # 4.4  Assemble everything inside a Blocks container
         | 
| 128 | 
             
            with gr.Blocks() as demo:
         | 
| 129 | 
             
                # Optional: add a small vertical space at the top
         | 
| 130 | 
            -
                gr.Markdown(tips_md)          # <-- Tips section (renders LaTeX)
         | 
| 131 | 
             
                chatbot.render()             # <-- Main chat UI
         | 
|  | |
| 132 | 
             
                gr.Markdown(footer_md)        # <-- Footer (old description)
         | 
| 133 |  | 
| 134 | 
             
            # ----------------------------------------------------------------------
         | 
|  | |
| 87 | 
             
              • Dokumentasi chatbot mungkin berbeda penomoran-nya dengan dokumentasi yang Anda punya karena diefisiensi/diorganisasi untuk vector storage, sehingga jangan mereferensi nomor atau butir, tapi langsung sebutkan konsepnya.
         | 
| 88 | 
             
              • Jika konsep sangat luas atau terlalu kompleks, coba breakdown konsep ke bagian-bagiannya.  Usahakan satu pertanyaan mendalam yang dilengkapi konteks daripada banyak pertanyaan yang menyangkut banyak aspek berbeda.
         | 
| 89 |  | 
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
| 90 | 
             
            """
         | 
| 91 |  | 
| 92 | 
             
            # 4.2  Footer – the old description / notes
         | 
| 93 | 
             
            footer_md = r"""
         | 
| 94 | 
             
            ---  
         | 
| 95 | 
            +
            **Frameworks**: LangChain + FAISS | **Model**: gpt‑oss‑20b, gemma‑3‑3n4B  \n
         | 
| 96 | 
             
            *Updated 07 Sep 2025 – YOI*  
         | 
| 97 |  | 
| 98 | 
             
            """
         | 
| 99 |  | 
| 100 | 
             
            # 4.3  Chat component (no description here)
         | 
| 101 | 
             
            chatbot = gr.ChatInterface(
         | 
| 102 | 
            +
                gr.Markdown(respond),
         | 
| 103 | 
             
                type="messages",
         | 
| 104 | 
             
                title="PRECISE RAG Agent",
         | 
| 105 | 
             
                examples=[
         | 
|  | |
| 114 | 
             
            # 4.4  Assemble everything inside a Blocks container
         | 
| 115 | 
             
            with gr.Blocks() as demo:
         | 
| 116 | 
             
                # Optional: add a small vertical space at the top
         | 
|  | |
| 117 | 
             
                chatbot.render()             # <-- Main chat UI
         | 
| 118 | 
            +
                gr.Markdown(tips_md)          # <-- Tips section (renders LaTeX)
         | 
| 119 | 
             
                gr.Markdown(footer_md)        # <-- Footer (old description)
         | 
| 120 |  | 
| 121 | 
             
            # ----------------------------------------------------------------------
         | 
