ninegrid2 6.533.0 → 6.534.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.
@@ -264,10 +264,11 @@ class aiContainer extends HTMLElement
264
264
  elAiChat.add("ai", "관련된 정보가 없습니다.");
265
265
  }
266
266
  else if (searchResults.length > 100) {
267
- elAiChat.add("ai", `${searchResults.length}건의 정보를 찾았습니다.`, columnInfo, searchResults.map(item => item.payload), uniqueKey);
267
+ //elAiChat.add("ai", `${searchResults.length}건의 정보를 찾았습니다.`, columnInfo, searchResults.map(item => item.payload), uniqueKey);
268
+ elAiChat.add("ai", `${searchResults.length}건의 정보를 찾았습니다.`, columnInfo, searchResults, uniqueKey);
268
269
  }
269
270
  else {
270
- let arr = searchResults.map(item => item.payload);
271
+ //let arr = searchResults.map(item => item.payload);
271
272
  let contextText = `당신은 주어진 정보를 참고하여 답변하는 AI 입니다. 주어진 '정보'를 바탕으로 데이타를 분석해줘. 데이타는 "context" 항목에 있어. 제공될 데이터는 CSV 형식이며, 첫 번째 줄은 컬럼명입니다. 이전에 너가 찾아준 데이타를 다시 보내는거니깐 첫 줄에는 "${arr.length}건을 찾았습니다." 라고 답변을 달아줘.\n\ncontext: `;
272
273
 
273
274
  let contextText1 = `당신은 주어진 데이터를 분석하고 핵심 인사이트를 도출하는 전문 데이터 분석가입니다.
@@ -295,7 +296,9 @@ class aiContainer extends HTMLElement
295
296
  });
296
297
  contextText += "\n";
297
298
 
298
- for (const o of arr) {
299
+ for (const o of searchResults) {
300
+
301
+ console.log(o);
299
302
  columnInfo.forEach(info => {
300
303
  contextText += `${o[info.name]}\t`;
301
304
  });
@@ -54457,10 +54457,11 @@ class aiContainer extends HTMLElement
54457
54457
  elAiChat.add("ai", "관련된 정보가 없습니다.");
54458
54458
  }
54459
54459
  else if (searchResults.length > 100) {
54460
- elAiChat.add("ai", `${searchResults.length}건의 정보를 찾았습니다.`, columnInfo, searchResults.map(item => item.payload), uniqueKey);
54460
+ //elAiChat.add("ai", `${searchResults.length}건의 정보를 찾았습니다.`, columnInfo, searchResults.map(item => item.payload), uniqueKey);
54461
+ elAiChat.add("ai", `${searchResults.length}건의 정보를 찾았습니다.`, columnInfo, searchResults, uniqueKey);
54461
54462
  }
54462
54463
  else {
54463
- let arr = searchResults.map(item => item.payload);
54464
+ //let arr = searchResults.map(item => item.payload);
54464
54465
  let contextText = `당신은 주어진 정보를 참고하여 답변하는 AI 입니다. 주어진 '정보'를 바탕으로 데이타를 분석해줘. 데이타는 "context" 항목에 있어. 제공될 데이터는 CSV 형식이며, 첫 번째 줄은 컬럼명입니다. 이전에 너가 찾아준 데이타를 다시 보내는거니깐 첫 줄에는 "${arr.length}건을 찾았습니다." 라고 답변을 달아줘.\n\ncontext: `;
54465
54466
 
54466
54467
  columnInfo.forEach(info => {
@@ -54468,7 +54469,9 @@ class aiContainer extends HTMLElement
54468
54469
  });
54469
54470
  contextText += "\n";
54470
54471
 
54471
- for (const o of arr) {
54472
+ for (const o of searchResults) {
54473
+
54474
+ console.log(o);
54472
54475
  columnInfo.forEach(info => {
54473
54476
  contextText += `${o[info.name]}\t`;
54474
54477
  });
@@ -54455,10 +54455,11 @@ class aiContainer extends HTMLElement
54455
54455
  elAiChat.add("ai", "관련된 정보가 없습니다.");
54456
54456
  }
54457
54457
  else if (searchResults.length > 100) {
54458
- elAiChat.add("ai", `${searchResults.length}건의 정보를 찾았습니다.`, columnInfo, searchResults.map(item => item.payload), uniqueKey);
54458
+ //elAiChat.add("ai", `${searchResults.length}건의 정보를 찾았습니다.`, columnInfo, searchResults.map(item => item.payload), uniqueKey);
54459
+ elAiChat.add("ai", `${searchResults.length}건의 정보를 찾았습니다.`, columnInfo, searchResults, uniqueKey);
54459
54460
  }
54460
54461
  else {
54461
- let arr = searchResults.map(item => item.payload);
54462
+ //let arr = searchResults.map(item => item.payload);
54462
54463
  let contextText = `당신은 주어진 정보를 참고하여 답변하는 AI 입니다. 주어진 '정보'를 바탕으로 데이타를 분석해줘. 데이타는 "context" 항목에 있어. 제공될 데이터는 CSV 형식이며, 첫 번째 줄은 컬럼명입니다. 이전에 너가 찾아준 데이타를 다시 보내는거니깐 첫 줄에는 "${arr.length}건을 찾았습니다." 라고 답변을 달아줘.\n\ncontext: `;
54463
54464
 
54464
54465
  columnInfo.forEach(info => {
@@ -54466,7 +54467,9 @@ class aiContainer extends HTMLElement
54466
54467
  });
54467
54468
  contextText += "\n";
54468
54469
 
54469
- for (const o of arr) {
54470
+ for (const o of searchResults) {
54471
+
54472
+ console.log(o);
54470
54473
  columnInfo.forEach(info => {
54471
54474
  contextText += `${o[info.name]}\t`;
54472
54475
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.533.0",
4
+ "version": "6.534.0",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
7
7
  "import": "./dist/index.js",
@@ -264,10 +264,11 @@ class aiContainer extends HTMLElement
264
264
  elAiChat.add("ai", "관련된 정보가 없습니다.");
265
265
  }
266
266
  else if (searchResults.length > 100) {
267
- elAiChat.add("ai", `${searchResults.length}건의 정보를 찾았습니다.`, columnInfo, searchResults.map(item => item.payload), uniqueKey);
267
+ //elAiChat.add("ai", `${searchResults.length}건의 정보를 찾았습니다.`, columnInfo, searchResults.map(item => item.payload), uniqueKey);
268
+ elAiChat.add("ai", `${searchResults.length}건의 정보를 찾았습니다.`, columnInfo, searchResults, uniqueKey);
268
269
  }
269
270
  else {
270
- let arr = searchResults.map(item => item.payload);
271
+ //let arr = searchResults.map(item => item.payload);
271
272
  let contextText = `당신은 주어진 정보를 참고하여 답변하는 AI 입니다. 주어진 '정보'를 바탕으로 데이타를 분석해줘. 데이타는 "context" 항목에 있어. 제공될 데이터는 CSV 형식이며, 첫 번째 줄은 컬럼명입니다. 이전에 너가 찾아준 데이타를 다시 보내는거니깐 첫 줄에는 "${arr.length}건을 찾았습니다." 라고 답변을 달아줘.\n\ncontext: `;
272
273
 
273
274
  let contextText1 = `당신은 주어진 데이터를 분석하고 핵심 인사이트를 도출하는 전문 데이터 분석가입니다.
@@ -295,7 +296,9 @@ class aiContainer extends HTMLElement
295
296
  });
296
297
  contextText += "\n";
297
298
 
298
- for (const o of arr) {
299
+ for (const o of searchResults) {
300
+
301
+ console.log(o);
299
302
  columnInfo.forEach(info => {
300
303
  contextText += `${o[info.name]}\t`;
301
304
  });