normalize rag creation method

This commit is contained in:
timothycarambat
2023-10-19 15:07:53 -07:00
parent e3a8719557
commit 1042bfbf90
+2 -2
View File
@@ -27,14 +27,14 @@ const RagTest = {
if (!newTest) {
console.error("FAILED TO CREATE RAG TEST.");
return { job: null, error: "Could not create RAG Test" };
return { test: null, error: "Could not create RAG Test" };
}
await Telemetry.sendTelemetry(`rag_test_created`);
return { test: newTest, error: null };
} catch (e) {
console.error(e.message);
return null;
return { test: null, error: e.message };
}
},