Class OllamaRagPuppyChatter
java.lang.Object
rocks.imsofa.ai.puppychatter.AbstractPuppyChatter<OpenAICompatiblePromptParameters,Response>
rocks.imsofa.ai.puppychatter.openai.OpenAICompatiblePuppyChatter<OpenAICompatiblePromptParameters,Response>
rocks.imsofa.ai.puppychatter.openai.OpenAICompatibleInputStreamPuppyChatter<OpenAICompatiblePromptParameters,Response>
rocks.imsofa.ai.puppychatter.ollama.OllamaPuppyChatter
rocks.imsofa.ai.puppychatter.ollama.OllamaRagPuppyChatter
- All Implemented Interfaces:
PuppyChatter<OpenAICompatiblePromptParameters,,Response> RagPuppyChatter<OpenAICompatiblePromptParameters,Response>
public class OllamaRagPuppyChatter
extends OllamaPuppyChatter
implements RagPuppyChatter<OpenAICompatiblePromptParameters,Response>
-
Nested Class Summary
Nested classes/interfaces inherited from class rocks.imsofa.ai.puppychatter.openai.OpenAICompatibleInputStreamPuppyChatter
OpenAICompatibleInputStreamPuppyChatter.RequestParameters, OpenAICompatibleInputStreamPuppyChatter.StreamResultIterator -
Field Summary
Fields inherited from class rocks.imsofa.ai.puppychatter.openai.OpenAICompatiblePuppyChatter
toolCallProcessor, toolCallRequestsFields inherited from class rocks.imsofa.ai.puppychatter.AbstractPuppyChatter
replyRole, sessionHistory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidpreprocessMessages(OpenAICompatibleInputStreamPuppyChatter.RequestParameters requestParameters) inject rag workflow herevoidsetRagHandler(RagHandler ragHandler) Methods inherited from class rocks.imsofa.ai.puppychatter.ollama.OllamaPuppyChatter
getRequestParameters, getStreamResultIteratorMethods inherited from class rocks.imsofa.ai.puppychatter.openai.OpenAICompatibleInputStreamPuppyChatter
_bark, _bark, constructPayloadAndSend, processResponseStreamFromLLMProvidersMethods inherited from class rocks.imsofa.ai.puppychatter.openai.OpenAICompatiblePuppyChatter
createDefaultPromptParameter, createResponseFromConversation, getToolCallProcessor, isCacheable, setToolCallProcessorMethods inherited from class rocks.imsofa.ai.puppychatter.AbstractPuppyChatter
bark, bark, bark, bark, closeSession, createConversationFromPrompt, createSessionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface rocks.imsofa.ai.puppychatter.PuppyChatter
bark, bark, bark, bark, closeSession, createSession
-
Constructor Details
-
OllamaRagPuppyChatter
-
-
Method Details
-
setRagHandler
- Specified by:
setRagHandlerin interfaceRagPuppyChatter<OpenAICompatiblePromptParameters,Response>
-
getRagHandler
- Specified by:
getRagHandlerin interfaceRagPuppyChatter<OpenAICompatiblePromptParameters,Response>
-
preprocessMessages
protected void preprocessMessages(OpenAICompatibleInputStreamPuppyChatter.RequestParameters requestParameters) throws Exception inject rag workflow here- Overrides:
preprocessMessagesin classOpenAICompatibleInputStreamPuppyChatter<OpenAICompatiblePromptParameters,Response> - Throws:
Exception
-