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

Experimental galactic wizard #15860

Merged
merged 33 commits into from
Nov 19, 2024
Merged

Conversation

dannon
Copy link
Member

@dannon dannon commented Mar 28, 2023

Talked with several folks who were interested in this last week so I'm sharing this basic implementation of a galactic wizard / chat assistant that I was playing with. Not currently linked into the UI, just go to <instance>/wizard.

This interface could be a chat box (though responses are generally longer than one would want to see there), or whatever else.

Tinkering with the prompt (should probably be made configurable) is something folks can explore and for a real deployment we'd almost certainly want to pursue something similar to https://supabase.com/blog/chatgpt-supabase-docs to contextualize answers using the contents of the GTN, GHelp, or the hub.

image

image

Right now, this also (intentionally) doesn't allow follow-up questions to avoid having to track/store context, but it would be straightforward to add.

Anyway, this could go in any number of directions -- just wanted to toss it out here for folks to play with and think about.

How to test the changes?

(Select all options that apply)

  • I've included appropriate automated tests.
  • This is a refactoring of components with existing test coverage.
  • Instructions for manual testing are as follows:
    1. [add testing steps and prerequisites here if you didn't write automated tests covering all your changes]

License

  • I agree to license these and all my past contributions to the core galaxy codebase under the MIT license.

@neoformit
Copy link
Collaborator

This is awesome - can definitely see some version of this being a huge asset (to new users especially). What was the response time roughly?

@dannon
Copy link
Member Author

dannon commented Apr 3, 2023

@neoformit It's pretty fast in my hands. Admittedly without specific measurements, and it does seem to fluctuate with load, but the response time is generally <1s.

"/api/chat": {
/**
* Query
* @description We're off to ask the wizard
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😆

@dannon dannon force-pushed the galactic-wizardry branch from db863a2 to 31b69f2 Compare May 22, 2023 23:19
@dannon dannon force-pushed the galactic-wizardry branch 2 times, most recently from 764e420 to bfefa20 Compare October 24, 2024 14:16
@dannon dannon added this to the 24.2 milestone Nov 18, 2024
@dannon dannon force-pushed the galactic-wizardry branch 2 times, most recently from b35a2d4 to 234558d Compare November 18, 2024 21:04
@dannon dannon changed the title [WIP] Experimental galactic wizard Experimental galactic wizard Nov 18, 2024
@dannon dannon marked this pull request as ready for review November 18, 2024 21:04
@jdavcs
Copy link
Member

jdavcs commented Nov 18, 2024

This needs another run of make config-rebuild

@jdavcs
Copy link
Member

jdavcs commented Nov 19, 2024

This is really cool stuff, thanks! We're off to ask the wizard....

@dannon
Copy link
Member Author

dannon commented Nov 19, 2024

Thanks for the review and approval @jdavcs -- since the tests passed on the last run I'm going to go ahead and save CI time after making those last minor requested tweaks and sanity checking locally. I'm working on a list of follow-ups, but I'm going to merge it so we can get this into the release and continue to iterate on it.

@dannon dannon merged commit 20c8e12 into galaxyproject:dev Nov 19, 2024
56 of 57 checks passed
Copy link

This PR was merged without a "kind/" label, please correct.

@jdavcs jdavcs added the highlight Included in user-facing release notes at the top label Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants