ninegrid2 6.535.0 → 6.537.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 +2 -4
- package/dist/ai/aiMessage.js +1 -1
- package/dist/bundle.cjs.js +3 -5
- package/dist/bundle.esm.js +3 -5
- package/package.json +1 -1
- package/src/ai/aiContainer.js +2 -4
- package/src/ai/aiMessage.js +1 -1
package/dist/ai/aiContainer.js
CHANGED
|
@@ -269,7 +269,7 @@ class aiContainer extends HTMLElement
|
|
|
269
269
|
}
|
|
270
270
|
else {
|
|
271
271
|
//let arr = searchResults.map(item => item.payload);
|
|
272
|
-
let contextText = `당신은 주어진 정보를 참고하여 답변하는 AI 입니다. 주어진 '정보'를 바탕으로 데이타를 분석해줘. 데이타는 "context" 항목에 있어. 제공될 데이터는 CSV 형식이며, 첫 번째 줄은 컬럼명입니다. 이전에 너가 찾아준 데이타를 다시 보내는거니깐 첫 줄에는 "${
|
|
272
|
+
let contextText = `당신은 주어진 정보를 참고하여 답변하는 AI 입니다. 주어진 '정보'를 바탕으로 데이타를 분석해줘. 데이타는 "context" 항목에 있어. 제공될 데이터는 CSV 형식이며, 첫 번째 줄은 컬럼명입니다. 이전에 너가 찾아준 데이타를 다시 보내는거니깐 첫 줄에는 "${searchResults.length}건을 찾았습니다." 라고 답변을 달아줘.\n\ncontext: `;
|
|
273
273
|
|
|
274
274
|
let contextText1 = `당신은 주어진 데이터를 분석하고 핵심 인사이트를 도출하는 전문 데이터 분석가입니다.
|
|
275
275
|
|
|
@@ -297,8 +297,6 @@ class aiContainer extends HTMLElement
|
|
|
297
297
|
contextText += "\n";
|
|
298
298
|
|
|
299
299
|
for (const o of searchResults) {
|
|
300
|
-
|
|
301
|
-
console.log(o);
|
|
302
300
|
columnInfo.forEach(info => {
|
|
303
301
|
contextText += `${o[info.name]}\t`;
|
|
304
302
|
});
|
|
@@ -319,7 +317,7 @@ class aiContainer extends HTMLElement
|
|
|
319
317
|
|
|
320
318
|
const result = await chain.invoke();
|
|
321
319
|
|
|
322
|
-
elAiChat.add("ai", result, columnInfo,
|
|
320
|
+
elAiChat.add("ai", result, columnInfo, searchResults, uniqueKey);
|
|
323
321
|
}
|
|
324
322
|
};
|
|
325
323
|
|
package/dist/ai/aiMessage.js
CHANGED
|
@@ -131,7 +131,7 @@ class aiMessage extends HTMLElement
|
|
|
131
131
|
|
|
132
132
|
const html = `
|
|
133
133
|
<nine-grid class="ai" display-row-count="${rowCount > 5 ? 5 : rowCount}" show-title-bar="false" show-menu-icon="false" show-status-bar="false" select-type="row" auto-fit-col="true" show-title-bar="true" show-menu-icon="true" show-status-bar="true" enable-fixed-col="true" row-resizable="false" col-movable="true">
|
|
134
|
-
<table>
|
|
134
|
+
<table style="display:none;">
|
|
135
135
|
<colgroup>
|
|
136
136
|
<col background-color="#888" width="30" fixed="left" />
|
|
137
137
|
${colgroup}
|
package/dist/bundle.cjs.js
CHANGED
|
@@ -27827,7 +27827,7 @@ class aiMessage extends HTMLElement
|
|
|
27827
27827
|
|
|
27828
27828
|
const html = `
|
|
27829
27829
|
<nine-grid class="ai" display-row-count="${rowCount > 5 ? 5 : rowCount}" show-title-bar="false" show-menu-icon="false" show-status-bar="false" select-type="row" auto-fit-col="true" show-title-bar="true" show-menu-icon="true" show-status-bar="true" enable-fixed-col="true" row-resizable="false" col-movable="true">
|
|
27830
|
-
<table>
|
|
27830
|
+
<table style="display:none;">
|
|
27831
27831
|
<colgroup>
|
|
27832
27832
|
<col background-color="#888" width="30" fixed="left" />
|
|
27833
27833
|
${colgroup}
|
|
@@ -54462,7 +54462,7 @@ class aiContainer extends HTMLElement
|
|
|
54462
54462
|
}
|
|
54463
54463
|
else {
|
|
54464
54464
|
//let arr = searchResults.map(item => item.payload);
|
|
54465
|
-
let contextText = `당신은 주어진 정보를 참고하여 답변하는 AI 입니다. 주어진 '정보'를 바탕으로 데이타를 분석해줘. 데이타는 "context" 항목에 있어. 제공될 데이터는 CSV 형식이며, 첫 번째 줄은 컬럼명입니다. 이전에 너가 찾아준 데이타를 다시 보내는거니깐 첫 줄에는 "${
|
|
54465
|
+
let contextText = `당신은 주어진 정보를 참고하여 답변하는 AI 입니다. 주어진 '정보'를 바탕으로 데이타를 분석해줘. 데이타는 "context" 항목에 있어. 제공될 데이터는 CSV 형식이며, 첫 번째 줄은 컬럼명입니다. 이전에 너가 찾아준 데이타를 다시 보내는거니깐 첫 줄에는 "${searchResults.length}건을 찾았습니다." 라고 답변을 달아줘.\n\ncontext: `;
|
|
54466
54466
|
|
|
54467
54467
|
columnInfo.forEach(info => {
|
|
54468
54468
|
contextText += `${info.desc}\t`;
|
|
@@ -54470,8 +54470,6 @@ class aiContainer extends HTMLElement
|
|
|
54470
54470
|
contextText += "\n";
|
|
54471
54471
|
|
|
54472
54472
|
for (const o of searchResults) {
|
|
54473
|
-
|
|
54474
|
-
console.log(o);
|
|
54475
54473
|
columnInfo.forEach(info => {
|
|
54476
54474
|
contextText += `${o[info.name]}\t`;
|
|
54477
54475
|
});
|
|
@@ -54492,7 +54490,7 @@ class aiContainer extends HTMLElement
|
|
|
54492
54490
|
|
|
54493
54491
|
const result = await chain.invoke();
|
|
54494
54492
|
|
|
54495
|
-
elAiChat.add("ai", result, columnInfo,
|
|
54493
|
+
elAiChat.add("ai", result, columnInfo, searchResults, uniqueKey);
|
|
54496
54494
|
}
|
|
54497
54495
|
};
|
|
54498
54496
|
|
package/dist/bundle.esm.js
CHANGED
|
@@ -27825,7 +27825,7 @@ class aiMessage extends HTMLElement
|
|
|
27825
27825
|
|
|
27826
27826
|
const html = `
|
|
27827
27827
|
<nine-grid class="ai" display-row-count="${rowCount > 5 ? 5 : rowCount}" show-title-bar="false" show-menu-icon="false" show-status-bar="false" select-type="row" auto-fit-col="true" show-title-bar="true" show-menu-icon="true" show-status-bar="true" enable-fixed-col="true" row-resizable="false" col-movable="true">
|
|
27828
|
-
<table>
|
|
27828
|
+
<table style="display:none;">
|
|
27829
27829
|
<colgroup>
|
|
27830
27830
|
<col background-color="#888" width="30" fixed="left" />
|
|
27831
27831
|
${colgroup}
|
|
@@ -54460,7 +54460,7 @@ class aiContainer extends HTMLElement
|
|
|
54460
54460
|
}
|
|
54461
54461
|
else {
|
|
54462
54462
|
//let arr = searchResults.map(item => item.payload);
|
|
54463
|
-
let contextText = `당신은 주어진 정보를 참고하여 답변하는 AI 입니다. 주어진 '정보'를 바탕으로 데이타를 분석해줘. 데이타는 "context" 항목에 있어. 제공될 데이터는 CSV 형식이며, 첫 번째 줄은 컬럼명입니다. 이전에 너가 찾아준 데이타를 다시 보내는거니깐 첫 줄에는 "${
|
|
54463
|
+
let contextText = `당신은 주어진 정보를 참고하여 답변하는 AI 입니다. 주어진 '정보'를 바탕으로 데이타를 분석해줘. 데이타는 "context" 항목에 있어. 제공될 데이터는 CSV 형식이며, 첫 번째 줄은 컬럼명입니다. 이전에 너가 찾아준 데이타를 다시 보내는거니깐 첫 줄에는 "${searchResults.length}건을 찾았습니다." 라고 답변을 달아줘.\n\ncontext: `;
|
|
54464
54464
|
|
|
54465
54465
|
columnInfo.forEach(info => {
|
|
54466
54466
|
contextText += `${info.desc}\t`;
|
|
@@ -54468,8 +54468,6 @@ class aiContainer extends HTMLElement
|
|
|
54468
54468
|
contextText += "\n";
|
|
54469
54469
|
|
|
54470
54470
|
for (const o of searchResults) {
|
|
54471
|
-
|
|
54472
|
-
console.log(o);
|
|
54473
54471
|
columnInfo.forEach(info => {
|
|
54474
54472
|
contextText += `${o[info.name]}\t`;
|
|
54475
54473
|
});
|
|
@@ -54490,7 +54488,7 @@ class aiContainer extends HTMLElement
|
|
|
54490
54488
|
|
|
54491
54489
|
const result = await chain.invoke();
|
|
54492
54490
|
|
|
54493
|
-
elAiChat.add("ai", result, columnInfo,
|
|
54491
|
+
elAiChat.add("ai", result, columnInfo, searchResults, uniqueKey);
|
|
54494
54492
|
}
|
|
54495
54493
|
};
|
|
54496
54494
|
|
package/package.json
CHANGED
package/src/ai/aiContainer.js
CHANGED
|
@@ -269,7 +269,7 @@ class aiContainer extends HTMLElement
|
|
|
269
269
|
}
|
|
270
270
|
else {
|
|
271
271
|
//let arr = searchResults.map(item => item.payload);
|
|
272
|
-
let contextText = `당신은 주어진 정보를 참고하여 답변하는 AI 입니다. 주어진 '정보'를 바탕으로 데이타를 분석해줘. 데이타는 "context" 항목에 있어. 제공될 데이터는 CSV 형식이며, 첫 번째 줄은 컬럼명입니다. 이전에 너가 찾아준 데이타를 다시 보내는거니깐 첫 줄에는 "${
|
|
272
|
+
let contextText = `당신은 주어진 정보를 참고하여 답변하는 AI 입니다. 주어진 '정보'를 바탕으로 데이타를 분석해줘. 데이타는 "context" 항목에 있어. 제공될 데이터는 CSV 형식이며, 첫 번째 줄은 컬럼명입니다. 이전에 너가 찾아준 데이타를 다시 보내는거니깐 첫 줄에는 "${searchResults.length}건을 찾았습니다." 라고 답변을 달아줘.\n\ncontext: `;
|
|
273
273
|
|
|
274
274
|
let contextText1 = `당신은 주어진 데이터를 분석하고 핵심 인사이트를 도출하는 전문 데이터 분석가입니다.
|
|
275
275
|
|
|
@@ -297,8 +297,6 @@ class aiContainer extends HTMLElement
|
|
|
297
297
|
contextText += "\n";
|
|
298
298
|
|
|
299
299
|
for (const o of searchResults) {
|
|
300
|
-
|
|
301
|
-
console.log(o);
|
|
302
300
|
columnInfo.forEach(info => {
|
|
303
301
|
contextText += `${o[info.name]}\t`;
|
|
304
302
|
});
|
|
@@ -319,7 +317,7 @@ class aiContainer extends HTMLElement
|
|
|
319
317
|
|
|
320
318
|
const result = await chain.invoke();
|
|
321
319
|
|
|
322
|
-
elAiChat.add("ai", result, columnInfo,
|
|
320
|
+
elAiChat.add("ai", result, columnInfo, searchResults, uniqueKey);
|
|
323
321
|
}
|
|
324
322
|
};
|
|
325
323
|
|
package/src/ai/aiMessage.js
CHANGED
|
@@ -131,7 +131,7 @@ class aiMessage extends HTMLElement
|
|
|
131
131
|
|
|
132
132
|
const html = `
|
|
133
133
|
<nine-grid class="ai" display-row-count="${rowCount > 5 ? 5 : rowCount}" show-title-bar="false" show-menu-icon="false" show-status-bar="false" select-type="row" auto-fit-col="true" show-title-bar="true" show-menu-icon="true" show-status-bar="true" enable-fixed-col="true" row-resizable="false" col-movable="true">
|
|
134
|
-
<table>
|
|
134
|
+
<table style="display:none;">
|
|
135
135
|
<colgroup>
|
|
136
136
|
<col background-color="#888" width="30" fixed="left" />
|
|
137
137
|
${colgroup}
|