Package ai.tock.bot.admin.service
Object RAGService
-
- All Implemented Interfaces:
public class RAGServiceService that manage the retrieval augmented generation (RAG) with Large Language Model (LLM) functionality
-
-
Field Summary
Fields Modifier and Type Field Description public final static RAGServiceINSTANCE
-
Method Summary
Modifier and Type Method Description final BotRAGConfigurationgetRAGConfiguration(String namespace, String botId)Get the RAG configuration final UnitdeleteConfig(String namespace, String botId)Deleting the RAG Configuration final BotRAGConfigurationsaveRag(BotRAGConfigurationDTO ragConfig)Save RAG configuration and filter errors -
-
Method Detail
-
getRAGConfiguration
final BotRAGConfiguration getRAGConfiguration(String namespace, String botId)
Get the RAG configuration
- Parameters:
namespace- : the namespacebotId- : the bot ID
-
deleteConfig
final Unit deleteConfig(String namespace, String botId)
Deleting the RAG Configuration
- Parameters:
namespace- : the namespacebotId- : the bot ID
-
saveRag
final BotRAGConfiguration saveRag(BotRAGConfigurationDTO ragConfig)
Save RAG configuration and filter errors
- Parameters:
ragConfig- : the rag configuration to create or update- Returns:
BotRAGConfiguration
-
-
-
-