Skip to content

Commit

Permalink
Website: Fix lint errors in script (#23049)
Browse files Browse the repository at this point in the history
Changes:
- Fixed the lint errors in the `test-llm-generated-sql` script
  • Loading branch information
eashaw authored Oct 21, 2024
1 parent 06bb4f7 commit fb0f69c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions website/scripts/test-llm-generated-sql.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = {

fn: async function ({naturalLanguageQuestion}) {

let assert = require('assert');
// let assert = require('assert');

let completeTables = await sails.helpers.getExtendedOsquerySchema();
let prunedTables = completeTables.map((table)=>{
Expand All @@ -33,13 +33,13 @@ module.exports = {
Provided context:
\`\`\`
${JSON.stringify(prunedTables.map((table)=>{
let lighterTable = _.pick(table, ['name','description','platforms']);
lighterTable.columns = table.columns.map((column)=>{
let lighterColumn = _.pick(column, ['name', 'description', 'platforms']);
return lighterColumn;
});
return lighterTable;
}))}
let lighterTable = _.pick(table, ['name','description','platforms']);
lighterTable.columns = table.columns.map((column)=>{
let lighterColumn = _.pick(column, ['name', 'description', 'platforms']);
return lighterColumn;
});
return lighterTable;
}))}
\`\`\`
Please respond in JSON, with the same data shape as the provided context, but with the array filtered to include only relevant tables.`;
Expand Down

0 comments on commit fb0f69c

Please sign in to comment.