krogoldAI commited on
Commit
a91019d
·
verified ·
1 Parent(s): d464322

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +71 -0
README.md CHANGED
@@ -367,6 +367,77 @@ All values are reported as mean ± standard deviation (%), computed over test ex
367
 
368
  <!-- The model demonstrates strong performance across all semantic dimensions, with particularly high scores in domain classification, intent detection, and ambiguity assessment. The relatively higher variance in rephrasing quality and intent preservation reflects the inherent complexity and subjectivity of these tasks, where optimal outputs may vary based on retrieval context and domain-specific requirements. -->
369
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
370
  ### Performance Considerations
371
 
372
  Performance characteristics will vary based on query type, domain, and ambiguity level. The model is expected to perform strongest on queries similar to those in the training distribution and may require additional fine-tuning or prompt engineering for specialized applications or domains underrepresented in the training data.
 
367
 
368
  <!-- The model demonstrates strong performance across all semantic dimensions, with particularly high scores in domain classification, intent detection, and ambiguity assessment. The relatively higher variance in rephrasing quality and intent preservation reflects the inherent complexity and subjectivity of these tasks, where optimal outputs may vary based on retrieval context and domain-specific requirements. -->
369
 
370
+ <details>
371
+ <summary><i>Unroll to see the system prompt used for the "judge" LLM</i></summary>
372
+
373
+ ```py
374
+ JUDGE_PROMPT = """You are evaluating query analyses for a RAG system.
375
+
376
+ ### System Requirements
377
+ The analyzer was instructed to optimize queries for document retrieval by:
378
+ - Using **specific terminology** and domain vocabulary likely to appear in relevant documents
379
+ - **Expanding acronyms** when they add context (but not when the acronym itself is the subject)
380
+ - **Adding disambiguating context** without over-constraining the search
381
+ - **Making implicit references explicit** using placeholders for missing entities (e.g., [PERSON], [COMPANY])
382
+ - **Preserving user intent** while improving retrieval precision
383
+ - **Keeping the original query unchanged** if it's already well-optimized for retrieval
384
+
385
+ ### Input
386
+ Original: "{original}"
387
+ Domain: {domain}
388
+ Intent: {intent}
389
+ Rephrased: "{rephrased}"
390
+
391
+ Note: The [ambiguous] tag indicates the analyzer determined the query has multiple plausible interpretations for that dimension, with confidence distributed across candidates.
392
+
393
+ ### Evaluation Criteria (1-5 scale)
394
+
395
+ 1. Domain Accuracy (1=wrong, 3=acceptable, 5=perfect)
396
+ - Are the domain candidates correct?
397
+ - Are confidence scores reasonable?
398
+
399
+ 2. Intent Accuracy (1=wrong, 3=acceptable, 5=perfect)
400
+ - Are the intent candidates correct?
401
+ - Are confidence scores reasonable?
402
+
403
+ 3. Ambiguity Assessment (1=wrong, 3=acceptable, 5=perfect)
404
+ - Is the ambiguity determination appropriate for this query?
405
+ - If ambiguous: Is the confidence distribution justified?
406
+ - If clearly unambiguous but marked ambiguous (or vice versa), score ≤2.
407
+
408
+ 4. Rephrasing Quality
409
+ 1 = Poor (significantly degraded the query, or completely failed to address clear issues)
410
+ 2 = Suboptimal (minor degradation, or missed an obvious improvement opportunity)
411
+ 3 = Neutral (minor changes with mixed effects)
412
+ 4 = Good improvement, but could be better
413
+ 5 = Optimal outcome (either improved a suboptimal query, or correctly preserved an already-optimal one)
414
+ (Note: Do not penalize rephrasing for being minimal if the original was already optimal.)
415
+
416
+ 5. Intent Preservation (1=lost, 3=mostly preserved, 5=fully preserved)
417
+ - Focus on meaning fidelity, not retrieval optimization.
418
+
419
+ 6. Follows Guidelines (1=violates, 3=mostly follows, 5=perfectly follows)
420
+ - Check adherence to the RAG optimization principles above.
421
+
422
+ ### Output Format
423
+ {{
424
+ "domain_accuracy": <1-5>,
425
+ "intent_accuracy": <1-5>,
426
+ "ambiguity_assessment": <1-5>,
427
+ "rephrasing_quality": <1-5>,
428
+ "intent_preservation": <1-5>,
429
+ "follows_guidelines": <1-5>,
430
+ "critical_issue": "<brief description or null>",
431
+ "usable": <true/false> // true if suitable for RAG use, even if not perfect
432
+ }}
433
+
434
+ Output only valid JSON. Do not include any explanations, comments, or text outside the JSON structure.
435
+ """
436
+
437
+ ```
438
+
439
+ </details>
440
+
441
  ### Performance Considerations
442
 
443
  Performance characteristics will vary based on query type, domain, and ambiguity level. The model is expected to perform strongest on queries similar to those in the training distribution and may require additional fine-tuning or prompt engineering for specialized applications or domains underrepresented in the training data.