[WIP] making a working demo for all possible seekers questions
This commit is contained in:
8
poc.js
8
poc.js
@@ -23,7 +23,7 @@ const EXECUTE_QUERY = process.env.EXECUTE_QUERY === "true"; // Set to "true" to
|
||||
|
||||
// Hardcoded NL query for the PoC (no multi-turn)
|
||||
const NL_QUERY =
|
||||
"give me new seekers since last week with email and experience";
|
||||
"show me seekers with status startasap and their email and experience";
|
||||
|
||||
// ---- Load schemas (safe) ----
|
||||
function loadJsonSafe(path) {
|
||||
@@ -603,7 +603,7 @@ async function processResults(results, jqFilter = ".") {
|
||||
console.log("\n📋 Results Summary:");
|
||||
const summary = await processResults(
|
||||
results,
|
||||
`.[0:3] | map({alias, email, seekstatus})`
|
||||
`.[0:3] | map({email, seekworkingyear})`
|
||||
);
|
||||
console.log(JSON.stringify(summary, null, 2));
|
||||
|
||||
@@ -617,8 +617,8 @@ async function processResults(results, jqFilter = ".") {
|
||||
const csvData = await processResults(
|
||||
results,
|
||||
`
|
||||
map([.alias // "N/A", .email // "N/A", .seekstatus // "N/A"]) |
|
||||
["alias","email","status"] as $header |
|
||||
map([.email // "N/A", .seekworkingyear // "N/A"]) |
|
||||
["email","experience"] as $header |
|
||||
[$header] + .[0:5] |
|
||||
.[] | @csv
|
||||
`
|
||||
|
Reference in New Issue
Block a user