@rcrsr/rill-ext-pinecone 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 +87 -3
- package/dist/index.js +633 -9
- package/package.json +10 -6
- package/dist/factory.d.ts +0 -26
- package/dist/factory.d.ts.map +0 -1
- package/dist/factory.js +0 -597
- package/dist/factory.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/types.d.ts +0 -63
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -6
- package/dist/types.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,88 @@
|
|
|
1
|
+
// Generated by dts-bundle-generator v9.5.1
|
|
2
|
+
|
|
3
|
+
import { ExtensionResult } from '@rcrsr/rill';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Type definitions for Pinecone extension.
|
|
7
|
+
* Defines configuration for connecting to Pinecone vector database.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Configuration options for Pinecone extension.
|
|
11
|
+
*
|
|
12
|
+
* Defines connection parameters for Pinecone client including
|
|
13
|
+
* API key, index name, namespace, and timeout settings.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```typescript
|
|
17
|
+
* // Basic configuration with required fields
|
|
18
|
+
* const basicConfig: PineconeConfig = {
|
|
19
|
+
* apiKey: 'your-pinecone-api-key',
|
|
20
|
+
* index: 'my-index',
|
|
21
|
+
* };
|
|
22
|
+
*
|
|
23
|
+
* // Full configuration with optional fields
|
|
24
|
+
* const fullConfig: PineconeConfig = {
|
|
25
|
+
* apiKey: 'your-pinecone-api-key',
|
|
26
|
+
* index: 'my-index',
|
|
27
|
+
* namespace: 'production',
|
|
28
|
+
* timeout: 60000,
|
|
29
|
+
* };
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
export interface PineconeConfig {
|
|
33
|
+
/**
|
|
34
|
+
* API key for Pinecone authentication.
|
|
35
|
+
*
|
|
36
|
+
* Required for all Pinecone operations.
|
|
37
|
+
* Obtain from Pinecone console.
|
|
38
|
+
*/
|
|
39
|
+
readonly apiKey: string;
|
|
40
|
+
/**
|
|
41
|
+
* Index name for vector operations.
|
|
42
|
+
*
|
|
43
|
+
* Must match an existing index in the Pinecone project.
|
|
44
|
+
*/
|
|
45
|
+
readonly index: string;
|
|
46
|
+
/**
|
|
47
|
+
* Namespace for partitioning vectors within an index.
|
|
48
|
+
*
|
|
49
|
+
* Namespaces allow logical separation of vectors within a single index.
|
|
50
|
+
* Default: '' (default namespace)
|
|
51
|
+
*/
|
|
52
|
+
readonly namespace?: string | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* Request timeout in milliseconds.
|
|
55
|
+
*
|
|
56
|
+
* Must be a positive integer.
|
|
57
|
+
* Default: SDK default (30000ms)
|
|
58
|
+
*/
|
|
59
|
+
readonly timeout?: number | undefined;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Legacy type alias for PineconeConfig.
|
|
63
|
+
*
|
|
64
|
+
* @deprecated Use PineconeConfig instead.
|
|
65
|
+
*/
|
|
66
|
+
export type PineconeExtensionConfig = PineconeConfig;
|
|
67
|
+
/**
|
|
68
|
+
* Create Pinecone extension instance.
|
|
69
|
+
* Validates configuration and returns host functions with cleanup.
|
|
70
|
+
*
|
|
71
|
+
* @param config - Extension configuration
|
|
72
|
+
* @returns ExtensionResult with 11 vector database functions and dispose
|
|
73
|
+
* @throws Error for invalid configuration (AC-10)
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* ```typescript
|
|
77
|
+
* const ext = createPineconeExtension({
|
|
78
|
+
* apiKey: 'your-api-key',
|
|
79
|
+
* index: 'my-index',
|
|
80
|
+
* });
|
|
81
|
+
* // Use with rill runtime...
|
|
82
|
+
* await ext.dispose();
|
|
83
|
+
* ```
|
|
84
|
+
*/
|
|
85
|
+
export declare function createPineconeExtension(config: PineconeConfig): ExtensionResult;
|
|
1
86
|
export declare const VERSION = "0.0.1";
|
|
2
|
-
|
|
3
|
-
export {
|
|
4
|
-
//# sourceMappingURL=index.d.ts.map
|
|
87
|
+
|
|
88
|
+
export {};
|