Skip to content

Commit 9da1ab7

Browse files
authored
Update rag.md (#1686)
The import of JaccardSimilarityBuilder is wrong, therefore I fixed it.
1 parent 44f09b8 commit 9da1ab7

File tree

1 file changed

+2
-2
lines changed
  • docs/concepts/test_data_generation

1 file changed

+2
-2
lines changed

docs/concepts/test_data_generation/rag.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ You can write your own [custom relationship builder]() to establish the relation
170170

171171
```python
172172
from ragas.testset.graph import KnowledgeGraph
173-
from ragas.testset.transforms.relationship_builders.cosine import JaccardSimilarityBuilder
173+
from ragas.testset.transforms.relationship_builders.traditional import JaccardSimilarityBuilder
174174

175175
kg = KnowledgeGraph(nodes=sample_nodes)
176176
rel_builder = JaccardSimilarityBuilder(property_name="entities", key_name="PER", new_property_name="entity_jaccard_similarity")
@@ -287,4 +287,4 @@ class EntityQuerySynthesizer(QuerySynthesizer):
287287
"""
288288

289289
return SingleTurnSample(user_input=query, reference_contexs=contexts, reference=reference)
290-
```
290+
```

0 commit comments

Comments
 (0)