vectocore4 0.0.6 → 0.0.7
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 +4 -2
- package/dist/index.d.ts +6 -2
- package/dist/mjs/index.js +4 -2
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -115,11 +115,12 @@ class Vectocore {
|
|
|
115
115
|
});
|
|
116
116
|
}
|
|
117
117
|
listExtremeData(_a) {
|
|
118
|
-
return __awaiter(this, arguments, void 0, function* ({ indexName, lastKey }) {
|
|
118
|
+
return __awaiter(this, arguments, void 0, function* ({ indexName, lastKey, withVectorValue }) {
|
|
119
119
|
const requestParam = {
|
|
120
120
|
command: "list_extreme_data",
|
|
121
121
|
params: {
|
|
122
122
|
index_name: indexName,
|
|
123
|
+
with_vector_value: withVectorValue !== null && withVectorValue !== void 0 ? withVectorValue : false,
|
|
123
124
|
},
|
|
124
125
|
};
|
|
125
126
|
if (lastKey) {
|
|
@@ -130,11 +131,12 @@ class Vectocore {
|
|
|
130
131
|
});
|
|
131
132
|
}
|
|
132
133
|
listAllExtremeData(_a) {
|
|
133
|
-
return __awaiter(this, arguments, void 0, function* ({ indexName }) {
|
|
134
|
+
return __awaiter(this, arguments, void 0, function* ({ indexName, withVectorValue }) {
|
|
134
135
|
const requestParam = {
|
|
135
136
|
command: "list_all_extreme_data",
|
|
136
137
|
params: {
|
|
137
138
|
index_name: indexName,
|
|
139
|
+
with_vector_value: withVectorValue !== null && withVectorValue !== void 0 ? withVectorValue : false,
|
|
138
140
|
},
|
|
139
141
|
};
|
|
140
142
|
const response = yield this.requestPost(requestParam);
|
package/dist/index.d.ts
CHANGED
|
@@ -79,10 +79,14 @@ export interface ListExtremeDataParams {
|
|
|
79
79
|
indexName: string;
|
|
80
80
|
/** 페이징된 결과를 받았을때 해당 key부터 다음 페이징까지 결과를 조회하는 기준 키 입니다. */
|
|
81
81
|
lastKey?: string | null;
|
|
82
|
+
/** 임베딩 값을 리턴받고 싶을때 사용. 단 페이로드가 커지는 만큼 성능에 영향을 끼칠 수 있음. */
|
|
83
|
+
withVectorValue?: boolean;
|
|
82
84
|
}
|
|
83
85
|
export interface ListAllExtremeDataParams {
|
|
84
86
|
/** 데이터 목록을 조회할 인덱스의 이름입니다. */
|
|
85
87
|
indexName: string;
|
|
88
|
+
/** 임베딩 값을 리턴받고 싶을때 사용. 단 페이로드가 커지는 만큼 성능에 영향을 끼칠 수 있음. */
|
|
89
|
+
withVectorValue?: boolean;
|
|
86
90
|
}
|
|
87
91
|
export interface GetExtremeDataParams {
|
|
88
92
|
/** 조회할 문서가 저장되어 있는 인덱스의 이름입니다. */
|
|
@@ -168,8 +172,8 @@ export declare class Vectocore {
|
|
|
168
172
|
listIndex(): Promise<any>;
|
|
169
173
|
putExtremeData({ indexName, docBody }: PutExtremeDataParams): Promise<any>;
|
|
170
174
|
getExtremeData({ indexName, documentId }: GetExtremeDataParams): Promise<any>;
|
|
171
|
-
listExtremeData({ indexName, lastKey }: ListExtremeDataParams): Promise<any>;
|
|
172
|
-
listAllExtremeData({ indexName }: ListAllExtremeDataParams): Promise<any>;
|
|
175
|
+
listExtremeData({ indexName, lastKey, withVectorValue }: ListExtremeDataParams): Promise<any>;
|
|
176
|
+
listAllExtremeData({ indexName, withVectorValue }: ListAllExtremeDataParams): Promise<any>;
|
|
173
177
|
deleteExtremeData({ indexName, documentId }: DeleteExtremeDataParams): Promise<any>;
|
|
174
178
|
extremeSearch({ mode, indexNames, question, top, rerank }: ExtremeSearchParams): Promise<any>;
|
|
175
179
|
webSearch({ question }: WebSearchParams): Promise<any>;
|
package/dist/mjs/index.js
CHANGED
|
@@ -88,11 +88,12 @@ export class Vectocore {
|
|
|
88
88
|
const response = await this.requestPost(requestParam);
|
|
89
89
|
return response;
|
|
90
90
|
}
|
|
91
|
-
async listExtremeData({ indexName, lastKey }) {
|
|
91
|
+
async listExtremeData({ indexName, lastKey, withVectorValue }) {
|
|
92
92
|
const requestParam = {
|
|
93
93
|
command: "list_extreme_data",
|
|
94
94
|
params: {
|
|
95
95
|
index_name: indexName,
|
|
96
|
+
with_vector_value: withVectorValue ?? false,
|
|
96
97
|
},
|
|
97
98
|
};
|
|
98
99
|
if (lastKey) {
|
|
@@ -101,11 +102,12 @@ export class Vectocore {
|
|
|
101
102
|
const response = await this.requestPost(requestParam);
|
|
102
103
|
return response;
|
|
103
104
|
}
|
|
104
|
-
async listAllExtremeData({ indexName }) {
|
|
105
|
+
async listAllExtremeData({ indexName, withVectorValue }) {
|
|
105
106
|
const requestParam = {
|
|
106
107
|
command: "list_all_extreme_data",
|
|
107
108
|
params: {
|
|
108
109
|
index_name: indexName,
|
|
110
|
+
with_vector_value: withVectorValue ?? false,
|
|
109
111
|
},
|
|
110
112
|
};
|
|
111
113
|
const response = await this.requestPost(requestParam);
|