LlamaIndex Reader: DataSinking
Load full-text financial reports (balance sheet, income statement, cash flow + notes) as LlamaIndex Documents for your RAG pipeline. Makes DataSinking the first step of "build a financial-report RAG".
Install
pip install llama-index-readers-datasinking
The query-engine example below also needs LlamaIndex itself: pip install llama-index.
Usage (20-line Colab)
from llama_index.readers.datasinking import DataSinkingReader
# Get a free key at datasink.ing
reader = DataSinkingReader(api_key="your key")
docs = reader.load_data("AAPL", limit=3) # Apple's 3 latest filings
from llama_index.core import VectorStoreIndex
index = VectorStoreIndex.from_documents(docs)
print(index.as_query_engine().query("What was Apple's net income last year?"))
Each report becomes one Document; its Markdown tables are preserved, so the LLM can read the actual balance sheet / income statement / cash flow.
Three examples
The repo's examples.py has three runnable examples. Set your key as an env var and run:
export DATASINKING_API_KEY=your_free_key # Windows: set DATASINKING_API_KEY=your_free_key
python examples.py
- Fetch one filing — see what a
Documentlooks like (metadata + full text). - Load 5 years of filings — 626k characters of Apple filings as 5
Documents, ready forVectorStoreIndex.from_documents. - Cross-company comparison — search "营业收入" across Moutai vs Wuliangye and read the revenue figures side by side:
for sym, name in [("600519.SS", "茅台"), ("000858.SZ", "五粮液")]:
docs = reader.load_data(sym, limit=1)
# 茅台 → | 营业收入 | 90,703,260,964.48 | ... · 五粮液 → | 营业收入(元) | 28,416,674,541.77 | ...
API key, quotas and rate limits
You need a (free) API key — get one at https://datasink.ing. Use the free key for real RAG pipelines.
| Tier | Quota | Rate limit |
|---|---|---|
| Free key | 8,191 reports / 7 days | 3 requests / s |
| Paid ($31/yr) | 524,287 reports / 7 days | 31 requests / s |
- Quota counts reports, not requests — one report = one unit.
- Hit a limit and you get a
QuotaErrorcarrying the tier table above plus the upgrade link (https://datasink.ing/pricing).
Supported symbols
- US
AAPL· China600519.SS· Japan7203.T· Korea005930.KS· Taiwan2330.TW· UKVOD.L - Don't know the ticker? Search by name:
GET https://api.datasink.ing/search?q=Apple - Each report is a
Documentwith metadatasymbol/report_period/doc_type
API docs: https://datasink.ing/docs
Earn $7 every purchase per referral — recurring, PayPal, $31 minimum withdrawal: https://datasink.ing/affiliate
Metadata
Release files for llama-index-readers-datasinking 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| llama_index_readers_datasinking-0.1.2.tar.gz | 4.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| llama_index_readers_datasinking-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.2 kB
Release files / llama_index_readers_datasinking-0.1.2.tar.gz
| Download URL | llama_index_readers_datasinking-0.1.2.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a55728ab1cf79fc67d3a07186b5d86d12ef2fa3808a19a90087e3e83118f74e4
|
|
BLAKE2b-256 checksum How to use checksums |
45893cf256fd32ad7f82ea4cd0821b4e234ae63d64381f433f3e8ef8b1ef8776
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.7
|
Release files / llama_index_readers_datasinking-0.1.2-py3-none-any.whl
| Download URL | llama_index_readers_datasinking-0.1.2-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7abf2e4285b2ff01ad24e9e41dd1685af0f2586dec021fa73a5bcafcd7023b61
|
|
BLAKE2b-256 checksum How to use checksums |
5136f3b3160e7686c5f104c6b4ce2e450b5c39f153f503929bd05f67fd79824c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.7
|
Security for llama-index-readers-datasinking 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.