dotCMS / core

Headless/Hybrid Content Management System for Enterprises
http://dotcms.com
Other
852 stars 467 forks source link

Create an $ai Velocity viewtool #25672

Closed john-thomas-dotcms closed 1 month ago

john-thomas-dotcms commented 1 year ago

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

Tech

Testing

Deliverables

wezell commented 11 months ago

This is what we have currently

Semantic Search

Viewtool

$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)

Chat/Completions

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)

fmontes commented 1 month ago

Done