Skip to content

default_transforms() Missing cosine_similarity Transform for Docs with Token Count 101–500 #1932

Open
@rgrizzo-linksmt

Description

@rgrizzo-linksmt

At:
[default.py#L157](

),

you forgot to add the cosine_sim_builder transform to the list of default transforms. While you instantiated the cosine_sim_builder object, you did not include it in Parallel(cosine_sim_builder, ner_overlap_sim), as you did in:

[default.py#L126](https://github.com/explodinggradients/ragas/blob/2bc29a2b8358ddb6b167fdf7ab0518ad9371463c/src/ragas/testset/transforms/default.py#L126C13-L126C59).

This omission might impact the number of relationships created in the knowledge graph.

Ragas version: ragas==0.2.13
Python version: Python 3.10.12

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingmodule-testsetgenModule testset generation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions