Skip to main content

lance_context_core/
lib.rs

1//! Core types for the lance-context storage layer.
2#![recursion_limit = "256"]
3
4mod api_impl;
5mod context;
6mod eval;
7mod export;
8mod namespace;
9mod record;
10pub mod serde;
11mod store;
12
13pub use context::{Context, ContextEntry, Snapshot};
14pub use eval::{
15    AbReport, EvalConfig, EvalQuery, EvalQuerySet, EvalReport, MetricScores, QueryEval,
16    RelevanceLabel, RetrievalMode,
17};
18pub use export::{
19    Distribution, ExcludedCounts, ExportConfig, ExportCounts, ExportManifest, ExportStats,
20    ExportTask, GroupBy, Message, PreferenceExample, PreferenceForm, Provenance, RankedCandidate,
21    RolloutExample, RolloutResponse, SftExample, SplitConfig, SplitManifest, TokenStats,
22    EXPORT_SCHEMA_VERSION,
23};
24pub use namespace::{ContextNamespace, PartitionInfo, PartitionSelector, PartitionSpec};
25pub use record::{
26    ContextRecord, LifecycleQueryOptions, MetadataFilter, RecordFilters, RecordPatch, Relationship,
27    RetrieveResult, SearchResult, StateMetadata, UpdateResult, UpsertResult, LIFECYCLE_ACTIVE,
28    LIFECYCLE_CONTRADICTED,
29};
30pub use store::{
31    CompactionConfig, CompactionStats, ContextStore, ContextStoreOptions, DistanceMetric,
32    IdIndexType,
33};
34
35// Re-export CompactionMetrics from lance for Python bindings
36pub use lance::dataset::optimize::CompactionMetrics;