But your approach is much better. Pandas is used a lot. Build a tool on top of pandas. This is awesome.
Right now this is running off of GPT-3 (`text-davinci-003`) and via a small code change can run on codex (`code-davinci-002`) but the quality only improves a little bit with that change.
That said, this is the first version to show that the interface is viable; we are currently working on training our own foundation model on a hybrid tokenization of data and word tokens. I hope to improve this same toolkit in the future with these new models of our own that we are training.
this seems to be using their gpt3 frameowrk: https://github.com/approximatelabs/lambdaprompt
which uses text-davinci-003 by default https://github.com/approximatelabs/lambdaprompt/blob/main/la...
You can run using your own OpenAI key by setting 2 environment variables: (1) SKETCH_USE_REMOTE_LAMBDAPROMPT=False (2) OPENAI_API_KEY=YOUR_API_KEY
To run entirely locally (using your own GPU and a model like Bloom) one would have to add a new prompt type to `lambdaprompt` (the package that this depends on), have a machine with enough GPU resources, and then add a slight modification to sketch.
I think it's really awesome though!
Curious what "enough GPU resources" looks like? Would a GeForce RTX 40 or 30 series card with 12-24GB of RAM be sufficient per user running locally on their machine?
Is there any plans on getting this to work outside of the python/pandas ecosystem or is it intrinsically tied to that environment?
And TIL you can embed mp4s in a GitHub readme. Is that new?
I’m excited to share sketch: a tool to help anyone who uses python and pandas quickly iterate and get to answers for their data questions.
Sketch installs as a pandas extension that offers utility functions that operate on natural language prompts. Using the `ask` interface you can get answers in natural language. Using the `howto` interface you can get get python and pandas code directly. The primary benefit of this over copilot and chatGPT is that this adds data-content based context so that the generated answers are much more accurate and relevant to the data problem at hand.
Check out the demo video[1] and try it out using the colab notebook (on github)!
[1] https://user-images.githubusercontent.com/916073/212602281-4...