Package rocks.imsofa.ai.puppychatter.rag
Class GoogleSearchRagHandler
java.lang.Object
rocks.imsofa.ai.puppychatter.rag.AbstractTextRagHandler
rocks.imsofa.ai.puppychatter.rag.GoogleSearchRagHandler
- All Implemented Interfaces:
RagHandler
a rag handler that use google search to extract chunks from the conversation
-
Constructor Summary
ConstructorsConstructorDescriptionGoogleSearchRagHandler(String apiKey, String searchEngineId) GoogleSearchRagHandler(String apiKey, String searchEngineId, GoogleSearchRagHandlerCallback callback) -
Method Summary
Modifier and TypeMethodDescriptiongetChunks(String sessionId, PromptParameters parameters, List<Conversation> messages) Methods inherited from class rocks.imsofa.ai.puppychatter.rag.AbstractTextRagHandler
transformLastPrompt
-
Constructor Details
-
GoogleSearchRagHandler
public GoogleSearchRagHandler(String apiKey, String searchEngineId, GoogleSearchRagHandlerCallback callback) -
GoogleSearchRagHandler
-
-
Method Details
-
getChunks
public List<Chunk> getChunks(String sessionId, PromptParameters parameters, List<Conversation> messages) throws Exception - Throws:
Exception
-