From e558258fdd44a24c3a92768b75b5019360195b1b Mon Sep 17 00:00:00 2001 From: Ben Browning Date: Fri, 8 Nov 2024 13:15:15 -0500 Subject: [PATCH] Remove qna.yaml from chunker functional tests We no longer need qna.yaml files on disk to chunk documents. Signed-off-by: Ben Browning --- tests/functional/test_chunkers.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/tests/functional/test_chunkers.py b/tests/functional/test_chunkers.py index d400de38..4fa83859 100644 --- a/tests/functional/test_chunkers.py +++ b/tests/functional/test_chunkers.py @@ -7,19 +7,8 @@ TEST_DATA_DIR = os.path.join(os.path.dirname(__file__), "testdata") -# TODO: Apparently we don't really need any contents in the qna.yaml? -knowledge_qna = """ -version: 3 -domain: astronomy -""" - def test_chunk_pdf(tmp_path): - qna_dir = os.path.join(tmp_path, "knowledge") - os.makedirs(qna_dir) - with open(os.path.join(qna_dir, "qna.yaml"), "w", encoding="utf-8") as f: - f.write(knowledge_qna) - leaf_node = [ { "documents": ["Lorem ipsum"], @@ -44,11 +33,6 @@ def test_chunk_pdf(tmp_path): def test_chunk_md(tmp_path): - qna_dir = os.path.join(tmp_path, "knowledge") - os.makedirs(qna_dir) - with open(os.path.join(qna_dir, "qna.yaml"), "w", encoding="utf-8") as f: - f.write(knowledge_qna) - markdown_path = Path(os.path.join(TEST_DATA_DIR, "phoenix.md")) leaf_node = [ {