Package ai.tock.bot.admin.service
Object VectorStoreService
-
- All Implemented Interfaces:
public class VectorStoreServiceService that manage the vector store functionality
-
-
Field Summary
Fields Modifier and Type Field Description public final static VectorStoreServiceINSTANCE
-
Method Summary
Modifier and Type Method Description final BotVectorStoreConfigurationgetVectorStoreConfiguration(String namespace, String botId)Get the Vector Store configuration final BotVectorStoreConfigurationgetVectorStoreConfiguration(String namespace, String botId, Boolean enabled)Get the Vector Store configuration final UnitdeleteConfig(String namespace, String botId)Deleting the Vector Store Configuration final BotVectorStoreConfigurationsaveVectorStore(BotVectorStoreConfigurationDTO vectorStoreConfig)Save Vector Store configuration and filter errors -
-
Method Detail
-
getVectorStoreConfiguration
final BotVectorStoreConfiguration getVectorStoreConfiguration(String namespace, String botId)
Get the Vector Store configuration
- Parameters:
namespace- : the namespacebotId- : the botId
-
getVectorStoreConfiguration
final BotVectorStoreConfiguration getVectorStoreConfiguration(String namespace, String botId, Boolean enabled)
Get the Vector Store configuration
- Parameters:
namespace- : the namespacebotId- : the botIdenabled- : the configuration activation (enabled or not)
-
deleteConfig
final Unit deleteConfig(String namespace, String botId)
Deleting the Vector Store Configuration
- Parameters:
namespace- : the namespacebotId- : the bot ID
-
saveVectorStore
final BotVectorStoreConfiguration saveVectorStore(BotVectorStoreConfigurationDTO vectorStoreConfig)
Save Vector Store configuration and filter errors
- Parameters:
vectorStoreConfig- : the vector store configuration to create or update- Returns:
BotVectorStoreConfiguration
-
-
-
-