Context Engineering Framework for LLMs and Agents
Project description
Krypton Toolkit
Context Engineering Framework for LLMs and Agents.
Krypton Toolkit helps you extract high-fidelity content from complex documents like PDFs to feed into your Large Language Models.
Features
- LLM-based Parsing: Use state-of-the-art vision models to extract content from PDFs with layout preservation.
- Generic Parsing: Fast, rule-based parsing for simpler documents.
- Smart Splitting: Split documents into semantic chunks or fixed-size windows with overlap.
Installation
pip install krypton-toolkit
Quick Start
Basic Usage
from krypton.parser import LLMParser, ParsingStrategy
# Initialize parser
parser = LLMParser(model="gpt-4o", api_key="sk-...")
# Parse document
doc = parser.parse("path/to/document.pdf", strategy=ParsingStrategy.VISUAL)
# Access pages
print(f"Parsed {len(doc.pages)} pages.")
License
This project is licensed under the Apache 2.0 License - see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
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 krypton_toolkit-0.1.0.tar.gz.
File metadata
- Download URL: krypton_toolkit-0.1.0.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.12.0 Darwin/25.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67cab8f602325c461861be8d9f3036d6c706976fa750525c6a5baa9aa905d870
|
|
| MD5 |
23e4d7e9a83bf3b62c4bca4cbd7ddf97
|
|
| BLAKE2b-256 |
4cc7db358969dde1192e0f38c891c1002b1f57fda8999ada39aa5df2a6284799
|
File details
Details for the file krypton_toolkit-0.1.0-py3-none-any.whl.
File metadata
- Download URL: krypton_toolkit-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.12.0 Darwin/25.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b145e163ee03210f9e28f0c3a350688f2875f988ba6c0ebe40a98a116a47b5bc
|
|
| MD5 |
9a48681b28b43728c4ea211e0066ac02
|
|
| BLAKE2b-256 |
4a29ca0074f7adceb19f85637c7a4a31832aebbf5543f6bf9362b6659a4baa5a
|