llama-stack/llama_stack
Bill Murdock 32d1e50a6f
test: Add qdrant to provider tests (#1039)
# What does this PR do?

This is a follow on to #1022 . It includes the changes I needed to be
able to test the Qdrant support as requested by @terrytangyuan .

I uncovered a lot of bigger, more systemic issues with the vector DB
testing and I will open a new issue for those. For now, I am just
delivering the work I already did on that.

## Test Plan

As discussed on #1022:

```
podman pull qdrant/qdrant
mkdir qdrant-data
podman run -p 6333:6333 -v $(pwd)/qdrant-data:/qdrant/storage qdrant/qdrant
```


```
ollama pull all-minilm:l6-v2
curl http://localhost:11434/api/embeddings -d '{"model": "all-minilm", "prompt": "Hello world"}'
```

```
EMBEDDING_DIMENSION=384 QDRANT_URL=http://localhost pytest llama_stack/providers/tests/vector_io/test_vector_io.py -m "qdrant" -v -s --tb=short --embedding-model all-minilm:latest --disable-warnings
```

These show 3 tests passing and 15 deselected which is presumably working
as intended.

---------

Signed-off-by: Bill Murdock <bmurdock@redhat.com>
2025-02-13 15:44:55 -08:00
..
apis chore: Consistent naming for VectorIO providers (#1023) 2025-02-13 13:15:49 -05:00
cli build: format codebase imports using ruff linter (#1028) 2025-02-13 10:06:21 -08:00
distribution build: format codebase imports using ruff linter (#1028) 2025-02-13 10:06:21 -08:00
providers test: Add qdrant to provider tests (#1039) 2025-02-13 15:44:55 -08:00
scripts build: format codebase imports using ruff linter (#1028) 2025-02-13 10:06:21 -08:00
templates chore: Consistent naming for VectorIO providers (#1023) 2025-02-13 13:15:49 -05:00
__init__.py export LibraryClient 2024-12-13 12:08:00 -08:00