docs: improve vector store config documentation and fix test isolation

This commit is contained in:
skamenan7 2025-08-13 17:13:57 -04:00
parent ecb06a0384
commit 534c227058
3 changed files with 24 additions and 4 deletions

View file

@ -7,7 +7,10 @@
from llama_stack.apis.common.vector_store_config import VectorStoreConfig
def test_defaults():
def test_defaults(monkeypatch):
# ensure env is clean to avoid flaky defaults
monkeypatch.delenv("LLAMA_STACK_DEFAULT_EMBEDDING_MODEL", raising=False)
monkeypatch.delenv("LLAMA_STACK_DEFAULT_EMBEDDING_DIMENSION", raising=False)
config = VectorStoreConfig()
assert config.default_embedding_model is None
assert config.default_embedding_dimension is None

View file

@ -5,9 +5,13 @@
# the root directory of this source tree.
import pytest
from llama_stack.apis.models import ModelType
from llama_stack.core.routers.vector_io import VectorIORouter
pytestmark = pytest.mark.asyncio
class _DummyModel:
def __init__(self, identifier: str, dim: int):