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

[WIP] Experimental galactic wizard #15860

Draft
wants to merge 20 commits into
base: dev
Choose a base branch
from

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.

😆

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.

4 participants