mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-07-23 21:04:29 +00:00
Merge branch 'main' into chunk-metadata
This commit is contained in:
commit
f52eb51555
40 changed files with 272 additions and 722 deletions
|
@ -40,4 +40,4 @@ name = "llama-stack-provider-ollama"
|
|||
version = "0.1.0"
|
||||
description = "External provider for Ollama using the Llama Stack API"
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.11"
|
||||
requires-python = ">=3.12"
|
||||
|
|
|
@ -804,3 +804,23 @@ def test_openai_vector_store_update_file(compat_client_with_empty_stores, client
|
|||
file_id=file.id,
|
||||
)
|
||||
assert retrieved_file.attributes["foo"] == "baz"
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="Client library needs to be scaffolded to support search_mode parameter")
|
||||
def test_openai_vector_store_search_modes():
|
||||
"""Test OpenAI vector store search with different search modes.
|
||||
|
||||
This test is skipped because the client library
|
||||
needs to be regenerated from the updated OpenAPI spec to support the
|
||||
search_mode parameter. Once the client library is updated, this test
|
||||
can be enabled to verify:
|
||||
- vector search mode (default)
|
||||
- keyword search mode
|
||||
- hybrid search mode
|
||||
- invalid search mode validation
|
||||
"""
|
||||
# TODO: Enable this test once llama_stack_client is updated to support search_mode
|
||||
# The server-side implementation is complete but the client
|
||||
# library needs to be updated:
|
||||
# https://github.com/meta-llama/llama-stack-client-python/blob/52c0b5d23e9ae67ceb09d755143d436f38c20547/src/llama_stack_client/resources/vector_stores/vector_stores.py#L314
|
||||
pass
|
||||
|
|
|
@ -13,7 +13,7 @@ Any additional arguments are passed to pytest. For example, you can specify a te
|
|||
./scripts/unit-tests.sh tests/unit/registry/test_registry.py -vvv
|
||||
```
|
||||
|
||||
If you'd like to run for a non-default version of Python (currently 3.11), pass `PYTHON_VERSION` variable as follows:
|
||||
If you'd like to run for a non-default version of Python (currently 3.12), pass `PYTHON_VERSION` variable as follows:
|
||||
|
||||
```
|
||||
source .venv/bin/activate
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue