explosion / prodigy-openai-recipes Goto Github PK
View Code? Open in Web Editor NEW✨ Bootstrap annotation with zero- & few-shot learning via OpenAI GPT-3
Home Page: https://prodi.gy
✨ Bootstrap annotation with zero- & few-shot learning via OpenAI GPT-3
Home Page: https://prodi.gy
Howdy! Wanted to understand what the license for the code in this repository is, if any.
I'm a paying license-holder of Prodigy and would like to do my own LLM-assisted labeling, but unsure if I should just copy the code and adapt for my own use or not.
This looks great!! I've just started looking into zero and few shot labelling using LLMs as well. This recipe looks like it has several benefits over just wrapping an LLM in a spacy component. However, it would be great if you could use something like https://github.com/HazyResearch/manifest to enable using a range of LLMs, including open source Huggingface models.
I really love this tool! Great job:)
If I am not mistaken, this project assumes that providing names of the labels is enough for the model to understand what that label represents. To use an example from your README
DISH
, INGREDIENT
, EQUIPMENT
recipe
, feedback
, question
However, what if my classification labels are not self-explanatory (even to humans) and require extra definition of what one means by them? See below a (rather artificial) example for textcat labels
A
, B
, C
A - sentence was written by Anna, she is very kind and never gets angry.
B - sentence was written by Bob, he is very creative and and likes to make things up.
C - sentence was written by Celine, she likes to keep it short.
Let's assume we don't have any or enough examples for the model to figure out that relationship.
I can think of 2 possible solutions
Replacing the label with the actual definition. Downsides
Having a prompt prefix where one simply copy pastes the definitions and then just continues with the standard prompt
I would be more than happy to hear from you and your ideas how to handle this!
Thank you in advance
(@koaning you might be the right person to answer this)
On main (ce81ef7)
running textcat.openai on label names with a capital letter in them will not throw up any error messages, but the labels provided by GPT will not be selected correctly.
Example command:
$ python -m prodigy textcat.openai.correct textcat_openai news_headlines.jsonl -L "Technology,Politics,Economy,Entertainment" -F recipes/openai_textcat.py
I was trying to get few-shot to work by flagging examples during labelling, but it just wasn't working. Then I noticed that PromptExample.from_prodigy just isn't implemented yet... Did you perhaps forget to commit that file?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.