You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* chore: migrate inference providers temporarily to native_override to utilize single-file config
Signed-off-by: Jordan Dubrick <jdubrick@redhat.com>
* update lcore image
Signed-off-by: Jordan Dubrick <jdubrick@redhat.com>
* add okp compose file
Signed-off-by: Jordan Dubrick <jdubrick@redhat.com>
* fix numbering
Signed-off-by: Jordan Dubrick <jdubrick@redhat.com>
* add deprecatio notice to llama stack config dir
Signed-off-by: Jordan Dubrick <jdubrick@redhat.com>
* update rag section with new schema
Signed-off-by: Jordan Dubrick <jdubrick@redhat.com>
* set empty default for tokens
Signed-off-by: Jordan Dubrick <jdubrick@redhat.com>
* update lcore image
Signed-off-by: Jordan Dubrick <jdubrick@redhat.com>
* use byo-llm baseline to adopt unified config (single-file)
Signed-off-by: Jordan Dubrick <jdubrick@redhat.com>
* remove llama config and rag content from local compose
Signed-off-by: Jordan Dubrick <jdubrick@redhat.com>
* remove native override for inference
Signed-off-by: Jordan Dubrick <jdubrick@redhat.com>
* add back transformers
Signed-off-by: Jordan Dubrick <jdubrick@redhat.com>
---------
Signed-off-by: Jordan Dubrick <jdubrick@redhat.com>
Copy file name to clipboardExpand all lines: docs/CONTRIBUTING.md
+15-7Lines changed: 15 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@
23
23
24
24
To configure inference providers without editing the git-tracked `lightspeed-stack.yaml`, copy `lightspeed-core-configs/lightspeed-stack.yaml` to `lightspeed-core-configs/lightspeed-stack.local.yaml` and make your edits there. `make local-up` mounts the `.local.yaml` file automatically when it's present, otherwise it falls back to `lightspeed-stack.yaml`. `lightspeed-stack.local.yaml` is gitignored, so it's safe to leave provider config there permanently.
25
25
26
-
The tracked `lightspeed-stack.yaml` contains commented stubs for `vllm`, `openai`, and `vertexai`. Copy it to `lightspeed-stack.local.yaml` and uncomment the provider block(s) you need. For GitOps/production, [scripts/generate-gitops-manifests.sh](../scripts/generate-gitops-manifests.sh) uncomments those three providers and adds production `allowed_models`. Ollama (if needed) is added manually in `.local.yaml` — see [docs/PROVIDERS.md](./PROVIDERS.md).
26
+
The tracked `lightspeed-stack.yaml`uses the `byo-llm` baseline and contains commented stubs for `vllm`, `openai`, and `vertexai` under `inference.providers`. Copy it to `lightspeed-stack.local.yaml` and uncomment the provider block(s) you need. Providers do not belong under `llama_stack.config.native_override`. For GitOps/production, [scripts/generate-gitops-manifests.sh](../scripts/generate-gitops-manifests.sh) uncomments those three providers and adds production `allowed_models`. Ollama (if needed) is added manually in `.local.yaml` — see [docs/PROVIDERS.md](./PROVIDERS.md).
27
27
28
28
2. Pull the RAG content:
29
29
@@ -39,26 +39,33 @@ make get-skills
39
39
40
40
4. The production config (`lightspeed-stack.yaml`) sets `host: 127.0.0.1` so the service only binds to loopback — reachable exclusively by containers in the same Pod on Kubernetes. The compose file overrides this with `SERVICE_HOST=0.0.0.0` so the container port mapping works and you can reach the API at `localhost:8080` from your host.
41
41
42
-
1. Start the local API stack:
42
+
5. Start the local API stack:
43
43
44
44
```sh
45
45
make local-up
46
46
```
47
47
48
-
This starts Lightspeed Core using the mounted config/content below.
48
+
This starts Lightspeed Core using the mounted config/content below. To also start the Offline Knowledge Portal (OKP) and wait until it is healthy before Lightspeed Core starts:
49
+
50
+
```sh
51
+
make local-up-okp
52
+
```
53
+
54
+
Set `OKP_ACCESS_KEY` in `env/values.env` when using `make local-up-okp`. `make local-down` stops OKP even if you started it with the overlay.
55
+
56
+
To obtain `OKP_ACCESS_KEY` navigate to the [access key generator](https://access.redhat.com/offline/access/).
49
57
50
58
Lightspeed Core uses mounted config/content in local compose:
51
59
52
60
-`lightspeed-core-configs/lightspeed-stack.yaml` (or `lightspeed-stack.local.yaml`, if present) -> `/app-root/lightspeed-stack.yaml`
Question validation is not enabled automatically. If you want it, set `ENABLE_VALIDATION=question_validity`, `VALIDATION_PROVIDER`, and `VALIDATION_MODEL_NAME` in `env/values.env`, along with any env vars required by the selected inference provider.
58
65
59
66
See [Configuring Validation](#configuring-validation) for example configurations.
60
67
61
-
4. Stop services:
68
+
6. Stop services:
62
69
63
70
```sh
64
71
make local-down
@@ -107,7 +114,7 @@ Paste that value into `byok_rag[].vector_db_id`. Keep `embedding_model` as the d
107
114
108
115
`notebooks` is separate: it is dynamic create capacity under `vector_store` (local FAISS; GitOps rewrites it to pgvector). It is not a second `byok_rag` corpus.
109
116
110
-
If you use a gitignored `lightspeed-stack.local.yaml` for local providers, copy the same `byok_rag` / `rag` / `vector_store` / `shields` sections from the committed file when they change.
117
+
If you use a gitignored `lightspeed-stack.local.yaml`, copy the same `byok_rag` / `rag` / `vector_store` / `shields` sections from the committed file when they change.
111
118
112
119
## Configuring Skills
113
120
@@ -204,7 +211,8 @@ make validate-yaml
204
211
| `get-rag` | Pull and unpack RAG content into `./rag-content` (replaces existing contents). Optional: `RAG_CONTENT_IMAGE=<image>`. |
205
212
| `get-skills` | Optional. Fetch RHDH skills into `./skills` for skills consumption (replaces existing contents). Optional: `RHDH_SKILLS_REPO=<url>`, `RHDH_SKILLS_REF=<ref>`. |
206
213
| `local-up` | Start local compose services. Validation is controlled entirely through env vars in `env/values.env`. |
207
-
| `local-down` | Stop local compose services. |
214
+
| `local-up-okp` | Start local compose services with OKP (`compose/compose-okp.yaml`). Set `OKP_ACCESS_KEY` in `env/values.env`. |
215
+
| `local-down` | Stop local compose services, including OKP if it was started. |
208
216
| `sync-images` | Sync image values from `images.yaml` into `env/default-values.env`. Requires `yq`. |
209
217
| `validate-images` | Validate that `images.yaml` and `env/default-values.env` are in sync. Requires `yq`. |
Copy file name to clipboardExpand all lines: docs/PROVIDERS.md
+3-4Lines changed: 3 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ Each inference has its own environment variables. You can include all of these i
12
12
> You will notice the `api_key_env` field is not wrapped in curly-braces `{}`. This is due to Lightspeed Core wrapping them internally to curate a proper `{env.xyz}` to pass through to Llama Stack so the keys are not exposed internally.
13
13
14
14
> [!NOTE]
15
-
> Commented provider stubs for `vllm`, `openai`, and `vertexai` live in [lightspeed-stack.yaml](../lightspeed-core-configs/lightspeed-stack.yaml). For local development, copy that file to `lightspeed-core-configs/lightspeed-stack.local.yaml` (gitignored, auto-mounted by `make local-up` when present — see [CONTRIBUTING.md](./CONTRIBUTING.md)), uncomment the block(s) you need, and set the required env vars.
15
+
> Commented provider stubs for `vllm`, `openai`, and `vertexai` live under `inference.providers`in [lightspeed-stack.yaml](../lightspeed-core-configs/lightspeed-stack.yaml). The `byo-llm` baseline means these stay at that top-level section — do not add them to `llama_stack.config.native_override`. For local development, copy that file to `lightspeed-core-configs/lightspeed-stack.local.yaml` (gitignored, auto-mounted by `make local-up` when present — see [CONTRIBUTING.md](./CONTRIBUTING.md)), uncomment the block(s) you need, and set the required env vars.
16
16
>
17
17
> For GitOps/production, [scripts/generate-gitops-manifests.sh](../scripts/generate-gitops-manifests.sh) uncomments those three providers, then adds production `allowed_models` for `openai` and `vertexai`.
Copy file name to clipboardExpand all lines: llama-stack-configs/README.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,9 @@
1
1
# Llama Stack Configuration Files
2
2
3
+
> [!IMPORTANT]
4
+
> This directory is set to be deleted/archived in favour of a lightspeed-stack.yaml only implementation
5
+
>
6
+
3
7
This directory stores the Llama Stack config for the single active release tracked on `main`.
4
8
5
9
-`config.yaml` is the unified config. The question-validation shield is conditionally enabled via `ENABLE_VALIDATION` and uses the `VALIDATION_PROVIDER` and `VALIDATION_MODEL_NAME` env vars you supply (see [CONTRIBUTING.md](../docs/CONTRIBUTING.md#configuring-validation)).
0 commit comments