From 29ff1b6b7b00b34317e8d9764bcedd5b7dacbc02 Mon Sep 17 00:00:00 2001 From: John Nduli Date: Fri, 30 Aug 2024 12:19:50 +0300 Subject: feat: add ai search box to xapian results page --- gn2/wqflask/templates/gsearch_gene.html | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) (limited to 'gn2/wqflask/templates') diff --git a/gn2/wqflask/templates/gsearch_gene.html b/gn2/wqflask/templates/gsearch_gene.html index 3432662d..c32f1ee1 100644 --- a/gn2/wqflask/templates/gsearch_gene.html +++ b/gn2/wqflask/templates/gsearch_gene.html @@ -10,12 +10,26 @@
-

GN searched for the term(s) "{{ terms }}" in 754 datasets and 39,765,944 traits across 10 species
- and found {{ trait_count }} results that match your query.
- You can filter these results by adding key words in the fields below
- and you can also sort results on most columns.

-

To study a record, click on its Record ID below.
Check records below and click Add button to add to selection.

- +
+
+

GN searched for the term(s) "{{ terms }}" in 754 datasets and 39,765,944 traits across 10 species
+ and found {{ trait_count }} results that match your query.
+ You can filter these results by adding key words in the fields below
+ and you can also sort results on most columns.

+

To study a record, click on its Record ID below.
Check records below and click Add button to add to selection.

+
+ {% if ai_result %} +
+
+
AI Search: {{ ai_result["search_term"] }}
+
+

{{ ai_result["search_result"] }}

+

See References

+
+
+ {% endif %} +
+

-- cgit v1.2.3