A B C D E F G H I J L M N O P Q R S T U V W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- activate(GetPageMarkdownAITool.Config) - Method in class com.composum.ai.backend.slingbase.experimential.impl.GetPageMarkdownAITool
- activate(SearchPageAITool.Config) - Method in class com.composum.ai.backend.slingbase.experimential.impl.SearchPageAITool
- activate(ApproximateMarkdownServiceImpl.Config) - Method in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
- activate(HtmlToApproximateMarkdownServicePlugin.Config) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin
- activate(MarkdownSlingCacheImpl.Config) - Method in class com.composum.ai.backend.slingbase.impl.MarkdownSlingCacheImpl
- activate(SlingCaConfigPluginImpl.Config) - Method in class com.composum.ai.backend.slingbase.impl.SlingCaConfigPluginImpl
- activate(GPTPermissionConfiguration) - Method in class com.composum.ai.backend.slingbase.impl.OsgiAIConfigurationPluginFactoryImpl
- activate(GPTPermissionConfiguration) - Method in class com.composum.ai.backend.slingbase.impl.OsgiAIConfigurationPluginImpl
- activate(GPTPromptLibrary) - Method in class com.composum.ai.backend.slingbase.impl.OsgiAIPromptlibConfigurationPluginImpl
- activate(BundleContext) - Method in class com.composum.ai.backend.slingbase.AICreateServlet
- activate(BundleContext) - Method in class com.composum.ai.backend.slingbase.AIDictationServlet
- adaptTo(Class<AdapterType>) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.NonModifyingRequestWrapper
- addCookie(Cookie) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.CapturingResponse
- addTool(AITool) - Method in class com.composum.ai.backend.slingbase.AICreateServlet
- addWholeResponseListener(Consumer<String>) - Method in class com.composum.ai.backend.slingbase.EventStream
- ADMISSIBLE_PATH_PATTERN - Static variable in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
-
We allow generating markdown for subpaths of /content, /public and /preview .
- admissibleValue(Object) - Method in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
-
We do not print pure numbers, booleans and some special strings since those are likely attributes determining the component layout, not actual text that is printed.
- AIConfigurationPlugin - Interface in com.composum.ai.backend.slingbase
- aiConfigurationService - Variable in class com.composum.ai.backend.slingbase.impl.RAGServiceImpl
- AIConfigurationService - Interface in com.composum.ai.backend.slingbase
-
This is the primary service interface that provides methods to check which AI services are allowed.
- AIConfigurationServiceImpl - Class in com.composum.ai.backend.slingbase.impl
-
Collects the configurations from
AIConfigurationPlugin
s and aggregates them. - AIConfigurationServiceImpl() - Constructor for class com.composum.ai.backend.slingbase.impl.AIConfigurationServiceImpl
- AIConfigurationServlet - Class in com.composum.ai.backend.slingbase
-
AIConfigurationServlet provides access to AI configurations.
- AIConfigurationServlet() - Constructor for class com.composum.ai.backend.slingbase.AIConfigurationServlet
- AICreateServlet - Class in com.composum.ai.backend.slingbase
-
Servlet providing the various services from the backend as servlet, which are useable for the authors.
- AICreateServlet() - Constructor for class com.composum.ai.backend.slingbase.AICreateServlet
- AIDictationServlet - Class in com.composum.ai.backend.slingbase
-
Servlet providing a dictation service - returns a transcribed text from an audio file.
- AIDictationServlet() - Constructor for class com.composum.ai.backend.slingbase.AIDictationServlet
- AITemplatingRetryableException(String) - Constructor for exception com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl.AITemplatingRetryableException
- AITemplatingService - Interface in com.composum.ai.backend.slingbase.experimential
-
Experimential service to provide page templating functionality: a page / component contains various prompts in it's properties which are replaced by the response of the AI.
- AITemplatingServiceImpl - Class in com.composum.ai.backend.slingbase.experimential.impl
-
This implementation uses the markers: A field that is a prompt begins with
PROMPTFIELD:
A field that is referenced by other fields begins withPROMPTFIELD#ID:
where ID is a unique identifier for the field A URL source is added asSOURCEURL(https://example.com/)
after that. A prompt that applies to the whole page can be put into a multi line field; it begins on a line withPAGEPROMPT:
- AITemplatingServiceImpl() - Constructor for class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
- AITemplatingServiceImpl.AITemplatingRetryableException - Exception in com.composum.ai.backend.slingbase.experimential.impl
-
An exception that says something is wrong with the response, but that might be temporary and can be retried.
- AITemplatingServiceImpl.Replacement - Class in com.composum.ai.backend.slingbase.experimential.impl
- AITemplatingServlet - Class in com.composum.ai.backend.slingbase.experimential
-
Servlet providing services related to templating.
- AITemplatingServlet() - Constructor for class com.composum.ai.backend.slingbase.experimential.AITemplatingServlet
- AITemplatingServlet.Method - Enum in com.composum.ai.backend.slingbase.experimential
- AITool - Interface in com.composum.ai.backend.slingbase.experimential
-
An action the AI can perform - likely from the sidebar chat.
- allowDenyCheck(String, Pattern, Pattern) - Static method in class com.composum.ai.backend.slingbase.impl.AllowDenyMatcherUtil
-
Check whether a value matches the allowPattern but not the denyPattern.
- AllowDenyMatcherUtil - Class in com.composum.ai.backend.slingbase.impl
-
Utilities for matching allow / deny String[] pattern collections.
- AllowDenyMatcherUtil() - Constructor for class com.composum.ai.backend.slingbase.impl.AllowDenyMatcherUtil
- allowedComponents() - Method in annotation type com.composum.ai.backend.slingbase.model.GPTPermissionConfiguration
- allowedPageTemplates() - Method in annotation type com.composum.ai.backend.slingbase.model.GPTPermissionConfiguration
- allowedPaths() - Method in annotation type com.composum.ai.backend.slingbase.model.GPTPermissionConfiguration
- allowedPathsRegex() - Method in annotation type com.composum.ai.backend.slingbase.experimential.impl.GetPageMarkdownAITool.Config
- allowedResourceTypePattern - Variable in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin
- allowedResourceTypes() - Method in annotation type com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.Config
- allowedServices(SlingHttpServletRequest, String) - Method in class com.composum.ai.backend.slingbase.impl.SlingCaConfigPluginImpl
- allowedServices(SlingHttpServletRequest, String) - Method in interface com.composum.ai.backend.slingbase.AIConfigurationPlugin
-
Determines the allowed services based on the provided request, content path, and editor URL.
- allowedServices(SlingHttpServletRequest, String) - Method in class com.composum.ai.backend.slingbase.impl.OsgiAIConfigurationPluginImpl
- allowedServices(SlingHttpServletRequest, String, String) - Method in interface com.composum.ai.backend.slingbase.AIConfigurationService
-
Method to check which services are allowed, based on the path and editor URL provided.
- allowedServices(SlingHttpServletRequest, String, String) - Method in class com.composum.ai.backend.slingbase.impl.AIConfigurationServiceImpl
-
Union of the plugin's results.
- allowedUsers() - Method in annotation type com.composum.ai.backend.slingbase.model.GPTPermissionConfiguration
- allowedViews() - Method in annotation type com.composum.ai.backend.slingbase.model.GPTPermissionConfiguration
- allows(String, String) - Method in class com.composum.ai.backend.slingbase.model.GPTPermissionInfo
-
Checks whether this allows the given service for the given resourceType
- allows(String, String) - Method in class com.composum.ai.backend.slingbase.model.GPTPermissionInfo.GPTPermissionInfoItem
- approximateMarkdown(Resource, PrintWriter, SlingHttpServletRequest, SlingHttpServletResponse) - Method in interface com.composum.ai.backend.slingbase.ApproximateMarkdownService
-
Generates a text formatted with markdown that heuristically represents the text content of a page or resource, mainly for use with the AI.
- approximateMarkdown(Resource, PrintWriter, SlingHttpServletRequest, SlingHttpServletResponse) - Method in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
- approximateMarkdown(Resource, SlingHttpServletRequest, SlingHttpServletResponse) - Method in interface com.composum.ai.backend.slingbase.ApproximateMarkdownService
-
Generates a text formatted with markdown that heuristically represents the text content of a page or resource, mainly for use with the AI.
- approximateMarkdown(Resource, SlingHttpServletRequest, SlingHttpServletResponse) - Method in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
- ApproximateMarkdownService - Interface in com.composum.ai.backend.slingbase
-
A service to create markdown with an approximate text content from a page or resource, for use with querying the AI about it.
- ApproximateMarkdownService.Link - Class in com.composum.ai.backend.slingbase
-
A link from a component.
- ApproximateMarkdownServiceImpl - Class in com.composum.ai.backend.slingbase.impl
-
Implementation for
ApproximateMarkdownService
. - ApproximateMarkdownServiceImpl() - Constructor for class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
- ApproximateMarkdownServiceImpl.Config - Annotation Type in com.composum.ai.backend.slingbase.impl
-
Configuration class Config that allows us to configure TEXT_ATTRIBUTES.
- ApproximateMarkdownServicePlugin - Interface in com.composum.ai.backend.slingbase
-
Implements special treatment for some resources, depending on the actual system.
- ApproximateMarkdownServicePlugin.PluginResult - Enum in com.composum.ai.backend.slingbase
-
Result of the plugin execution.
- ApproximateMarkdownServlet - Class in com.composum.ai.backend.slingbase
-
Renders an approximate markdown representation of the text content of a page / resource.
- ApproximateMarkdownServlet() - Constructor for class com.composum.ai.backend.slingbase.ApproximateMarkdownServlet
- ATTRIBUTE_TO_MARKDOWN_PREFIX - Static variable in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
- attributeToMarkdown(Resource, String, String) - Method in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
- authenticate(HttpServletResponse) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.NonModifyingRequestWrapper
B
- basicCheck(GPTPermissionConfiguration, SlingHttpServletRequest, String, String) - Method in class com.composum.ai.backend.slingbase.impl.AIConfigurationServiceImpl
-
Determines whether the configuration allows access wrt.
- blacklistedResourceType - Variable in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin
-
ResourceTypes we ignore since their rendering uses unsupported methods.
- blacklistedResourceTypeCleanupTime - Variable in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin
- bundleContext - Variable in class com.composum.ai.backend.slingbase.AICreateServlet
- bundleContext - Variable in class com.composum.ai.backend.slingbase.AIDictationServlet
C
- cacheMarkdown(Resource, String) - Method in class com.composum.ai.backend.slingbase.impl.MarkdownSlingCacheImpl
- cacheMarkdown(Resource, String) - Method in interface com.composum.ai.backend.slingbase.ApproximateMarkdownServicePlugin
-
An optional way to cache calculated markdowns - if a plugin implements this, it can retrieve that on
ApproximateMarkdownServicePlugin.maybeHandle(Resource, PrintWriter, ApproximateMarkdownService, SlingHttpServletRequest, SlingHttpServletResponse)
. - cacheRootPath() - Method in annotation type com.composum.ai.backend.slingbase.impl.MarkdownSlingCacheImpl.Config
- captureHtmlTags(String) - Method in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
- CapturingResponse(SlingHttpServletResponse, PrintWriter, String) - Constructor for class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.CapturingResponse
- changeSessionId() - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.NonModifyingRequestWrapper
- chatCompletionService - Variable in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
- chatCompletionService - Variable in class com.composum.ai.backend.slingbase.impl.AIConfigurationServiceImpl
- chatCompletionService - Variable in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
- chatCompletionService - Variable in class com.composum.ai.backend.slingbase.impl.RAGServiceImpl
- chatService - Variable in class com.composum.ai.backend.slingbase.ApproximateMarkdownServlet
- checkUrlAdmissible(URI) - Method in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
- cleanupBlacklist() - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin
- collectBackgroundInfoPaths(SlingHttpServletRequest, SlingHttpServletResponse, List<URI>) - Method in class com.composum.ai.backend.slingbase.experimential.AITemplatingServlet
-
If some of the URLs are paths, we read the markdown for those pages.
- collectLinks(Resource, List<ApproximateMarkdownService.Link>) - Method in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
-
Collects links from a resource and its children.
- collectPossibleReplacements(Resource) - Method in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
- collectPrompts(List<AITemplatingServiceImpl.Replacement>, Map<String, AITemplatingServiceImpl.Replacement>, Map<String, String>) - Static method in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
- collectSearchKeywords(String, Resource) - Method in class com.composum.ai.backend.slingbase.impl.RAGServiceImpl
-
Processes a query to have the AI suggest a couple of search keywords for use with the other methods that might find the most relevant results.
- collectSearchKeywords(String, Resource) - Method in interface com.composum.ai.backend.slingbase.RAGService
-
Processes a query to have the AI suggest a couple of search keywords for use with the other methods that might find the most relevant results.
- collectTools(Resource, SlingHttpServletRequest, SlingHttpServletResponse) - Method in class com.composum.ai.backend.slingbase.AICreateServlet
- com.composum.ai.backend.slingbase - package com.composum.ai.backend.slingbase
- com.composum.ai.backend.slingbase.experimential - package com.composum.ai.backend.slingbase.experimential
- com.composum.ai.backend.slingbase.experimential.impl - package com.composum.ai.backend.slingbase.experimential.impl
- com.composum.ai.backend.slingbase.impl - package com.composum.ai.backend.slingbase.impl
- com.composum.ai.backend.slingbase.model - package com.composum.ai.backend.slingbase.model
- configurationService - Variable in class com.composum.ai.backend.slingbase.AICreateServlet
- configurationService - Variable in class com.composum.ai.backend.slingbase.AIDictationServlet
- configurationService - Variable in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
- containsQuery(Resource, String, int) - Method in class com.composum.ai.backend.slingbase.impl.RAGServiceImpl
- contentCreationPromptsPath() - Method in annotation type com.composum.ai.backend.slingbase.model.GPTPromptLibrary
- contentCreationService - Variable in class com.composum.ai.backend.slingbase.AICreateServlet
D
- deactivate() - Method in class com.composum.ai.backend.slingbase.experimential.impl.GetPageMarkdownAITool
- deactivate() - Method in class com.composum.ai.backend.slingbase.experimential.impl.SearchPageAITool
- deactivate() - Method in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
- deactivate() - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin
- deactivate() - Method in class com.composum.ai.backend.slingbase.impl.MarkdownSlingCacheImpl
- deactivate() - Method in class com.composum.ai.backend.slingbase.impl.OsgiAIConfigurationPluginFactoryImpl
- deactivate() - Method in class com.composum.ai.backend.slingbase.impl.OsgiAIConfigurationPluginImpl
- deactivate() - Method in class com.composum.ai.backend.slingbase.impl.OsgiAIPromptlibConfigurationPluginImpl
- deactivate() - Method in class com.composum.ai.backend.slingbase.impl.SlingCaConfigPluginImpl
- deniedComponents() - Method in annotation type com.composum.ai.backend.slingbase.model.GPTPermissionConfiguration
- deniedPageTemplates() - Method in annotation type com.composum.ai.backend.slingbase.model.GPTPermissionConfiguration
- deniedPaths() - Method in annotation type com.composum.ai.backend.slingbase.model.GPTPermissionConfiguration
- deniedResourceTypePattern - Variable in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin
- deniedResourceTypes() - Method in annotation type com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.Config
- deniedUsers() - Method in annotation type com.composum.ai.backend.slingbase.model.GPTPermissionConfiguration
- deniedViews() - Method in annotation type com.composum.ai.backend.slingbase.model.GPTPermissionConfiguration
- descendantsStream(Resource) - Method in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
- dictationService - Variable in class com.composum.ai.backend.slingbase.AIDictationServlet
- disabled() - Method in annotation type com.composum.ai.backend.slingbase.impl.MarkdownSlingCacheImpl.Config
- doGet(SlingHttpServletRequest, SlingHttpServletResponse) - Method in class com.composum.ai.backend.slingbase.AICreateServlet
-
Returns an event stream that was prepared by a previous operation, as a second request after a POST request returning a 202 with a 'Location' header to this servlet, since only GET requests are supported by the EventStream class in browser.
- doGet(SlingHttpServletRequest, SlingHttpServletResponse) - Method in class com.composum.ai.backend.slingbase.AIDictationServlet
-
Returns whether dictation is enabled for the content in the suffix: status code OK means it's available, otherwise 404.
- doGet(SlingHttpServletRequest, SlingHttpServletResponse) - Method in class com.composum.ai.backend.slingbase.impl.RAGServlet
- doGet(SlingHttpServletRequest, SlingHttpServletResponse) - Method in class com.composum.ai.backend.slingbase.AIConfigurationServlet
- doGet(SlingHttpServletRequest, SlingHttpServletResponse) - Method in class com.composum.ai.backend.slingbase.ApproximateMarkdownServlet
- doPost(SlingHttpServletRequest, SlingHttpServletResponse) - Method in class com.composum.ai.backend.slingbase.AICreateServlet
-
Implements the content creation operation.
- doPost(SlingHttpServletRequest, SlingHttpServletResponse) - Method in class com.composum.ai.backend.slingbase.AIDictationServlet
-
Implements the transcription operation.
- doPost(SlingHttpServletRequest, SlingHttpServletResponse) - Method in class com.composum.ai.backend.slingbase.experimential.AITemplatingServlet
E
- embeddingService - Variable in class com.composum.ai.backend.slingbase.impl.RAGServiceImpl
- EmptyRequestParameterMap() - Constructor for class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.EmptyRequestParameterMap
- enabled() - Method in annotation type com.composum.ai.backend.slingbase.impl.SlingCaConfigPluginImpl.Config
- entrySet() - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.EmptyRequestParameterMap
- equals(Object) - Method in class com.composum.ai.backend.slingbase.ApproximateMarkdownService.Link
- EventStream - Class in com.composum.ai.backend.slingbase
- EventStream() - Constructor for class com.composum.ai.backend.slingbase.EventStream
- execute(String, Resource, GPTCompletionCallback.GPTToolExecutionContext) - Method in interface com.composum.ai.backend.slingbase.experimential.AITool
-
Executes the tool call and returns the result to present to the AI.
- execute(String, Resource, GPTCompletionCallback.GPTToolExecutionContext) - Method in class com.composum.ai.backend.slingbase.experimential.impl.GetPageMarkdownAITool
-
Does a query with lucene and then rates the results with the embedding.
- execute(String, Resource, GPTCompletionCallback.GPTToolExecutionContext) - Method in class com.composum.ai.backend.slingbase.experimential.impl.SearchPageAITool
-
Does a query with lucene and then rates the results with the embedding.
- executePlugins(Resource, PrintWriter, SlingHttpServletRequest, SlingHttpServletResponse) - Method in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
- executeReplacements(Map<String, String>, Map<String, AITemplatingServiceImpl.Replacement>) - Static method in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
- extractPagePrompts(List<AITemplatingServiceImpl.Replacement>) - Static method in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
- extractParts(String) - Static method in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
-
Splits the response at the %%%%%%%% ID %%%%%%%% separators and puts the items into a map.
- extractSourceUrls(List<AITemplatingServiceImpl.Replacement>) - Static method in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
F
- factoryList - Variable in class com.composum.ai.backend.slingbase.impl.OsgiAIConfigurationPluginImpl
- flushBuffer() - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.CapturingResponse
- from(GPTPermissionConfiguration) - Static method in class com.composum.ai.backend.slingbase.model.GPTPermissionInfo
- from(GPTPermissionConfiguration) - Static method in class com.composum.ai.backend.slingbase.model.GPTPermissionInfo.GPTPermissionInfoItem
-
Reads out the services and component regex information, the other stuff has to be checked elsewhere.
G
- getAllowedComponents() - Method in class com.composum.ai.backend.slingbase.model.GPTPermissionInfo.GPTPermissionInfoItem
-
Regular expressions for allowed components.
- getAsyncContext() - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.NonModifyingRequestWrapper
- getAttribute(String) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.NonModifyingRequestWrapper
- getComponentLinks(Resource) - Method in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
-
Returns a number of links that are saved in the component or siblings of the component that could be used as a proposal for the user to be used as source for the AI via markdown generation etc.
- getComponentLinks(Resource) - Method in interface com.composum.ai.backend.slingbase.ApproximateMarkdownService
-
Returns a number of links that are saved in the component or siblings of the component that could be used as a proposal for the user to be used as source for the AI via markdown generation etc.
- getConfig() - Method in interface com.composum.ai.backend.slingbase.impl.OsgiAIConfigurationPluginFactory
- getConfig() - Method in class com.composum.ai.backend.slingbase.impl.OsgiAIConfigurationPluginFactoryImpl
- getDeniedComponents() - Method in class com.composum.ai.backend.slingbase.model.GPTPermissionInfo.GPTPermissionInfoItem
-
Regular expressions for denied components.
- getDescription(Locale) - Method in interface com.composum.ai.backend.slingbase.experimential.AITool
-
Human readable description.
- getDescription(Locale) - Method in class com.composum.ai.backend.slingbase.experimential.impl.GetPageMarkdownAITool
- getDescription(Locale) - Method in class com.composum.ai.backend.slingbase.experimential.impl.SearchPageAITool
- getEmbeddingsCache(Map<String, Resource>) - Method in class com.composum.ai.backend.slingbase.impl.RAGServiceImpl
- getGPTConfiguration(ResourceResolver, String) - Method in class com.composum.ai.backend.slingbase.impl.AIConfigurationServiceImpl
- getGPTConfiguration(ResourceResolver, String) - Method in interface com.composum.ai.backend.slingbase.AIConfigurationPlugin
-
Reads the GPTConfiguration from sling context aware configurations.
- getGPTConfiguration(ResourceResolver, String) - Method in interface com.composum.ai.backend.slingbase.AIConfigurationService
-
Reads the GPTConfiguration from sling context aware configurations.
- getGPTConfiguration(ResourceResolver, String) - Method in class com.composum.ai.backend.slingbase.impl.SlingCaConfigPluginImpl
- getGPTConfigurationMap(SlingHttpServletRequest, String, String) - Method in class com.composum.ai.backend.slingbase.impl.AIConfigurationServiceImpl
- getGPTConfigurationMap(SlingHttpServletRequest, String, String) - Method in class com.composum.ai.backend.slingbase.impl.OsgiAIPromptlibConfigurationPluginImpl
-
This method tries to parse the mapPath as JSON.
- getGPTConfigurationMap(SlingHttpServletRequest, String, String) - Method in interface com.composum.ai.backend.slingbase.AIConfigurationPlugin
- getGPTConfigurationMap(SlingHttpServletRequest, String, String) - Method in interface com.composum.ai.backend.slingbase.AIConfigurationService
-
Decodes the map from the given mapPath, as determined from the appropriate method of
AIConfigurationService.getGPTPromptLibraryPaths(SlingHttpServletRequest, String)
. - getGPTPromptLibraryPaths(SlingHttpServletRequest, String) - Method in class com.composum.ai.backend.slingbase.impl.AIConfigurationServiceImpl
- getGPTPromptLibraryPaths(SlingHttpServletRequest, String) - Method in class com.composum.ai.backend.slingbase.impl.OsgiAIPromptlibConfigurationPluginImpl
- getGPTPromptLibraryPaths(SlingHttpServletRequest, String) - Method in class com.composum.ai.backend.slingbase.impl.SlingCaConfigPluginImpl
- getGPTPromptLibraryPaths(SlingHttpServletRequest, String) - Method in interface com.composum.ai.backend.slingbase.AIConfigurationPlugin
-
Reads the GPTPromptLibrary from sling context aware configurations or OSGI configurations, falling back to default values.
- getGPTPromptLibraryPaths(SlingHttpServletRequest, String) - Method in interface com.composum.ai.backend.slingbase.AIConfigurationService
-
Reads the
GPTPromptLibrary
from sling context aware configurations, falling back to OSGI configurations, falling back to default values. - getGPTPromptLibraryPathsDefault() - Method in interface com.composum.ai.backend.slingbase.AIConfigurationPlugin
-
Returns the default paths for
AIConfigurationPlugin.getGPTPromptLibraryPaths(SlingHttpServletRequest, String)
. - getImageUrl(Resource) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin
- getImageUrl(Resource) - Method in interface com.composum.ai.backend.slingbase.ApproximateMarkdownService
-
Retrieves the imageURL in a way useable for ChatGPT - usually data:image/jpeg;base64,{base64_image}
- getImageUrl(Resource) - Method in interface com.composum.ai.backend.slingbase.ApproximateMarkdownServicePlugin
-
Retrieves the imageURL in a way useable for ChatGPT - usually data:image/jpeg;base64,{base64_image} If the plugin cannot handle this resource, it should return null.
- getImageUrl(Resource) - Method in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
- getLastModified(Resource) - Static method in class com.composum.ai.backend.slingbase.impl.MarkdownSlingCacheImpl
- getMandatoryParameter(SlingHttpServletRequest, SlingHttpServletResponse, String) - Method in class com.composum.ai.backend.slingbase.AICreateServlet
- getMandatoryParameter(SlingHttpServletRequest, SlingHttpServletResponse, String) - Method in class com.composum.ai.backend.slingbase.AIDictationServlet
- getMarkdown(String) - Method in interface com.composum.ai.backend.slingbase.ApproximateMarkdownService
-
Returns a markdown representation of an attribute value, which might be plain text or HTML.
- getMarkdown(String) - Method in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
- getMarkdown(URI) - Method in interface com.composum.ai.backend.slingbase.ApproximateMarkdownService
-
Retrieves the text content for an URL.
- getMarkdown(URI) - Method in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
- getMasterLinks(Resource) - Method in interface com.composum.ai.backend.slingbase.ApproximateMarkdownServicePlugin
-
If applicable: this returns links to the master from which the current page was created - e.g.
- getMethod() - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.NonModifyingRequestWrapper
-
We render with GET, obviously.
- getName(Locale) - Method in interface com.composum.ai.backend.slingbase.experimential.AITool
-
Human readable name.
- getName(Locale) - Method in class com.composum.ai.backend.slingbase.experimential.impl.GetPageMarkdownAITool
- getName(Locale) - Method in class com.composum.ai.backend.slingbase.experimential.impl.SearchPageAITool
- getOptionalInt(SlingHttpServletRequest, SlingHttpServletResponse, String) - Method in class com.composum.ai.backend.slingbase.AICreateServlet
- getOptionalInt(SlingHttpServletRequest, SlingHttpServletResponse, String) - Method in class com.composum.ai.backend.slingbase.AIDictationServlet
- getOrCreateCacheResource(ResourceResolver, String, boolean) - Method in class com.composum.ai.backend.slingbase.impl.MarkdownSlingCacheImpl
- getOutputStream() - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.CapturingResponse
- getPageCachedValue(String, Resource) - Method in class com.composum.ai.backend.slingbase.impl.MarkdownSlingCacheImpl
- getPageCachedValue(String, Resource) - Method in interface com.composum.ai.backend.slingbase.PageCachedValueService
-
Reads a value that was cached with that property name from the cache.
- GetPageMarkdownAITool - Class in com.composum.ai.backend.slingbase.experimential.impl
- GetPageMarkdownAITool() - Constructor for class com.composum.ai.backend.slingbase.experimential.impl.GetPageMarkdownAITool
- GetPageMarkdownAITool.Config - Annotation Type in com.composum.ai.backend.slingbase.experimential.impl
- getPath() - Method in class com.composum.ai.backend.slingbase.ApproximateMarkdownService.Link
- getRequest() - Method in class com.composum.ai.backend.slingbase.model.SlingGPTExecutionContext
- getRequestDispatcher(String, RequestDispatcherOptions) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.NonModifyingRequestWrapper
- getRequestDispatcher(Resource) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.NonModifyingRequestWrapper
- getRequestDispatcher(Resource, RequestDispatcherOptions) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.NonModifyingRequestWrapper
- getRequestParameter(String) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.NonModifyingRequestWrapper
- getRequestParameterList() - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.NonModifyingRequestWrapper
- getRequestParameterMap() - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.NonModifyingRequestWrapper
- getRequestParameters(String) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.NonModifyingRequestWrapper
- getResponse() - Method in class com.composum.ai.backend.slingbase.model.SlingGPTExecutionContext
- getServicePermissions() - Method in class com.composum.ai.backend.slingbase.model.GPTPermissionInfo
-
List of service permissions.
- getServices() - Method in class com.composum.ai.backend.slingbase.model.GPTPermissionInfo.GPTPermissionInfoItem
-
The name of the service this applies to - one of the SERVICE_ constants.
- getSession() - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.NonModifyingRequestWrapper
- getSession(boolean) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.NonModifyingRequestWrapper
- getStatus() - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.CapturingResponse
- getTitle() - Method in class com.composum.ai.backend.slingbase.ApproximateMarkdownService.Link
- getToolDeclaration() - Method in interface com.composum.ai.backend.slingbase.experimential.AITool
-
The description to use for the OpenAI tool call.
- getToolDeclaration() - Method in class com.composum.ai.backend.slingbase.experimential.impl.GetPageMarkdownAITool
- getToolDeclaration() - Method in class com.composum.ai.backend.slingbase.experimential.impl.SearchPageAITool
- getToolExecutionContext() - Method in class com.composum.ai.backend.slingbase.EventStream
- getToolName() - Method in interface com.composum.ai.backend.slingbase.experimential.AITool
-
Name for the purpose of calling - must match
AITool.getToolDeclaration()
. - getToolName() - Method in class com.composum.ai.backend.slingbase.experimential.impl.GetPageMarkdownAITool
- getToolName() - Method in class com.composum.ai.backend.slingbase.experimential.impl.SearchPageAITool
- getUrl(String, boolean, SlingHttpServletRequest, SlingHttpServletResponse) - Method in class com.composum.ai.backend.slingbase.ApproximateMarkdownServlet
- getValue(String) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.EmptyRequestParameterMap
- getValues(String) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.EmptyRequestParameterMap
- getWholeResponse() - Method in class com.composum.ai.backend.slingbase.EventStream
-
Returns the whole response, but only if it was received completely, otherwise null.
- getWriter() - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.CapturingResponse
- GPTPermissionConfiguration - Annotation Type in com.composum.ai.backend.slingbase.model
-
Serves both as OSGI configuration for
OsgiAIConfigurationPluginImpl
as well as Sling Context Aware Configuration, since they both do the same thing, OSGI serving as a fallback or the single global configuration if SlingCAC is not used. - GPTPermissionInfo - Class in com.composum.ai.backend.slingbase.model
-
Permission information that can be used to determine whether a page or component permits services as the side panel AI or the content creation assistant.
- GPTPermissionInfo() - Constructor for class com.composum.ai.backend.slingbase.model.GPTPermissionInfo
- GPTPermissionInfo.GPTPermissionInfoItem - Class in com.composum.ai.backend.slingbase.model
-
One set of permissions.
- GPTPermissionInfoItem() - Constructor for class com.composum.ai.backend.slingbase.model.GPTPermissionInfo.GPTPermissionInfoItem
- GPTPromptLibrary - Annotation Type in com.composum.ai.backend.slingbase.model
- gson - Variable in class com.composum.ai.backend.slingbase.AICreateServlet
- gson - Variable in class com.composum.ai.backend.slingbase.experimential.AITemplatingServlet
- gson - Variable in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
- gson - Variable in class com.composum.ai.backend.slingbase.impl.OsgiAIPromptlibConfigurationPluginImpl
- gson - Variable in class com.composum.ai.backend.slingbase.impl.RAGServlet
H
- hadInvalidOperation - Variable in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.NonModifyingRequestWrapper
- handleCodeblock(Resource, PrintWriter, boolean) - Method in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
- HANDLED_ALL - com.composum.ai.backend.slingbase.ApproximateMarkdownServicePlugin.PluginResult
-
The plugin handled the current resource and it's children - no need to continue.
- HANDLED_ATTRIBUTES - com.composum.ai.backend.slingbase.ApproximateMarkdownServicePlugin.PluginResult
-
The plugin handled the attributes of the resource, but not it's children.
- handleLabeledAttributes(Resource, PrintWriter, boolean) - Method in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
- handleResource(Resource, PrintWriter, boolean) - Method in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
- HAS_WHITESPACE - Static variable in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
- hashCode() - Method in class com.composum.ai.backend.slingbase.ApproximateMarkdownService.Link
- HEADER_IMAGEPATH - Static variable in interface com.composum.ai.backend.slingbase.ApproximateMarkdownService
-
An additional header for the response that tells that the path is actually an image and gives its path.
- htmltags - Variable in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
- HtmlToApproximateMarkdownServicePlugin - Class in com.composum.ai.backend.slingbase.impl
-
A plugin for the
ApproximateMarkdownService
that transforms the rendered HTML to markdown. - HtmlToApproximateMarkdownServicePlugin() - Constructor for class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin
- HtmlToApproximateMarkdownServicePlugin.CapturingResponse - Class in com.composum.ai.backend.slingbase.impl
-
We wrap a response to capture the content, forwarding all but modifying methods to the original response.
- HtmlToApproximateMarkdownServicePlugin.Config - Annotation Type in com.composum.ai.backend.slingbase.impl
- HtmlToApproximateMarkdownServicePlugin.EmptyRequestParameterMap - Class in com.composum.ai.backend.slingbase.impl
- HtmlToApproximateMarkdownServicePlugin.NonModifyingRequestWrapper - Class in com.composum.ai.backend.slingbase.impl
-
Wraps the request to make sure nothing is modified.
- HtmlToApproximateMarkdownServicePlugin.UnsupportedOperationCalled - Exception in com.composum.ai.backend.slingbase.impl
-
Thrown when unsupported operation was called that requires blacklisting.
I
- IGNORED_NODE_NAMES - Static variable in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
-
We ignore nodes named i18n or renditions and nodes starting with rep:, dam:, cq:
- IGNORED_PROPERTIES - Static variable in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
-
A pattern for property names which we ignore.
- IGNORED_VALUE_PATTERN - Static variable in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
-
Ignored values for labelled output: "true"/ "false" / single number (int / float) attributes or array of numbers attributes, or shorter than 3 digits or path, or array or type date or boolean or {Date} or {Boolean} , inherit, blank, html tags, target .
- IMAGE_PATTERN - Static variable in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
- inAdaptTo - Variable in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.NonModifyingRequestWrapper
- isAllowedFor(Resource) - Method in interface com.composum.ai.backend.slingbase.experimential.AITool
-
Whether the tool is enabled for the given resource.
- isAllowedFor(Resource) - Method in class com.composum.ai.backend.slingbase.experimential.impl.GetPageMarkdownAITool
- isAllowedFor(Resource) - Method in class com.composum.ai.backend.slingbase.experimential.impl.SearchPageAITool
- isBecauseOfUnsupportedOperation(Throwable) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin
- isEnabled() - Method in class com.composum.ai.backend.slingbase.impl.MarkdownSlingCacheImpl
- isIgnoredNode(Resource) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin
-
We start with depth 3 since the higher nodes often contain headers, navigation and such that don't help for ChatGPT.
- isModified(Resource, ValueMap, String) - Static method in class com.composum.ai.backend.slingbase.impl.MarkdownSlingCacheImpl
- isNeedsVision() - Method in class com.composum.ai.backend.slingbase.ApproximateMarkdownService.Link
J
- joinPatternsIntoAnyMatcher(String[]) - Static method in class com.composum.ai.backend.slingbase.impl.AllowDenyMatcherUtil
-
Makes a pattern that matches whenever one of the patterns matches the input.
- joinText(Map<String, String>) - Static method in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
L
- labeledAttributePatternAllow - Variable in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
-
A pattern which attributes have to be output with a label: the attribute name, a colon and a space and then the trimmed attribute value followed by newline.
- labeledAttributePatternDeny - Variable in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
-
A pattern matching exceptions for
ApproximateMarkdownServiceImpl.labeledAttributePatternAllow
. - labelledAttributeOrder - Variable in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
-
A list of labelled attributes that come first if they are present, in the given order.
- labelledAttributeOrder() - Method in annotation type com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl.Config
- labelledAttributePatternAllow() - Method in annotation type com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl.Config
- labelledAttributePatternDeny() - Method in annotation type com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl.Config
- Link(String, String, boolean) - Constructor for class com.composum.ai.backend.slingbase.ApproximateMarkdownService.Link
- LOG - Static variable in class com.composum.ai.backend.slingbase.ApproximateMarkdownServlet
- LOG - Static variable in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
- logAndThrow(String) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.CapturingResponse
- logAndThrow(String) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.NonModifyingRequestWrapper
- login(String, String) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.NonModifyingRequestWrapper
- logout() - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.NonModifyingRequestWrapper
- logUnhandledAttributes(Resource) - Method in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
M
- makeAdditionalParameters(int, String, HttpServletResponse, GPTConfiguration) - Method in class com.composum.ai.backend.slingbase.AICreateServlet
- makeGPTTool(Resource, SlingHttpServletRequest, SlingHttpServletResponse) - Method in interface com.composum.ai.backend.slingbase.experimential.AITool
-
The form useable by
GPTChatCompletionService
. - makeRequest(Resource, List<String>, List<String>, Map<String, String>, String) - Method in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
- markdownService - Variable in class com.composum.ai.backend.slingbase.AICreateServlet
- markdownService - Variable in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
- markdownService - Variable in class com.composum.ai.backend.slingbase.impl.RAGServiceImpl
- MarkdownSlingCacheImpl - Class in com.composum.ai.backend.slingbase.impl
-
Implements a cache for markdown of pages.
- MarkdownSlingCacheImpl() - Constructor for class com.composum.ai.backend.slingbase.impl.MarkdownSlingCacheImpl
- MarkdownSlingCacheImpl.Config - Annotation Type in com.composum.ai.backend.slingbase.impl
- matchesAny(String, String[]) - Static method in class com.composum.ai.backend.slingbase.impl.AllowDenyMatcherUtil
- matchesAny(String, List<String>) - Static method in class com.composum.ai.backend.slingbase.impl.AllowDenyMatcherUtil
- maybeHandle(Resource, PrintWriter, ApproximateMarkdownService, SlingHttpServletRequest, SlingHttpServletResponse) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin
- maybeHandle(Resource, PrintWriter, ApproximateMarkdownService, SlingHttpServletRequest, SlingHttpServletResponse) - Method in interface com.composum.ai.backend.slingbase.ApproximateMarkdownServicePlugin
-
Checks whether the resource should be handled by this plugin and if so, handles it by printing an appropriate markdown representation to the PrintWriter.
- maybeHandle(Resource, PrintWriter, ApproximateMarkdownService, SlingHttpServletRequest, SlingHttpServletResponse) - Method in class com.composum.ai.backend.slingbase.impl.MarkdownSlingCacheImpl
- mergeAdditively(GPTPermissionInfo, GPTPermissionInfo) - Static method in class com.composum.ai.backend.slingbase.model.GPTPermissionInfo
-
Joins the permission informations additively.
N
- NonModifyingRequestWrapper(SlingHttpServletRequest, String) - Constructor for class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.NonModifyingRequestWrapper
- normalize(String) - Method in class com.composum.ai.backend.slingbase.impl.RAGServiceImpl
-
Turn it into a query for the words mentioned in there - that is, remove all meta characters for CONTAINS queries: AND, OR, words prefixed with -, quotes, backslashes.
- normalize(Resource) - Method in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
- NOT_HANDLED - com.composum.ai.backend.slingbase.ApproximateMarkdownServicePlugin.PluginResult
O
- onError(Throwable) - Method in class com.composum.ai.backend.slingbase.EventStream
-
Puts an 'exception' event into the stream with data JSON like this: {"success":false,"title":"Internal error","messages":[{"level":"error","text":"something happened"}]}
- onFinish(GPTFinishReason) - Method in class com.composum.ai.backend.slingbase.EventStream
-
Successfull conclusion; puts event 'finished' into the stream with data JSON like this: {"success":true,"data":{"result":{"finishreason":"STOP"}}}
- onNext(String) - Method in class com.composum.ai.backend.slingbase.EventStream
- openAiApiKey() - Method in annotation type com.composum.ai.backend.slingbase.model.OpenAIConfig
- OpenAIConfig - Annotation Type in com.composum.ai.backend.slingbase.model
- openAiOrganizationId() - Method in annotation type com.composum.ai.backend.slingbase.model.OpenAIConfig
- orderByEmbedding(String, List<Resource>, SlingHttpServletRequest, SlingHttpServletResponse, Resource) - Method in class com.composum.ai.backend.slingbase.impl.RAGServiceImpl
-
Finds the resources whose markdown approximation has embeddings that are the most similar to the querytext embedding.
- orderByEmbedding(String, List<Resource>, SlingHttpServletRequest, SlingHttpServletResponse, Resource) - Method in interface com.composum.ai.backend.slingbase.RAGService
-
Finds the resources whose markdown approximation has embeddings that are the most similar to the querytext embedding.
- OsgiAIConfigurationPluginFactory - Interface in com.composum.ai.backend.slingbase.impl
-
Collects
GPTPermissionConfiguration
s forOsgiAIConfigurationPluginImpl
. - OsgiAIConfigurationPluginFactoryImpl - Class in com.composum.ai.backend.slingbase.impl
-
Collects
GPTPermissionConfiguration
s forOsgiAIConfigurationPluginImpl
. - OsgiAIConfigurationPluginFactoryImpl() - Constructor for class com.composum.ai.backend.slingbase.impl.OsgiAIConfigurationPluginFactoryImpl
- OsgiAIConfigurationPluginImpl - Class in com.composum.ai.backend.slingbase.impl
-
This implementation sources its configurations from the OSGI environment, specifically from instances of
GPTPermissionConfiguration
. - OsgiAIConfigurationPluginImpl() - Constructor for class com.composum.ai.backend.slingbase.impl.OsgiAIConfigurationPluginImpl
- OsgiAIPromptlibConfigurationPluginImpl - Class in com.composum.ai.backend.slingbase.impl
-
This implementation sources the global GPTPromptLibrary configuration from the OSGI environment.
- OsgiAIPromptlibConfigurationPluginImpl() - Constructor for class com.composum.ai.backend.slingbase.impl.OsgiAIPromptlibConfigurationPluginImpl
P
- pageAllowed(SlingHttpServletRequest, String, GPTPermissionConfiguration) - Method in class com.composum.ai.backend.slingbase.impl.AIConfigurationServiceImpl
- pageCachedValueService - Variable in class com.composum.ai.backend.slingbase.impl.RAGServiceImpl
- PageCachedValueService - Interface in com.composum.ai.backend.slingbase
-
Service to cache some values that depend on a page content but are computationally intensive to calculate, like the markdown representation or embeddings or a machine generated summary.
- PAGEPROMPT - Static variable in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
-
Pattern for a PAGEPROMPT: ...
- PARAM_ADDITIONAL_PROMPT - Static variable in class com.composum.ai.backend.slingbase.experimential.AITemplatingServlet
-
Parameter that gives an additional prompt to add to the AI request.
- PARAM_ADDITIONAL_URLS - Static variable in class com.composum.ai.backend.slingbase.experimential.AITemplatingServlet
-
Parameter that gives additional URLs or paths to pages with background information to provide data to the AI.
- PARAM_BACKGROUND_INFORMATION - Static variable in class com.composum.ai.backend.slingbase.experimential.AITemplatingServlet
-
Parameter that gives additional background information to provide data to the AI (not a prompt!).
- PARAM_EDITORURL - Static variable in class com.composum.ai.backend.slingbase.AIConfigurationServlet
-
Parameter that gives the editor URL to check the permissions for.
- PARAM_EMBEDDINGORDER - Static variable in class com.composum.ai.backend.slingbase.impl.RAGServlet
-
Boolean parameter - if true, the results will be ordered by comparing the embedding with the query embedding.
- PARAM_LIMIT - Static variable in class com.composum.ai.backend.slingbase.impl.RAGServlet
-
Maximum number of results from the search that are ranked with the embedding.
- PARAM_LIMITRAGTEXTS - Static variable in class com.composum.ai.backend.slingbase.impl.RAGServlet
-
For query answering (ragAnswer): the maximum number of pages that are given to the AI to answer.
- PARAM_PREPROCESS_QUERY - Static variable in class com.composum.ai.backend.slingbase.impl.RAGServlet
-
Boolean parameter - if true, the query will be preprocessed before searching to generate likely keywords.
- PARAM_QUERY - Static variable in class com.composum.ai.backend.slingbase.impl.RAGServlet
-
The actual search query.
- PARAM_RESOURCE_PATH - Static variable in class com.composum.ai.backend.slingbase.experimential.AITemplatingServlet
-
Parameter that gives the page to transform.
- PARAM_URL - Static variable in class com.composum.ai.backend.slingbase.ApproximateMarkdownServlet
-
If this is given with an URL instead of a suffix, we retrieve the HTML from the given source.
- PARAMETER_AUDIO_STREAM - Static variable in class com.composum.ai.backend.slingbase.AIDictationServlet
-
Parameter to transmit the audio stream to be transcribed.
- PARAMETER_CHAT - Static variable in class com.composum.ai.backend.slingbase.AICreateServlet
-
Parameter to transmit additional chat after the first prompt
AICreateServlet.PARAMETER_PROMPT
. - PARAMETER_CONFIGBASEPATH - Static variable in class com.composum.ai.backend.slingbase.AICreateServlet
-
Parameter containing the path of the page, for determining the configuration.
- PARAMETER_CONTENT_TYPE - Static variable in class com.composum.ai.backend.slingbase.AIDictationServlet
-
Parameter to transmit the content type of the audio, e.g.
- PARAMETER_INPUT_IMAGE_PATH - Static variable in class com.composum.ai.backend.slingbase.AICreateServlet
-
Parameter to transmit a path to an image instead of a text.
- PARAMETER_LANGUAGE - Static variable in class com.composum.ai.backend.slingbase.AIDictationServlet
-
Parameter to transmit the language code to use, e.g.
- PARAMETER_MAXTOKENS - Static variable in class com.composum.ai.backend.slingbase.AICreateServlet
-
Optional numerical parameter limiting the number of tokens (about 3/4 english word on average) to be generated.
- PARAMETER_PROMPT - Static variable in class com.composum.ai.backend.slingbase.AICreateServlet
-
Parameter to transmit a prompt on which ChatGPT is to operate - that is, the instructions.
- PARAMETER_PROMPT - Static variable in class com.composum.ai.backend.slingbase.AIDictationServlet
-
Parameter to transmit an optional prompt to give the AI some context, e.g.
- PARAMETER_RICHTEXT - Static variable in class com.composum.ai.backend.slingbase.AICreateServlet
-
Optional boolean parameter that indicates the inputText and response are in HTML, not Markdown.
- PARAMETER_SOURCE - Static variable in class com.composum.ai.backend.slingbase.AICreateServlet
-
Parameter to transmit a text on which ChatGPT is to operate - not as instructions but as data.
- PARAMETER_SOURCEPATH - Static variable in class com.composum.ai.backend.slingbase.AICreateServlet
-
Parameter with a JCR path that is used as input text on which ChatGPT is to operate - not as instructions but as data.
- PARAMETER_STREAMID - Static variable in class com.composum.ai.backend.slingbase.AICreateServlet
-
The ID of the stream.
- PARAMETER_TEXTLENGTH - Static variable in class com.composum.ai.backend.slingbase.AICreateServlet
-
Description of intended response (generated text) length, optionally including maximum number of tokens, as e.g.
- PATTERN_HTML_TAG - Variable in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
- plugins - Variable in class com.composum.ai.backend.slingbase.impl.AIConfigurationServiceImpl
- plugins - Variable in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
- PREFIX_INFORMATIONALLY - Static variable in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
- PREFIX_PROMPT - Static variable in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
- PROMPTFIELD - Static variable in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
-
Matches a text with PROMPTFIELD start and determines the id if there is one given.
- property - Variable in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl.Replacement
- PROPERTY_MARKDOWN - Static variable in class com.composum.ai.backend.slingbase.impl.MarkdownSlingCacheImpl
-
The property in the cache tree where the markdown is stored.
- PROPERTY_PREFIX_PROMPT - Static variable in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
-
Property prefix: if a property contains a prompt, it's copied into a property with this prefix so that we can redo and undo the process.
- putPageCachedValue(String, Resource, String) - Method in class com.composum.ai.backend.slingbase.impl.MarkdownSlingCacheImpl
- putPageCachedValue(String, Resource, String) - Method in interface com.composum.ai.backend.slingbase.PageCachedValueService
-
Writes a value that should be cached with that property name to the cache.
Q
- QUEUEEND - Static variable in class com.composum.ai.backend.slingbase.EventStream
-
Special message in the
EventStream.queue
that signals that we are done.
R
- ragAnswer(String, List<Resource>, SlingHttpServletRequest, SlingHttpServletResponse, Resource, int) - Method in class com.composum.ai.backend.slingbase.impl.RAGServiceImpl
-
Answer a question with RAG from the given resources, e.g.
- ragAnswer(String, List<Resource>, SlingHttpServletRequest, SlingHttpServletResponse, Resource, int) - Method in interface com.composum.ai.backend.slingbase.RAGService
-
Answer a question with RAG from the given resources, e.g.
- ragAnswer(ResourceResolver, Resource, String, int, boolean, SlingHttpServletRequest, SlingHttpServletResponse, int, boolean) - Method in class com.composum.ai.backend.slingbase.impl.RAGServlet
- ragService - Variable in class com.composum.ai.backend.slingbase.impl.RAGServlet
- RAGService - Interface in com.composum.ai.backend.slingbase
-
Basic services for retrieval augmented generation (RAG).
- RAGServiceImpl - Class in com.composum.ai.backend.slingbase.impl
-
Basic services for retrieval augmented generation (RAG).
- RAGServiceImpl() - Constructor for class com.composum.ai.backend.slingbase.impl.RAGServiceImpl
- RAGServlet - Class in com.composum.ai.backend.slingbase.impl
-
Servlet providing various RAG supported services.
- RAGServlet() - Constructor for class com.composum.ai.backend.slingbase.impl.RAGServlet
- related(ResourceResolver, Resource, String, int, boolean, SlingHttpServletRequest, SlingHttpServletResponse, boolean) - Method in class com.composum.ai.backend.slingbase.impl.RAGServlet
-
Does a plain search for the terms, without actual RAG.
- removeAttribute(String) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.NonModifyingRequestWrapper
- removeTool(AITool) - Method in class com.composum.ai.backend.slingbase.AICreateServlet
- renderedAsHTML(Resource, SlingHttpServletRequest, SlingHttpServletResponse) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin
-
We render the resource into a mock response and capture and return the generated HTML.
- Replacement(Resource, String, String) - Constructor for class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl.Replacement
- replacePromptsInResource - com.composum.ai.backend.slingbase.experimential.AITemplatingServlet.Method
- replacePromptsInResource(Resource, String, List<URI>, String) - Method in interface com.composum.ai.backend.slingbase.experimential.AITemplatingService
-
Replaces all prompts in the resource with the response of the AI.
- replacePromptsInResource(Resource, String, List<URI>, String) - Method in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
- replacePromptsInResource(SlingHttpServletRequest, SlingHttpServletResponse) - Method in class com.composum.ai.backend.slingbase.experimential.AITemplatingServlet
- requestCounter - Variable in class com.composum.ai.backend.slingbase.impl.RAGServiceImpl
- reset() - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.CapturingResponse
- resetBuffer() - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.CapturingResponse
- resetToPrompts - com.composum.ai.backend.slingbase.experimential.AITemplatingServlet.Method
- resetToPrompts(Resource) - Method in interface com.composum.ai.backend.slingbase.experimential.AITemplatingService
-
Undo #replacePromptsInResource.
- resetToPrompts(Resource) - Method in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
-
Sets all properties from its backup copies starting with
AITemplatingServiceImpl.PROPERTY_PREFIX_PROMPT
and removes the backups. - resetToPrompts(SlingHttpServletRequest, SlingHttpServletResponse) - Method in class com.composum.ai.backend.slingbase.experimential.AITemplatingServlet
- resource - Variable in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl.Replacement
- resourceRendersAsComponentMatching(Resource, Pattern) - Method in interface com.composum.ai.backend.slingbase.ApproximateMarkdownServicePlugin
-
Returns true when the sling:resourceType or one of the sling:resourceSuperType of the sling:resourceType match the pattern.
- resourceResolverFactory - Variable in class com.composum.ai.backend.slingbase.impl.MarkdownSlingCacheImpl
- resultCount() - Method in annotation type com.composum.ai.backend.slingbase.experimential.impl.SearchPageAITool.Config
- retrieveStream(String, SlingHttpServletRequest) - Method in class com.composum.ai.backend.slingbase.AICreateServlet
- RICHTEXT_PATTERN - Static variable in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
-
Heuristics to identify richtext properties: start and end with a HTML tag.
S
- saveStream(EventStream, SlingHttpServletRequest) - Method in class com.composum.ai.backend.slingbase.AICreateServlet
-
Saves stream for streaming responses into session, to be retrieved with
AICreateServlet.retrieveStream(String, SlingHttpServletRequest)
. - SearchPageAITool - Class in com.composum.ai.backend.slingbase.experimential.impl
- SearchPageAITool() - Constructor for class com.composum.ai.backend.slingbase.experimential.impl.SearchPageAITool
- SearchPageAITool.Config - Annotation Type in com.composum.ai.backend.slingbase.experimential.impl
- searchRelated(Resource, String, int) - Method in class com.composum.ai.backend.slingbase.impl.RAGServiceImpl
- searchRelated(Resource, String, int) - Method in interface com.composum.ai.backend.slingbase.RAGService
-
Returns a list of up to limit paths that might be related to the query.
- sendError(int) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.CapturingResponse
- sendError(int, String) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.CapturingResponse
- sendRedirect(String) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.CapturingResponse
- SEPARATOR_PATTERN - Static variable in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
- SERVICE_CATEGORIZE - Static variable in class com.composum.ai.backend.slingbase.model.GPTPermissionInfo
-
Only for composum: service name for categorization.
- SERVICE_CREATE - Static variable in class com.composum.ai.backend.slingbase.model.GPTPermissionInfo
-
Service name for Content Creation Dialog
- SERVICE_SIDEPANEL - Static variable in class com.composum.ai.backend.slingbase.model.GPTPermissionInfo
-
Service name for Side Panel AI
- SERVICE_TRANSLATE - Static variable in class com.composum.ai.backend.slingbase.model.GPTPermissionInfo
-
Only for Composum: service name for translation.
- services() - Method in annotation type com.composum.ai.backend.slingbase.model.GPTPermissionConfiguration
- SESSIONKEY_STREAMING - Static variable in class com.composum.ai.backend.slingbase.AICreateServlet
-
Session contains a map at this key that maps the streamids to the streaming handle.
- setAllowedComponents(List<String>) - Method in class com.composum.ai.backend.slingbase.model.GPTPermissionInfo.GPTPermissionInfoItem
- setAttribute(String, Object) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.NonModifyingRequestWrapper
- setBufferSize(int) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.CapturingResponse
- setCharacterEncoding(String) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.CapturingResponse
- setCharacterEncoding(String) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.NonModifyingRequestWrapper
- setContentLength(int) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.CapturingResponse
- setContentLengthLong(long) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.CapturingResponse
- setContentType(String) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.CapturingResponse
- setContext(SlingGPTExecutionContext) - Method in class com.composum.ai.backend.slingbase.EventStream
- setDateHeader(String, long) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.CapturingResponse
- setDeniedComponents(List<String>) - Method in class com.composum.ai.backend.slingbase.model.GPTPermissionInfo.GPTPermissionInfoItem
- setHeader(String, String) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.CapturingResponse
- setId(String) - Method in class com.composum.ai.backend.slingbase.EventStream
- setIntHeader(String, int) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.CapturingResponse
- setLocale(Locale) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.CapturingResponse
- setLoggingId(String) - Method in class com.composum.ai.backend.slingbase.EventStream
- setService(List<String>) - Method in class com.composum.ai.backend.slingbase.model.GPTPermissionInfo.GPTPermissionInfoItem
- setServicePermissions(List<GPTPermissionInfo.GPTPermissionInfoItem>) - Method in class com.composum.ai.backend.slingbase.model.GPTPermissionInfo
- setStatus(int) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.CapturingResponse
- setStatus(int, String) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.CapturingResponse
- sidePanelPromptsPath() - Method in annotation type com.composum.ai.backend.slingbase.model.GPTPromptLibrary
- siteLevel() - Method in annotation type com.composum.ai.backend.slingbase.experimential.impl.SearchPageAITool.Config
- SlingCaConfigPluginImpl - Class in com.composum.ai.backend.slingbase.impl
-
Reads configurations using Sling context aware configuration.
- SlingCaConfigPluginImpl() - Constructor for class com.composum.ai.backend.slingbase.impl.SlingCaConfigPluginImpl
- SlingCaConfigPluginImpl.Config - Annotation Type in com.composum.ai.backend.slingbase.impl
- SlingGPTExecutionContext - Class in com.composum.ai.backend.slingbase.model
-
For Sling tools: the request and response of the streaming as executin context for tool calls.
- SlingGPTExecutionContext(SlingHttpServletRequest, SlingHttpServletResponse) - Constructor for class com.composum.ai.backend.slingbase.model.SlingGPTExecutionContext
- SOURCEURL - Static variable in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
-
Pattern for a
SOURCEURL(https://example.com/)
to extract the URL - group "url". - startAsync() - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.NonModifyingRequestWrapper
- startAsync(ServletRequest, ServletResponse) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.NonModifyingRequestWrapper
- SUFFIX_PAGE_MODIFICATION_DATE - Static variable in class com.composum.ai.backend.slingbase.impl.MarkdownSlingCacheImpl
-
Suffix for a property that saves the page modification date when the corresponding property was generated.
- SYSMSG - Static variable in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
T
- text - Variable in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl.Replacement
- textAttributes - Variable in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
-
A list of attributes that are output (in that ordering) without any label, each on a line for itself.
- textAttributes() - Method in annotation type com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl.Config
- THE_END_COMMAND - Static variable in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
- THE_END_PATTERN - Static variable in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
-
Matches a properly executed
AITemplatingServiceImpl.THE_END_COMMAND
. - THREE_WHITESPACE_PATTERN - Static variable in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
-
If that occurs in a string it has several words.
- tools - Variable in class com.composum.ai.backend.slingbase.AICreateServlet
- toString() - Method in class com.composum.ai.backend.slingbase.ApproximateMarkdownService.Link
- toString() - Method in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl.Replacement
- toString() - Method in class com.composum.ai.backend.slingbase.model.GPTPermissionInfo.GPTPermissionInfoItem
- toString() - Method in class com.composum.ai.backend.slingbase.model.GPTPermissionInfo
- traverseTreeForStructureGathering(Resource, PrintWriter, String, String) - Method in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
-
This is debugging code we needed to gather information for the implementation; we keep it around for now.
- TYPE_MAP_STRING_STRING - Static variable in class com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl
U
- UnsupportedOperationCalled() - Constructor for exception com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.UnsupportedOperationCalled
- upgrade(Class<T>) - Method in class com.composum.ai.backend.slingbase.impl.HtmlToApproximateMarkdownServicePlugin.NonModifyingRequestWrapper
- urlBlacklist - Variable in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
-
Whitelist for URLs we can connect to get the markdown.
- urlSourceBlacklist() - Method in annotation type com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl.Config
- urlSourceWhitelist() - Method in annotation type com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl.Config
- urlWhitelist - Variable in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
-
Blacklist for URLs we can connect to get the markdown.
- userAndGroupsOfUser(SlingHttpServletRequest) - Static method in class com.composum.ai.backend.slingbase.impl.AllowDenyMatcherUtil
-
Collects the username and all groups the user belongs to (either explicitly or inherited).
V
- valueOf(String) - Static method in enum com.composum.ai.backend.slingbase.ApproximateMarkdownServicePlugin.PluginResult
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.composum.ai.backend.slingbase.experimential.AITemplatingServlet.Method
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum com.composum.ai.backend.slingbase.ApproximateMarkdownServicePlugin.PluginResult
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.composum.ai.backend.slingbase.experimential.AITemplatingServlet.Method
-
Returns an array containing the constants of this enum type, in the order they are declared.
- VIDEO_PATTERN - Static variable in class com.composum.ai.backend.slingbase.impl.ApproximateMarkdownServiceImpl
W
- writeData(String) - Method in class com.composum.ai.backend.slingbase.EventStream
- writeTo(PrintWriter) - Method in class com.composum.ai.backend.slingbase.EventStream
- writeToResponse(JsonWriter, SlingHttpServletResponse, boolean, boolean, String) - Method in class com.composum.ai.backend.slingbase.experimential.AITemplatingServlet
All Classes All Packages