@autorag/librarian 2.13.8 → 2.13.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -532,6 +532,8 @@ export declare class AutoRAGAgent {
532
532
  private readonly reranker;
533
533
  private readonly rerankTopN;
534
534
  private readonly minSyncMethod;
535
+ /** SPLADE channel of the fast-answer baseline; absent on a sparse-only index, where the one channel already is SPLADE. */
536
+ private readonly minSyncSparseMethod;
535
537
  private readonly minSyncEmbedderConfig;
536
538
  private readonly minSyncBinaryPath;
537
539
  private readonly jikjiClient;
@@ -843,6 +845,14 @@ export declare class AutoRAGAgent {
843
845
  * (see `discoverJikjiFiles`) but is not awaited and adds nothing to the pool.
844
846
  */
845
847
  private prefetchInitialRetrievalContext;
848
+ /**
849
+ * MinSync candidates for one baseline query. A reranker decides the final order, so it is shown what either
850
+ * MinSync channel found: dense and SPLADE are queried separately (MinSync's own `hybrid` fuses them by RRF
851
+ * and cuts the list before the reranker sees it) and the two lists are unioned by rank. Without a reranker the
852
+ * baseline is the order itself, so it stays the dense list alone. A failing channel is reported and the other
853
+ * channel's candidates still count; MinSync being absent still fails the run.
854
+ */
855
+ private prefetchMinSyncCandidates;
846
856
  /**
847
857
  * One web search for the baseline, on the same provider chain, ordering, and
848
858
  * credentials as the `web_search` tool. Hits carry the URL as their source
@@ -0,0 +1,26 @@
1
+ /**
2
+ * `autorag lite find <query>` — a model-free whole search for a Cmd+F style
3
+ * launcher: the platform file-name index, local document content, and every
4
+ * connected datasource, streamed as NDJSON (one line per group, in completion
5
+ * order) so a slow datasource never holds back the rest.
6
+ */
7
+ import { type FindJudge, type FindLine, type FindRuntime } from "../../find/index.js";
8
+ import { type CliConfig } from "../config.js";
9
+ import type { CommandContext } from "./types.js";
10
+ /** Test seams: the pure search is injected here so no test touches a real backend. */
11
+ export interface LiteFindOverrides {
12
+ readonly config?: CliConfig;
13
+ readonly runtime?: FindRuntime;
14
+ readonly judge?: FindJudge;
15
+ readonly platform?: NodeJS.Platform;
16
+ readonly now?: () => number;
17
+ readonly emit?: (line: FindLine) => void;
18
+ }
19
+ /**
20
+ * Run the command with injectable seams; {@link runLiteFind} is the dispatch
21
+ * entry point. Returns 2 for a usage error, config-resolution failure, or an
22
+ * unusable runtime; 0 otherwise (individual group failures stay on the stream).
23
+ */
24
+ export declare function runLiteFindWith(ctx: CommandContext, overrides?: LiteFindOverrides): Promise<number>;
25
+ /** Dispatch entry point for `autorag lite find`. */
26
+ export declare function runLiteFind(ctx: CommandContext): Promise<number>;