Package org.eclnt.ccee.prompting.ollama
Class PromptingOllama
java.lang.Object
org.eclnt.ccee.prompting.PromptingBase
org.eclnt.ccee.prompting.ollama.PromptingOllama
- All Implemented Interfaces:
IPrompting
- Direct Known Subclasses:
PromptingOllamyByChromaDB
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclnt.ccee.prompting.PromptingBase
PromptingBase.ErrorRequestCancelled, PromptingBase.PromptingRequestThread -
Field Summary
Fields inherited from class org.eclnt.ccee.prompting.PromptingBase
m_listeners -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetHost()getModel()postIsolatedPrompt(String prompt) During a prompt processing you may post dedicated prompts to the prompting that are not part of the original prompt processing.
Example: the user sends a message into the prompting.voidstartNewMessageExecute(List<PromptingMessage> messages) Actual implementation of sending the prompt text to the LLM.Methods inherited from class org.eclnt.ccee.prompting.PromptingBase
addInitialSystemMessage, addInterimComment, addMessage, addMessageExtender, addPromptingListener, cancelCurrentRequest, createRequestThread, getMessageExtenders, getWithInterimFramgents, mdComment, prepareNewMessage, processResponseCompleted, processResponseMarkdownFragmentReceived, removeMessageExtender, removePromptingListener, setWithInterimFramgents, startNewMessage
-
Constructor Details
-
PromptingOllama
-
-
Method Details
-
getHost
-
getModel
-
startNewMessageExecute
Description copied from class:PromptingBaseActual implementation of sending the prompt text to the LLM.- Overrides:
startNewMessageExecutein classPromptingBase- Parameters:
messages- All the messages of this prompting session.
-
postIsolatedPrompt
Description copied from interface:IPromptingDuring a prompt processing you may post dedicated prompts to the prompting that are not part of the original prompt processing.
Example: the user sends a message into the prompting. During processing of this message the prompting processing wants to summarize this message.
-