How goodluck-hojae/kalypso works
Kalypso adds semantic query processing to vLLM: clients submit relational queries, which are processed into semantic operators and executed as memory-aware pipelines that can reuse KV-cache state. The repository also supports ICP retrieval and cascade/proxy filtering, alongside vLLM’s model-serving and pooling APIs. Kalypso’s indexed source references clarify several internal calls; other links are included only where the README documents them. Unsampled integrations and runtime wiring are not inferred.
Main entry points: query_processor.py Query Processor · pipeline_execution.py Pipeline Execution · pipeline.py Pipeline Controller · vllm_executor.py vLLM Executor
Components 21
Serving APIs
- API Server
vllm/entrypoints/openai/api_server.py - Request Serving
vllm/entrypoints/openai/serving_engine.py - OpenAI Protocol
vllm/entrypoints/openai/protocol.py - Pooling APIs
vllm/entrypoints/pooling/embed/serving.py
Query Processing
- Query Processor
vllm/kalypso/query_processor.py - Query Model
vllm/kalypso/query.py - Semantic Operators
vllm/kalypso/sem_ops/ops.py - Pipeline Controller
vllm/kalypso/controller/pipeline.py
Pipeline Execution
- Pipeline Execution
vllm/kalypso/execution/pipeline_execution.py - vLLM Executor
vllm/kalypso/execution/vllm_executor.py - LLM Engine
vllm/v1/engine/llm_engine.py - Engine Configuration
vllm/config/vllm.py
Cache and Budget
- Memory Budget
vllm/kalypso/budget.py - Execution Context
vllm/kalypso/context/context.py - Pin Registry
vllm/kalypso/pin_registry.py - KV Cache Manager
vllm/v1/core/kv_cache_manager.py - KV Cache Specs
vllm/v1/kv_cache_interface.py
Retrieval Integrations
- ICP Retrieval Service
vllm/kalypso/icp/vector_service.py - ColBERT Wrapper
vllm/kalypso/icp/colbert_wiki.py - Cascade Proxy
Other components
- Query Client
Connections 21
- Query Client → API Server: submits requests
- API Server → Request Serving: serves requests
- Request Serving → OpenAI Protocol: parses requests
vllm/entrypoints/openai/serving_engine.py - Query Client → Query Processor: submits semantic query
- Query Processor → Query Model: uses query
vllm/kalypso/query_processor.py - Query Processor → Pipeline Controller: invokes controller
vllm/kalypso/query_processor.py - Pipeline Controller → Semantic Operators: builds operators
vllm/kalypso/controller/pipeline.py - Pipeline Controller → Memory Budget: uses budget
vllm/kalypso/controller/pipeline.py - Query Processor → vLLM Executor: invokes executor
vllm/kalypso/query_processor.py - vLLM Executor → Pipeline Execution: executes pipeline
- Pipeline Execution → Semantic Operators: uses operators
vllm/kalypso/execution/pipeline_execution.py - Pipeline Execution → Memory Budget: uses budget
vllm/kalypso/execution/pipeline_execution.py - Pipeline Execution → Execution Context: uses context
vllm/kalypso/execution/pipeline_execution.py - vLLM Executor → LLM Engine: runs inference
- LLM Engine → Engine Configuration: configures engine
vllm/v1/engine/llm_engine.py - Pipeline Execution → KV Cache Manager: reuses KV cache
- KV Cache Manager → KV Cache Specs: uses cache specs
vllm/v1/core/kv_cache_manager.py - Query Processor → Pin Registry: uses pin registry
vllm/kalypso/query_processor.py - Query Client → ICP Retrieval Service: requests retrieval
- ICP Retrieval Service → ColBERT Wrapper: supports ColBERT
- Query Client → Cascade Proxy: configures proxy