Crate lnmp

Crate lnmp 

Source
Expand description

§LNMP - LLM Native Minimal Protocol

This is a meta crate that re-exports all LNMP modules, providing a unified entry point for users who want to work with the complete LNMP ecosystem without managing individual module dependencies.

§Quick Start

Add this to your Cargo.toml:

[dependencies]
lnmp = "0.5.4"

§Available Modules

  • core: Core type definitions and protocol structures
  • codec: Encoding and decoding functionality
  • embedding: Embedding vector operations and delta compression
  • llb: Large Language Block operations
  • quant: Quantization utilities for efficient data representation
  • sanitize: Data sanitization and validation
  • sfe: Secure Function Evaluation primitives
  • spatial: Spatial data streaming and hybrid protocols

§Usage Examples

// Access core types
use lnmp::core::{LnmpRecord, LnmpField, LnmpValue};

// Use codec functionality
use lnmp::codec::{Encoder, Parser};

// Work with embeddings
use lnmp::embedding::{VectorDelta, Vector};

// Use spatial streaming
use lnmp::spatial::protocol::SpatialStreamer;

§Individual Module Usage

If you prefer to use only specific modules, you can depend on them individually:

  • lnmp-core - Core protocol definitions
  • lnmp-codec - Encoding/decoding
  • lnmp-embedding - Embedding operations
  • lnmp-llb - Large Language Blocks
  • lnmp-quant - Quantization
  • lnmp-sanitize - Sanitization
  • lnmp-sfe - Secure Function Evaluation
  • lnmp-spatial - Spatial streaming

§Documentation

For detailed documentation on each module, visit:

Re-exports§

pub use lnmp_codec as codec;
pub use lnmp_core as core;
pub use lnmp_embedding as embedding;
pub use lnmp_llb as llb;
pub use lnmp_quant as quant;
pub use lnmp_sanitize as sanitize;
pub use lnmp_sfe as sfe;
pub use lnmp_spatial as spatial;

Modules§

prelude
Prelude module with commonly used types and traits