Package rocks.imsofa.ai.puppychatter.rag
Class GoogleDriveRagHandler
java.lang.Object
rocks.imsofa.ai.puppychatter.rag.AbstractTextRagHandler
rocks.imsofa.ai.puppychatter.rag.GoogleDriveRagHandler
- All Implemented Interfaces:
RagHandler
a rag handler that use google drive to extract chunks from the conversation
-
Constructor Summary
ConstructorsConstructorDescriptionGoogleDriveRagHandler(String folderId, File serviceAccountKeyFile, String googleApplicationName) GoogleDriveRagHandler(String folderId, File serviceAccountKeyFile, String googleApplicationName, GoogleDriveRagHandlerCallback 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
-
GoogleDriveRagHandler
public GoogleDriveRagHandler(String folderId, File serviceAccountKeyFile, String googleApplicationName, GoogleDriveRagHandlerCallback callback) -
GoogleDriveRagHandler
-
-
Method Details
-
getChunks
public List<Chunk> getChunks(String sessionId, PromptParameters parameters, List<Conversation> messages)
-