-
Notifications
You must be signed in to change notification settings - Fork 12
Update provider spec & upgrade to llama-stack 0.2.22 #17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
dmaniloff
merged 8 commits into
trustyai-explainability:main
from
dmaniloff:update-provider-spec
Oct 1, 2025
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
5a43d4f
Update provider spec & upgrade to llama-stack 0.2.22
dmaniloff 8a196c5
update tests.
dmaniloff 521b755
split ide launch config.
dmaniloff e4e1779
update docs.
dmaniloff 9c7808b
version bump.
dmaniloff c76d53c
match provider versions to pyproject.toml
dmaniloff a9d1b28
cosmit: format.
dmaniloff 4d382db
make remote the default provider.
dmaniloff File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,27 +0,0 @@ | ||
| from typing import Any | ||
|
|
||
| from llama_stack.distribution.datatypes import Api | ||
|
|
||
| from .config import RagasProviderInlineConfig, RagasProviderRemoteConfig | ||
| from .eval_inline import RagasEvaluatorInline | ||
| from .eval_remote import RagasEvaluatorRemote | ||
|
|
||
|
|
||
| async def get_adapter_impl( | ||
| config: RagasProviderRemoteConfig, | ||
| deps: dict[Api, Any], | ||
| ) -> RagasEvaluatorRemote: | ||
| return RagasEvaluatorRemote(config) | ||
|
|
||
|
|
||
| async def get_provider_impl( | ||
| config: RagasProviderInlineConfig, | ||
| deps: dict[Api, Any], | ||
| ) -> RagasEvaluatorInline: | ||
| return RagasEvaluatorInline(config, deps[Api.datasetio], deps[Api.inference]) | ||
|
|
||
|
|
||
| __all__ = [ | ||
| "get_adapter_impl", | ||
| "get_provider_impl", | ||
| ] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| from typing import Any | ||
|
|
||
| from llama_stack.apis.datatypes import Api | ||
|
|
||
| from ..config import RagasProviderInlineConfig | ||
| from .ragas_inline_eval import RagasEvaluatorInline | ||
|
|
||
|
|
||
| async def get_provider_impl( | ||
| config: RagasProviderInlineConfig, | ||
| deps: dict[Api, Any], | ||
| ) -> RagasEvaluatorInline: | ||
| return RagasEvaluatorInline(config, deps[Api.datasetio], deps[Api.inference]) | ||
|
|
||
|
|
||
| __all__ = ["RagasEvaluatorInline", "get_provider_impl"] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| from llama_stack.providers.datatypes import Api, InlineProviderSpec, ProviderSpec | ||
|
|
||
|
|
||
| def get_provider_spec() -> ProviderSpec: | ||
| return InlineProviderSpec( | ||
| api=Api.eval, | ||
| provider_type="inline::trustyai_ragas", | ||
| pip_packages=["ragas==0.3.0"], | ||
| config_class="llama_stack_provider_ragas.config.RagasProviderInlineConfig", | ||
| module="llama_stack_provider_ragas.inline", | ||
|
dmaniloff marked this conversation as resolved.
|
||
| api_dependencies=[ | ||
| Api.inference, | ||
| Api.files, | ||
| Api.benchmarks, | ||
| Api.datasetio, | ||
| Api.telemetry, | ||
| ], | ||
| ) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,18 +1,5 @@ | ||
| from llama_stack.providers.datatypes import ( | ||
| AdapterSpec, | ||
| Api, | ||
| ProviderSpec, | ||
| remote_provider_spec, | ||
| ) | ||
| # remote is the default provider | ||
| from .remote import get_adapter_impl | ||
| from .remote.provider import get_provider_spec | ||
|
|
||
|
|
||
| def get_provider_spec() -> ProviderSpec: | ||
|
dmaniloff marked this conversation as resolved.
|
||
| return remote_provider_spec( | ||
| api=Api.eval, | ||
| adapter=AdapterSpec( | ||
| adapter_type="trustyai_ragas", | ||
| pip_packages=["ragas"], # ["datasets", "langchain-core"], | ||
| config_class="config.RagasEvalProviderConfig", | ||
| module="ragas_eval", | ||
| ), | ||
| ) | ||
| __all__ = ["get_provider_spec", "get_adapter_impl"] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| from typing import Any | ||
|
|
||
| from llama_stack.apis.datatypes import Api | ||
|
|
||
| from ..config import RagasProviderRemoteConfig | ||
| from .ragas_remote_eval import RagasEvaluatorRemote | ||
|
|
||
|
|
||
| async def get_adapter_impl( | ||
| config: RagasProviderRemoteConfig, | ||
| deps: dict[Api, Any], | ||
| ) -> RagasEvaluatorRemote: | ||
| return RagasEvaluatorRemote(config) | ||
|
|
||
|
|
||
| __all__ = ["RagasEvaluatorRemote", "get_adapter_impl"] |
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.