vectocore4 0.0.5 → 0.0.6
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 +12 -12
- package/dist/index.d.ts +12 -12
- package/dist/mjs/index.js +12 -12
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -75,11 +75,11 @@ class Vectocore {
|
|
|
75
75
|
return response;
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
|
-
|
|
78
|
+
putExtremeData(_a) {
|
|
79
79
|
return __awaiter(this, arguments, void 0, function* ({ indexName, docBody }) {
|
|
80
80
|
var _b, _c;
|
|
81
81
|
const requestParam = {
|
|
82
|
-
command: "
|
|
82
|
+
command: "put_extreme_data",
|
|
83
83
|
params: {
|
|
84
84
|
index_name: indexName,
|
|
85
85
|
doc_body: {
|
|
@@ -101,10 +101,10 @@ class Vectocore {
|
|
|
101
101
|
return response;
|
|
102
102
|
});
|
|
103
103
|
}
|
|
104
|
-
|
|
104
|
+
getExtremeData(_a) {
|
|
105
105
|
return __awaiter(this, arguments, void 0, function* ({ indexName, documentId }) {
|
|
106
106
|
const requestParam = {
|
|
107
|
-
command: "
|
|
107
|
+
command: "get_extreme_data",
|
|
108
108
|
params: {
|
|
109
109
|
index_name: indexName,
|
|
110
110
|
document_id: documentId,
|
|
@@ -114,10 +114,10 @@ class Vectocore {
|
|
|
114
114
|
return response;
|
|
115
115
|
});
|
|
116
116
|
}
|
|
117
|
-
|
|
117
|
+
listExtremeData(_a) {
|
|
118
118
|
return __awaiter(this, arguments, void 0, function* ({ indexName, lastKey }) {
|
|
119
119
|
const requestParam = {
|
|
120
|
-
command: "
|
|
120
|
+
command: "list_extreme_data",
|
|
121
121
|
params: {
|
|
122
122
|
index_name: indexName,
|
|
123
123
|
},
|
|
@@ -129,10 +129,10 @@ class Vectocore {
|
|
|
129
129
|
return response;
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
|
-
|
|
132
|
+
listAllExtremeData(_a) {
|
|
133
133
|
return __awaiter(this, arguments, void 0, function* ({ indexName }) {
|
|
134
134
|
const requestParam = {
|
|
135
|
-
command: "
|
|
135
|
+
command: "list_all_extreme_data",
|
|
136
136
|
params: {
|
|
137
137
|
index_name: indexName,
|
|
138
138
|
},
|
|
@@ -141,10 +141,10 @@ class Vectocore {
|
|
|
141
141
|
return response;
|
|
142
142
|
});
|
|
143
143
|
}
|
|
144
|
-
|
|
144
|
+
deleteExtremeData(_a) {
|
|
145
145
|
return __awaiter(this, arguments, void 0, function* ({ indexName, documentId }) {
|
|
146
146
|
const requestParam = {
|
|
147
|
-
command: "
|
|
147
|
+
command: "delete_extreme_data",
|
|
148
148
|
params: {
|
|
149
149
|
index_name: indexName,
|
|
150
150
|
document_id: documentId,
|
|
@@ -154,10 +154,10 @@ class Vectocore {
|
|
|
154
154
|
return response;
|
|
155
155
|
});
|
|
156
156
|
}
|
|
157
|
-
|
|
157
|
+
extremeSearch(_a) {
|
|
158
158
|
return __awaiter(this, arguments, void 0, function* ({ mode, indexNames, question, top, rerank }) {
|
|
159
159
|
const requestParam = {
|
|
160
|
-
command: "
|
|
160
|
+
command: "extreme_search",
|
|
161
161
|
params: {
|
|
162
162
|
mode: mode !== null && mode !== void 0 ? mode : "vector",
|
|
163
163
|
index_names: indexNames !== null && indexNames !== void 0 ? indexNames : [],
|
package/dist/index.d.ts
CHANGED
|
@@ -49,7 +49,7 @@ export interface DeleteIndexParams {
|
|
|
49
49
|
*/
|
|
50
50
|
indexName: string;
|
|
51
51
|
}
|
|
52
|
-
export interface
|
|
52
|
+
export interface PutExtremeDataParams {
|
|
53
53
|
/**
|
|
54
54
|
* 지식을 추가할 인덱스의 이름입니다.
|
|
55
55
|
*/
|
|
@@ -74,29 +74,29 @@ export interface PutExtreamDataParams {
|
|
|
74
74
|
refOnlyText?: boolean;
|
|
75
75
|
};
|
|
76
76
|
}
|
|
77
|
-
export interface
|
|
77
|
+
export interface ListExtremeDataParams {
|
|
78
78
|
/** 데이터 목록을 조회할 인덱스의 이름입니다. */
|
|
79
79
|
indexName: string;
|
|
80
80
|
/** 페이징된 결과를 받았을때 해당 key부터 다음 페이징까지 결과를 조회하는 기준 키 입니다. */
|
|
81
81
|
lastKey?: string | null;
|
|
82
82
|
}
|
|
83
|
-
export interface
|
|
83
|
+
export interface ListAllExtremeDataParams {
|
|
84
84
|
/** 데이터 목록을 조회할 인덱스의 이름입니다. */
|
|
85
85
|
indexName: string;
|
|
86
86
|
}
|
|
87
|
-
export interface
|
|
87
|
+
export interface GetExtremeDataParams {
|
|
88
88
|
/** 조회할 문서가 저장되어 있는 인덱스의 이름입니다. */
|
|
89
89
|
indexName: string;
|
|
90
90
|
/** 조회할 문서의 ID입니다. */
|
|
91
91
|
documentId: string;
|
|
92
92
|
}
|
|
93
|
-
export interface
|
|
93
|
+
export interface DeleteExtremeDataParams {
|
|
94
94
|
/** 삭제할 문서가 저장되어 있는 인덱스의 이름입니다. */
|
|
95
95
|
indexName: string;
|
|
96
96
|
/** 삭제할 문서의 ID입니다. */
|
|
97
97
|
documentId: string;
|
|
98
98
|
}
|
|
99
|
-
export interface
|
|
99
|
+
export interface ExtremeSearchParams {
|
|
100
100
|
/** 사용자의 질문을 검색하고자하는 인덱스 목록, 생략하거나 []를 전송시 전체 인덱스에서 검색 실행합니다. */
|
|
101
101
|
indexNames?: string[];
|
|
102
102
|
/** 사용자 질문 (시멘틱 검색을 사용하기때문에 서술형을 질문해도 의미를 파악하여 유사한 결과를 유사도 순위별로 리턴.) */
|
|
@@ -166,12 +166,12 @@ export declare class Vectocore {
|
|
|
166
166
|
putIndex({ indexName, description }: PutIndexParams): Promise<any>;
|
|
167
167
|
deleteIndex({ indexName }: DeleteIndexParams): Promise<any>;
|
|
168
168
|
listIndex(): Promise<any>;
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
169
|
+
putExtremeData({ indexName, docBody }: PutExtremeDataParams): Promise<any>;
|
|
170
|
+
getExtremeData({ indexName, documentId }: GetExtremeDataParams): Promise<any>;
|
|
171
|
+
listExtremeData({ indexName, lastKey }: ListExtremeDataParams): Promise<any>;
|
|
172
|
+
listAllExtremeData({ indexName }: ListAllExtremeDataParams): Promise<any>;
|
|
173
|
+
deleteExtremeData({ indexName, documentId }: DeleteExtremeDataParams): Promise<any>;
|
|
174
|
+
extremeSearch({ mode, indexNames, question, top, rerank }: ExtremeSearchParams): Promise<any>;
|
|
175
175
|
webSearch({ question }: WebSearchParams): Promise<any>;
|
|
176
176
|
}
|
|
177
177
|
export declare class Lens {
|
package/dist/mjs/index.js
CHANGED
|
@@ -54,9 +54,9 @@ export class Vectocore {
|
|
|
54
54
|
const response = await this.requestPost(requestParam);
|
|
55
55
|
return response;
|
|
56
56
|
}
|
|
57
|
-
async
|
|
57
|
+
async putExtremeData({ indexName, docBody }) {
|
|
58
58
|
const requestParam = {
|
|
59
|
-
command: "
|
|
59
|
+
command: "put_extreme_data",
|
|
60
60
|
params: {
|
|
61
61
|
index_name: indexName,
|
|
62
62
|
doc_body: {
|
|
@@ -77,9 +77,9 @@ export class Vectocore {
|
|
|
77
77
|
const response = await this.requestPost(requestParam);
|
|
78
78
|
return response;
|
|
79
79
|
}
|
|
80
|
-
async
|
|
80
|
+
async getExtremeData({ indexName, documentId }) {
|
|
81
81
|
const requestParam = {
|
|
82
|
-
command: "
|
|
82
|
+
command: "get_extreme_data",
|
|
83
83
|
params: {
|
|
84
84
|
index_name: indexName,
|
|
85
85
|
document_id: documentId,
|
|
@@ -88,9 +88,9 @@ export class Vectocore {
|
|
|
88
88
|
const response = await this.requestPost(requestParam);
|
|
89
89
|
return response;
|
|
90
90
|
}
|
|
91
|
-
async
|
|
91
|
+
async listExtremeData({ indexName, lastKey }) {
|
|
92
92
|
const requestParam = {
|
|
93
|
-
command: "
|
|
93
|
+
command: "list_extreme_data",
|
|
94
94
|
params: {
|
|
95
95
|
index_name: indexName,
|
|
96
96
|
},
|
|
@@ -101,9 +101,9 @@ export class Vectocore {
|
|
|
101
101
|
const response = await this.requestPost(requestParam);
|
|
102
102
|
return response;
|
|
103
103
|
}
|
|
104
|
-
async
|
|
104
|
+
async listAllExtremeData({ indexName }) {
|
|
105
105
|
const requestParam = {
|
|
106
|
-
command: "
|
|
106
|
+
command: "list_all_extreme_data",
|
|
107
107
|
params: {
|
|
108
108
|
index_name: indexName,
|
|
109
109
|
},
|
|
@@ -111,9 +111,9 @@ export class Vectocore {
|
|
|
111
111
|
const response = await this.requestPost(requestParam);
|
|
112
112
|
return response;
|
|
113
113
|
}
|
|
114
|
-
async
|
|
114
|
+
async deleteExtremeData({ indexName, documentId }) {
|
|
115
115
|
const requestParam = {
|
|
116
|
-
command: "
|
|
116
|
+
command: "delete_extreme_data",
|
|
117
117
|
params: {
|
|
118
118
|
index_name: indexName,
|
|
119
119
|
document_id: documentId,
|
|
@@ -122,9 +122,9 @@ export class Vectocore {
|
|
|
122
122
|
const response = await this.requestPost(requestParam);
|
|
123
123
|
return response;
|
|
124
124
|
}
|
|
125
|
-
async
|
|
125
|
+
async extremeSearch({ mode, indexNames, question, top, rerank }) {
|
|
126
126
|
const requestParam = {
|
|
127
|
-
command: "
|
|
127
|
+
command: "extreme_search",
|
|
128
128
|
params: {
|
|
129
129
|
mode: mode ?? "vector",
|
|
130
130
|
index_names: indexNames ?? [],
|