bossjones / goob_ai

MIT License
1 stars 0 forks source link

implement few-shot prompting #56

Open bossjones opened 2 months ago

bossjones commented 2 months ago

Example selectors

One common prompting technique for achieving better performance is to include examples as part of the prompt. This is known as few-shot prompting. This gives the language model concrete examples of how it should behave. Sometimes these examples are hardcoded into the prompt, but for more advanced situations it may be nice to dynamically select them. Example Selectors are classes responsible for selecting and then formatting examples into prompts.

For specifics on how to use example selectors, see the relevant how-to guides here.

Refs: