/**
 * V3 Embedding Service Module
 *
 * Production embedding service aligned with agentic-flow@alpha:
 * - OpenAI provider (text-embedding-3-small/large)
 * - Transformers.js provider (local ONNX models)
 * - Agentic-flow provider (optimized ONNX with SIMD)
 * - Mock provider (development/testing)
 *
 * Additional features:
 * - Persistent SQLite cache
 * - Document chunking with overlap
 * - L2/L1/minmax/zscore normalization
 * - Hyperbolic embeddings (Poincaré ball)
 * - Neural substrate integration (drift, memory, swarm)
 *
 * @module @claude-flow/embeddings
 */
export * from './types.js';
export * from './embedding-service.js';
export { createEmbeddingService, createEmbeddingServiceAsync, getEmbedding, cosineSimilarity, euclideanDistance, dotProduct, computeSimilarity, OpenAIEmbeddingService, TransformersEmbeddingService, MockEmbeddingService, AgenticFlowEmbeddingService, BaseEmbeddingService, } from './embedding-service.js';
export { RuvectorOnnxEmbeddingService, createRuvectorOnnxEmbeddingService, } from './ruvector-onnx-embedding-service.js';
export { SearchableEmbeddingCache, createSearchableEmbeddingCache, type CacheSearchHit, type SearchableCacheOptions, } from './searchable-embedding-cache.js';
export { probeRuvectorSidecar, formatRuvectorAvailability, type RuvectorAvailability, type RuvectorMcpTool, type RuvectorProbeOptions, } from './ruvector-mcp-probe.js';
export { int8Encode, int8Decode, measureInt8RoundTripRecall, RabitqSnapshot, rabitqMemoryReduction, type Int8EncodedVector, type RabitqSnapshotOptions, type RabitqSnapshotHit, } from './quantization.js';
export { DiskannSnapshot, diskannAvailable, type DiskannSnapshotOptions, type DiskannSnapshotHit, } from './diskann-snapshot.js';
export { AnnRouter, decideBacking, type AnnBacking, type AnnRouterWorkload, type AnnRouterHit, type AnnRouterDecision, } from './ann-router.js';
export { mmrRerank, mmrIds, averagePairwiseSimilarity, type MmrCandidate, type MmrOptions, type MmrPickedHit, } from './mmr.js';
export { reciprocalRankFusion, rrfIds, type RrfListItem, type RrfOptions, type RrfFusedHit, } from './rrf.js';
export { averageEmbeddings, isUnitNorm, type AverageEmbeddingsOptions, } from './embedding-fusion.js';
export { hybridRetrieval, type HybridRetrievalOptions, type HybridRetrievalDiagnostics, type HybridRetrievalResult, } from './hybrid-retrieval.js';
export { tokenize, buildBm25Index, bm25Score, bm25TopK, idfOf, queryMeanIdf, type Bm25Options, type Bm25Document, type Bm25Index, type Bm25Hit, } from './bm25.js';
export { EmbedCache, wrapWithCache, canonicalizeText, type EmbedCacheOptions, type EmbedCacheStats, } from './embed-cache.js';
export { lazyAdaptiveRoute, type LazyEmbedAdapter, type LazyCandidateSource, type LazyRouterInputs, type LazyRouterCostReport, type LazyRouterResult, } from './lazy-adaptive-router.js';
export { extractRetrievalFeatures, adaptiveRoute, type RetrievalFeatures, type AdaptiveRouterOptions, type AdaptivePrimitive, type AdaptiveDecision, } from './adaptive-router.js';
export { compoundRetrieval, type CompoundIntent, type CompoundRetrievalOptions, type CompoundRetrievalResult, type CompoundIntentTrace, } from './compound-retrieval.js';
export { renderSparkline, detectDrift, summarizeBenchmarkTrend, type DriftDetectionOptions, type DriftDetectionResult, type BenchmarkTrendSummary, } from './ledger-trends.js';
export { getMetricAtPath, entriesForBenchmark, pickBaseline, checkRegression, checkRegressionBatch, type BaselineSelection, type RegressionCheckOptions, type RegressionCheckResult, type RegressionBatchInput, type RegressionBatchResult, } from './ledger-analyzer.js';
export { appendToLedger, verifyEntry, verifyLedger, generateLedgerKeypair, coSign, verifyCosignatureAgainst, type BenchmarkLedger, type LedgerEntry, type ChainVerifyResult, type CosignatureRecord, } from './witness-ledger.js';
export { witness, verify, canonicalHash, corpusFingerprint, generateEphemeralKeypair, type BenchmarkWitnessInput, type WitnessedManifest, } from './witness.js';
export { buildSyntheticTopicCorpus, type SyntheticCorpusOptions, type SyntheticCorpusEntry, type SyntheticCorpus, } from './synthetic-corpus.js';
export { recallAtK, precisionAtK, reciprocalRank, meanReciprocalRank, dcgAtK, idcgAtK, ndcgAtK, meanMetric, compareRankings, type RelevanceSet, type GradedRelevance, type RankingComparison, } from './ir-metrics.js';
export type { AutoEmbeddingConfig } from './embedding-service.js';
export { RvfEmbeddingService } from './rvf-embedding-service.js';
export { RvfEmbeddingCache, type RvfEmbeddingCacheConfig, } from './rvf-embedding-cache.js';
export { chunkText, estimateTokens, reconstructFromChunks, type ChunkingConfig, type Chunk, type ChunkedDocument, } from './chunking.js';
export { l2Normalize, l2NormalizeInPlace, l1Normalize, minMaxNormalize, zScoreNormalize, normalize, normalizeBatch, l2Norm, isNormalized, centerEmbeddings, type NormalizationOptions, } from './normalization.js';
export { euclideanToPoincare, poincareToEuclidean, hyperbolicDistance, mobiusAdd, mobiusScalarMul, hyperbolicCentroid, batchEuclideanToPoincare, pairwiseHyperbolicDistances, isInPoincareBall, type HyperbolicConfig, } from './hyperbolic.js';
export { projectToPoincareBall as projectToPoincareBallAsync, poincareDistance as poincareDistanceAsync, expMap as expMapAsync, logMap as logMapAsync, mobiusAddition as mobiusAdditionAsync, hyperbolicAttentionAvailable, type HyperbolicAttentionOptions, } from './hyperbolic-attention.js';
export { PersistentEmbeddingCache, isPersistentCacheAvailable, type PersistentCacheConfig as DiskCacheConfig, type PersistentCacheStats, } from './persistent-cache.js';
export { NeuralEmbeddingService, createNeuralService, isNeuralAvailable, listEmbeddingModels, downloadEmbeddingModel, type DriftResult, type MemoryEntry, type AgentState, type CoherenceResult, type SubstrateHealth, type NeuralSubstrateConfig, } from './neural-integration.js';
export type { EmbeddingProvider, EmbeddingConfig, OpenAIEmbeddingConfig, TransformersEmbeddingConfig, MockEmbeddingConfig, AgenticFlowEmbeddingConfig, RvfEmbeddingConfig, RuvectorOnnxEmbeddingConfig, EmbeddingResult, BatchEmbeddingResult, IEmbeddingService, SimilarityMetric, SimilarityResult, NormalizationType, PersistentCacheConfig, } from './types.js';
//# sourceMappingURL=index.d.ts.map