mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-20 04:42:18 +03:00
11 lines
236 B
Python
11 lines
236 B
Python
|
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 == []
|