mirror of
https://github.com/langgenius/dify.git
synced 2025-07-26 02:50:34 +00:00
15 lines
493 B
Python
15 lines
493 B
Python
![]() |
from core.plugin.entities.plugin_daemon import PluginDatasourceProviderEntity
|
||
|
from core.plugin.impl.datasource import PluginDatasourceManager
|
||
|
|
||
|
|
||
|
class RagPipelineManageService:
|
||
|
@staticmethod
|
||
|
def list_rag_pipeline_datasources(tenant_id: str) -> list[PluginDatasourceProviderEntity]:
|
||
|
"""
|
||
|
list rag pipeline datasources
|
||
|
"""
|
||
|
|
||
|
# get all builtin providers
|
||
|
manager = PluginDatasourceManager()
|
||
|
return manager.fetch_datasource_providers(tenant_id)
|