v0.2.0
PromptingTools v0.2.0
Added
- Add support for prompt templates with
AITemplate
struct. Search for suitable templates withaitemplates("query string")
and then simply use them withaigenerate(AITemplate(:TemplateABC); variableX = "some value") -> AIMessage
or use a dispatch on the template name as aSymbol
, eg,aigenerate(:TemplateABC; variableX = "some value") -> AIMessage
. Templates are saved as JSON files in the foldertemplates/
. If you add new templates, you can reload them withload_templates!()
(notice the exclamation mark to override the existingTEMPLATE_STORE
). - Add
aiextract
function to extract structured information from text quickly and easily. See?aiextract
for more information. - Add
aiscan
for image scanning (ie, image comprehension tasks). You can transcribe screenshots or reason over images as if they were text. Images can be provided either as a local file (image_path
) or as an url (image_url
). See?aiscan
for more information. - Add support for Ollama.ai's local models. Only
aigenerate
andaiembed
functions are supported at the moment. - Add a few non-coding templates, eg, verbatim analysis (see
aitemplates("survey")
) and meeting summarization (seeaitemplates("meeting")
), and supporting utilities (non-exported):split_by_length
andreplace_words
to make it easy to work with smaller open source models.
Merged pull requests:
- update version (#1) (@svilupp)
- Add Template Functionality (#2) (@svilupp)
- Add Extraction Functionality (#3) (@svilupp)
- Add more prompt templates (#4) (@svilupp)
- Update tests to account for new templates (#5) (@svilupp)
- Add aiscan (image comprehension) (#6) (@svilupp)
- Remove duplicated docstring in the function call signature (#7) (@svilupp)
- Add ollama support (#8) (@svilupp)
- Create docs from the README file (#9) (@svilupp)
- Add more templates (#10) (@svilupp)
- tag020 (#11) (@svilupp)
- Fail gracefully without api key (#12) (@svilupp)