Comments (4)
Thanks for the reply:) Yeh, providing a couple of examples and hoping the model gets it is probably the most straightforward solution.
As I mentioned, my intuition would be to go for
- Having a prompt prefix where one simply copy pastes the definitions and then just continues with the standard prompt
In other words, one would let the user define a CSV table
name | definition |
---|---|
A | Definition of label A |
B | Definition of label B |
C | Definition of label C |
and then introduced an option in the CLI e.g. --label-definition-path
that would point at the table.
Finally the jinja2 template would contain something like
{% if labels %}
Below are definitions of all labels:
{% for label in labels %}
Text:
"""
label: {{ label.name }}
definition: {{ label.definition }}
"""
{% endfor %}
{% endif %}
{# Now one could have the examples section #}
This would not be compatible with the current labels
CLI argument that is a comma separated list of label names (without definitions).
Anyway, I understand that this feature might not be that relevant. I just happen to be dealing with a dataset where the labels need to be defined. Closing the issue.
Thanks for the help:)
from prodigy-openai-recipes.
I'm re-opening this issue because it occurs to me as fair feedback and I'd like to have this ticket around as a reminder.
from prodigy-openai-recipes.
Have you seen the setting for the --example-path
? Here's an example of what you might send along. It's not exactly what you're asking for, but have you tried it? It might be enough.
There's certainly some prompt engineering that you could do here though, which is stuff we're putting on our roadmap. If you've used a custom template with better results I'd be all ears.
from prodigy-openai-recipes.
The recipes in this repository have since moved to Prodigy and are being maintained there. They will soon even get an upgrade with the advent of spacy-llm support, which features better prompts and multiple LLM providers. That is why we've opted to archive this repo, which is also why I'm closing all the issues.
You can learn more by checking out the large language models section on the docs.
from prodigy-openai-recipes.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prodigy-openai-recipes.