You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

rag_pipeline_manage_service.py 493B

1234567891011121314
  1. from core.plugin.entities.plugin_daemon import PluginDatasourceProviderEntity
  2. from core.plugin.impl.datasource import PluginDatasourceManager
  3. class RagPipelineManageService:
  4. @staticmethod
  5. def list_rag_pipeline_datasources(tenant_id: str) -> list[PluginDatasourceProviderEntity]:
  6. """
  7. list rag pipeline datasources
  8. """
  9. # get all builtin providers
  10. manager = PluginDatasourceManager()
  11. return manager.fetch_datasource_providers(tenant_id)