Skip to content

Commit

Permalink
Fix wrong output example and add missing 'want'
Browse files Browse the repository at this point in the history
  • Loading branch information
Franky Chan committed Oct 17, 2024
1 parent efdda3f commit 7686b5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ print(prompts["single_turn_prompt"].to_string())


### Modifying instruction in default prompt
It is highly likely that one might to modify the prompt to suit ones needs. Ragas provides `set_prompts` methods to allow you to do so. Let's change the one of the prompts used in `FactualCorrectness` metrics
It is highly likely that one might want to modify the prompt to suit ones needs. Ragas provides `set_prompts` methods to allow you to do so. Let's change the one of the prompts used in `FactualCorrectness` metrics


```python
Expand All @@ -56,7 +56,6 @@ print(scorer.get_prompts()["single_turn_prompt"].instruction)

Given a input, system response and reference. Evaluate and score the response against the reference only using the given criteria.
Only output valid JSON.
Only output valid JSON.


### Modifying examples in default prompt
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"metadata": {},
"source": [
"### Modifying instruction in default prompt\n",
"It is highly likely that one might to modify the prompt to suit ones needs. Ragas provides `set_prompts` methods to allow you to do so. Let's change the one of the prompts used in `FactualCorrectness` metrics"
"It is highly likely that one might want to modify the prompt to suit ones needs. Ragas provides `set_prompts` methods to allow you to do so. Let's change the one of the prompts used in `FactualCorrectness` metrics"
]
},
{
Expand Down

0 comments on commit 7686b5e

Please sign in to comment.