Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Site specific AI prompt libraries #61

Merged
merged 18 commits into from Feb 20, 2024

Conversation

stoerr
Copy link
Member

@stoerr stoerr commented Feb 15, 2024

Since the necessary AI prompts will vary from site to site we support now configuring prompt libraries for the content creation dialog and the side panel AI for sites or page trees via Sling Context Aware Configuration (CAC). With CAC it's possible to configure the paths to prompt libraries. The path can be to a JSON file in the repository, that contains a map of prompt titles to prompt texts, or a content page, where one parsys contains the library of prompts. This way it's possible for an editor to edit a prompt library without us having to provide a special editor. The standard prompt libraries as content pages are located at:

For Composum a prompt library page should have a number of text components in one parsys where the title is the name of the prompt and the text is the prompt itself. The standard prompt library pages are:
/libs/composum/pages/options/ai/dialogs/create/defaultprompts
/libs/composum/pages/options/ai/tools/sidebar/defaultprompts

For AEM a prompt library page should have one parsys with a number of components that have a jcr:title or title or subtitle property that contains the prompt, and a jcr:description, description or text property that contains the prompt. The standard prompt library pages are:
/conf/composum-ai/settings/dialogs/contentcreation/predefinedprompts
/conf/composum-ai/settings/dialogs/sidepanel-ai/predefinedprompts

The paths are configured with Sling CAC with com.composum.ai.backend.slingbase.model.GPTPromptLibrary .

Also: to better support a workflow where somebody performs the same task on several pages / components, we save the last state the content creation workflow was in and restore the same state when a content creation workflow is opened on a new page or component where it wasn't opened in this session.

@stoerr stoerr self-assigned this Feb 15, 2024
@stoerr stoerr linked an issue Feb 15, 2024 that may be closed by this pull request
@stoerr stoerr changed the title Feature/4 site specific ai preferences Site specific AI prompt libraries Feb 15, 2024
* develop:
  Revert "Bump wikitext.version from 3.0.42 to 3.0.48.202308291007"
  mention that it's now AEM 6.5 capable in the documentations
@stoerr stoerr force-pushed the feature/4-site-specific-ai-preferences branch from 3333625 to f60690c Compare February 16, 2024 14:06
@stoerr stoerr merged commit dbe4b8a into develop Feb 20, 2024
2 checks passed
@stoerr stoerr deleted the feature/4-site-specific-ai-preferences branch February 20, 2024 18:56
@stoerr stoerr added the enhancement New feature or request label May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Site specific AI preferences
1 participant