store.py
Storage Cluster Processor Documentation
The StorageClusterProcessor formats action analysis data into structured clusters specifically for LLM inference requests. It organizes context and relationships for single-request processing.
Process Overview
Formats action analysis results into context clusters
Identifies relationships between contexts
Creates structured output for LLM inference
Class Documentation
StorageClusterProcessor
Formats processed data for LLM inference requests.
Parameters
min_connection_strength
: Minimum threshold for pattern connections
Core Methods
identify_core_tokens
Extracts core tokens from pattern data based on score threshold.
create_cluster
Creates a context cluster containing:
Unique identifier
Context type
Core tokens
Context strength
Pattern count
establish_cluster_connections
Identifies relationships between contexts for inference.
process_storage
Main method that:
Creates context clusters
Builds pattern distribution
Identifies context relationships
Returns formatted structure for LLM request
Data Structures
Input Format
Output Format
Usage
Implementation Notes
Request Structure:
Organized by context type
Maintains pattern relationships
Includes relevant metadata
Pattern Processing:
Aggregates patterns by context
Identifies core tokens
Creates context distribution
Relationship Identification:
Based on shared patterns
Strength threshold filtering
Context relationship mapping
Last updated