From 68ef5f5f819d95df4bcda1372bcd0eb0cf3b15f0 Mon Sep 17 00:00:00 2001 From: Ali Rizvi Date: Wed, 18 Jun 2025 16:47:49 +0530 Subject: [PATCH] Add LLM factual accuracy evaluation prompt under Prompt Engineering & LLM Development Signed-off-by: Ali Rizvi --- README.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 477bc01..a932671 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,7 @@ This repository contains prompt chains for the following domains: 11. **System Monitoring & Debugging** 12. **Web Development** 13. **API Development** +14. **Legal Tech & AI** --- @@ -494,4 +495,16 @@ This repository contains prompt chains for the following domains: ```text "Set up a CI/CD pipeline to automatically run Keploy tests as part of the deployment process. Include configuration for GitHub Actions or Jenkins to run tests whenever new code is pushed to the repository." - ``` \ No newline at end of file + ``` +### **14. Legal Tech & AI** + +* **Evaluate Factual Accyracy of LLM Outputs** + + ```text + "Given the following user query and the LLM's response, evaluate the factual accuracy of the output. Check if the response is consistent with the provided source text or expected knowledge base. Return a rating (1-5) and a brief explanation." + + User Query: {query} + LLM Response: {response} + Reference Text: {reference}" + ``` +