llama-index node_parser docling integration
Project description
Docling Node Parser
Overview
Docling Node Parser parses Docling JSON output into LlamaIndex nodes with rich metadata for usage in downstream pipelines for RAG / QA etc.
Installation
pip install llama-index-node-parser-docling
Usage
Docling Node Parser parses LlamaIndex documents containing JSON-serialized Docling format, as created by a Docling Reader.
Basic usage looks like this:
# docs = ... # e.g. created using Docling Reader in JSON mode
from llama_index.node_parser.docling import DoclingNodeParser
node_parser = DoclingNodeParser()
nodes = node_parser.get_nodes_from_documents(documents=docs)
print(f"{nodes[12].text[:70]}...")
# > Docling provides an easy code interface to convert PDF documents from ...
print(nodes[12].metadata)
# > {'doc_items': [
# > 'self_ref': '#/main-text/21',
# > 'prov': [
# > 'page_no': 2,
# > 'bbox': {'l': 107.3, 't': 499.5, 'r': 504.0, 'b': 456.7, ...},
# > ...
# > ],
# > 'headings': ['2 Getting Started'],
# > ...
# > }
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llama_index_node_parser_docling-0.4.2.tar.gz.
File metadata
- Download URL: llama_index_node_parser_docling-0.4.2.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.13 {"installer":{"name":"uv","version":"0.9.13"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b1ac73dd36afbb6d57f011bb4acd2b62a974465e538286878dd000c88d9ee41
|
|
| MD5 |
850cda4c16b63644a86e10fae9544a60
|
|
| BLAKE2b-256 |
3da9dea8b678ee997ffda40f02c1806ce257242a5c07201eadd44a7a748efbec
|
File details
Details for the file llama_index_node_parser_docling-0.4.2-py3-none-any.whl.
File metadata
- Download URL: llama_index_node_parser_docling-0.4.2-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.13 {"installer":{"name":"uv","version":"0.9.13"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e978e7de5b05e7c63e46b3282edb25ca269c2a57a5ca03113c45627f0d53360d
|
|
| MD5 |
ea87da2d22d5b2d29e1f1a3f902e58fc
|
|
| BLAKE2b-256 |
e70ee05e2af3105002107bbc08086148fe923f0c87f0b5f8aeebeac29565b7e5
|