llama-stack/docs/source/distributions
Ashwin Bharambe dc84bc755a
fix: revert to using faiss for ollama distro (#1530)
This is unfortunate because `sqlite-vec` seems promising. But its PIP
package is not quite complete. It does not have binary for arm64 (I
think, or maybe it even lacks 64 bit builds?) which results in the arm64
container resulting in
```
File "/usr/local/lib/python3.10/site-packages/sqlite_vec/init.py", line 17, in load
    conn.load_extension(loadable_path())
sqlite3.OperationalError: /usr/local/lib/python3.10/site-packages/sqlite_vec/vec0.so: wrong ELF class: ELFCLASS32
```

To get around I tried to install from source via `uv pip install
sqlite-vec --no-binary=sqlite-vec` however it even lacks a source
distribution which makes that impossible.

## Test Plan

Build the container locally using: 

```bash
LLAMA_STACK_DIR=. llama stack build --template ollama --image-type container
```

Run the container as: 

```
podman run --privileged -it -p $LLAMA_STACK_PORT:$LLAMA_STACK_PORT \
   -v ~/.llama:/root/.llama \
    --env INFERENCE_MODEL=$INFERENCE_MODEL \
    --env OLLAMA_URL=http://host.containers.internal:11434 \
    -v ~/local/llama-stack:/app/llama-stack-source 
    localhost/distribution-ollama:dev --port $LLAMA_STACK_PORT
```

Verify the container starts up correctly. Without this patch, it would
encounter the ELFCLASS32 error.
2025-03-10 16:15:17 -07:00
..
ondevice_distro Fixed distro documentation (#852) 2025-01-23 08:19:51 -08:00
remote_hosted_distro chore: remove the incorrect output (#1472) 2025-03-07 10:39:33 -08:00
self_hosted_distro fix: revert to using faiss for ollama distro (#1530) 2025-03-10 16:15:17 -07:00
building_distro.md refactor: display defaults in help text (#1480) 2025-03-07 11:05:58 -08:00
configuration.md script for running client sdk tests (#895) 2025-02-19 22:38:06 -08:00
importing_as_library.md Fix precommit check after moving to ruff (#927) 2025-02-02 06:46:45 -08:00
index.md Add Kubernetes deployment guide (#899) 2025-02-06 10:28:02 -08:00
kubernetes_deployment.md Add Kubernetes deployment guide (#899) 2025-02-06 10:28:02 -08:00
selection.md docs: small fixes (#1224) 2025-02-24 07:59:58 -05:00