From a16a1e849f19d8be52969c509f98c67d70d47e9c Mon Sep 17 00:00:00 2001 From: Yusuf Ali Date: Wed, 21 Jan 2026 11:21:35 +0000 Subject: [PATCH] fix: include question in prompt --- action.yml | 24 ++++++++++++------------ dist/index.js | 7 +++++-- index.js | 7 +++++-- 3 files changed, 22 insertions(+), 16 deletions(-) diff --git a/action.yml b/action.yml index 9aab72a..8242990 100644 --- a/action.yml +++ b/action.yml @@ -1,25 +1,25 @@ -name: 'Issue Embedder' -description: 'Sends github issues to the lake to embed into vector form' +name: "Issue Embedder" +description: "Sends github issues to the lake to embed into vector form" inputs: api_url: - description: 'api url' - default: 'http://agents-api.servc-agents:3000' + description: "api url" + default: "http://agent-api.k8s.private" required: false api_token: - description: 'API token for authentication' - default: '' + description: "API token for authentication" + default: "" required: false route: - default: 'agent-lake' + default: "agent-lake" required: false method: - default: 'embeddings_insert' + default: "embeddings_insert" required: false debug: - description: 'Enable debug mode' - default: 'false' + description: "Enable debug mode" + default: "false" required: false runs: - using: 'node20' - main: 'dist/index.js' + using: "node20" + main: "dist/index.js" diff --git a/dist/index.js b/dist/index.js index 0f32607..42035a0 100644 --- a/dist/index.js +++ b/dist/index.js @@ -32836,7 +32836,7 @@ const core = __nccwpck_require__(7012); const github = __nccwpck_require__(7940); const apiUrl = - core.getInput("api_url") || "http://agents-api.servc-agents:3000"; + core.getInput("api_url") || "http://agent-api.k8s.private"; const apiToken = core.getInput("api_token"); const route = core.getInput("route") || "agent-lake"; const method = core.getInput("method") || "embeddings_insert"; @@ -32961,7 +32961,10 @@ async function run() { } const embedText = body ? body.trim() : String(comments[0]).trim(); - const storeText = String(comments[comments.length - 1]).trim(); + const storeText = [ + 'Question: ' + embedText, + String(comments[comments.length - 1]).trim() + ].join('\n') const requestPayload = { type: "input", diff --git a/index.js b/index.js index 9f404ee..b4474cf 100644 --- a/index.js +++ b/index.js @@ -4,7 +4,7 @@ const core = require("@actions/core"); const github = require("@actions/github"); const apiUrl = - core.getInput("api_url") || "http://agents-api.servc-agents:3000"; + core.getInput("api_url") || "http://agent-api.k8s.private"; const apiToken = core.getInput("api_token"); const route = core.getInput("route") || "agent-lake"; const method = core.getInput("method") || "embeddings_insert"; @@ -129,7 +129,10 @@ async function run() { } const embedText = body ? body.trim() : String(comments[0]).trim(); - const storeText = String(comments[comments.length - 1]).trim(); + const storeText = [ + 'Question: ' + embedText, + String(comments[comments.length - 1]).trim() + ].join('\n') const requestPayload = { type: "input",