mtyrrell commited on
Commit
427f510
·
1 Parent(s): ecf9255

revised guidance tab

Browse files
Files changed (2) hide show
  1. app.py +33 -34
  2. logs/app.log +34 -0
app.py CHANGED
@@ -441,7 +441,40 @@ with gr.Blocks(title="Audit Q&A", css= "style.css", theme=theme,elem_id = "main-
441
 
442
  dropdown_samples.change(change_sample_questions,dropdown_samples,samples)
443
 
 
 
 
 
 
 
 
 
 
 
 
 
 
444
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
445
  # static tab 'about us'
446
  with gr.Tab("About",elem_classes = "max-height other-tabs"):
447
  with gr.Row():
@@ -486,41 +519,7 @@ with gr.Blocks(title="Audit Q&A", css= "style.css", theme=theme,elem_id = "main-
486
 
487
  """)
488
 
489
- # ---- New Guidelines Tab ----
490
- with gr.Tab("Guidelines", elem_classes="max-height other-tabs"):
491
- gr.Markdown("""
492
- # Guidelines
493
-
494
- Welcome to Audit Q&A, your AI-powered assistant for exploring and understanding audit reports. This tool leverages advanced language models to help you get clear and structured answers based on audit publications.
495
-
496
- ## Crafting Effective Prompts
497
-
498
- - **Be Clear and Specific**: Clearly state your question and include details such as report type, year, or specific sections if applicable.
499
- - **Provide Adequate Context**: Mention the report category or even specific subsections that could help the model better understand your question.
500
- - **Avoid Ambiguity**: Use direct, focused language; for example, instead of asking "What are the findings?" try "What are the key findings regarding revenue compliance in the Kampala Region? (Note - it helps to combine this approach with filters - see below)"
501
-
502
- ## Best Practices
503
-
504
- - Start with a simple, focused question.
505
- - Follow up with additional context if your initial query is too broad.
506
- - Experiment with different phrasings to get the most accurate answers.
507
- - Use the source citations as a reference to validate the provided information.
508
-
509
- ## Utilizing Filters
510
-
511
- - **Report Category & Subtype**: Use the "Reports" tab to choose your preferred report category and refine your query by selecting a specific sub-type. This will help narrow down the context for your question.
512
- - **Year Selection**: Choose one or more years from the "Year" filter to target your query to specific time periods.
513
- - **Specific Reports**: Optionally, select specific reports using the dropdown to focus on a particular document or set of documents.
514
-
515
- ## Useful Resources
516
-
517
- - Short Course: Generative AI for Everyone (3 hours) https://www.deeplearning.ai/courses/generative-ai-for-everyone/
518
- - Short Course: Advanced Prompting with OpenAI O1 (1 hour) https://www.deeplearning.ai/courses/ai-for-everyone/
519
- - Short Course: Introduction to AI with IBM (13 hours) https://www.coursera.org/learn/introduction-to-ai
520
-
521
 
522
- Enjoy using Audit Q&A and happy prompting!
523
- """)
524
 
525
  # static tab for disclaimer
526
  with gr.Tab("Disclaimer",elem_classes = "max-height other-tabs"):
 
441
 
442
  dropdown_samples.change(change_sample_questions,dropdown_samples,samples)
443
 
444
+ # ---- New Guidelines Tab ----
445
+ with gr.Tab("Guidelines", elem_classes="max-height other-tabs"):
446
+ gr.Markdown("""
447
+
448
+ Welcome to Audit Q&A, your AI-powered assistant for exploring and understanding Uganda's audit reports. This tool leverages advanced language models to help you get clear and structured answers based on audit publications.
449
+
450
+ ### Crafting Effective Prompts
451
+
452
+ - **Be Clear and Specific**: Clearly state your question and include details such as report type, year, or specific sections if applicable.
453
+ - **Provide Adequate Context**: Mention the report category or even specific subsections that could help the model better understand your question.
454
+ - **Avoid Ambiguity**: Use direct, focused language; for example, instead of asking "What are the findings?" try "What are the key findings regarding revenue compliance in the Kampala Region?" Note - it helps to combine this approach with filters (see below).
455
+
456
+ ### Best Practices
457
 
458
+ - Start with a simple, focused question.
459
+ - Follow up with additional context if your initial query is too broad.
460
+ - Experiment with different phrasings to get the most accurate answers.
461
+ - Use the source citations as a reference to validate the provided information.
462
+
463
+ ### Utilizing Filters
464
+
465
+ - **Report Category & Subtype**: Use the "Reports" tab to choose your preferred report category and refine your query by selecting a specific sub-type. This will help narrow down the context for your question.
466
+ - **Year Selection**: Choose one or more years from the "Year" filter to target your query to specific time periods.
467
+ - **Specific Reports**: Optionally, select specific reports using the dropdown to focus on a particular document or set of documents.
468
+
469
+ ### Useful Resources
470
+
471
+ - <ins>[**Short Course: Generative AI for Everyone** (3 hours)](https://www.deeplearning.ai/courses/generative-ai-for-everyone/)</ins>
472
+ - <ins>[**Short Course: Advanced Prompting** (1 hour)](https://www.deeplearning.ai/courses/ai-for-everyone/)</ins>
473
+ - <ins>[**Short Course: Introduction to AI with IBM** (13 hours)](https://www.coursera.org/learn/introduction-to-ai)</ins>
474
+
475
+ Enjoy using Audit Q&A and happy prompting!
476
+ """)
477
+
478
  # static tab 'about us'
479
  with gr.Tab("About",elem_classes = "max-height other-tabs"):
480
  with gr.Row():
 
519
 
520
  """)
521
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
522
 
 
 
523
 
524
  # static tab for disclaimer
525
  with gr.Tab("Disclaimer",elem_classes = "max-height other-tabs"):
logs/app.log CHANGED
@@ -1483,3 +1483,37 @@ Make sure your token has the correct permissions.
1483
  2025-02-13 15:17:36,320 - httpx - INFO - HTTP Request: GET http://127.0.0.1:7860/startup-events "HTTP/1.1 200 OK"
1484
  2025-02-13 15:17:36,332 - httpx - INFO - HTTP Request: HEAD http://127.0.0.1:7860/ "HTTP/1.1 200 OK"
1485
  2025-02-13 15:17:36,886 - httpx - INFO - HTTP Request: GET https://api.gradio.app/pkg-version "HTTP/1.1 200 OK"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1483
  2025-02-13 15:17:36,320 - httpx - INFO - HTTP Request: GET http://127.0.0.1:7860/startup-events "HTTP/1.1 200 OK"
1484
  2025-02-13 15:17:36,332 - httpx - INFO - HTTP Request: HEAD http://127.0.0.1:7860/ "HTTP/1.1 200 OK"
1485
  2025-02-13 15:17:36,886 - httpx - INFO - HTTP Request: GET https://api.gradio.app/pkg-version "HTTP/1.1 200 OK"
1486
+ 2025-02-13 15:42:55,783 - datasets - INFO - PyTorch version 2.4.0 available.
1487
+ 2025-02-13 15:42:55,889 - sentence_transformers.SentenceTransformer - INFO - Load pretrained SentenceTransformer: BAAI/bge-large-en-v1.5
1488
+ 2025-02-13 15:42:57,530 - httpx - INFO - HTTP Request: GET https://checkip.amazonaws.com/ "HTTP/1.1 200 "
1489
+ 2025-02-13 15:42:57,548 - httpx - INFO - HTTP Request: GET http://127.0.0.1:7860/startup-events "HTTP/1.1 200 OK"
1490
+ 2025-02-13 15:42:57,560 - httpx - INFO - HTTP Request: HEAD http://127.0.0.1:7860/ "HTTP/1.1 200 OK"
1491
+ 2025-02-13 15:42:58,129 - httpx - INFO - HTTP Request: GET https://api.gradio.app/pkg-version "HTTP/1.1 200 OK"
1492
+ 2025-02-13 15:44:44,046 - datasets - INFO - PyTorch version 2.4.0 available.
1493
+ 2025-02-13 15:44:44,139 - sentence_transformers.SentenceTransformer - INFO - Load pretrained SentenceTransformer: BAAI/bge-large-en-v1.5
1494
+ 2025-02-13 15:44:45,956 - httpx - INFO - HTTP Request: GET https://checkip.amazonaws.com/ "HTTP/1.1 200 "
1495
+ 2025-02-13 15:44:45,963 - httpx - INFO - HTTP Request: GET http://127.0.0.1:7860/startup-events "HTTP/1.1 200 OK"
1496
+ 2025-02-13 15:44:45,974 - httpx - INFO - HTTP Request: HEAD http://127.0.0.1:7860/ "HTTP/1.1 200 OK"
1497
+ 2025-02-13 15:44:46,524 - httpx - INFO - HTTP Request: GET https://api.gradio.app/pkg-version "HTTP/1.1 200 OK"
1498
+ 2025-02-13 15:46:45,122 - huggingface_hub.hf_api - WARNING - No files have been modified since last commit. Skipping to prevent empty commit.
1499
+ 2025-02-13 15:47:04,019 - datasets - INFO - PyTorch version 2.4.0 available.
1500
+ 2025-02-13 15:47:04,114 - sentence_transformers.SentenceTransformer - INFO - Load pretrained SentenceTransformer: BAAI/bge-large-en-v1.5
1501
+ 2025-02-13 15:47:05,947 - httpx - INFO - HTTP Request: GET https://checkip.amazonaws.com/ "HTTP/1.1 200 "
1502
+ 2025-02-13 15:47:05,965 - httpx - INFO - HTTP Request: GET http://127.0.0.1:7860/startup-events "HTTP/1.1 200 OK"
1503
+ 2025-02-13 15:47:05,976 - httpx - INFO - HTTP Request: HEAD http://127.0.0.1:7860/ "HTTP/1.1 200 OK"
1504
+ 2025-02-13 15:47:06,535 - httpx - INFO - HTTP Request: GET https://api.gradio.app/pkg-version "HTTP/1.1 200 OK"
1505
+ 2025-02-13 15:47:56,421 - huggingface_hub.hf_api - WARNING - No files have been modified since last commit. Skipping to prevent empty commit.
1506
+ 2025-02-13 15:48:02,706 - datasets - INFO - PyTorch version 2.4.0 available.
1507
+ 2025-02-13 15:48:02,805 - sentence_transformers.SentenceTransformer - INFO - Load pretrained SentenceTransformer: BAAI/bge-large-en-v1.5
1508
+ 2025-02-13 15:48:04,493 - httpx - INFO - HTTP Request: GET https://checkip.amazonaws.com/ "HTTP/1.1 200 "
1509
+ 2025-02-13 15:48:04,494 - httpx - INFO - HTTP Request: GET http://127.0.0.1:7860/startup-events "HTTP/1.1 200 OK"
1510
+ 2025-02-13 15:48:04,506 - httpx - INFO - HTTP Request: HEAD http://127.0.0.1:7860/ "HTTP/1.1 200 OK"
1511
+ 2025-02-13 15:48:05,062 - httpx - INFO - HTTP Request: GET https://api.gradio.app/pkg-version "HTTP/1.1 200 OK"
1512
+ 2025-02-13 15:49:10,929 - huggingface_hub.hf_api - WARNING - No files have been modified since last commit. Skipping to prevent empty commit.
1513
+ 2025-02-13 15:49:16,107 - huggingface_hub.hf_api - WARNING - No files have been modified since last commit. Skipping to prevent empty commit.
1514
+ 2025-02-13 15:49:16,707 - datasets - INFO - PyTorch version 2.4.0 available.
1515
+ 2025-02-13 15:49:16,800 - sentence_transformers.SentenceTransformer - INFO - Load pretrained SentenceTransformer: BAAI/bge-large-en-v1.5
1516
+ 2025-02-13 15:49:18,578 - httpx - INFO - HTTP Request: GET http://127.0.0.1:7860/startup-events "HTTP/1.1 200 OK"
1517
+ 2025-02-13 15:49:18,578 - httpx - INFO - HTTP Request: GET https://checkip.amazonaws.com/ "HTTP/1.1 200 "
1518
+ 2025-02-13 15:49:18,590 - httpx - INFO - HTTP Request: HEAD http://127.0.0.1:7860/ "HTTP/1.1 200 OK"
1519
+ 2025-02-13 15:49:19,159 - httpx - INFO - HTTP Request: GET https://api.gradio.app/pkg-version "HTTP/1.1 200 OK"