change copy for functionality

This commit is contained in:
timothycarambat
2023-10-18 18:06:47 -07:00
parent 3ea8950374
commit bd806502d5
4 changed files with 19 additions and 9 deletions
@@ -205,11 +205,17 @@ function ragTestingEndpoints(app) {
return;
}
const test = await RagTest.get({ id: Number(testId) }, { id: true });
if (!test) {
const test = await RagTest.get(
{ id: Number(testId) },
{ id: true, enabled: true }
);
if (!test || !test.enabled) {
response
.status(200)
.json({ success: false, error: "No test found for that id." });
.json({
success: false,
error: "No enabled test found for that id.",
});
return;
}
@@ -27,7 +27,6 @@ async function createRagTest(user, request, response) {
return;
}
console.log(workspaceId);
const workspace = await OrganizationWorkspace.get({
id: Number(workspaceId),
organization_id: organization.id,
@@ -66,10 +66,15 @@ export default function RAGDriftTesting() {
<div className="flex items-start justify-between">
<div className="mb-6">
<h4 className="text-3xl font-semibold text-black">
Retrieval Augmented Generation (RAG) testing
RAG Context drift testing
</h4>
<p className="mt-2 w-3/4 text-gray-600">
<b>What is RAG testing?</b>
<b>What is "Context drift"?</b>
<br />
<i>"Context Drift"</i> is what happens when your vector database
changes over time and what was a good LLM response suddenly
changes and gives vastly different answers.
<br />
<br />
Often, you depend on high quality and current context snippets to
answer user prompts in LLM chatbot applications. As your
@@ -77,7 +82,7 @@ export default function RAGDriftTesting() {
documents being referenced will change. This can often lead to
vastly different LLM responses for a fixed prompt. This tool will
proactively alert you that deviations have occurred for a fixed
prompt.
prompt so you can catch them quickly.
<br />
</p>
</div>
+2 -2
View File
@@ -20,8 +20,8 @@ export default function ToolsList({ organization }: { organization: any }) {
<div className="px-6">
<ToolItem
title="Retrieval Drift Testing & Alerts"
description="Catch context drift in production before it reaches your customers as your vector store changes over time."
title="Automatic context drift detection"
description={`Catch "context drift" by detecting changes in your vector databases similarity searches before they cause problems.`}
available={true}
linkTo={paths.tools.ragTests(organization)}
/>