API Overview
On this page
Package exports
Everything below is exported from the package root (context/__init__'s __all__). Click through to the module page for full details.
Configuration
ContextEngineConfig, ContextConfig, QueryAnalyzerConfig, RetrieverConfig, FilterConfig, RankingConfig, ComposerConfig, GuardConfig, CacheConfig, LengthCounter — see config
Models
QueryAnalysis, QueryIntent, QueryComplexity, RetrievalMethod, SourceQuality, ScoredChunk, ContextResult, ConversationTurn, ConversationHistory, chunk_metadata_dict — see models
Strategy interfaces (abstract base classes)
DeduplicationStrategy, RankingStrategy, CompressionStrategy, BudgetAllocationStrategy, QueryAnalyzerStrategy, ChunkFilterStrategy, ChunkRankingStrategy, ContextComposerStrategy, ContextGuardStrategy, HybridRetrieverStrategy — see strategy
Query analysis
RuleBasedQueryAnalyzer, build_query_analyzer — see query_analyzer
Retrieval
BM25Scorer, VectorRetriever, KeywordRetriever, MetadataRetriever, HybridRetriever — see retriever
Pipeline (filter / rank / compose)
char_counter, make_token_counter, ChunkFilter, CompositeRanker, SmartContextComposer — see pipeline
Guard, learning, cache, budget allocation
ContextGuard, AdaptiveLearningSystem, ContextCache, EqualBudgetAllocation, WeightedBudgetAllocation, ComplexityBasedAllocation — see guard_and_learning
Main engine
ContextEngine, ContextManager — see engine
Legacy compatibility (not in __all__, but importable)
validate_chunk, PrefixDeduplication, HashDeduplication, GreedyCompression, ScoreRanking — see legacy_compat
API summary table
Navigation
- config · models · strategy · query_analyzer
- retriever · pipeline · guard_and_learning
- engine · legacy_compat
Back to docs home · Architecture · Configuration