quivr/backend/llm/tests/test_knowledge_brain_qa.py

11 lines
236 B
Python
Raw Normal View History

from llm.knowledge_brain_qa import generate_source
def test_generate_source_no_documents():
result = {"source_documents": []}
brain = {"brain_id": "123"}
sources = generate_source(result, brain)
assert sources == []