[WIP] making a working demo for all possible seekers questions

This commit is contained in:
Eliyan
2025-10-14 17:44:27 +02:00
parent 28b0360ddb
commit e863a0a5ea
3 changed files with 142 additions and 21 deletions

8
poc.js
View File

@@ -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
`