26 lines
771 B
Python
26 lines
771 B
Python
"""Phase 1 tests: RAG query endpoint.
|
|
|
|
Covers:
|
|
- POST /api/v1/query question → retrieve → LLM → bullet-point response
|
|
- Strict RAG prompt enforcement (only use retrieved context)
|
|
- Bullet-point response format
|
|
- Source metadata inclusion
|
|
"""
|
|
import pytest
|
|
|
|
|
|
class TestQuery:
|
|
"""RAG query endpoint tests."""
|
|
|
|
def test_query_returns_bullets(self):
|
|
"""Should return bullet-point answer with source metadata."""
|
|
pass # TODO: implement
|
|
|
|
def test_query_strict_rag_no_hallucination(self):
|
|
"""Should refuse to answer when no relevant context retrieved."""
|
|
pass # TODO: implement
|
|
|
|
def test_query_includes_source_metadata(self):
|
|
"""Should include filename, upload_date in response."""
|
|
pass # TODO: implement
|