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

AI Argo/Python assistant based on OpenAI chat-GPT-v3.5 #282

Draft
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

gmaze
Copy link
Member

@gmaze gmaze commented Jun 21, 2023

Let's have some fun with this new feature, a virtual assistant based on chatGPT

full disclosure: this is primarily made just for fun and to explore possibilities with the openai library

Requirements

Usage

Create an assistant instance:

import argopy
argopy.set_options(openai_api_key='*****', user='Jane')  # https://platform.openai.com/account/api-keys

AI = Assistant()
    <argopy.Assistant>
    You're up to start chatting or asking questions to 🤖 Medea, your Argo assistant
    Initiate a chat session with the: chat() method
    or just ask a question with the: ask('text') method
    Check out your API usage at: https://platform.openai.com/account/usage
    
    ❗❗This is an highly experimental feature, mainly built just for fun ❗❗
    Use at your own risk and be aware that chatGPT often tends to invent non-existing argopy methods
    The argopy documentation is the most reliable source of information: https://argopy.readthedocs.io/

then, you can ask one question:

AI.ask('how to load float 6903456 ?')
AI.ask('show me how to load the Argo profile index with argopy')

or trigger an interactive chat session:

AI.chat()

in the end, you can still check out your conversation with the assistant:

AI.replay()

The Assistant should adapt responses to your user mode:

with argopy.set_options(mode='expert'):
    Assistant().chat()
with argopy.set_options(mode='standard'):
    Assistant().chat()

Motivations

Fun !

Seriously: the Argo community report more than 20 pdf manuals, some with 10s of pages, hundreds of variables and so on... Given what's now and easily possible with python librairies, it should be possible to make a chat bot that could seriously help beginners with Argo data.

@gmaze gmaze added documentation Improvements or additions to documentation enhancement New feature or request labels Jun 21, 2023
@gmaze gmaze self-assigned this Jun 21, 2023
@github-actions
Copy link

This pull request was marked as staled automatically because it has not seen any activity in 90 days

@github-actions github-actions bot added the stale No activity over the last 90 days label Sep 20, 2023
@github-actions github-actions bot removed the stale No activity over the last 90 days label May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant