Skip to content

Commit 4ff2bbf

Browse files
authored
VF Chatbot : Initial code for standalone chatbot sample app (#89)
1 parent cdabf73 commit 4ff2bbf

16 files changed

Lines changed: 1691 additions & 1024 deletions

package.json

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,30 +15,37 @@
1515
"@visual-framework/vf-box": "^2.4.0",
1616
"@visual-framework/vf-button": "3.0.2",
1717
"@visual-framework/vf-card": "2.7.2",
18+
"@visual-framework/vf-chatbot-action-prompt": "^1.0.0-beta.1",
19+
"@visual-framework/vf-chatbot-feedback": "^1.0.0-beta.1",
20+
"@visual-framework/vf-chatbot-prompt": "^1.0.0-beta.1",
21+
"@visual-framework/vf-chatbot-selector": "^1.0.0-beta.1",
22+
"@visual-framework/vf-chatbot-sources": "^1.0.0-beta.1",
23+
"@visual-framework/vf-chatbot-standalone": "^1.0.0-beta.1",
24+
"@visual-framework/vf-chatbot-welcome": "^1.0.0-beta.1",
1825
"@visual-framework/vf-content": "1.6.16",
1926
"@visual-framework/vf-core": "2.2.47",
20-
"@visual-framework/vf-font-plex-mono": "1.1.1",
21-
"@visual-framework/vf-font-plex-sans": "1.1.1",
27+
"@visual-framework/vf-extensions-react": "^0.0.8",
28+
"@visual-framework/vf-font-plex-mono": "^1.1.3",
29+
"@visual-framework/vf-font-plex-sans": "^1.1.3",
30+
"@visual-framework/vf-footer": "^1.2.1",
31+
"@visual-framework/vf-global-header": "^3.1.6",
2232
"@visual-framework/vf-grid": "^1.4.1",
2333
"@visual-framework/vf-hero": "^4.0.3",
24-
"@visual-framework/vf-global-header": "^3.1.6",
25-
"@visual-framework/vf-footer": "^1.2.1",
2634
"@visual-framework/vf-link": "^2.0.2",
27-
"@visual-framework/vf-sass-config": "2.6.1",
28-
"@visual-framework/vf-sass-starter": "^0.1.30",
29-
"@visual-framework/vf-utility-classes": "2.0.0",
3035
"@visual-framework/vf-mega-menu": "^1.0.2",
3136
"@visual-framework/vf-profile": "^1.4.0",
37+
"@visual-framework/vf-sass-config": "2.6.1",
38+
"@visual-framework/vf-sass-starter": "^0.1.30",
3239
"@visual-framework/vf-search": "^1.0.0",
3340
"@visual-framework/vf-stack": "^3.0.0",
3441
"@visual-framework/vf-tabs": "^2.1.5",
3542
"@visual-framework/vf-text": "^1.1.1",
3643
"@visual-framework/vf-u-fullbleed": "^1.2.2",
37-
"@visual-framework/vf-extensions-react": "^0.0.8",
44+
"@visual-framework/vf-utility-classes": "2.0.0",
3845
"react": "^18.2.0",
3946
"react-dom": "^18.2.0",
4047
"react-router-dom": "^6.21.1",
41-
"react-scripts": "5.0.1",
48+
"react-scripts": "^5.0.1",
4249
"sass": "^1.69.5",
4350
"web-vitals": "^2.1.4"
4451
},
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 4 additions & 0 deletions
Loading
Lines changed: 4 additions & 0 deletions
Loading
Lines changed: 11 additions & 0 deletions
Loading
Lines changed: 4 additions & 0 deletions
Loading
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
{
2+
"predefinedQA": {
3+
"What is Metabolights?": {
4+
"answer": "<div>MetaboLights is an open access repository for metabolomics studies, including raw experimental data and associated metadata.</div>\n<div>To know more:</div>\n<ol>\n <li class='vf-list__item'>\n <a href='#'>Methods and resources for omics studies</a>: A curated collection of EMBL-EBI on-demand training.\n </li>\n <li class='vf-list__item'>\n <a href='#'>MetaboLights</a>: Quick tour.\n </li>\n <li class='vf-list__item'>\n <a href='#'>Chemical biology</a>: A curated set of EMBL-EBI online courses.\n </li>\n</ol>"
5+
},
6+
"Learn how to apply bioinformatics tools in your academic work": {
7+
"answer": "Our Tools and Services portal provides access to commonly used resources in genomics, proteomics, and more. We also offer tutorials and use cases to guide integration into your academic projects."
8+
},
9+
"Start a guided learning path in bioinformatics": {
10+
"answer": "Great! You can begin with our structured courses and learning paths designed for beginners at the EMBL-EBI Training Portal. Perfect for students and early-stage researchers.",
11+
"sources": [
12+
{
13+
"domain": "ebi.ac.uk",
14+
"title": "EMBL-EBI Training",
15+
"url": "https://www.ebi.ac.uk/training/",
16+
"description": "Delivering world-class training in data-driven life sciences."
17+
}
18+
]
19+
},
20+
"Find resources and tools for structural biology analysis": {
21+
"answer": "Discover tools for structural biology, including protein modeling, domain analysis, and sequence alignment. Visit our Tools & Services portal to access popular resources.",
22+
"sources": [
23+
{
24+
"domain": "github.com",
25+
"title": "Structural Biology",
26+
"url": "https://github.com/pengzhangzhi/Awesome-Computational-Structural-Biology?utm_source=chatgpt.com",
27+
"description": "Awesome Computational Structural Biology (GitHub) – curated list of tools, tutorials, and courses"
28+
},
29+
{
30+
"domain": "hwi.buffalo.edu",
31+
"title": "Structural Biology Resource Page",
32+
"url": "https://hwi.buffalo.edu/structural-biology-resources/?utm_source=chatgpt.com",
33+
"description": "Structural Biology Resource Page – links to cryo-EM, crystallography, and X-ray data collection info from Hauptman-Woodward Institute"
34+
},
35+
{
36+
"domain": "www.creative-biostructure.com",
37+
"title": "Structural Biology Tools",
38+
"url": "https://www.creative-biostructure.com/structural-biology-tools.htm?srsltid=AfmBOooqvJ0ksY6p6Pryq1diKVWPxNK0t68zKnuyMuTB0_k1IABozOXO&utm_source=chatgpt.com",
39+
"description": "Creative Biostructure – lists structural resources and software across core techniques like crystallography and cryo-EM"
40+
}
41+
]
42+
},
43+
"How can I submit genomic data to EMBL-EBI?": {
44+
"answer": "To submit genomic data, visit the EMBL-EBI submission portal, where you’ll find step-by-step guides and tools for submitting sequencing data, assemblies, annotations, and more.",
45+
"sources": [
46+
{
47+
"domain": "ebi.ac.uk",
48+
"title": "EMBL's European Bioinformatics Institute",
49+
"url": "https://www.ebi.ac.uk/",
50+
"description": "Run BLAST searches against comprehensive sequence databases at EMBL-EBI."
51+
},
52+
{
53+
"domain": "ena-docs.readthedocs.io",
54+
"title": "ENA Documentation",
55+
"url": "https://ena-docs.readthedocs.io/en/latest/",
56+
"description": "ENA Documentation"
57+
}
58+
]
59+
},
60+
"Access documentation and developer tools": {
61+
"answer": "Explore the databse, where you can find model predictions, usage documentation, API access, and links to related publications. Developers can also access integration guides through the EMBL-EBI API Hub.",
62+
"sources": [
63+
{
64+
"domain": "ebi.ac.uk",
65+
"title": "EMBL-EBI APIs and Tools",
66+
"url": "https://www.ebi.ac.uk/services",
67+
"description": "Browse services by domain (genomics, proteomics, etc.) and access APIs."
68+
},
69+
{
70+
"domain": "ebi.ac.uk",
71+
"title": "EMBL-EBI API Documentation",
72+
"url": "https://www.ebi.ac.uk/about/api",
73+
"description": "RESTful APIs for tools like BLAST, InterProScan, Clustal Omega, etc."
74+
}
75+
]
76+
},
77+
"Discover upcoming bioinformatics workshops for beginners": {
78+
"answer": "Start your learning journey with our Training Events Calendar, featuring upcoming live webinars, virtual workshops, and in-person courses. Many sessions are designed for beginners and cover topics like genomics, data standards, and tool usage."
79+
}
80+
},
81+
"fallbackResponses": [
82+
{
83+
"answer": "I'm sorry, I'm having trouble connecting to my knowledge base right now. Could you try again in a moment?",
84+
"prompts": [
85+
{
86+
"action_text": "Contact support team",
87+
"action_url": "tel:+44 1223 494 444"
88+
},
89+
{
90+
"action_text": "Submit a support request",
91+
"action_url": "https://www.ebi.ac.uk/about/contact/support/"
92+
}
93+
]
94+
}
95+
]
96+
}
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"routes": [
3+
{
4+
"id": "gpt4-turbo",
5+
"title": "GPT-4 Turbo",
6+
"description": "Advanced language model with broader context window and improved capabilities",
7+
"selected": true
8+
},
9+
{
10+
"id": "claude3-opus",
11+
"title": "Claude 3 Opus",
12+
"description": "Anthropic's most powerful model with enhanced reasoning and analysis capabilities"
13+
},
14+
{
15+
"id": "gemini-ultra",
16+
"title": "Gemini Ultra",
17+
"description": "Google's most capable model for complex tasks and multitask reasoning"
18+
},
19+
{
20+
"id": "llama3",
21+
"title": "LLaMA 3",
22+
"description": "Meta's open foundation model with strong performance across various tasks"
23+
},
24+
{
25+
"id": "mixtral",
26+
"title": "Mixtral 8x7B",
27+
"description": "Mistral AI's mixture-of-experts model combining multiple specialized networks"
28+
},
29+
{
30+
"id": "palm3",
31+
"title": "PaLM 3",
32+
"description": "Google's latest PaLM model optimized for reasoning and multilingual tasks"
33+
},
34+
{
35+
"id": "gpt4-vision",
36+
"title": "GPT-4 Vision",
37+
"description": "Specialized version of GPT-4 for multimodal tasks including image understanding"
38+
},
39+
{
40+
"id": "claude3-sonnet",
41+
"title": "Claude 3 Sonnet",
42+
"description": "Balanced model offering strong performance with improved efficiency"
43+
}
44+
]
45+
}
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"routes": [
3+
{
4+
"id": "ensembl",
5+
"title": "Ensembl"
6+
},
7+
{
8+
"id": "uniprot",
9+
"title": "UniProt"
10+
},
11+
{
12+
"id": "pfam",
13+
"title": "Pfam"
14+
},
15+
{
16+
"id": "interpro",
17+
"title": "InterPro"
18+
},
19+
{
20+
"id": "chembl",
21+
"title": "ChEMBL"
22+
},
23+
{
24+
"id": "pdbe",
25+
"title": "PDBe"
26+
},
27+
{
28+
"id": "expression-atlas",
29+
"title": "Expression Atlas"
30+
},
31+
{
32+
"id": "pride",
33+
"title": "PRIDE"
34+
},
35+
{
36+
"id": "arrayexpress",
37+
"title": "ArrayExpress"
38+
},
39+
{
40+
"id": "intact",
41+
"title": "IntAct"
42+
},
43+
{
44+
"id": "reactome",
45+
"title": "Reactome"
46+
},
47+
{
48+
"id": "metabolights",
49+
"title": "MetaboLights"
50+
}
51+
]
52+
}

public/favicon.ico

11 KB
Binary file not shown.

0 commit comments

Comments
 (0)