Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Proxy Structuring Engine: Ensures AI-generated output adheres to predefined schemas without compromising creativity, speed, or context.
Bringing Order to Chaos: Efficient Schema-Guided Sampling for LLMs
Overview • Installation • Features • Benchmarks
The Proxy Structuring Engine (PSE) works in tandem with Large Language Models (LLMs) to ensure generated outputs adhere to predefined schemas without compromising creativity, speed, or context. This enables error-free custom tool calling, complex multi-step reasoning, and unlocks new creative possibilities for AI applications.
PSE achieves this through a novel schema-guided sampling approach, leveraging Directed Acyclic Word Graphs (DAWGs) and finite state machines to enforce constraints during text generation.
PSE supports multiple backends such as PyTorch, JAX, and MLX for maximum flexibility and performance.
To install the base package:
pip install pse
To install with optional backend support, use one of the following:
pip install pse[torch] # PyTorch support
pip install pse[jax] # JAX support
pip install pse[mlx] # MLX support
pip install pse[all] # All optional features
start_hook
and end_hook
enable custom logic injection.The Proxy Structuring Engine consistently outperforms traditional sampling methods in both speed and accuracy:
(Benchmarks will be added soon.)
This project is licensed under the Apache 2.0 License. See the LICENSE file for details.
PSE builds upon the groundwork laid by LLM Structured Output and utilizes lexpy for efficient lexicon analysis.
Made with care ❤️ by The Proxy Company
FAQs
Proxy Structuring Engine: Ensures AI-generated output adheres to predefined schemas without compromising creativity, speed, or context.
We found that pse demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.