@tryformation/querylight-cli 0.1.1 → 0.2.0
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.
- package/README.md +62 -9
- package/dist/chunk/chunker.d.ts +3 -1
- package/dist/cli/main.js +1031 -237
- package/dist/cli/run-cli.d.ts +4 -1
- package/dist/core/concurrency.d.ts +1 -0
- package/dist/core/constants.d.ts +3 -1
- package/dist/core/progress.d.ts +4 -0
- package/dist/core/urls.d.ts +1 -0
- package/dist/index/querylight-indexer.d.ts +3 -1
- package/dist/index.js +441 -114
- package/dist/ingest/adapters/website-adapter.d.ts +6 -1
- package/dist/ingest/adapters/website-feed-discovery.d.ts +6 -0
- package/dist/ingest/extractors/html-extractor.d.ts +1 -0
- package/dist/ingest/ingest-service.d.ts +5 -2
- package/dist/types/models.d.ts +2 -2
- package/dist/vector/dense.d.ts +3 -1
- package/dist/vector/runtime.d.ts +2 -0
- package/dist/vector/service.d.ts +20 -2
- package/dist/vector/sparse.d.ts +3 -1
- package/dist/vector/store.d.ts +8 -2
- package/package.json +1 -1
package/dist/cli/run-cli.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function mapWithConcurrency<T>(items: readonly T[], limit: number, worker: (item: T, index: number) => Promise<void>): Promise<void>;
|
package/dist/core/constants.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export declare const PACKAGE_NAME = "@tryformation/querylight-cli";
|
|
2
|
-
export declare const PACKAGE_VERSION = "0.
|
|
2
|
+
export declare const PACKAGE_VERSION = "0.2.0";
|
|
3
3
|
export declare const DEFAULT_WORKSPACE = ".kb";
|
|
4
|
+
export declare const DEFAULT_SHARED_MODEL_CACHE_DIR = "~/.qli/models/huggingface";
|
|
5
|
+
export declare const LEGACY_WORKSPACE_MODEL_CACHE_DIR = ".kb/models/huggingface";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export type ProgressLevel = "info" | "detail";
|
|
2
|
+
export type ProgressHandler = (level: ProgressLevel, message: string) => void;
|
|
3
|
+
export declare function reportProgress(progress: ProgressHandler | undefined, message: string): void;
|
|
4
|
+
export declare function reportProgressDetail(progress: ProgressHandler | undefined, message: string): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function normalizeRemoteUrl(uri: string): string;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { TextFieldIndex } from "@tryformation/querylight-ts";
|
|
2
|
+
import { type ProgressHandler } from "../core/progress.js";
|
|
2
3
|
import type { IndexMetadata } from "../types/models.js";
|
|
3
4
|
export declare function createIndexMapping(extraFields?: string[]): Record<string, TextFieldIndex>;
|
|
4
|
-
export declare function buildIndex({ workspacePath, denseOverride, sparseOverride, buildAvailableModels }: {
|
|
5
|
+
export declare function buildIndex({ workspacePath, denseOverride, sparseOverride, buildAvailableModels, progress }: {
|
|
5
6
|
workspacePath: string;
|
|
6
7
|
denseOverride?: boolean;
|
|
7
8
|
sparseOverride?: boolean;
|
|
8
9
|
buildAvailableModels?: boolean;
|
|
10
|
+
progress?: ProgressHandler;
|
|
9
11
|
}): Promise<{
|
|
10
12
|
metadata: IndexMetadata;
|
|
11
13
|
indexPath: string;
|