An open, more reliable architecture for parsing LLM output.
Project description
Phoenix: A Resilient Semantic Parser for LLM Output
Getting reliable structured data from LLMs is a fundamental engineering challenge. It's so crucial that Google recently released its open-source library, google/langextract, to tackle it using a classic, grammar-based approach. Classic methods are dependable but rigid. They break the moment an LLM's output deviates from predefined rules. Phoenix introduces a next-generation solution. It doesn’t just follow rules—it understands meaning. Here’s how the two approaches compare:
Classic Parsers (like google/langextract)
Technology: Relies on rigid Regular Expressions and Grammars. Flexibility: Low, requiring the output to strictly follow predefined rules. Failure Response: Typically results in a hard parsing error. Paradigm: "Fixing chaos with rules." License: Apache 2.0
The Phoenix Adaptive Parser Technology: A hybrid model combining direct parsing with semantic understanding. Flexibility: High, capable of interpreting natural language and messy structures. Failure Response: Performs semantic data recovery to salvage information. Paradigm: "Using intelligence to understand chaos." License: Apache 2.0
The "Resilience Cascade": Phoenix's Secret Weapon
Phoenix processes LLM output through three layers of defense, ensuring you always get a result:
Markdown Search: It first looks for JSON inside standard json... code blocks.
Direct Parsing: It then attempts to parse the output as clean, raw JSON.
Semantic Extraction: If all else fails, Phoenix activates its superpower: it analyzes the raw text, finds key: value pairs within the unstructured content, and rebuilds the data from scratch.
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 phoenix_parser-0.1.0.tar.gz.
File metadata
- Download URL: phoenix_parser-0.1.0.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7521e1e36fd76a4b34cfd50395c01586337cdbebdda82f82711c4683acec671
|
|
| MD5 |
29a802b74e9e633c730dd105caf30a4a
|
|
| BLAKE2b-256 |
c2605fa80b1470caa39ed5dc978f2066cf455abde1e1b9d5d5f3b2406edbf60d
|
File details
Details for the file phoenix_parser-0.1.0-py3-none-any.whl.
File metadata
- Download URL: phoenix_parser-0.1.0-py3-none-any.whl
- Upload date:
- Size: 12.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dab82e1003cdae236f905134d21661135c5f115c1ed56d3d98fc350d9e1e6915
|
|
| MD5 |
7f8e90b8d9acf062bc68ce6be71707c8
|
|
| BLAKE2b-256 |
8adce900e0708026bf8c87a107086a093bb83c74a299fc32c50d0807549d0639
|