-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprovider.py
More file actions
31 lines (28 loc) · 822 Bytes
/
provider.py
File metadata and controls
31 lines (28 loc) · 822 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from llama_stack.providers.datatypes import (
Api,
ProviderSpec,
RemoteProviderSpec,
)
from ..constants import PROVIDER_TYPE
def get_provider_spec() -> ProviderSpec:
return RemoteProviderSpec(
api=Api.eval,
provider_type=f"remote::{PROVIDER_TYPE}",
adapter_type=PROVIDER_TYPE,
module="llama_stack_provider_ragas.remote",
pip_packages=[
"ragas==0.3.0",
"kfp>=2.5.0",
"kfp-kubernetes>=2.0.0",
"s3fs>=2024.12.0",
"kubernetes>=30.0.0",
],
config_class="llama_stack_provider_ragas.config.RagasProviderRemoteConfig",
api_dependencies=[
Api.inference,
Api.files,
Api.benchmarks,
Api.datasetio,
Api.telemetry,
],
)