ninegrid2 6.510.0 → 6.512.0
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/ai/aiContainer.js +14 -10
- package/dist/bundle.cjs.js +14 -10
- package/dist/bundle.esm.js +14 -10
- package/package.json +1 -1
- package/src/ai/aiContainer.js +14 -10
package/dist/ai/aiContainer.js
CHANGED
|
@@ -99,6 +99,10 @@ class aiContainer extends HTMLElement
|
|
|
99
99
|
};
|
|
100
100
|
|
|
101
101
|
#generateQdrantFilter = async (userInput) => {
|
|
102
|
+
return JSON.parse(userInput);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
#generateQdrantFilter1 = async (userInput) => {
|
|
102
106
|
|
|
103
107
|
const systemMessage = "You are a helpful assistant.";
|
|
104
108
|
// Qdrant 필터로 변환하기 위한 프롬프트 엔지니어링
|
|
@@ -169,16 +173,16 @@ filterString = "a" + filterString;
|
|
|
169
173
|
//}
|
|
170
174
|
}
|
|
171
175
|
|
|
172
|
-
#q1 = () => {
|
|
173
|
-
this.#generateQdrantFilter();
|
|
176
|
+
#q1 = async () => {
|
|
177
|
+
await this.#generateQdrantFilter();
|
|
174
178
|
};
|
|
175
179
|
|
|
176
|
-
#q2 = () => {
|
|
177
|
-
this.#generateQdrantFilter();
|
|
180
|
+
#q2 = async () => {
|
|
181
|
+
await this.#generateQdrantFilter();
|
|
178
182
|
};
|
|
179
183
|
|
|
180
|
-
#q3 = () => {
|
|
181
|
-
this.#generateQdrantFilter();
|
|
184
|
+
#q3 = async () => {
|
|
185
|
+
await this.#generateQdrantFilter();
|
|
182
186
|
};
|
|
183
187
|
|
|
184
188
|
#init = (info) => {
|
|
@@ -193,7 +197,7 @@ this.#generateQdrantFilter();
|
|
|
193
197
|
this.shadowRoot.querySelectorAll(".menu-icon").forEach(el => el.addEventListener("click", this.#menuClickHandler));
|
|
194
198
|
};
|
|
195
199
|
|
|
196
|
-
#keydownHandler = (e) => {
|
|
200
|
+
#keydownHandler = async (e) => {
|
|
197
201
|
if (e.key !== "Enter") return;
|
|
198
202
|
|
|
199
203
|
if (this.#target.tagName === "NINE-GRID") {
|
|
@@ -222,13 +226,13 @@ this.#generateQdrantFilter();
|
|
|
222
226
|
this.#createModel();
|
|
223
227
|
|
|
224
228
|
if (this.shadowRoot.querySelector(".menu-filter").classList.contains("active")) {
|
|
225
|
-
this.#q1();
|
|
229
|
+
await this.#q1();
|
|
226
230
|
}
|
|
227
231
|
else if (this.shadowRoot.querySelector(".menu-general").classList.contains("active")) {
|
|
228
|
-
this.#q2();
|
|
232
|
+
await this.#q2();
|
|
229
233
|
}
|
|
230
234
|
else {
|
|
231
|
-
this.#q3();
|
|
235
|
+
await this.#q3();
|
|
232
236
|
}
|
|
233
237
|
} catch (error) {
|
|
234
238
|
console.error("Error generating Qdrant filter:", error);
|
package/dist/bundle.cjs.js
CHANGED
|
@@ -27953,6 +27953,10 @@ class aiContainer extends HTMLElement
|
|
|
27953
27953
|
};
|
|
27954
27954
|
|
|
27955
27955
|
#generateQdrantFilter = async (userInput) => {
|
|
27956
|
+
return JSON.parse(userInput);
|
|
27957
|
+
}
|
|
27958
|
+
|
|
27959
|
+
#generateQdrantFilter1 = async (userInput) => {
|
|
27956
27960
|
|
|
27957
27961
|
const systemMessage = "You are a helpful assistant.";
|
|
27958
27962
|
// Qdrant 필터로 변환하기 위한 프롬프트 엔지니어링
|
|
@@ -28023,16 +28027,16 @@ filterString = "a" + filterString;
|
|
|
28023
28027
|
//}
|
|
28024
28028
|
}
|
|
28025
28029
|
|
|
28026
|
-
#q1 = () => {
|
|
28027
|
-
this.#generateQdrantFilter();
|
|
28030
|
+
#q1 = async () => {
|
|
28031
|
+
await this.#generateQdrantFilter();
|
|
28028
28032
|
};
|
|
28029
28033
|
|
|
28030
|
-
#q2 = () => {
|
|
28031
|
-
this.#generateQdrantFilter();
|
|
28034
|
+
#q2 = async () => {
|
|
28035
|
+
await this.#generateQdrantFilter();
|
|
28032
28036
|
};
|
|
28033
28037
|
|
|
28034
|
-
#q3 = () => {
|
|
28035
|
-
this.#generateQdrantFilter();
|
|
28038
|
+
#q3 = async () => {
|
|
28039
|
+
await this.#generateQdrantFilter();
|
|
28036
28040
|
};
|
|
28037
28041
|
|
|
28038
28042
|
#init = (info) => {
|
|
@@ -28047,7 +28051,7 @@ this.#generateQdrantFilter();
|
|
|
28047
28051
|
this.shadowRoot.querySelectorAll(".menu-icon").forEach(el => el.addEventListener("click", this.#menuClickHandler));
|
|
28048
28052
|
};
|
|
28049
28053
|
|
|
28050
|
-
#keydownHandler = (e) => {
|
|
28054
|
+
#keydownHandler = async (e) => {
|
|
28051
28055
|
if (e.key !== "Enter") return;
|
|
28052
28056
|
|
|
28053
28057
|
if (this.#target.tagName === "NINE-GRID") ;
|
|
@@ -28075,13 +28079,13 @@ this.#generateQdrantFilter();
|
|
|
28075
28079
|
this.#createModel();
|
|
28076
28080
|
|
|
28077
28081
|
if (this.shadowRoot.querySelector(".menu-filter").classList.contains("active")) {
|
|
28078
|
-
this.#q1();
|
|
28082
|
+
await this.#q1();
|
|
28079
28083
|
}
|
|
28080
28084
|
else if (this.shadowRoot.querySelector(".menu-general").classList.contains("active")) {
|
|
28081
|
-
this.#q2();
|
|
28085
|
+
await this.#q2();
|
|
28082
28086
|
}
|
|
28083
28087
|
else {
|
|
28084
|
-
this.#q3();
|
|
28088
|
+
await this.#q3();
|
|
28085
28089
|
}
|
|
28086
28090
|
} catch (error) {
|
|
28087
28091
|
console.error("Error generating Qdrant filter:", error);
|
package/dist/bundle.esm.js
CHANGED
|
@@ -27951,6 +27951,10 @@ class aiContainer extends HTMLElement
|
|
|
27951
27951
|
};
|
|
27952
27952
|
|
|
27953
27953
|
#generateQdrantFilter = async (userInput) => {
|
|
27954
|
+
return JSON.parse(userInput);
|
|
27955
|
+
}
|
|
27956
|
+
|
|
27957
|
+
#generateQdrantFilter1 = async (userInput) => {
|
|
27954
27958
|
|
|
27955
27959
|
const systemMessage = "You are a helpful assistant.";
|
|
27956
27960
|
// Qdrant 필터로 변환하기 위한 프롬프트 엔지니어링
|
|
@@ -28021,16 +28025,16 @@ filterString = "a" + filterString;
|
|
|
28021
28025
|
//}
|
|
28022
28026
|
}
|
|
28023
28027
|
|
|
28024
|
-
#q1 = () => {
|
|
28025
|
-
this.#generateQdrantFilter();
|
|
28028
|
+
#q1 = async () => {
|
|
28029
|
+
await this.#generateQdrantFilter();
|
|
28026
28030
|
};
|
|
28027
28031
|
|
|
28028
|
-
#q2 = () => {
|
|
28029
|
-
this.#generateQdrantFilter();
|
|
28032
|
+
#q2 = async () => {
|
|
28033
|
+
await this.#generateQdrantFilter();
|
|
28030
28034
|
};
|
|
28031
28035
|
|
|
28032
|
-
#q3 = () => {
|
|
28033
|
-
this.#generateQdrantFilter();
|
|
28036
|
+
#q3 = async () => {
|
|
28037
|
+
await this.#generateQdrantFilter();
|
|
28034
28038
|
};
|
|
28035
28039
|
|
|
28036
28040
|
#init = (info) => {
|
|
@@ -28045,7 +28049,7 @@ this.#generateQdrantFilter();
|
|
|
28045
28049
|
this.shadowRoot.querySelectorAll(".menu-icon").forEach(el => el.addEventListener("click", this.#menuClickHandler));
|
|
28046
28050
|
};
|
|
28047
28051
|
|
|
28048
|
-
#keydownHandler = (e) => {
|
|
28052
|
+
#keydownHandler = async (e) => {
|
|
28049
28053
|
if (e.key !== "Enter") return;
|
|
28050
28054
|
|
|
28051
28055
|
if (this.#target.tagName === "NINE-GRID") ;
|
|
@@ -28073,13 +28077,13 @@ this.#generateQdrantFilter();
|
|
|
28073
28077
|
this.#createModel();
|
|
28074
28078
|
|
|
28075
28079
|
if (this.shadowRoot.querySelector(".menu-filter").classList.contains("active")) {
|
|
28076
|
-
this.#q1();
|
|
28080
|
+
await this.#q1();
|
|
28077
28081
|
}
|
|
28078
28082
|
else if (this.shadowRoot.querySelector(".menu-general").classList.contains("active")) {
|
|
28079
|
-
this.#q2();
|
|
28083
|
+
await this.#q2();
|
|
28080
28084
|
}
|
|
28081
28085
|
else {
|
|
28082
|
-
this.#q3();
|
|
28086
|
+
await this.#q3();
|
|
28083
28087
|
}
|
|
28084
28088
|
} catch (error) {
|
|
28085
28089
|
console.error("Error generating Qdrant filter:", error);
|
package/package.json
CHANGED
package/src/ai/aiContainer.js
CHANGED
|
@@ -99,6 +99,10 @@ class aiContainer extends HTMLElement
|
|
|
99
99
|
};
|
|
100
100
|
|
|
101
101
|
#generateQdrantFilter = async (userInput) => {
|
|
102
|
+
return JSON.parse(userInput);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
#generateQdrantFilter1 = async (userInput) => {
|
|
102
106
|
|
|
103
107
|
const systemMessage = "You are a helpful assistant.";
|
|
104
108
|
// Qdrant 필터로 변환하기 위한 프롬프트 엔지니어링
|
|
@@ -169,16 +173,16 @@ filterString = "a" + filterString;
|
|
|
169
173
|
//}
|
|
170
174
|
}
|
|
171
175
|
|
|
172
|
-
#q1 = () => {
|
|
173
|
-
this.#generateQdrantFilter();
|
|
176
|
+
#q1 = async () => {
|
|
177
|
+
await this.#generateQdrantFilter();
|
|
174
178
|
};
|
|
175
179
|
|
|
176
|
-
#q2 = () => {
|
|
177
|
-
this.#generateQdrantFilter();
|
|
180
|
+
#q2 = async () => {
|
|
181
|
+
await this.#generateQdrantFilter();
|
|
178
182
|
};
|
|
179
183
|
|
|
180
|
-
#q3 = () => {
|
|
181
|
-
this.#generateQdrantFilter();
|
|
184
|
+
#q3 = async () => {
|
|
185
|
+
await this.#generateQdrantFilter();
|
|
182
186
|
};
|
|
183
187
|
|
|
184
188
|
#init = (info) => {
|
|
@@ -193,7 +197,7 @@ this.#generateQdrantFilter();
|
|
|
193
197
|
this.shadowRoot.querySelectorAll(".menu-icon").forEach(el => el.addEventListener("click", this.#menuClickHandler));
|
|
194
198
|
};
|
|
195
199
|
|
|
196
|
-
#keydownHandler = (e) => {
|
|
200
|
+
#keydownHandler = async (e) => {
|
|
197
201
|
if (e.key !== "Enter") return;
|
|
198
202
|
|
|
199
203
|
if (this.#target.tagName === "NINE-GRID") {
|
|
@@ -222,13 +226,13 @@ this.#generateQdrantFilter();
|
|
|
222
226
|
this.#createModel();
|
|
223
227
|
|
|
224
228
|
if (this.shadowRoot.querySelector(".menu-filter").classList.contains("active")) {
|
|
225
|
-
this.#q1();
|
|
229
|
+
await this.#q1();
|
|
226
230
|
}
|
|
227
231
|
else if (this.shadowRoot.querySelector(".menu-general").classList.contains("active")) {
|
|
228
|
-
this.#q2();
|
|
232
|
+
await this.#q2();
|
|
229
233
|
}
|
|
230
234
|
else {
|
|
231
|
-
this.#q3();
|
|
235
|
+
await this.#q3();
|
|
232
236
|
}
|
|
233
237
|
} catch (error) {
|
|
234
238
|
console.error("Error generating Qdrant filter:", error);
|