Shrink the docling-serve context-expansion cassette
This commit is contained in:
parent
afd6e3ae00
commit
e4b1f16f97
2 changed files with 32050 additions and 226160 deletions
File diff suppressed because one or more lines are too long
|
|
@ -558,19 +558,19 @@ async def test_expand_context_no_base64_images_docling_local(
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.vcr()
|
@pytest.mark.vcr()
|
||||||
async def test_expand_context_no_base64_images_docling_serve(temp_db_path):
|
async def test_expand_context_no_base64_images_docling_serve(
|
||||||
|
temp_db_path, doclaynet_first_page_pdf
|
||||||
|
):
|
||||||
"""Ensure expanded context from real PDF does not contain base64 image data.
|
"""Ensure expanded context from real PDF does not contain base64 image data.
|
||||||
|
|
||||||
Tests end-to-end with doclaynet.pdf using docling-serve converter.
|
Tests end-to-end with a single page of doclaynet.pdf using docling-serve converter.
|
||||||
"""
|
"""
|
||||||
from pathlib import Path
|
|
||||||
|
|
||||||
config = AppConfig()
|
config = AppConfig()
|
||||||
config.processing.converter = "docling-serve"
|
config.processing.converter = "docling-serve"
|
||||||
config.processing.chunker = "docling-serve"
|
config.processing.chunker = "docling-serve"
|
||||||
|
|
||||||
async with HaikuRAG(temp_db_path, config=config, create=True) as client:
|
async with HaikuRAG(temp_db_path, config=config, create=True) as client:
|
||||||
pdf_path = Path(__file__).parent / "data" / "doclaynet.pdf"
|
pdf_path = doclaynet_first_page_pdf
|
||||||
result = await client.create_document_from_source(pdf_path)
|
result = await client.create_document_from_source(pdf_path)
|
||||||
doc = result if not isinstance(result, list) else result[0]
|
doc = result if not isinstance(result, list) else result[0]
|
||||||
assert doc.id is not None
|
assert doc.id is not None
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue