@@ -362,13 +362,17 @@ cp examples/run.yaml /tmp/llama-stack-server
362362 provider_id: model-context-protocol
363363 provider_type: remote::model-context-protocol
364364 vector_io:
365- - config:
366- kvstore:
367- db_path: .llama/distributions/ollama/faiss_store.db
368- namespace: null
369- type: sqlite
370- provider_id: faiss
365+ - provider_id: faiss
371366 provider_type: inline::faiss
367+ config:
368+ persistence:
369+ namespace: vector_io::faiss
370+ backend: kv_default
371+ storage:
372+ backends:
373+ kv_default:
374+ type: kv_sqlite
375+ db_path: .llama/distributions/ollama/kv_store.db
372376 scoring_fns: []
373377 server:
374378 auth: null
@@ -380,7 +384,7 @@ cp examples/run.yaml /tmp/llama-stack-server
380384 tls_keyfile: null
381385 shields: []
382386 tool_groups: []
383- vector_dbs : []
387+ vector_stores : []
384388 version: 2
385389 ```
3863901. The server with Llama Stack listens on port 8321. A description of the REST API is available in the form of OpenAPI (endpoint /openapi.json), but other endpoints can also be used. It is possible to check if Llama Stack runs as REST API server by retrieving its version. We use `curl` and `jq` tools for this purposes:
@@ -789,135 +793,7 @@ a4982f43195537b9eb1cec510fe6655f245d6d4b7236a4759808115d5d719972
789793
790794#### Llama Stack configuration
791795
792- Llama Stack needs to be configured properly. For using the default runnable Llama Stack a file named `run.yaml` with following content needs to be created:
793-
794- ```yaml
795- version: ' 2'
796- image_name: minimal-viable-llama-stack-configuration
797-
798- apis:
799- - agents
800- - datasetio
801- - eval
802- - inference
803- - post_training
804- - safety
805- - scoring
806- - telemetry
807- - tool_runtime
808- - vector_io
809- benchmarks: []
810- container_image: null
811- datasets: []
812- external_providers_dir: null
813- inference_store:
814- db_path: .llama/distributions/ollama/inference_store.db
815- type: sqlite
816- logging: null
817- metadata_store:
818- db_path: .llama/distributions/ollama/registry.db
819- namespace: null
820- type: sqlite
821- providers:
822- agents:
823- - config:
824- persistence_store:
825- db_path: .llama/distributions/ollama/agents_store.db
826- namespace: null
827- type: sqlite
828- responses_store:
829- db_path: .llama/distributions/ollama/responses_store.db
830- type: sqlite
831- provider_id: meta-reference
832- provider_type: inline::meta-reference
833- datasetio:
834- - config:
835- kvstore:
836- db_path: .llama/distributions/ollama/huggingface_datasetio.db
837- namespace: null
838- type: sqlite
839- provider_id: huggingface
840- provider_type: remote::huggingface
841- - config:
842- kvstore:
843- db_path: .llama/distributions/ollama/localfs_datasetio.db
844- namespace: null
845- type: sqlite
846- provider_id: localfs
847- provider_type: inline::localfs
848- eval:
849- - config:
850- kvstore:
851- db_path: .llama/distributions/ollama/meta_reference_eval.db
852- namespace: null
853- type: sqlite
854- provider_id: meta-reference
855- provider_type: inline::meta-reference
856- inference:
857- - provider_id: openai
858- provider_type: remote::openai
859- config:
860- api_key: ${env.OPENAI_API_KEY}
861- post_training:
862- - config:
863- checkpoint_format: huggingface
864- device: cpu
865- distributed_backend: null
866- provider_id: huggingface
867- provider_type: inline::huggingface
868- safety:
869- - config:
870- excluded_categories: []
871- provider_id: llama-guard
872- provider_type: inline::llama-guard
873- scoring:
874- - config: {}
875- provider_id: basic
876- provider_type: inline::basic
877- - config: {}
878- provider_id: llm-as-judge
879- provider_type: inline::llm-as-judge
880- - config:
881- openai_api_key: ' ******** '
882- provider_id: braintrust
883- provider_type: inline::braintrust
884- telemetry:
885- - config:
886- service_name: ' lightspeed-stack'
887- sinks: sqlite
888- sqlite_db_path: .llama/distributions/ollama/trace_store.db
889- provider_id: meta-reference
890- provider_type: inline::meta-reference
891- tool_runtime:
892- - provider_id: model-context-protocol
893- provider_type: remote::model-context-protocol
894- config: {}
895- vector_io:
896- - config:
897- kvstore:
898- db_path: .llama/distributions/ollama/faiss_store.db
899- namespace: null
900- type: sqlite
901- provider_id: faiss
902- provider_type: inline::faiss
903- scoring_fns: []
904- server:
905- auth: null
906- host: null
907- port: 8321
908- quota: null
909- tls_cafile: null
910- tls_certfile: null
911- tls_keyfile: null
912- shields: []
913- vector_dbs: []
914-
915- models:
916- - model_id: gpt-4-turbo
917- provider_id: openai
918- model_type: llm
919- provider_model_id: gpt-4-turbo
920- ```
796+ Llama Stack needs to be configured properly. For using the default runnable Llama Stack a file named `run.yaml` needs to be created. Use the example configuration from [examples/run.yaml](../examples/run.yaml).
921797
922798
923799
@@ -1043,13 +919,17 @@ models:
1043919 provider_id: model-context-protocol
1044920 provider_type: remote::model-context-protocol
1045921 vector_io:
1046- - config:
1047- kvstore:
1048- db_path: .llama/distributions/ollama/faiss_store.db
1049- namespace: null
1050- type: sqlite
1051- provider_id: faiss
922+ - provider_id: faiss
1052923 provider_type: inline::faiss
924+ config:
925+ persistence:
926+ namespace: vector_io::faiss
927+ backend: kv_default
928+ storage:
929+ backends:
930+ kv_default:
931+ type: kv_sqlite
932+ db_path: .llama/distributions/ollama/kv_store.db
1053933 scoring_fns: []
1054934 server:
1055935 auth: null
@@ -1061,7 +941,7 @@ models:
1061941 tls_keyfile: null
1062942 shields: []
1063943 tool_groups: []
1064- vector_dbs : []
944+ vector_stores : []
1065945 version: 2
1066946 ```
10679471. The server with Llama Stack listens on port 8321. A description of the REST API is available in the form of OpenAPI (endpoint /openapi.json), but other endpoints can also be used. It is possible to check if Llama Stack runs as REST API server by retrieving its version. We use `curl` and `jq` tools for this purposes:
@@ -1137,100 +1017,7 @@ export OPENAI_API_KEY="sk-foo-bar-baz-my-key"
11371017
11381018#### Llama Stack configuration
11391019
1140- Create a file named `run.yaml` with following content:
1141-
1142- ```yaml
1143- version: ' 2'
1144- image_name: minimal-viable-llama-stack-configuration
1145-
1146- apis:
1147- - agents
1148- - datasetio
1149- - eval
1150- - inference
1151- - post_training
1152- - safety
1153- - scoring
1154- - telemetry
1155- - tool_runtime
1156- - vector_io
1157- benchmarks: []
1158- container_image: null
1159- datasets: []
1160- external_providers_dir: null
1161- inference_store:
1162- db_path: .llama/distributions/ollama/inference_store.db
1163- type: sqlite
1164- logging: null
1165- metadata_store:
1166- db_path: .llama/distributions/ollama/registry.db
1167- namespace: null
1168- type: sqlite
1169- providers:
1170- agents:
1171- - config:
1172- persistence_store:
1173- db_path: .llama/distributions/ollama/agents_store.db
1174- namespace: null
1175- type: sqlite
1176- responses_store:
1177- db_path: .llama/distributions/ollama/responses_store.db
1178- type: sqlite
1179- provider_id: meta-reference
1180- provider_type: inline::meta-reference
1181- datasetio:
1182- - config:
1183- kvstore:
1184- db_path: .llama/distributions/ollama/huggingface_datasetio.db
1185- namespace: null
1186- type: sqlite
1187- provider_id: huggingface
1188- provider_type: remote::huggingface
1189- - config:
1190- kvstore:
1191- db_path: .llama/distributions/ollama/localfs_datasetio.db
1192- namespace: null
1193- type: sqlite
1194- provider_id: localfs
1195- provider_type: inline::localfs
1196- eval:
1197- - config:
1198- kvstore:
1199- db_path: .llama/distributions/ollama/meta_reference_eval.db
1200- namespace: null
1201- type: sqlite
1202- provider_id: meta-reference
1203- provider_type: inline::meta-reference
1204- inference:
1205- - provider_id: openai
1206- provider_type: remote::openai
1207- config:
1208- api_key: ${env.OPENAI_API_KEY}
1209- post_training:
1210- - config:
1211- checkpoint_format: huggingface
1212- device: cpu
1213- distributed_backend: null
1214- provider_id: huggingface
1215- provider_type: inline::huggingface
1216- safety:
1217- - config:
1218- excluded_categories: []
1219- provider_id: llama-guard
1220- provider_type: inline::llama-guard
1221- scoring:
1222- - config: {}
1223- provider_id: basic
1224- provider_type: inline::basic
1225- - config: {}
1226- provider_id: llm-as-judge
1227- provider_type: inline::llm-as-judge
1228- - config:
1229- openai_api_key: ' ******** '
1230- provider_id: braintrust
1231- provider_type: inline::braintrust
1232- telemetry:
1233- ```
1020+ Create a file named `run.yaml`. Use the example configuration from [examples/run.yaml](../examples/run.yaml).
12341021
12351022### LCS configuration
12361023
0 commit comments