nucleus-core-ts 0.10.215 → 0.10.216

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/.build-ok CHANGED
@@ -1 +1 @@
1
- 0.10.215
1
+ 0.10.216
@@ -867,6 +867,30 @@ export function createVorionProvider(options: any): {
867
867
  providerRef: string | null;
868
868
  }>;
869
869
  forget: (providerRef: any) => Promise<void>;
870
+ knowledge: {
871
+ upload(request: any): Promise<{
872
+ batchId: number;
873
+ }>;
874
+ batch(batchId: any): Promise<{
875
+ status: any;
876
+ documents: {
877
+ id: string;
878
+ title: string;
879
+ status: any;
880
+ error: string | null;
881
+ }[];
882
+ } | null>;
883
+ remove(documentId: any): Promise<void>;
884
+ search(request: any): Promise<{
885
+ passages: {
886
+ documentId: string;
887
+ title: string;
888
+ text: string;
889
+ page: number | null;
890
+ score: number;
891
+ }[];
892
+ }>;
893
+ };
870
894
  };
871
895
  export function createUserAccount(config2: any, params: any): Promise<any>;
872
896
  export function createServerFactory(endpoints: any, config: any, getCookies: any, getHeaders: any): (endpointKey: any, payload: any) => Promise<{
@@ -909,6 +933,22 @@ export function createFakeAiProvider(answers: any): {
909
933
  name: string;
910
934
  calls: any[];
911
935
  forgotten: any[];
936
+ knowledge: {
937
+ upload(request: any): Promise<{
938
+ batchId: number;
939
+ }>;
940
+ batch(batchId: any): Promise<any>;
941
+ remove(documentId: any): Promise<void>;
942
+ search(request: any): Promise<{
943
+ passages: {
944
+ documentId: any;
945
+ title: any;
946
+ text: any;
947
+ page: null;
948
+ score: number;
949
+ }[];
950
+ }>;
951
+ };
912
952
  predict(request: any): Promise<{
913
953
  text: any;
914
954
  inputTokens: number;
@@ -1201,6 +1241,7 @@ export function createBootMigrations(opts: any): {
1201
1241
  export function createApiHook(endpoints: any, factory: any): () => {};
1202
1242
  export function createAiEngine(options: any): {
1203
1243
  provider: any;
1244
+ knowledge: any;
1204
1245
  jobs: {
1205
1246
  name: any;
1206
1247
  everySeconds: any;
@@ -1317,12 +1358,14 @@ export function aiConfigFromEnv(env: any): {
1317
1358
  apiKey: any;
1318
1359
  llmGroup: any;
1319
1360
  llmName: any;
1361
+ knowledgeBaseId: any;
1320
1362
  } | {
1321
1363
  executionBackend: any;
1322
1364
  baseUrl: any;
1323
1365
  apiKey: any;
1324
1366
  llmGroup: any;
1325
1367
  llmName: any;
1368
+ knowledgeBaseId: any;
1326
1369
  };
1327
1370
  fake?: undefined;
1328
1371
  } | null;