@camstack/addon-embedding-encoder 0.1.1

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.
@@ -0,0 +1,37 @@
1
+ import * as _camstack_types from '@camstack/types';
2
+ import { BaseAddon, IEmbeddingEncoder, ProviderRegistration, EmbeddingResult, EmbeddingInfo } from '@camstack/types';
3
+ export { EmbeddingInfo, EmbeddingResult, IEmbeddingEncoder } from '@camstack/types';
4
+
5
+ /**
6
+ * Embedding encoder uses two separate engines (image + text) with custom
7
+ * CLIP preprocessing — cannot use BaseVisionAddon which assumes single engine + JPEG input.
8
+ *
9
+ * Uses IRawTensorEngine for ONNX (custom tensor preprocessing) and
10
+ * IInferenceEngine.infer() for Python path (sends JPEG/JSON via binary IPC).
11
+ */
12
+ interface EmbeddingConfig {
13
+ modelId: string;
14
+ runtime: string;
15
+ backend: string;
16
+ }
17
+ declare class EmbeddingEncoderAddon extends BaseAddon<EmbeddingConfig> implements IEmbeddingEncoder {
18
+ private imageRawEngine;
19
+ private textRawEngine;
20
+ private imagePythonEngine;
21
+ private textPythonEngine;
22
+ private models;
23
+ private isPython;
24
+ constructor();
25
+ protected onInitialize(): Promise<ProviderRegistration[]>;
26
+ encode(crop: Buffer, width: number, height: number): Promise<EmbeddingResult>;
27
+ encodeText(text: string): Promise<EmbeddingResult>;
28
+ getInfo(): EmbeddingInfo;
29
+ private ensureImageEngine;
30
+ private ensureTextEngine;
31
+ private resolveForEntry;
32
+ protected onShutdown(): Promise<void>;
33
+ protected globalSettingsSchema(): _camstack_types.ConfigUISchema;
34
+ protected onConfigChanged(): Promise<void>;
35
+ }
36
+
37
+ export { EmbeddingEncoderAddon };
@@ -0,0 +1,37 @@
1
+ import * as _camstack_types from '@camstack/types';
2
+ import { BaseAddon, IEmbeddingEncoder, ProviderRegistration, EmbeddingResult, EmbeddingInfo } from '@camstack/types';
3
+ export { EmbeddingInfo, EmbeddingResult, IEmbeddingEncoder } from '@camstack/types';
4
+
5
+ /**
6
+ * Embedding encoder uses two separate engines (image + text) with custom
7
+ * CLIP preprocessing — cannot use BaseVisionAddon which assumes single engine + JPEG input.
8
+ *
9
+ * Uses IRawTensorEngine for ONNX (custom tensor preprocessing) and
10
+ * IInferenceEngine.infer() for Python path (sends JPEG/JSON via binary IPC).
11
+ */
12
+ interface EmbeddingConfig {
13
+ modelId: string;
14
+ runtime: string;
15
+ backend: string;
16
+ }
17
+ declare class EmbeddingEncoderAddon extends BaseAddon<EmbeddingConfig> implements IEmbeddingEncoder {
18
+ private imageRawEngine;
19
+ private textRawEngine;
20
+ private imagePythonEngine;
21
+ private textPythonEngine;
22
+ private models;
23
+ private isPython;
24
+ constructor();
25
+ protected onInitialize(): Promise<ProviderRegistration[]>;
26
+ encode(crop: Buffer, width: number, height: number): Promise<EmbeddingResult>;
27
+ encodeText(text: string): Promise<EmbeddingResult>;
28
+ getInfo(): EmbeddingInfo;
29
+ private ensureImageEngine;
30
+ private ensureTextEngine;
31
+ private resolveForEntry;
32
+ protected onShutdown(): Promise<void>;
33
+ protected globalSettingsSchema(): _camstack_types.ConfigUISchema;
34
+ protected onConfigChanged(): Promise<void>;
35
+ }
36
+
37
+ export { EmbeddingEncoderAddon };