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

Reusable environment for indexID + API on the server side and locally. #98

Open
DmitriiTsy opened this issue Nov 5, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request p1 medium priority
Milestone

Comments

@DmitriiTsy
Copy link
Collaborator

We need a setup that allows anyone to update the index and API key, enabling them to launch Jockey (backend + frontend) for customers in just a few minutes

@DmitriiTsy DmitriiTsy self-assigned this Nov 5, 2024
@DmitriiTsy
Copy link
Collaborator Author

I'm thinking of a 3-steps solution here:

  1. Frontend
    Provide two input fields (on the first main screen of Jockey frontend) : IndexID and APIKey.
    When users fill in these fields and press the button, a call will first be made to verify if this combination of IndexID and APIKey exists in Twelve Labs. If it does:
  2. Notify the user that verification is complete, and push these keys through a function to the server side.
  3. Launch the server container and notify the user that the container is available, allowing them to start chatting

@james-le-twelve-labs Let me know what do you think about this approach here

Screenshot 2024-11-05 at 3 43 09 PM

@james-le-twelve-labs
Copy link
Collaborator

@DmitriiTsy The 3-step solution above makes sense to me.

From our meeting last Thursday, @TravisCouture suggested that there should be a way for the user to not launch the server Docker container every time, so let's explore ways to make the 3rd step more efficient.

@james-le-twelve-labs james-le-twelve-labs added this to the 1.0.0-alpha.1 milestone Nov 10, 2024
@james-le-twelve-labs james-le-twelve-labs added enhancement New feature or request p1 medium priority labels Nov 10, 2024
@DmitriiTsy
Copy link
Collaborator Author

Hey @james-le-twelve-labs, yes. I did some research and I think this will be ideal: For the third step, I’ll set up the service to accept POST requests from the frontend with an index and key, and update the container’s internal state with new variables

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request p1 medium priority
Projects
None yet
Development

No branches or pull requests

2 participants