@rcrsr/rill-ext-chroma 0.8.2 → 0.8.4

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/dist/index.d.ts CHANGED
@@ -1,8 +1,93 @@
1
+ // Generated by dts-bundle-generator v9.5.1
2
+
3
+ import { ExtensionResult } from '@rcrsr/rill';
4
+
1
5
  /**
2
- * ChromaDB extension for rill.
3
- * Provides vector database operations using ChromaDB.
6
+ * Type definitions for ChromaDB extension.
7
+ * Defines configuration for connecting to ChromaDB vector database.
4
8
  */
5
- export type { ChromaConfig, ChromaExtensionConfig } from './types.js';
6
- export { createChromaExtension } from './factory.js';
9
+ /**
10
+ * Configuration options for ChromaDB extension.
11
+ *
12
+ * Defines connection parameters for ChromaDB client including
13
+ * optional API URL, collection name, embedding function, and timeout settings.
14
+ *
15
+ * @example
16
+ * ```typescript
17
+ * // Embedded mode (default)
18
+ * const embeddedConfig: ChromaConfig = {
19
+ * collection: 'my_collection',
20
+ * };
21
+ *
22
+ * // HTTP client mode
23
+ * const httpConfig: ChromaConfig = {
24
+ * url: 'http://localhost:8000',
25
+ * collection: 'my_collection',
26
+ * embeddingFunction: 'openai',
27
+ * timeout: 30000,
28
+ * };
29
+ * ```
30
+ */
31
+ export interface ChromaConfig {
32
+ /**
33
+ * API endpoint URL for ChromaDB server.
34
+ *
35
+ * Optional - when undefined, uses embedded mode.
36
+ * HTTP mode: 'http://localhost:8000'
37
+ */
38
+ readonly url?: string | undefined;
39
+ /**
40
+ * Collection name for vector operations.
41
+ *
42
+ * Required - identifies the collection to use for operations.
43
+ */
44
+ readonly collection: string;
45
+ /**
46
+ * Embedding function name.
47
+ *
48
+ * Optional - when undefined, database uses collection default.
49
+ * Examples: 'openai', 'cohere', 'huggingface'
50
+ */
51
+ readonly embeddingFunction?: string | undefined;
52
+ /**
53
+ * Request timeout in milliseconds.
54
+ *
55
+ * Must be a positive integer.
56
+ * Default: SDK default (30000ms)
57
+ */
58
+ readonly timeout?: number | undefined;
59
+ }
60
+ /**
61
+ * Legacy type alias for ChromaConfig.
62
+ *
63
+ * @deprecated Use ChromaConfig instead.
64
+ */
65
+ export type ChromaExtensionConfig = ChromaConfig;
66
+ /**
67
+ * Create ChromaDB extension instance.
68
+ * Validates configuration and returns host functions with cleanup.
69
+ *
70
+ * @param config - Extension configuration
71
+ * @returns ExtensionResult with 11 vector database functions and dispose
72
+ * @throws Error for invalid configuration (AC-10)
73
+ *
74
+ * @example
75
+ * ```typescript
76
+ * // Embedded mode
77
+ * const ext = createChromaExtension({
78
+ * collection: 'my_vectors',
79
+ * });
80
+ *
81
+ * // HTTP mode
82
+ * const ext = createChromaExtension({
83
+ * url: 'http://localhost:8000',
84
+ * collection: 'my_vectors',
85
+ * });
86
+ * // Use with rill runtime...
87
+ * await ext.dispose();
88
+ * ```
89
+ */
90
+ export declare function createChromaExtension(config: ChromaConfig): ExtensionResult;
7
91
  export declare const CHROMA_EXTENSION_VERSION = "0.0.1";
8
- //# sourceMappingURL=index.d.ts.map
92
+
93
+ export {};