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

First stab at JS-based CLI for Fixie. #247

Merged
merged 11 commits into from
Aug 29, 2023
Merged

First stab at JS-based CLI for Fixie. #247

merged 11 commits into from
Aug 29, 2023

Conversation

mdwelsh
Copy link
Contributor

@mdwelsh mdwelsh commented Aug 27, 2023

The idea here is to replace the Python-based "fixie" CLI with an npm-based "fixie" CLI, which will allow one to create and manage Sidekicks and Corpora. This way an AI.JSX developer need not have a Python environment set up. It also provides a JS-based FixieClient class for interacting with the Fixie platform APIs programmatically.

This version only has the Corpus-related commands, we will need to port over the logic from the Python-based "fixie deploy" command for AI.JSX Sidekick deployment to JS as well.

@vercel
Copy link

vercel bot commented Aug 27, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ai-jsx-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 28, 2023 11:08pm
ai-jsx-nextjs-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 28, 2023 11:08pm
ai-jsx-tutorial-nextjs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 28, 2023 11:08pm

@NickHeiner
Copy link
Contributor

For reference, here's the Codeshot fixie-sdk TS feature branch: https://github.com/fixie-ai/fixie-sdk/tree/feature-ts.

@NickHeiner
Copy link
Contributor

This command took 37 seconds to run, which surprised me:

yarn workspace fixie start corpus create help-scout -u https://beta.fixie.ai
Created corpus:
{
  "corpus": {
    "corpusId": "8d3fff4b-09e0-4ff3-901a-a4c517bee019",
    "created": "2023-08-28T13:07:06.821890Z",
    "modified": "2023-08-28T13:07:07.244390Z",
    "name": "help-scout"
  }
}⏎                                                                                                                                                                                                                                                                                                                                                                                                                          

I think that's just because the service had to spin up, and thus this isn't worth worrying about.

@NickHeiner
Copy link
Contributor

I used this to make a Help Scout corpus: 8d3fff4b-09e0-4ff3-901a-a4c517bee019. We'll see how it does. 😄

@NickHeiner
Copy link
Contributor

Is there a single command I can run to get corpus status? (e.g. is it ready to query)

@mdwelsh
Copy link
Contributor Author

mdwelsh commented Aug 28, 2023

Thanks for the comments - PTAL

@mdwelsh
Copy link
Contributor Author

mdwelsh commented Aug 28, 2023

I think that's just because the service had to spin up, and thus this isn't worth worrying about.

Yep, I'm fixing this.

@mdwelsh
Copy link
Contributor Author

mdwelsh commented Aug 28, 2023

Is there a single command I can run to get corpus status? (e.g. is it ready to query)

Not yet but I will add that to the backend.

@NickHeiner
Copy link
Contributor

image

image

@mdwelsh
Copy link
Contributor Author

mdwelsh commented Aug 28, 2023

image ![image](https://user-images.githubusercontent.com/829827/263837534-15baecbe-cbbe-4507-8db2-c6b50d972286.png)

Hey, the error message is correct! "Missing argument query" on your first command line is exactly right: an argument is not the same thing as an option!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants