vectocore4 0.0.6 → 0.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 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) {
@@ -129,12 +130,21 @@ class Vectocore {
129
130
  return response;
130
131
  });
131
132
  }
133
+ /**
134
+ * 특정 인덱스에 저장된 모든 지식 데이터를 리스트로 가져옵니다.
135
+ * * @param {Object} param0 - 조회 매개변수
136
+ * @param {string} param0.indexName - 데이터를 추출할 **인덱스의 고유 이름**입니다. (필수)
137
+ * @param {boolean} [param0.withVectorValue=false] - 결과 데이터에 **고차원 벡터값(keywords_vector)을 포함할지** 여부입니다.
138
+ * true 설정 시 응답 크기가 커질 수 있습니다.
139
+ * * @returns {Promise<any>} 서버로부터 전달받은 데이터 목록 응답
140
+ */
132
141
  listAllExtremeData(_a) {
133
- return __awaiter(this, arguments, void 0, function* ({ indexName }) {
142
+ return __awaiter(this, arguments, void 0, function* ({ indexName, withVectorValue }) {
134
143
  const requestParam = {
135
144
  command: "list_all_extreme_data",
136
145
  params: {
137
146
  index_name: indexName,
147
+ with_vector_value: withVectorValue !== null && withVectorValue !== void 0 ? withVectorValue : false,
138
148
  },
139
149
  };
140
150
  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,16 @@ 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
+ /**
177
+ * 특정 인덱스에 저장된 모든 지식 데이터를 리스트로 가져옵니다.
178
+ * * @param {Object} param0 - 조회 매개변수
179
+ * @param {string} param0.indexName - 데이터를 추출할 **인덱스의 고유 이름**입니다. (필수)
180
+ * @param {boolean} [param0.withVectorValue=false] - 결과 데이터에 **고차원 벡터값(keywords_vector)을 포함할지** 여부입니다.
181
+ * true 설정 시 응답 크기가 커질 수 있습니다.
182
+ * * @returns {Promise<any>} 서버로부터 전달받은 데이터 목록 응답
183
+ */
184
+ listAllExtremeData({ indexName, withVectorValue }: ListAllExtremeDataParams): Promise<any>;
173
185
  deleteExtremeData({ indexName, documentId }: DeleteExtremeDataParams): Promise<any>;
174
186
  extremeSearch({ mode, indexNames, question, top, rerank }: ExtremeSearchParams): Promise<any>;
175
187
  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,20 @@ export class Vectocore {
101
102
  const response = await this.requestPost(requestParam);
102
103
  return response;
103
104
  }
104
- async listAllExtremeData({ indexName }) {
105
+ /**
106
+ * 특정 인덱스에 저장된 모든 지식 데이터를 리스트로 가져옵니다.
107
+ * * @param {Object} param0 - 조회 매개변수
108
+ * @param {string} param0.indexName - 데이터를 추출할 **인덱스의 고유 이름**입니다. (필수)
109
+ * @param {boolean} [param0.withVectorValue=false] - 결과 데이터에 **고차원 벡터값(keywords_vector)을 포함할지** 여부입니다.
110
+ * true 설정 시 응답 크기가 커질 수 있습니다.
111
+ * * @returns {Promise<any>} 서버로부터 전달받은 데이터 목록 응답
112
+ */
113
+ async listAllExtremeData({ indexName, withVectorValue }) {
105
114
  const requestParam = {
106
115
  command: "list_all_extreme_data",
107
116
  params: {
108
117
  index_name: indexName,
118
+ with_vector_value: withVectorValue ?? false,
109
119
  },
110
120
  };
111
121
  const response = await this.requestPost(requestParam);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vectocore4",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "description": "",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/cjs/index.js",