yangdx commited on
Commit
eef8740
·
1 Parent(s): f0adccd

Update similarity_check prompt to avoid generating two scores sometiimes

Browse files
Files changed (1) hide show
  1. lightrag/prompt.py +2 -3
lightrag/prompt.py CHANGED
@@ -290,9 +290,8 @@ PROMPTS[
290
  Question 1: {original_prompt}
291
  Question 2: {cached_prompt}
292
 
293
- Please evaluate the following two points and provide a similarity score between 0 and 1 directly:
294
- 1. Whether these two questions are semantically similar
295
- 2. Whether the answer to Question 2 can be used to answer Question 1
296
  Similarity score criteria:
297
  0: Completely unrelated or answer cannot be reused, including but not limited to:
298
  - The questions have different topics
 
290
  Question 1: {original_prompt}
291
  Question 2: {cached_prompt}
292
 
293
+ Please evaluate whether these two questions are semantically similar, and whether the answer to Question 2 can be used to answer Question 1, provide a similarity score between 0 and 1 directly.
294
+
 
295
  Similarity score criteria:
296
  0: Completely unrelated or answer cannot be reused, including but not limited to:
297
  - The questions have different topics