Buckets:

download
raw
1.01 kB
"""SEMQUERY docs contract tests."""
from pathlib import Path
REPO = Path(__file__).resolve().parents[2]
SEMANTIC_ONBOARDING = REPO / "docs" / "guides" / "semantic-onboarding.md"
SUPPORT_MATRIX = REPO / "docs" / "SUPPORT_MATRIX.md"
def _read(path: Path) -> str:
return path.read_text(encoding="utf-8").lower()
def test_semantic_onboarding_describes_semantic_only_query_contract():
text = _read(SEMANTIC_ONBOARDING)
assert "search_code(semantic=true)" in text
assert "semantic_source" in text
assert "semantic_profile_id" in text
assert "semantic_collection_name" in text
assert "semantic_search_failed" in text
assert "instead of silently degrading to lexical or plugin results" in text
def test_support_matrix_describes_explicit_semantic_refusal_and_failure():
text = _read(SUPPORT_MATRIX)
assert "semantic: true" in text
assert "source/profile/collection metadata" in text
assert "explicit semantic refusal or failure instead of lexical fallback" in text

Xet Storage Details

Size:
1.01 kB
·
Xet hash:
ce4e6c88b9531fa5a177ddc21c40a795827c3f9b3902393b20ca7dc71073c72a

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.