Crate lens_core

Crate lens_core 

Source
Expand description

§Lens Core - High-Performance Code Search Engine

A production-ready code search engine with:

  • LSP-first architecture with real language server integration
  • Zero-copy fused pipeline for ≤150ms p95 latency
  • Bounded BFS for def/ref/type/impl traversal
  • SLA-bounded metrics: Success@10, nDCG@10, SLA-Recall@50
  • Built-in benchmarking and fraud-resistant attestation

§Architecture

┌─────────────────┐    ┌─────────────────┐    ┌─────────────────┐
│   gRPC API      │────│  Query Router   │────│  Search Engine  │
└─────────────────┘    └─────────────────┘    └─────────────────┘
         │                       │                       │
         │              ┌─────────────────┐              │
         │              │  LSP Manager    │              │
         │              └─────────────────┘              │
         │                       │                       │
         │              ┌─────────────────┐              │
         │              │  Hint Cache     │              │
         │              └─────────────────┘              │
         │                                               │
         └─────────────────┬─────────────────────────────┘
                           │
                  ┌─────────────────┐
                  │  Attestation    │
                  └─────────────────┘

Modules§

adversarial
Adversarial Audit Module
attestation
Anti-fraud attestation and tripwire system
baseline
Baseline Competitors Module
benchmark
Benchmark Infrastructure with Pinned Dataset Support
built_info
cache
config
grpc
lang
lsp
LSP Integration Module
metrics
pipeline
Zero-Copy Fused Pipeline Architecture
proto
Protocol Buffer definitions for Lens Search
query
search
Enhanced Search Engine with LSP Integration
semantic
Semantic Search Module
server
HTTP Server Module

Structs§

LensConfig
Core application configuration

Functions§

initialize
Initialize the lens core with configuration and anti-fraud checks