@petercatai/whisker-client 0.1.202511251332 → 0.1.202512041544
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/api.d.ts +24 -12
- package/dist/api.js +11 -2
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -2217,6 +2217,15 @@ export interface IResponseModelChunk {
|
|
|
2217
2217
|
/** Message */
|
|
2218
2218
|
message?: string | null;
|
|
2219
2219
|
}
|
|
2220
|
+
/** ResponseModel[Dict[str, Any]] */
|
|
2221
|
+
export interface IResponseModelDictStrAny {
|
|
2222
|
+
/** Success */
|
|
2223
|
+
success: boolean;
|
|
2224
|
+
/** Data */
|
|
2225
|
+
data?: Record<string, any> | null;
|
|
2226
|
+
/** Message */
|
|
2227
|
+
message?: string | null;
|
|
2228
|
+
}
|
|
2220
2229
|
/** ResponseModel[GlobalInfo] */
|
|
2221
2230
|
export interface IResponseModelGlobalInfo {
|
|
2222
2231
|
/** Success */
|
|
@@ -2580,11 +2589,8 @@ export interface IRetrievalChunkInput {
|
|
|
2580
2589
|
* @default true
|
|
2581
2590
|
*/
|
|
2582
2591
|
enabled?: boolean;
|
|
2583
|
-
/**
|
|
2584
|
-
|
|
2585
|
-
* name of the embedding model
|
|
2586
|
-
*/
|
|
2587
|
-
embedding_model_name: string;
|
|
2592
|
+
/** Embedding Model Name */
|
|
2593
|
+
embedding_model_name?: string | null;
|
|
2588
2594
|
/**
|
|
2589
2595
|
* Metadata
|
|
2590
2596
|
* Arbitrary metadata associated with the content.
|
|
@@ -2674,11 +2680,8 @@ export interface IRetrievalChunkOutput {
|
|
|
2674
2680
|
* @default true
|
|
2675
2681
|
*/
|
|
2676
2682
|
enabled?: boolean;
|
|
2677
|
-
/**
|
|
2678
|
-
|
|
2679
|
-
* name of the embedding model
|
|
2680
|
-
*/
|
|
2681
|
-
embedding_model_name: string;
|
|
2683
|
+
/** Embedding Model Name */
|
|
2684
|
+
embedding_model_name?: string | null;
|
|
2682
2685
|
/**
|
|
2683
2686
|
* Metadata
|
|
2684
2687
|
* Arbitrary metadata associated with the content.
|
|
@@ -4035,6 +4038,15 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4035
4038
|
}, params?: RequestParams) => Promise<HttpResponse<IResponseModelListUnionTextImageBlob, void | IHTTPValidationError>>;
|
|
4036
4039
|
};
|
|
4037
4040
|
retrieval: {
|
|
4041
|
+
/**
|
|
4042
|
+
* @description 获取所有召回配置的 JSON Schema,用于前端动态渲染表单。 返回格式: { "deep_retrieval": { ... schema ... }, "region_retrieval": { ... schema ... }, "web_search": { ... schema ... }, ... }
|
|
4043
|
+
*
|
|
4044
|
+
* @tags retrieval
|
|
4045
|
+
* @name GetRetrievalConfigSchemas
|
|
4046
|
+
* @summary Get Retrieval Config Schemas
|
|
4047
|
+
* @request GET:/api/retrieval/config/schemas
|
|
4048
|
+
*/
|
|
4049
|
+
getRetrievalConfigSchemas: (params?: RequestParams) => Promise<HttpResponse<IResponseModelDictStrAny, void>>;
|
|
4038
4050
|
/**
|
|
4039
4051
|
* @description Retrieve certain chunks within a knowledge_id, for example, within a specific PDF file.
|
|
4040
4052
|
*
|
|
@@ -4136,7 +4148,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4136
4148
|
*/
|
|
4137
4149
|
getChunkList: (data: IPageQueryParamsChunk, params?: RequestParams) => Promise<HttpResponse<IResponseModelPageResponseChunk, void | IHTTPValidationError>>;
|
|
4138
4150
|
/**
|
|
4139
|
-
* @description 根据ID删除Chunk
|
|
4151
|
+
* @description 根据ID删除Chunk
|
|
4140
4152
|
*
|
|
4141
4153
|
* @tags chunk
|
|
4142
4154
|
* @name DeleteChunkById
|
|
@@ -4163,7 +4175,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4163
4175
|
*/
|
|
4164
4176
|
addChunk: (data: IChunkSave, params?: RequestParams) => Promise<HttpResponse<IResponseModelChunk, void | IHTTPValidationError>>;
|
|
4165
4177
|
/**
|
|
4166
|
-
* @description
|
|
4178
|
+
* @description 注意只能更新 context、metadata 字段
|
|
4167
4179
|
*
|
|
4168
4180
|
* @tags chunk
|
|
4169
4181
|
* @name UpdateChunk
|
package/dist/api.js
CHANGED
|
@@ -424,6 +424,15 @@ class Api extends HttpClient {
|
|
|
424
424
|
getKnowledgeOriginalContent: (query, params = {}) => this.request(Object.assign({ path: `/api/knowledge/original_content`, method: "GET", query: query, format: "json" }, params)),
|
|
425
425
|
};
|
|
426
426
|
this.retrieval = {
|
|
427
|
+
/**
|
|
428
|
+
* @description 获取所有召回配置的 JSON Schema,用于前端动态渲染表单。 返回格式: { "deep_retrieval": { ... schema ... }, "region_retrieval": { ... schema ... }, "web_search": { ... schema ... }, ... }
|
|
429
|
+
*
|
|
430
|
+
* @tags retrieval
|
|
431
|
+
* @name GetRetrievalConfigSchemas
|
|
432
|
+
* @summary Get Retrieval Config Schemas
|
|
433
|
+
* @request GET:/api/retrieval/config/schemas
|
|
434
|
+
*/
|
|
435
|
+
getRetrievalConfigSchemas: (params = {}) => this.request(Object.assign({ path: `/api/retrieval/config/schemas`, method: "GET", format: "json" }, params)),
|
|
427
436
|
/**
|
|
428
437
|
* @description Retrieve certain chunks within a knowledge_id, for example, within a specific PDF file.
|
|
429
438
|
*
|
|
@@ -519,7 +528,7 @@ class Api extends HttpClient {
|
|
|
519
528
|
*/
|
|
520
529
|
getChunkList: (data, params = {}) => this.request(Object.assign({ path: `/api/chunk/list`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
521
530
|
/**
|
|
522
|
-
* @description 根据ID删除Chunk
|
|
531
|
+
* @description 根据ID删除Chunk
|
|
523
532
|
*
|
|
524
533
|
* @tags chunk
|
|
525
534
|
* @name DeleteChunkById
|
|
@@ -546,7 +555,7 @@ class Api extends HttpClient {
|
|
|
546
555
|
*/
|
|
547
556
|
addChunk: (data, params = {}) => this.request(Object.assign({ path: `/api/chunk/add`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
548
557
|
/**
|
|
549
|
-
* @description
|
|
558
|
+
* @description 注意只能更新 context、metadata 字段
|
|
550
559
|
*
|
|
551
560
|
* @tags chunk
|
|
552
561
|
* @name UpdateChunk
|