@exulu/backend 5.22.0 → 5.24.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/dist/{chunk-6OAYOFEY.js → chunk-6HADZYCD.js} +148 -135
- package/dist/{chunk-43QIPMLT.js → chunk-BFIDSFRQ.js} +132 -0
- package/dist/{chunk-Q4DFJFUI.js → chunk-DAVYWGEE.js} +17 -3
- package/dist/{convert-exulu-tools-to-ai-sdk-tools-DAC4VCWO.js → convert-exulu-tools-to-ai-sdk-tools-RBKOADD7.js} +2 -2
- package/dist/{doc_processor-VCFQZ5WI.js → doc_processor-SR7ZCECL.js} +2 -2
- package/dist/index.cjs +751 -222
- package/dist/index.d.cts +18 -1
- package/dist/index.d.ts +18 -1
- package/dist/index.js +491 -107
- package/ee/python/documents/processing/doc_processor.presentations.test.ts +55 -0
- package/ee/python/documents/processing/doc_processor.ts +17 -2
- package/ee/workers.ts +16 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -65,6 +65,11 @@ type User = {
|
|
|
65
65
|
* the "show user budget in chat" setting is on. Not a Postgres column.
|
|
66
66
|
*/
|
|
67
67
|
budget?: UserBudgetView | null;
|
|
68
|
+
/**
|
|
69
|
+
* Set per request (not a Postgres column) when the request was forwarded by
|
|
70
|
+
* the companion server with a valid key.
|
|
71
|
+
*/
|
|
72
|
+
via_companion?: boolean;
|
|
68
73
|
};
|
|
69
74
|
type UserBudgetView = {
|
|
70
75
|
spend: number;
|
|
@@ -2153,7 +2158,7 @@ declare function postgresClient(): Promise<{
|
|
|
2153
2158
|
db: Knex;
|
|
2154
2159
|
}>;
|
|
2155
2160
|
|
|
2156
|
-
type RecallSource = "prefetch" | "knowledge_search";
|
|
2161
|
+
type RecallSource = "prefetch" | "knowledge_search" | "follow_up";
|
|
2157
2162
|
type MemoryItemRow = {
|
|
2158
2163
|
id: string;
|
|
2159
2164
|
name?: string | null;
|
|
@@ -2207,8 +2212,20 @@ declare class RecallCollector {
|
|
|
2207
2212
|
|
|
2208
2213
|
type RecallResult = {
|
|
2209
2214
|
collector: RecallCollector | undefined;
|
|
2215
|
+
/**
|
|
2216
|
+
* The recalled chunks, handed to the knowledge search so it can weigh them
|
|
2217
|
+
* against its own results. While recall is on this is ONE array for the whole
|
|
2218
|
+
* turn: `followUp` appends to it, so a search later in the turn sees what was
|
|
2219
|
+
* recalled in between.
|
|
2220
|
+
*/
|
|
2210
2221
|
memoryItems: VectorSearchChunkResult[] | undefined;
|
|
2211
2222
|
promptBlock: string;
|
|
2223
|
+
/**
|
|
2224
|
+
* Searches the memory again during the turn (recall-step.ts) and returns the
|
|
2225
|
+
* memories that were not recalled before. Same context, user and limit as the
|
|
2226
|
+
* first search. Absent when recall is off.
|
|
2227
|
+
*/
|
|
2228
|
+
followUp?: (query: string) => Promise<RecalledMemory[]>;
|
|
2212
2229
|
};
|
|
2213
2230
|
/**
|
|
2214
2231
|
* Memory pre-fetch shared by generateSync and generateStream (spec §3.1):
|
package/dist/index.d.ts
CHANGED
|
@@ -65,6 +65,11 @@ type User = {
|
|
|
65
65
|
* the "show user budget in chat" setting is on. Not a Postgres column.
|
|
66
66
|
*/
|
|
67
67
|
budget?: UserBudgetView | null;
|
|
68
|
+
/**
|
|
69
|
+
* Set per request (not a Postgres column) when the request was forwarded by
|
|
70
|
+
* the companion server with a valid key.
|
|
71
|
+
*/
|
|
72
|
+
via_companion?: boolean;
|
|
68
73
|
};
|
|
69
74
|
type UserBudgetView = {
|
|
70
75
|
spend: number;
|
|
@@ -2153,7 +2158,7 @@ declare function postgresClient(): Promise<{
|
|
|
2153
2158
|
db: Knex;
|
|
2154
2159
|
}>;
|
|
2155
2160
|
|
|
2156
|
-
type RecallSource = "prefetch" | "knowledge_search";
|
|
2161
|
+
type RecallSource = "prefetch" | "knowledge_search" | "follow_up";
|
|
2157
2162
|
type MemoryItemRow = {
|
|
2158
2163
|
id: string;
|
|
2159
2164
|
name?: string | null;
|
|
@@ -2207,8 +2212,20 @@ declare class RecallCollector {
|
|
|
2207
2212
|
|
|
2208
2213
|
type RecallResult = {
|
|
2209
2214
|
collector: RecallCollector | undefined;
|
|
2215
|
+
/**
|
|
2216
|
+
* The recalled chunks, handed to the knowledge search so it can weigh them
|
|
2217
|
+
* against its own results. While recall is on this is ONE array for the whole
|
|
2218
|
+
* turn: `followUp` appends to it, so a search later in the turn sees what was
|
|
2219
|
+
* recalled in between.
|
|
2220
|
+
*/
|
|
2210
2221
|
memoryItems: VectorSearchChunkResult[] | undefined;
|
|
2211
2222
|
promptBlock: string;
|
|
2223
|
+
/**
|
|
2224
|
+
* Searches the memory again during the turn (recall-step.ts) and returns the
|
|
2225
|
+
* memories that were not recalled before. Same context, user and limit as the
|
|
2226
|
+
* first search. Absent when recall is off.
|
|
2227
|
+
*/
|
|
2228
|
+
followUp?: (query: string) => Promise<RecalledMemory[]>;
|
|
2212
2229
|
};
|
|
2213
2230
|
/**
|
|
2214
2231
|
* Memory pre-fetch shared by generateSync and generateStream (spec §3.1):
|