chore: update Milvus on examples and references to deprecated method (#2664)

* docs(examples): update the set up of Milvus Lite

Signed-off-by: Cesar Berrospi Ramis <ceb@zurich.ibm.com>

* chore: remove references to deprecated save_as_document_tokens

Signed-off-by: Cesar Berrospi Ramis <ceb@zurich.ibm.com>

---------

Signed-off-by: Cesar Berrospi Ramis <ceb@zurich.ibm.com>
This commit is contained in:
Cesar Berrospi Ramis
2025-11-20 13:22:45 +01:00
committed by GitHub
parent ce5a099dfd
commit 54e65d9511
4 changed files with 5 additions and 5 deletions

View File

@@ -79,7 +79,7 @@ def export_documents(
output_dir / f"{doc_filename}.html",
image_mode=ImageRefMode.EMBEDDED,
)
conv_res.document.save_as_document_tokens(
conv_res.document.save_as_doctags(
output_dir / f"{doc_filename}.doctags.txt"
)
conv_res.document.save_as_markdown(
@@ -98,7 +98,7 @@ def export_documents(
# Export Docling document format to doctags:
with (output_dir / f"{doc_filename}.doctags.txt").open("w") as fp:
fp.write(conv_res.document.export_to_document_tokens())
fp.write(conv_res.document.export_to_doctags())
# Export Docling document format to markdown:
with (output_dir / f"{doc_filename}.md").open("w") as fp: