@ruvector/ruvllm 2.6.2 → 2.7.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 +28 -21
- package/dist/cjs/engine.d.ts +4 -2
- package/dist/cjs/engine.d.ts.map +1 -1
- package/dist/cjs/engine.js +32 -3
- package/dist/cjs/types.d.ts +7 -0
- package/dist/cjs/types.d.ts.map +1 -1
- package/dist/cjs/types.js +1 -1
- package/dist/esm/engine.d.ts +4 -2
- package/dist/esm/engine.d.ts.map +1 -1
- package/dist/esm/engine.js +32 -3
- package/dist/esm/types.d.ts +7 -0
- package/dist/esm/types.d.ts.map +1 -1
- package/dist/esm/types.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/rlm/controller.d.ts +0 -245
- package/dist/cjs/rlm/controller.d.ts.map +0 -1
- package/dist/cjs/rlm/controller.js +0 -554
- package/dist/cjs/rlm/index.d.ts +0 -62
- package/dist/cjs/rlm/index.d.ts.map +0 -1
- package/dist/cjs/rlm/index.js +0 -97
- package/dist/cjs/rlm/training.d.ts +0 -333
- package/dist/cjs/rlm/training.d.ts.map +0 -1
- package/dist/cjs/rlm/training.js +0 -680
- package/dist/cjs/rlm/types.d.ts +0 -189
- package/dist/cjs/rlm/types.d.ts.map +0 -1
- package/dist/cjs/rlm/types.js +0 -10
- package/dist/esm/rlm/controller.d.ts +0 -245
- package/dist/esm/rlm/controller.d.ts.map +0 -1
- package/dist/esm/rlm/controller.js +0 -550
- package/dist/esm/rlm/index.d.ts +0 -62
- package/dist/esm/rlm/index.d.ts.map +0 -1
- package/dist/esm/rlm/index.js +0 -71
- package/dist/esm/rlm/training.d.ts +0 -333
- package/dist/esm/rlm/training.d.ts.map +0 -1
- package/dist/esm/rlm/training.js +0 -672
- package/dist/esm/rlm/types.d.ts +0 -189
- package/dist/esm/rlm/types.d.ts.map +0 -1
- package/dist/esm/rlm/types.js +0 -9
package/dist/cjs/rlm/types.d.ts
DELETED
|
@@ -1,189 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* RLM (Retrieval Language Model) Type Definitions
|
|
3
|
-
*
|
|
4
|
-
* Types for the recursive retrieval-augmented generation system
|
|
5
|
-
* that breaks down complex queries into sub-queries and synthesizes
|
|
6
|
-
* answers from retrieved memory spans.
|
|
7
|
-
*/
|
|
8
|
-
/**
|
|
9
|
-
* Configuration for the RLM controller
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```typescript
|
|
13
|
-
* const config: RlmConfig = {
|
|
14
|
-
* maxDepth: 3,
|
|
15
|
-
* maxSubQueries: 5,
|
|
16
|
-
* tokenBudget: 4096,
|
|
17
|
-
* enableCache: true,
|
|
18
|
-
* cacheTtl: 300000, // 5 minutes
|
|
19
|
-
* retrievalTopK: 10,
|
|
20
|
-
* minQualityScore: 0.7,
|
|
21
|
-
* enableReflection: true,
|
|
22
|
-
* maxReflectionIterations: 2,
|
|
23
|
-
* };
|
|
24
|
-
* ```
|
|
25
|
-
*/
|
|
26
|
-
export interface RlmConfig {
|
|
27
|
-
/** Maximum recursion depth for sub-queries (default: 3) */
|
|
28
|
-
maxDepth?: number;
|
|
29
|
-
/** Maximum number of sub-queries per level (default: 5) */
|
|
30
|
-
maxSubQueries?: number;
|
|
31
|
-
/** Token budget for generation (default: 4096) */
|
|
32
|
-
tokenBudget?: number;
|
|
33
|
-
/** Enable response caching (default: true) */
|
|
34
|
-
enableCache?: boolean;
|
|
35
|
-
/** Cache TTL in milliseconds (default: 300000 = 5 minutes) */
|
|
36
|
-
cacheTtl?: number;
|
|
37
|
-
/** Number of memory spans to retrieve (default: 10) */
|
|
38
|
-
retrievalTopK?: number;
|
|
39
|
-
/** Minimum quality score to accept answer (default: 0.7) */
|
|
40
|
-
minQualityScore?: number;
|
|
41
|
-
/** Enable self-reflection loop (default: false) */
|
|
42
|
-
enableReflection?: boolean;
|
|
43
|
-
/** Maximum reflection iterations (default: 2) */
|
|
44
|
-
maxReflectionIterations?: number;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Answer produced by the RLM controller
|
|
48
|
-
*
|
|
49
|
-
* @example
|
|
50
|
-
* ```typescript
|
|
51
|
-
* const answer: RlmAnswer = {
|
|
52
|
-
* text: 'Machine learning is a subset of artificial intelligence...',
|
|
53
|
-
* confidence: 0.92,
|
|
54
|
-
* qualityScore: 0.88,
|
|
55
|
-
* sources: [
|
|
56
|
-
* { id: 'mem-1', text: 'ML definition from textbook', similarityScore: 0.95, metadata: {} },
|
|
57
|
-
* ],
|
|
58
|
-
* subQueries: [
|
|
59
|
-
* { query: 'What is artificial intelligence?', answer: 'AI is...', depth: 1 },
|
|
60
|
-
* ],
|
|
61
|
-
* tokenUsage: { prompt: 512, completion: 256, total: 768 },
|
|
62
|
-
* cached: false,
|
|
63
|
-
* };
|
|
64
|
-
* ```
|
|
65
|
-
*/
|
|
66
|
-
export interface RlmAnswer {
|
|
67
|
-
/** The generated answer text */
|
|
68
|
-
text: string;
|
|
69
|
-
/** Overall confidence in the answer (0.0 - 1.0) */
|
|
70
|
-
confidence: number;
|
|
71
|
-
/** Quality score based on source coverage and coherence (0.0 - 1.0) */
|
|
72
|
-
qualityScore: number;
|
|
73
|
-
/** Memory spans used to generate the answer */
|
|
74
|
-
sources: MemorySpan[];
|
|
75
|
-
/** Sub-queries generated and answered (if recursive) */
|
|
76
|
-
subQueries?: SubQuery[];
|
|
77
|
-
/** Token usage statistics */
|
|
78
|
-
tokenUsage: TokenUsage;
|
|
79
|
-
/** Whether this answer was served from cache */
|
|
80
|
-
cached: boolean;
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* A span of memory retrieved for context
|
|
84
|
-
*
|
|
85
|
-
* @example
|
|
86
|
-
* ```typescript
|
|
87
|
-
* const span: MemorySpan = {
|
|
88
|
-
* id: 'mem-abc123',
|
|
89
|
-
* text: 'Relevant context from memory...',
|
|
90
|
-
* similarityScore: 0.89,
|
|
91
|
-
* source: 'documentation',
|
|
92
|
-
* metadata: { timestamp: Date.now(), category: 'technical' },
|
|
93
|
-
* };
|
|
94
|
-
* ```
|
|
95
|
-
*/
|
|
96
|
-
export interface MemorySpan {
|
|
97
|
-
/** Unique identifier for the memory span */
|
|
98
|
-
id: string;
|
|
99
|
-
/** The text content of the memory span */
|
|
100
|
-
text: string;
|
|
101
|
-
/** Cosine similarity score to the query (0.0 - 1.0) */
|
|
102
|
-
similarityScore: number;
|
|
103
|
-
/** Optional source identifier (e.g., document name, URL) */
|
|
104
|
-
source?: string;
|
|
105
|
-
/** Additional metadata associated with this span */
|
|
106
|
-
metadata: Record<string, unknown>;
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* A sub-query generated during recursive retrieval
|
|
110
|
-
*/
|
|
111
|
-
export interface SubQuery {
|
|
112
|
-
/** The generated sub-query text */
|
|
113
|
-
query: string;
|
|
114
|
-
/** The answer to the sub-query */
|
|
115
|
-
answer: string;
|
|
116
|
-
/** Recursion depth at which this sub-query was generated */
|
|
117
|
-
depth: number;
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* Token usage statistics for a query
|
|
121
|
-
*/
|
|
122
|
-
export interface TokenUsage {
|
|
123
|
-
/** Tokens used in the prompt (including context) */
|
|
124
|
-
prompt: number;
|
|
125
|
-
/** Tokens generated in the completion */
|
|
126
|
-
completion: number;
|
|
127
|
-
/** Total tokens used (prompt + completion) */
|
|
128
|
-
total: number;
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
* Streaming token event
|
|
132
|
-
*
|
|
133
|
-
* Discriminated union for streaming responses:
|
|
134
|
-
* - `type: 'token'` - A partial token was generated
|
|
135
|
-
* - `type: 'done'` - Generation complete with final answer
|
|
136
|
-
*
|
|
137
|
-
* @example
|
|
138
|
-
* ```typescript
|
|
139
|
-
* for await (const event of controller.queryStream('What is AI?')) {
|
|
140
|
-
* if (event.type === 'token') {
|
|
141
|
-
* process.stdout.write(event.text);
|
|
142
|
-
* } else {
|
|
143
|
-
* console.log('\n\nFinal answer:', event.answer.text);
|
|
144
|
-
* }
|
|
145
|
-
* }
|
|
146
|
-
* ```
|
|
147
|
-
*/
|
|
148
|
-
export type StreamToken = {
|
|
149
|
-
/** Token event type */
|
|
150
|
-
type: 'token';
|
|
151
|
-
/** The partial text token */
|
|
152
|
-
text: string;
|
|
153
|
-
/** Always false for token events */
|
|
154
|
-
done: false;
|
|
155
|
-
} | {
|
|
156
|
-
/** Done event type */
|
|
157
|
-
type: 'done';
|
|
158
|
-
/** The complete answer */
|
|
159
|
-
answer: RlmAnswer;
|
|
160
|
-
/** Always true for done events */
|
|
161
|
-
done: true;
|
|
162
|
-
};
|
|
163
|
-
/**
|
|
164
|
-
* Internal cache entry for RLM answers
|
|
165
|
-
*/
|
|
166
|
-
export interface RlmCacheEntry {
|
|
167
|
-
/** The cached answer */
|
|
168
|
-
answer: RlmAnswer;
|
|
169
|
-
/** Timestamp when the entry was cached */
|
|
170
|
-
timestamp: number;
|
|
171
|
-
/** Query hash for cache key */
|
|
172
|
-
queryHash: string;
|
|
173
|
-
}
|
|
174
|
-
/**
|
|
175
|
-
* Reflection result from self-evaluation loop
|
|
176
|
-
*/
|
|
177
|
-
export interface ReflectionResult {
|
|
178
|
-
/** Whether the answer passed reflection criteria */
|
|
179
|
-
passed: boolean;
|
|
180
|
-
/** Critique of the current answer */
|
|
181
|
-
critique?: string;
|
|
182
|
-
/** Suggested improvements */
|
|
183
|
-
suggestions?: string[];
|
|
184
|
-
/** Updated quality score after reflection */
|
|
185
|
-
updatedScore: number;
|
|
186
|
-
/** Number of reflection iterations performed */
|
|
187
|
-
iterations: number;
|
|
188
|
-
}
|
|
189
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/rlm/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,WAAW,SAAS;IACxB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RLM (Retrieval Language Model) Type Definitions
|
|
4
|
-
*
|
|
5
|
-
* Types for the recursive retrieval-augmented generation system
|
|
6
|
-
* that breaks down complex queries into sub-queries and synthesizes
|
|
7
|
-
* answers from retrieved memory spans.
|
|
8
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvcmxtL3R5cGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTs7Ozs7O0dBTUciLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIFJMTSAoUmV0cmlldmFsIExhbmd1YWdlIE1vZGVsKSBUeXBlIERlZmluaXRpb25zXG4gKlxuICogVHlwZXMgZm9yIHRoZSByZWN1cnNpdmUgcmV0cmlldmFsLWF1Z21lbnRlZCBnZW5lcmF0aW9uIHN5c3RlbVxuICogdGhhdCBicmVha3MgZG93biBjb21wbGV4IHF1ZXJpZXMgaW50byBzdWItcXVlcmllcyBhbmQgc3ludGhlc2l6ZXNcbiAqIGFuc3dlcnMgZnJvbSByZXRyaWV2ZWQgbWVtb3J5IHNwYW5zLlxuICovXG5cbi8qKlxuICogQ29uZmlndXJhdGlvbiBmb3IgdGhlIFJMTSBjb250cm9sbGVyXG4gKlxuICogQGV4YW1wbGVcbiAqIGBgYHR5cGVzY3JpcHRcbiAqIGNvbnN0IGNvbmZpZzogUmxtQ29uZmlnID0ge1xuICogICBtYXhEZXB0aDogMyxcbiAqICAgbWF4U3ViUXVlcmllczogNSxcbiAqICAgdG9rZW5CdWRnZXQ6IDQwOTYsXG4gKiAgIGVuYWJsZUNhY2hlOiB0cnVlLFxuICogICBjYWNoZVR0bDogMzAwMDAwLCAvLyA1IG1pbnV0ZXNcbiAqICAgcmV0cmlldmFsVG9wSzogMTAsXG4gK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XG5cbiAgLyoqIFN1Z2dlc3RlZCBpbXByb3ZlbWVudHMgKi9cbiAgc3VnZ2VzdGlvbnM/OiBzdHJpbmdbXTtcblxuICAvKiogVXBkYXRlZCBxdWFsaXR5IHNjb3JlIGFmdGVyIHJlZmxlY3Rpb24gKi9cbiAgdXBkYXRlZFNjb3JlOiBudW1iZXI7XG5cbiAgLyoqIE51bWJlciBvZiByZWZsZWN0aW9uIGl0ZXJhdGlvbnMgcGVyZm9ybWVkICovXG4gIGl0ZXJhdGlvbnM6IG51bWJlcjtcbn1cbiJdfQ==
|
|
@@ -1,245 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* RLM Controller - Recursive Retrieval Language Model
|
|
3
|
-
*
|
|
4
|
-
* Implements a recursive retrieval-augmented generation system that:
|
|
5
|
-
* 1. Breaks down complex queries into sub-queries
|
|
6
|
-
* 2. Retrieves relevant memory spans for each query
|
|
7
|
-
* 3. Synthesizes coherent answers from retrieved context
|
|
8
|
-
* 4. Optionally reflects on and refines answers
|
|
9
|
-
*
|
|
10
|
-
* @example Basic Usage
|
|
11
|
-
* ```typescript
|
|
12
|
-
* import { RlmController } from '@ruvector/ruvllm';
|
|
13
|
-
*
|
|
14
|
-
* const rlm = new RlmController({
|
|
15
|
-
* maxDepth: 3,
|
|
16
|
-
* retrievalTopK: 10,
|
|
17
|
-
* enableCache: true,
|
|
18
|
-
* });
|
|
19
|
-
*
|
|
20
|
-
* // Add knowledge to memory
|
|
21
|
-
* await rlm.addMemory('Machine learning is a subset of AI that enables systems to learn from data.');
|
|
22
|
-
* await rlm.addMemory('Deep learning uses neural networks with many layers.');
|
|
23
|
-
*
|
|
24
|
-
* // Query with recursive retrieval
|
|
25
|
-
* const answer = await rlm.query('Explain the relationship between ML and deep learning');
|
|
26
|
-
* console.log(answer.text);
|
|
27
|
-
* console.log('Sources:', answer.sources.length);
|
|
28
|
-
* console.log('Confidence:', answer.confidence);
|
|
29
|
-
* ```
|
|
30
|
-
*
|
|
31
|
-
* @example Streaming
|
|
32
|
-
* ```typescript
|
|
33
|
-
* const rlm = new RlmController();
|
|
34
|
-
*
|
|
35
|
-
* for await (const event of rlm.queryStream('What is AI?')) {
|
|
36
|
-
* if (event.type === 'token') {
|
|
37
|
-
* process.stdout.write(event.text);
|
|
38
|
-
* } else {
|
|
39
|
-
* console.log('\n\nDone! Quality:', event.answer.qualityScore);
|
|
40
|
-
* }
|
|
41
|
-
* }
|
|
42
|
-
* ```
|
|
43
|
-
*
|
|
44
|
-
* @example With Reflection
|
|
45
|
-
* ```typescript
|
|
46
|
-
* const rlm = new RlmController({
|
|
47
|
-
* enableReflection: true,
|
|
48
|
-
* maxReflectionIterations: 2,
|
|
49
|
-
* minQualityScore: 0.8,
|
|
50
|
-
* });
|
|
51
|
-
*
|
|
52
|
-
* const answer = await rlm.query('Complex multi-part question...');
|
|
53
|
-
* // Answer will be iteratively refined until quality >= 0.8
|
|
54
|
-
* ```
|
|
55
|
-
*/
|
|
56
|
-
import { RlmConfig, RlmAnswer, MemorySpan, StreamToken } from './types.js';
|
|
57
|
-
import { RuvLLM } from '../engine.js';
|
|
58
|
-
/**
|
|
59
|
-
* RlmController - Recursive Retrieval Language Model Controller
|
|
60
|
-
*
|
|
61
|
-
* Orchestrates retrieval-augmented generation with recursive sub-query
|
|
62
|
-
* decomposition, memory search, and optional self-reflection.
|
|
63
|
-
*/
|
|
64
|
-
export declare class RlmController {
|
|
65
|
-
private config;
|
|
66
|
-
private cache;
|
|
67
|
-
private engine;
|
|
68
|
-
private memoryIdCounter;
|
|
69
|
-
/**
|
|
70
|
-
* Create a new RLM controller
|
|
71
|
-
*
|
|
72
|
-
* @param config - Configuration options
|
|
73
|
-
* @param engine - Optional RuvLLM engine instance (creates new if not provided)
|
|
74
|
-
*
|
|
75
|
-
* @example
|
|
76
|
-
* ```typescript
|
|
77
|
-
* // With default config
|
|
78
|
-
* const rlm = new RlmController();
|
|
79
|
-
*
|
|
80
|
-
* // With custom config
|
|
81
|
-
* const rlm = new RlmController({
|
|
82
|
-
* maxDepth: 5,
|
|
83
|
-
* enableReflection: true,
|
|
84
|
-
* });
|
|
85
|
-
*
|
|
86
|
-
* // With existing engine
|
|
87
|
-
* const engine = new RuvLLM({ learningEnabled: true });
|
|
88
|
-
* const rlm = new RlmController({}, engine);
|
|
89
|
-
* ```
|
|
90
|
-
*/
|
|
91
|
-
constructor(config?: RlmConfig, engine?: RuvLLM);
|
|
92
|
-
/**
|
|
93
|
-
* Query the RLM with recursive retrieval
|
|
94
|
-
*
|
|
95
|
-
* @param input - The query string
|
|
96
|
-
* @returns Promise resolving to the answer with sources and metadata
|
|
97
|
-
*
|
|
98
|
-
* @example
|
|
99
|
-
* ```typescript
|
|
100
|
-
* const answer = await rlm.query('What is the capital of France?');
|
|
101
|
-
* console.log(answer.text); // "The capital of France is Paris..."
|
|
102
|
-
* console.log(answer.confidence); // 0.95
|
|
103
|
-
* console.log(answer.sources); // [{ id: '...', text: '...', similarityScore: 0.92 }]
|
|
104
|
-
* ```
|
|
105
|
-
*/
|
|
106
|
-
query(input: string): Promise<RlmAnswer>;
|
|
107
|
-
/**
|
|
108
|
-
* Query with streaming response
|
|
109
|
-
*
|
|
110
|
-
* @param input - The query string
|
|
111
|
-
* @yields StreamToken events (either partial tokens or final answer)
|
|
112
|
-
*
|
|
113
|
-
* @example
|
|
114
|
-
* ```typescript
|
|
115
|
-
* for await (const event of rlm.queryStream('Explain quantum computing')) {
|
|
116
|
-
* if (event.type === 'token') {
|
|
117
|
-
* // Partial token received
|
|
118
|
-
* process.stdout.write(event.text);
|
|
119
|
-
* } else {
|
|
120
|
-
* // Generation complete
|
|
121
|
-
* console.log('\n\nSources:', event.answer.sources.length);
|
|
122
|
-
* }
|
|
123
|
-
* }
|
|
124
|
-
* ```
|
|
125
|
-
*/
|
|
126
|
-
queryStream(input: string): AsyncGenerator<StreamToken>;
|
|
127
|
-
/**
|
|
128
|
-
* Add content to memory for retrieval
|
|
129
|
-
*
|
|
130
|
-
* @param text - The text content to store
|
|
131
|
-
* @param metadata - Optional metadata to associate with the memory
|
|
132
|
-
* @returns Promise resolving to the memory span ID
|
|
133
|
-
*
|
|
134
|
-
* @example
|
|
135
|
-
* ```typescript
|
|
136
|
-
* const id1 = await rlm.addMemory(
|
|
137
|
-
* 'TypeScript is a typed superset of JavaScript.',
|
|
138
|
-
* { source: 'documentation', category: 'programming' }
|
|
139
|
-
* );
|
|
140
|
-
*
|
|
141
|
-
* const id2 = await rlm.addMemory(
|
|
142
|
-
* 'React is a JavaScript library for building UIs.'
|
|
143
|
-
* );
|
|
144
|
-
* ```
|
|
145
|
-
*/
|
|
146
|
-
addMemory(text: string, metadata?: Record<string, unknown>): Promise<string>;
|
|
147
|
-
/**
|
|
148
|
-
* Search memory for relevant spans
|
|
149
|
-
*
|
|
150
|
-
* @param query - The search query
|
|
151
|
-
* @param topK - Number of results to return (default: config.retrievalTopK)
|
|
152
|
-
* @returns Promise resolving to array of memory spans
|
|
153
|
-
*
|
|
154
|
-
* @example
|
|
155
|
-
* ```typescript
|
|
156
|
-
* const spans = await rlm.searchMemory('JavaScript frameworks', 5);
|
|
157
|
-
* for (const span of spans) {
|
|
158
|
-
* console.log(`[${span.similarityScore.toFixed(2)}] ${span.text}`);
|
|
159
|
-
* }
|
|
160
|
-
* ```
|
|
161
|
-
*/
|
|
162
|
-
searchMemory(query: string, topK?: number): Promise<MemorySpan[]>;
|
|
163
|
-
/**
|
|
164
|
-
* Clear the response cache
|
|
165
|
-
*
|
|
166
|
-
* @example
|
|
167
|
-
* ```typescript
|
|
168
|
-
* rlm.clearCache();
|
|
169
|
-
* console.log('Cache cleared');
|
|
170
|
-
* ```
|
|
171
|
-
*/
|
|
172
|
-
clearCache(): void;
|
|
173
|
-
/**
|
|
174
|
-
* Get current cache statistics
|
|
175
|
-
*
|
|
176
|
-
* @returns Object with cache size and hit rate info
|
|
177
|
-
*/
|
|
178
|
-
getCacheStats(): {
|
|
179
|
-
size: number;
|
|
180
|
-
entries: number;
|
|
181
|
-
};
|
|
182
|
-
/**
|
|
183
|
-
* Update configuration at runtime
|
|
184
|
-
*
|
|
185
|
-
* @param config - Partial configuration to merge
|
|
186
|
-
*/
|
|
187
|
-
updateConfig(config: Partial<RlmConfig>): void;
|
|
188
|
-
/**
|
|
189
|
-
* Get current configuration
|
|
190
|
-
*/
|
|
191
|
-
getConfig(): Required<RlmConfig>;
|
|
192
|
-
/**
|
|
193
|
-
* Generate sub-queries for complex questions
|
|
194
|
-
*/
|
|
195
|
-
private generateSubQueries;
|
|
196
|
-
/**
|
|
197
|
-
* Decompose a complex query into simpler parts
|
|
198
|
-
*/
|
|
199
|
-
private decomposeQuery;
|
|
200
|
-
/**
|
|
201
|
-
* Build context string from sources and sub-queries
|
|
202
|
-
*/
|
|
203
|
-
private buildContext;
|
|
204
|
-
/**
|
|
205
|
-
* Build the full prompt with context
|
|
206
|
-
*/
|
|
207
|
-
private buildPrompt;
|
|
208
|
-
/**
|
|
209
|
-
* Get generation config based on RLM settings
|
|
210
|
-
*/
|
|
211
|
-
private getGenerationConfig;
|
|
212
|
-
/**
|
|
213
|
-
* Estimate token usage
|
|
214
|
-
*/
|
|
215
|
-
private estimateTokenUsage;
|
|
216
|
-
/**
|
|
217
|
-
* Calculate quality score based on sources and confidence
|
|
218
|
-
*/
|
|
219
|
-
private calculateQualityScore;
|
|
220
|
-
/**
|
|
221
|
-
* Apply self-reflection to improve answer
|
|
222
|
-
*/
|
|
223
|
-
private applyReflection;
|
|
224
|
-
/**
|
|
225
|
-
* Get cached answer if valid
|
|
226
|
-
*/
|
|
227
|
-
private getCached;
|
|
228
|
-
/**
|
|
229
|
-
* Set cache entry
|
|
230
|
-
*/
|
|
231
|
-
private setCache;
|
|
232
|
-
/**
|
|
233
|
-
* Simple hash function for cache keys
|
|
234
|
-
*/
|
|
235
|
-
private hashQuery;
|
|
236
|
-
/**
|
|
237
|
-
* Prune expired cache entries
|
|
238
|
-
*/
|
|
239
|
-
private pruneCache;
|
|
240
|
-
/**
|
|
241
|
-
* Utility delay function for streaming simulation
|
|
242
|
-
*/
|
|
243
|
-
private delay;
|
|
244
|
-
}
|
|
245
|
-
//# sourceMappingURL=controller.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"controller.d.ts","sourceRoot":"","sources":["../../../src/rlm/controller.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AAEH,OAAO,EACL,SAAS,EACT,SAAS,EACT,UAAU,EAGV,WAAW,EAGZ,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAkBnC;;;;;GAKG;AACH,qBAAa,aAAa;IACxB,OAAO,CAAC,MAAM,CAAsB;IACpC,OAAO,CAAC,KAAK,CAA6B;IAC1C,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,eAAe,CAAS;IAEhC;;;;;;;;;;;;;;;;;;;;;OAqBG;gBACS,MAAM,CAAC,EAAE,SAAS,EAAE,MAAM,CAAC,EAAE,MAAM;IAO/C;;;;;;;;;;;;;OAaG;IACG,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC;IAsD9C;;;;;;;;;;;;;;;;;;OAkBG;IACI,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,cAAc,CAAC,WAAW,CAAC;IA2D9D;;;;;;;;;;;;;;;;;;OAkBG;IACG,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC;IAMlF;;;;;;;;;;;;;;OAcG;IACG,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC;IAavE;;;;;;;;OAQG;IACH,UAAU,IAAI,IAAI;IAIlB;;;;OA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