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 CHANGED
@@ -75,11 +75,11 @@ class Vectocore {
75
75
  return response;
76
76
  });
77
77
  }
78
- putExtreamData(_a) {
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: "put_extream_data",
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
- getExtreamData(_a) {
104
+ getExtremeData(_a) {
105
105
  return __awaiter(this, arguments, void 0, function* ({ indexName, documentId }) {
106
106
  const requestParam = {
107
- command: "get_extream_data",
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
- listExtreamData(_a) {
117
+ listExtremeData(_a) {
118
118
  return __awaiter(this, arguments, void 0, function* ({ indexName, lastKey }) {
119
119
  const requestParam = {
120
- command: "list_extream_data",
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
- listAllExtreamData(_a) {
132
+ listAllExtremeData(_a) {
133
133
  return __awaiter(this, arguments, void 0, function* ({ indexName }) {
134
134
  const requestParam = {
135
- command: "list_all_extream_data",
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
- deleteExtreamData(_a) {
144
+ deleteExtremeData(_a) {
145
145
  return __awaiter(this, arguments, void 0, function* ({ indexName, documentId }) {
146
146
  const requestParam = {
147
- command: "delete_extream_data",
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
- extreamSearch(_a) {
157
+ extremeSearch(_a) {
158
158
  return __awaiter(this, arguments, void 0, function* ({ mode, indexNames, question, top, rerank }) {
159
159
  const requestParam = {
160
- command: "extream_search",
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 PutExtreamDataParams {
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 ListExtreamDataParams {
77
+ export interface ListExtremeDataParams {
78
78
  /** 데이터 목록을 조회할 인덱스의 이름입니다. */
79
79
  indexName: string;
80
80
  /** 페이징된 결과를 받았을때 해당 key부터 다음 페이징까지 결과를 조회하는 기준 키 입니다. */
81
81
  lastKey?: string | null;
82
82
  }
83
- export interface ListAllExtreamDataParams {
83
+ export interface ListAllExtremeDataParams {
84
84
  /** 데이터 목록을 조회할 인덱스의 이름입니다. */
85
85
  indexName: string;
86
86
  }
87
- export interface GetExtreamDataParams {
87
+ export interface GetExtremeDataParams {
88
88
  /** 조회할 문서가 저장되어 있는 인덱스의 이름입니다. */
89
89
  indexName: string;
90
90
  /** 조회할 문서의 ID입니다. */
91
91
  documentId: string;
92
92
  }
93
- export interface DeleteExtreamDataParams {
93
+ export interface DeleteExtremeDataParams {
94
94
  /** 삭제할 문서가 저장되어 있는 인덱스의 이름입니다. */
95
95
  indexName: string;
96
96
  /** 삭제할 문서의 ID입니다. */
97
97
  documentId: string;
98
98
  }
99
- export interface ExtreamSearchParams {
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
- putExtreamData({ indexName, docBody }: PutExtreamDataParams): Promise<any>;
170
- getExtreamData({ indexName, documentId }: GetExtreamDataParams): Promise<any>;
171
- listExtreamData({ indexName, lastKey }: ListExtreamDataParams): Promise<any>;
172
- listAllExtreamData({ indexName }: ListAllExtreamDataParams): Promise<any>;
173
- deleteExtreamData({ indexName, documentId }: DeleteExtreamDataParams): Promise<any>;
174
- extreamSearch({ mode, indexNames, question, top, rerank }: ExtreamSearchParams): Promise<any>;
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 putExtreamData({ indexName, docBody }) {
57
+ async putExtremeData({ indexName, docBody }) {
58
58
  const requestParam = {
59
- command: "put_extream_data",
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 getExtreamData({ indexName, documentId }) {
80
+ async getExtremeData({ indexName, documentId }) {
81
81
  const requestParam = {
82
- command: "get_extream_data",
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 listExtreamData({ indexName, lastKey }) {
91
+ async listExtremeData({ indexName, lastKey }) {
92
92
  const requestParam = {
93
- command: "list_extream_data",
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 listAllExtreamData({ indexName }) {
104
+ async listAllExtremeData({ indexName }) {
105
105
  const requestParam = {
106
- command: "list_all_extream_data",
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 deleteExtreamData({ indexName, documentId }) {
114
+ async deleteExtremeData({ indexName, documentId }) {
115
115
  const requestParam = {
116
- command: "delete_extream_data",
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 extreamSearch({ mode, indexNames, question, top, rerank }) {
125
+ async extremeSearch({ mode, indexNames, question, top, rerank }) {
126
126
  const requestParam = {
127
- command: "extream_search",
127
+ command: "extreme_search",
128
128
  params: {
129
129
  mode: mode ?? "vector",
130
130
  index_names: indexNames ?? [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vectocore4",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/cjs/index.js",