Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while evaluating with PPI with API model LLM judge #67

Open
islambs231bi opened this issue Jul 27, 2024 · 0 comments
Open

Error while evaluating with PPI with API model LLM judge #67

islambs231bi opened this issue Jul 27, 2024 · 0 comments

Comments

@islambs231bi
Copy link

I am using ares evaluator with the given data in the docs to evaluate using prediction powered inference

ppi_config {
        evaluation_datasets: ['./aresdocs/nq_unlabeled_output_trimmed.tsv']
        few_shot_examples_filepath: "./aresdocs/nq_few_shot_prompt_for_judge_scoring.tsv"
        llm_judge: "gpt-4o-mini"
        labels: ["Context_Relevance_Label",]
        gold_label_paths: ["./aresdocs/nq_labeled_output_trimmed.tsv"]
}

Tried models: openai models: [gpt4, gpt-4o-mini], multiple together models
Error:

 File "python3.10/site-packages/ares/RAG_Automatic_Evaluation/LLMJudge_RAG_Compared_Scoring.py", line 729, in evaluate_model
    if total_references.nelement() > 0:
AttributeError: 'numpy.ndarray' object has no attribute 'nelement'

If I use default model provided checkpoint with config, It works successfully.

ppi_config {
        evaluation_datasets: ['./aresdocs/nq_unlabeled_output_trimmed.tsv']
        few_shot_examples_filepath: "./aresdocs/nq_few_shot_prompt_for_judge_scoring.tsv"
        model_choice: "microsoft/deberta-v3-large"
        labels: ["Context_Relevance_Label",]
        gold_label_paths: ["./aresdocs/nq_labeled_output_trimmed.tsv"]
        checkpoints: [./aresdocs/ares_context_relevance_general_checkpoint_V1.1.pt]
}

Do I need to provide the checkpoints every time ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant