-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprovider.py
More file actions
20 lines (17 loc) · 628 Bytes
/
provider.py
File metadata and controls
20 lines (17 loc) · 628 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from llama_stack.providers.datatypes import Api, InlineProviderSpec, ProviderSpec
from ..constants import PROVIDER_ID_INLINE
def get_provider_spec() -> ProviderSpec:
return InlineProviderSpec(
api=Api.eval,
provider_type=f"inline::{PROVIDER_ID_INLINE}",
pip_packages=["ragas==0.3.0"],
config_class="llama_stack_provider_ragas.config.RagasProviderInlineConfig",
module="llama_stack_provider_ragas.inline",
api_dependencies=[
Api.inference,
Api.files,
Api.benchmarks,
Api.datasetio,
Api.telemetry,
],
)