ToolTrace LlamaIndex Integration
LlamaIndex data reader for the ToolTrace web intelligence API. Load webpages as LlamaIndex Documents with clean Markdown content for RAG pipelines and knowledge bases.
Install
pip install tooltrace-llamaindex
Quick start
from tooltrace_llamaindex import ToolTraceReader
reader = ToolTraceReader(api_key="your-key")
docs = reader.load_data(
urls=[
"https://example.com/blog/post-1",
"https://example.com/blog/post-2",
]
)
for doc in docs:
print(doc.metadata["title"])
print(doc.text[:200])
RAG pipeline example
from llama_index.core import VectorStoreIndex
from tooltrace_llamaindex import ToolTraceReader
# Load and index
reader = ToolTraceReader(api_key="your-key")
docs = reader.load_data(urls=["https://tooltrace.io/docs"])
index = VectorStoreIndex.from_documents(docs)
# Query
engine = index.as_query_engine()
response = engine.query("How does browser rendering work?")
print(response)
Document metadata
Each document includes:
source: Final URL after redirectstitle: Page titlecanonical_url: Canonical URLauthor: Author namelanguage: Content languagepublished_at: Publication dateword_count: Word countrender_method: Whether static or browser rendering was usedcontent_hash: Content hash for change detection
Options
reader = ToolTraceReader(
api_key="your-key", # or set TOOLTRACE_API_KEY env var
render="auto", # "never" (1 credit), "auto", "always" (5 credits)
continue_on_error=True, # skip failed URLs instead of raising
)
License
MIT
Metadata
Release files for tooltrace-llamaindex 0.1.0
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 | |
|---|---|---|---|---|
| tooltrace_llamaindex-0.1.0.tar.gz | 4.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tooltrace_llamaindex-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.3 kB
Release files / tooltrace_llamaindex-0.1.0.tar.gz
| Download URL | tooltrace_llamaindex-0.1.0.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
03dbb42eae8d5a1e6c55005711482488d0b27798c12c963e95fee8f5036980a0
|
|
BLAKE2b-256 checksum How to use checksums |
fee62564575c1219b3d6432a98a255c9ac1a7d4f75e3b719e9e5bffdc5a24e92
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Release files / tooltrace_llamaindex-0.1.0-py3-none-any.whl
| Download URL | tooltrace_llamaindex-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a2274774bcc48a1b3d239fd77f834c242ffa8ee2deea76f6b9ca800570fe1649
|
|
BLAKE2b-256 checksum How to use checksums |
eb13abb078bf071e661b586cb73c938e8bbe19c7316f6e618293bb9135174c0a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Security for tooltrace-llamaindex 0.1.0
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.