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
-Other default providers from the [Remote vLLM distribution](https://llama-stack.readthedocs.io/en/latest/distributions/self_hosted_distro/remote-vllm.html) as well
> Actually using temporary [lightspeed stack providers](https://pypi.org/project/lightspeed-stack-providers/) package, otherwise further need for [lightspeed external providers](https://github.com/lightspeed-core/lightspeed-providers) available on PyPI
44
-
45
-
- Install llama-stack on the host machine, if not present.
46
-
- External providers YAML manifests must be present in `providers.d/` of your host's llama-stack directory.
47
-
- External providers' python libraries must be in the container's python's library path, but also in the host machine's python library path. It is a workaround for [this hack](https://github.com/meta-llama/llama-stack/blob/0cc07311890c00feb5bbd40f5052c8a84a88aa65/llama_stack/cli/stack/_build.py#L299).
48
-
- Vector DB and embedding image files are copied from the latest `aap-rag-content` image to `./vector_db` and `./embeddings_model` respectively.
47
+
- External Providers YAML manifests must be present in `providers.d/` of your host's `llama-stack` directory.
48
+
- Vector Database is copied from the latest `aap-rag-content` image to `./vector_db`.
49
+
- Embeddings image files are copied from the latest `aap-rag-content` image to `./embeddings_model`.
49
50
50
51
```shell
51
52
make setup
52
53
```
53
54
54
-
### Building the Ansible Chatbot Stack
55
+
### Building Ansible Chatbot Stack
55
56
56
-
---
57
+
Builds the image `ansible-chatbot-stack:$ANSIBLE_CHATBOT_VERSION`.
57
58
58
-
> Builds the image `ansible-chatbot-stack-base:$PYPI_VERSION`.
59
+
> Change the `ANSIBLE_CHATBOT_VERSION` version and inference parameters below accordingly.
59
60
60
61
```shell
62
+
export ANSIBLE_CHATBOT_VERSION=0.0.1
63
+
61
64
make build
62
65
```
63
66
64
-
### Customizing the Ansible Chatbot Stack
67
+
### Container file structure
68
+
69
+
#### Files from `lightspeed-stack` base image
70
+
```commandline
71
+
└── app-root/
72
+
├── .venv/
73
+
└── src/
74
+
├── <lightspeed-stack files>
75
+
└── lightspeed_stack.py
76
+
````
77
+
78
+
#### Runtime files
79
+
80
+
> These are stored in a `PersistentVolumeClaim` for resilience
81
+
```commandline
82
+
└── .llama/
83
+
└── data/
84
+
└── distributions/
85
+
└── ansible-chatbot/
86
+
├── aap_faiss_store.db
87
+
├── agents_store.db
88
+
├── responses_store.db
89
+
├── localfs_datasetio.db
90
+
├── trace_store.db
91
+
└── embeddings_model/
92
+
```
93
+
94
+
#### Configuration files
95
+
```commandline
96
+
└── .llama/
97
+
├── distributions/
98
+
│ └── ansible-chatbot/
99
+
│ ├── lightspeed-stack.yaml
100
+
│ ├── ansible-chatbot-run.yaml
101
+
│ ├── ansible-chatbot-version-info.json
102
+
│ └── system-prompts/
103
+
│ └── default.txt
104
+
└── providers.d
105
+
└── <llama-stack external providers>
106
+
```
107
+
108
+
## Run
65
109
66
-
---
110
+
Runs the image `ansible-chatbot-stack:$ANSIBLE_CHATBOT_VERSION` as a local container.
67
111
68
-
> Builds the image `ansible-chatbot-stack:$ANSIBLE_CHATBOT_VERSION`.
112
+
> Change the `ANSIBLE_CHATBOT_VERSION` version and inference parameters below accordingly.
0 commit comments