Closed john-thomas-dotcms closed 1 month ago
This is what we have currently
$ai.search
Semantic Search default
content index
$ai.search.query(String prompt)
Semantic Search Specific Content Index
$ai.search.query(String prompt, String index)
Pull Semantically Related Content
$ai.search.related(Contentlet content)
Viewtool
$ai.completions
Summarize based on content (specific index)
$ai.completions.summarize(String prompt/query, String content Index)
Summarize based on content (default
index)
$ai.completions.summarize(String prompt)
Raw Prompt
$ai.completions.prompt(Map prompt)
Done
This description is copied (with minor formatting changes) from the signed SOW.
Purpose
Allow executing the AI plugin API method(s) via a Velocity viewtool
Requirements
build( string prompt, string context )
addContext( string prompt, string param, string value )
submit( string prompt )
submitRaw( string prompt)
submit
, but does not add in any context (e.g. the Role Prompt) from the App configurationTech
Testing
Deliverables