Class PromptingOllama

java.lang.Object
org.eclnt.ccee.prompting.PromptingBase
org.eclnt.ccee.prompting.ollama.PromptingOllama
All Implemented Interfaces:
IPrompting
Direct Known Subclasses:
PromptingOllamyByChromaDB

public class PromptingOllama extends PromptingBase
  • Constructor Details

    • PromptingOllama

      public PromptingOllama(String host, String model)
  • Method Details

    • getHost

      public String getHost()
    • getModel

      public String getModel()
    • startNewMessageExecute

      public void startNewMessageExecute(List<PromptingMessage> messages)
      Description copied from class: PromptingBase
      Actual implementation of sending the prompt text to the LLM.
      Overrides:
      startNewMessageExecute in class PromptingBase
      Parameters:
      messages - All the messages of this prompting session.
    • postIsolatedPrompt

      public String postIsolatedPrompt(String prompt)
      Description copied from interface: IPrompting
      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. During processing of this message the prompting processing wants to summarize this message.