mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-31 04:33:52 +00:00
Initial commit for postgresql dataset provider
Core implementation of postgresql dataset for llama stack Signed-off-by: Josh Salomon <jsalomon@redhat.com>
This commit is contained in:
parent
bdfe7fee92
commit
8e3b579df2
8 changed files with 512 additions and 0 deletions
|
|
@ -36,4 +36,18 @@ def available_providers() -> List[ProviderSpec]:
|
|||
config_class="llama_stack.providers.remote.datasetio.huggingface.HuggingfaceDatasetIOConfig",
|
||||
),
|
||||
),
|
||||
remote_provider_spec(
|
||||
api=Api.datasetio,
|
||||
adapter=AdapterSpec(
|
||||
adapter_type="postgresql",
|
||||
pip_packages=[
|
||||
# "asyncpg",
|
||||
# "datasets",
|
||||
"psycopg",
|
||||
"psycopg[pool]",
|
||||
],
|
||||
module="llama_stack.providers.remote.datasetio.postgresql",
|
||||
config_class="llama_stack.providers.remote.datasetio.postgresql.PostgreSQLDatasetIOConfig",
|
||||
),
|
||||
),
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue