vectocore4 1.0.6 → 1.0.8
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/cjs/index.js +5 -3
- package/dist/index.d.ts +6 -1
- package/dist/mjs/index.js +2 -0
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -371,6 +371,7 @@ class Lens {
|
|
|
371
371
|
* @param {number} [params.xfinder.top] 검색 결과 최대 개수 (값이 클수록 토큰 소모 및 속도 저하)
|
|
372
372
|
* @param {boolean} [params.xfinder.rerank=false] AI rerank 사용 여부 (사용 시 추가 토큰 소모)
|
|
373
373
|
* @param {boolean} [params.xfinder.textOnly] 멀티모달 이미지가 존재해도 텍스트만 처리할지 여부
|
|
374
|
+
* @param {boolean} [params.xfinder.aiFilter] RAG 검색 결과를 필터링할지 여부
|
|
374
375
|
*
|
|
375
376
|
* ---
|
|
376
377
|
* * ### 💁🏼♂️ 실시간 웹 검색
|
|
@@ -411,7 +412,7 @@ class Lens {
|
|
|
411
412
|
*/
|
|
412
413
|
chat(_a) {
|
|
413
414
|
return __awaiter(this, arguments, void 0, function* ({ question, stream = true, model = "4o", xfinder, webSearch, agentic, imageUrls, fileUrls, customContext, sessionKey, maxHisCount, withStatus, staticInfo, customSystemPrompt, }) {
|
|
414
|
-
var _b, _c, _d, _e, _f, _g;
|
|
415
|
+
var _b, _c, _d, _e, _f, _g, _h;
|
|
415
416
|
const requestParam = {
|
|
416
417
|
command: "lens_chat",
|
|
417
418
|
params: {
|
|
@@ -428,12 +429,13 @@ class Lens {
|
|
|
428
429
|
top: xfinder.top,
|
|
429
430
|
rerank: (_d = xfinder.rerank) !== null && _d !== void 0 ? _d : false,
|
|
430
431
|
text_only: (_e = xfinder.textOnly) !== null && _e !== void 0 ? _e : false,
|
|
432
|
+
ai_filter: (_f = xfinder.aiFilter) !== null && _f !== void 0 ? _f : false,
|
|
431
433
|
};
|
|
432
434
|
}
|
|
433
435
|
if (webSearch) {
|
|
434
436
|
requestParam.params.web_search = {
|
|
435
|
-
with_image: (
|
|
436
|
-
with_video: (
|
|
437
|
+
with_image: (_g = webSearch.withImage) !== null && _g !== void 0 ? _g : false,
|
|
438
|
+
with_video: (_h = webSearch.withVideo) !== null && _h !== void 0 ? _h : false,
|
|
437
439
|
};
|
|
438
440
|
}
|
|
439
441
|
if (agentic)
|
package/dist/index.d.ts
CHANGED
|
@@ -128,6 +128,10 @@ type XFinderOptions = {
|
|
|
128
128
|
* 벡터 Context에 image_url등 멀티모달 이미지가 존재해도 무시하고자 할 경우 사용
|
|
129
129
|
*/
|
|
130
130
|
textOnly?: boolean;
|
|
131
|
+
/**
|
|
132
|
+
* RAG 검색결과를 메인 AI에 전달할 때 사용자 질문과 유사한 RAG만 필터링할 때 사용(속도 우선시, RAG의 TEXT정보가 충실할 때 사용)
|
|
133
|
+
*/
|
|
134
|
+
aiFilter?: boolean;
|
|
131
135
|
};
|
|
132
136
|
type WebSearchOptions = {
|
|
133
137
|
/** 이미지 검색 결과도 보여주고 싶을 때 사용 (Default : false) */
|
|
@@ -154,7 +158,7 @@ export type LensFileType = {
|
|
|
154
158
|
url: string;
|
|
155
159
|
ext_img_urls?: string[];
|
|
156
160
|
};
|
|
157
|
-
export type LensModelType = "5.3chat" | "5.1chat" | "5chat" | "4o" | "mini";
|
|
161
|
+
export type LensModelType = "5.3chat" | "5.1chat" | "5chat" | "4o" | "mini" | "5.4mini";
|
|
158
162
|
export interface LensChatParams {
|
|
159
163
|
/** 사용자 질문 (필수) */
|
|
160
164
|
question: string;
|
|
@@ -393,6 +397,7 @@ export declare class Lens {
|
|
|
393
397
|
* @param {number} [params.xfinder.top] 검색 결과 최대 개수 (값이 클수록 토큰 소모 및 속도 저하)
|
|
394
398
|
* @param {boolean} [params.xfinder.rerank=false] AI rerank 사용 여부 (사용 시 추가 토큰 소모)
|
|
395
399
|
* @param {boolean} [params.xfinder.textOnly] 멀티모달 이미지가 존재해도 텍스트만 처리할지 여부
|
|
400
|
+
* @param {boolean} [params.xfinder.aiFilter] RAG 검색 결과를 필터링할지 여부
|
|
396
401
|
*
|
|
397
402
|
* ---
|
|
398
403
|
* * ### 💁🏼♂️ 실시간 웹 검색
|
package/dist/mjs/index.js
CHANGED
|
@@ -337,6 +337,7 @@ export class Lens {
|
|
|
337
337
|
* @param {number} [params.xfinder.top] 검색 결과 최대 개수 (값이 클수록 토큰 소모 및 속도 저하)
|
|
338
338
|
* @param {boolean} [params.xfinder.rerank=false] AI rerank 사용 여부 (사용 시 추가 토큰 소모)
|
|
339
339
|
* @param {boolean} [params.xfinder.textOnly] 멀티모달 이미지가 존재해도 텍스트만 처리할지 여부
|
|
340
|
+
* @param {boolean} [params.xfinder.aiFilter] RAG 검색 결과를 필터링할지 여부
|
|
340
341
|
*
|
|
341
342
|
* ---
|
|
342
343
|
* * ### 💁🏼♂️ 실시간 웹 검색
|
|
@@ -392,6 +393,7 @@ export class Lens {
|
|
|
392
393
|
top: xfinder.top,
|
|
393
394
|
rerank: xfinder.rerank ?? false,
|
|
394
395
|
text_only: xfinder.textOnly ?? false,
|
|
396
|
+
ai_filter: xfinder.aiFilter ?? false,
|
|
395
397
|
};
|
|
396
398
|
}
|
|
397
399
|
if (webSearch) {
|