Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a post about ChatGPT in Galaxy Interactive tool #2114

Merged
merged 7 commits into from
Aug 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added content/news/2023-08-14-chatGPT/chatgpt_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added content/news/2023-08-14-chatGPT/chatgpt_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added content/news/2023-08-14-chatGPT/chatgpt_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added content/news/2023-08-14-chatGPT/chatgpt_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions content/news/2023-08-14-chatGPT/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
title: "ChatGPT in Galaxy via Jupyter notebooks"
date: "2023-08-14"
authors: Anup Kumar
tease: "Use ChatGPT in Galaxy Europe via JupyterLab interactive tool."
hide_tease: true
subsites: [all-eu,global]
---

### Generative AI (ChatGPT) as a programming assitant

Many generative AI models by [OpenAI](https://openai.com/) are now accessible via a [UI plugin](https://github.com/jupyterlab/jupyter-ai) in the GPU-enabled JupyterLab interactive tool on Galaxy Europe. These AI models from OpenAI have been trained on an enormous amount of text that provides reasonable answers to queries - from literature to programming. In several ways, models such as ChatGPT can assist programmers in generating a backbone of general-purpose code blocks and methods, finding errors in code or developing explanations of already written code or existing errors, and for many different purposes.

### How to access on Galaxy Europe:

1. If you do not have it already, please apply for using GPU JupyterLab via http://usegalaxy.eu/gpu-request.
2. Acquire an OpenAI access token by creating an [OpenAI](https://openai.com/) account. It should be noted that using OpenAI models requires a premium/paid account from OpenAI.
3. Go to [GPU JupyterLab tool](https://usegalaxy.eu/?tool_id=interactive_tool_ml_jupyter_notebook&version=0.2) in Galaxy Europe.
4. Open the JupyterLab and click the "chat" icon at the bottom of the left panel ("Jupyternaut"). Choose the model you want to use ("language model", an LLM). (Optionally) Further, an "embedding" model can be selected to make the assistant learn about the local file structures - files inside JupyterLab. Users must provide an OpenAI access token to get responses to their queries. These tokens are for personal use and are NOT saved inside Galaxy. Then, a chatbox is shown to write questions. Refer to images 1 and 2.

![Jupyternaut 3](./chatgpt_3.png)

![Jupyternaut 1](./chatgpt_1.png)

Follow-up queries can also be made:

![Jupyternaut 2](./chatgpt_2.png)

5. Another way to use ChatGPT is from inside a notebook using the "magic command" `%%ai`, see the next image to get an idea. An example is provided at `/notebooks/test-Generative-AI.ipynb` inside the notebook. See the following image for further details.

![ChatGPT in a notebook](./chatgpt_4.png)


For more examples and details, see the [Jupyter AI page](https://jupyter-ai.readthedocs.io/en/latest/users/index.html).
Loading