From eab124cc5dfc32dad5de239fcd91cd59806fdcaf Mon Sep 17 00:00:00 2001 From: Alexander_Kabui Date: Tue, 23 Apr 2024 18:18:19 +0300 Subject: Add reimplementation for gnqa error page --- gn2/wqflask/templates/gnqa_errors.html | 30 ++++++++++-------------------- 1 file changed, 10 insertions(+), 20 deletions(-) (limited to 'gn2/wqflask/templates') diff --git a/gn2/wqflask/templates/gnqa_errors.html b/gn2/wqflask/templates/gnqa_errors.html index d2e04135..34d0121f 100644 --- a/gn2/wqflask/templates/gnqa_errors.html +++ b/gn2/wqflask/templates/gnqa_errors.html @@ -1,21 +1,11 @@ -{% extends "base.html" %} -{% block title %}GNQNA{% endblock %} - -{% block content %} - -
-
-

Error: - {{error}}

-
- -
- - - - - - -{% endblock %} +
+
+ Search_Query: {{ query }} +
+ Status_Code: {{ status_code }} +
+ Error/Reason: {{ error }} +
+
+
-- cgit v1.2.3 From 252c35cdf9589a34d4ba25ca1026b9a21ee48985 Mon Sep 17 00:00:00 2001 From: Alexander_Kabui Date: Tue, 23 Apr 2024 18:19:05 +0300 Subject: Implementation for gnqa chatbox ui --- gn2/wqflask/templates/gnqa_chat_box.html | 136 +++++++++++++++++++++++++++++++ 1 file changed, 136 insertions(+) create mode 100644 gn2/wqflask/templates/gnqa_chat_box.html (limited to 'gn2/wqflask/templates') diff --git a/gn2/wqflask/templates/gnqa_chat_box.html b/gn2/wqflask/templates/gnqa_chat_box.html new file mode 100644 index 00000000..a10062cd --- /dev/null +++ b/gn2/wqflask/templates/gnqa_chat_box.html @@ -0,0 +1,136 @@ +
+
+
+
+
+
+

You

+

+ {{ query }} +

+
+
+
+

GNQA

+
+ {{ answer }} +
+
+
+
+

References Metadata related to your query

+ {% if references %} +
    + {% for reference in references %} +
  • +
    +
    + {% if loop.first %} + +
    +
    +

    {{ reference.comboTxt }}

    +
    + {% if reference.pubmed %} +
    +
    + See PubMed Info +
    +

    {{ reference.pubmed[0].get('title') }}:

    +

    Authors:{{ reference.pubmed[0].get('authors') }}

    +

    PMID: {{ reference.pubmed[0].get('pub_id') }}

    +

    Abstract:

    +

    {{ reference.pubmed[0].get('abstract')|safe }}

    +

    Click to view full Article on Pubmed

    +
    +
    + {% endif %} +
    +
    + {% else %} + +
    +
    +

    {{reference.comboTxt}}

    +
    + {% if reference.pubmed %} +
    +
    + See PubMed Info +
    +

    {{ reference.pubmed[0].get('title') }}:

    +

    Authors:{{ reference.pubmed[0].get('authors') }}

    +

    PMID: {{ reference.pubmed[0].get('pub_id') }}

    +

    Abstract:

    +

    {{ reference.pubmed[0].get('abstract')|safe }}

    +

    Click to view full Article on Pubmed

    +
    +
    + + {% endif %} +
    +
    +
    + {% endif %} +
    +
    +
  • + {% endfor %} +
+ {% else %} +

No references available.

+ {% endif %} +
+
+
+
+
+
+ +
+ +
+
+
+
+
+
+
+
+

Click links below to view references

+ {% for reference in references %} + {{reference.bibInfo}} +
+ {% endfor %} +
+
+
+ +
-- cgit v1.2.3 From ed0e55326787f61a7fe130b64d52af75eb3257aa Mon Sep 17 00:00:00 2001 From: Alexander_Kabui Date: Tue, 23 Apr 2024 18:20:45 +0300 Subject: Add implementation for new gnqa template. * This is a separate interface from gnqa main page for testing. --- gn2/wqflask/templates/gnqa_test.html | 178 +++++++++++++++++++++++++++++++++++ 1 file changed, 178 insertions(+) create mode 100644 gn2/wqflask/templates/gnqa_test.html (limited to 'gn2/wqflask/templates') diff --git a/gn2/wqflask/templates/gnqa_test.html b/gn2/wqflask/templates/gnqa_test.html new file mode 100644 index 00000000..eefa66f7 --- /dev/null +++ b/gn2/wqflask/templates/gnqa_test.html @@ -0,0 +1,178 @@ +{% extends "base.html" %} +{% block title %}GNQA test{% endblock %} +{% block css %} + +{% endblock %} +{% block search %}{% endblock %} +{% block content %} +
+
+
+
+
+ +
+
+
+

Search History

+
+
    + {% for record in history %} +
  • +
    + +
    + +
    +
    + +
    +
    +
    +
  • + {% endfor %} +
+
+
+
+
+
+
+
+
+

+ Welcome to the GeneNetwork Question and Answer (GNQA)system. We utilize a large language model and 3000 scientific publications to make GNQA a subject matter expert in three areas: GeneNetwork.org , genomics/genetics with regards to diabetes and genomics/genetics with regards to agin.. +

+

At the moment when you ask GNQA something it will attempt to return a sensible answer with real references. To this end we aim to reduce hallucinations and provide a knowledge launchpad for a researcher to enhance their knowledge on the relevant subject matter.

+

+ GNQA is not a finished product as we are working diligently to improve it daily. +

+

Thanks for using GNQA!

+ +
+
+
+
+
+ Examples of Questions +
+
+ + + +
+
+
+
+
+
+
+
+
+
+ +
+ +
+
+
+
+
+
+
+
+{% endblock %} +{% block js %} + + + + +{% endblock %} + -- cgit v1.2.3