Mercurial > repos > goeckslab > chatanalysis
annotate chat_analysis.xml @ 3:eaa8cead8adb draft default tip
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 512ff18ff5b549236910e706d4f73bde494399dc
author | goeckslab |
---|---|
date | Thu, 28 Nov 2024 04:36:09 +0000 |
parents | 5c1018ad5eb3 |
children |
rev | line source |
---|---|
0
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
1 <tool id="interactive_tool_chat_analysis" tool_type="interactive" name="Chat with your data" version="0.1"> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
2 <requirements> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
3 <container type="docker"> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
4 quay.io/goeckslab/chatanalysis:main |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
5 </container> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
6 </requirements> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
7 <entry_points> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
8 <entry_point name="Chat with $input_dataset.element_identifier" requires_domain="True"> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
9 <port> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
10 8501 |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
11 </port> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
12 <url> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
13 / |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
14 </url> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
15 </entry_point> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
16 </entry_points> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
17 <command> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
18 <![CDATA[ |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
19 echo "Starting Streamlit" && |
2
5c1018ad5eb3
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit f4ecf0087e42199a991ed4d9556e16cefdb7d4cb
goeckslab
parents:
1
diff
changeset
|
20 echo "working dir now: `pwd`" && |
0
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
21 mkdir -p plots && |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
22 streamlit run /ChatAnalysis/chat_analysis.py |
1
7b33a7a006c7
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 1aba9600459e8a3136e5516ece74eecd9cb4f5fc
goeckslab
parents:
0
diff
changeset
|
23 "$openai_api_key_file" |
7b33a7a006c7
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 1aba9600459e8a3136e5516ece74eecd9cb4f5fc
goeckslab
parents:
0
diff
changeset
|
24 "$groq_api_key_file" |
7b33a7a006c7
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 1aba9600459e8a3136e5516ece74eecd9cb4f5fc
goeckslab
parents:
0
diff
changeset
|
25 "$chat_history" |
7b33a7a006c7
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 1aba9600459e8a3136e5516ece74eecd9cb4f5fc
goeckslab
parents:
0
diff
changeset
|
26 "$export_csv" |
7b33a7a006c7
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 1aba9600459e8a3136e5516ece74eecd9cb4f5fc
goeckslab
parents:
0
diff
changeset
|
27 "./plots" |
7b33a7a006c7
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 1aba9600459e8a3136e5516ece74eecd9cb4f5fc
goeckslab
parents:
0
diff
changeset
|
28 "$input_dataset" |
0
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
29 ]]> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
30 </command> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
31 <configfiles> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
32 <configfile name="openai_api_key_file"><![CDATA[ |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
33 $__user__.extra_preferences.get('chatgpt|api_key') |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
34 ]]></configfile> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
35 <configfile name="groq_api_key_file"><![CDATA[ |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
36 $__user__.extra_preferences.get('groq|api_key') |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
37 ]]> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
38 </configfile> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
39 </configfiles> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
40 <stdio> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
41 <exit_code range="0:0" level="log"/> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
42 </stdio> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
43 <inputs> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
44 <param name="input_dataset" type="data" format="csv,tabular" label="Data(csv or tsv) you want to chat with" optional="false"/> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
45 </inputs> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
46 <outputs> |
3
eaa8cead8adb
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 512ff18ff5b549236910e706d4f73bde494399dc
goeckslab
parents:
2
diff
changeset
|
47 <data name="chat_history" format="pdf" label="${tool.name} -- chat history pdf on ${on_string}"/> |
0
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
48 <data name="export_csv" format="csv" label="${tool.name} -- the exported csv you selected on ${on_string}"/> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
49 </outputs> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
50 <tests> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
51 <test expect_num_outputs="2"> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
52 <param name="input_dataset" value="test.csv"/> |
3
eaa8cead8adb
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 512ff18ff5b549236910e706d4f73bde494399dc
goeckslab
parents:
2
diff
changeset
|
53 <output name="chat_history" file="chat_history.pdf" compare="sim_size" /> |
0
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
54 <output name="export_csv" file="exported.csv" compare="sim_size" /> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
55 </test> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
56 </tests> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
57 <help> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
58 Analyze and visualize a dataset with a Chat Agent. |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
59 |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
60 Start a ChatAnalysis instance after selecting a dataset — we provide free access to some LLMs. |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
61 |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
62 You are encouraged to use your own API keys, as the provided free access has limits. You can obtain a **free API key** for BambooLLM by signing up at https://pandas-ai.com and a **free API key** for Groq by signing up at https://groq.com. |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
63 |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
64 If you wish to set the OpenAI API key beforehand, go to **User → Preferences → Manage Information → ChatGPT → OpenAI API Key**. This way, you won’t need to set the OpenAI API key each time you use the app. |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
65 |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
66 Similarly, to set the Groq API key beforehand, navigate to **User → Preferences → Manage Information → Groq → API Key**. |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
67 |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
68 Alternatively, you can set the API key directly in the ChatAnalysis instance after it has started. |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
69 </help> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
70 </tool> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
71 |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
72 |