Repository navigation
AutoRag evaluator example help #341
Replies: 1 comment
|
Hi @amantzanis — apologies for the very late reply, and sorry your first evaluator run failed silently. We are closing the older open discussions that are no longer actionable, so I am closing this one now. Some context on why it went unanswered: the project has since been transformed. The main line of this repository is now AutoRAG Agent, a librarian agent rather than a config-driven evaluation pipeline (announcement: #1662). The AutoRAG you were experimenting with — the evaluator, If you still want that evaluator flow working, please open a fresh issue against the legacy code with the version ( |
Uh oh!
There was an error while loading. Please reload this page.
Hello everyone! I have been reading up on AutoRAG and following the evaluator colab notebook as an example.
I have copied the first node from the config.yaml, I run the evaluator and after it generates embeddings the task fails.
I get no error message, it just fails.
This is my code, I hope it helps!
import os
path = './content/eli5_data'
os.makedirs(path, exist_ok=True)
import pandas as pd
qa_df = pd.read_parquet(path + '/qa_train.parquet')
sample_qa_df = qa_df.sample(5, random_state=42)
sample_qa_df = sample_qa_df.reset_index()
sample_qa_df.to_parquet(path + '/qa_sample.parquet')
%%writefile config.yaml
node_lines:
nodes:
top_k: 10
strategy:
metrics: [bleu, meteor, rouge]
speed_threshold: 10
modules:
embedding_model: huggingface_cointegrated_rubert_tiny2
target_modules: ('bm25', 'vectordb')
rrf_k: [3, 5, 10]
make project folder
os.makedirs('./content/project_dir', exist_ok=True)
from autorag.evaluator import Evaluator
evaluator = Evaluator(qa_data_path='./content/eli5_data/qa_sample.parquet', corpus_data_path='./content/eli5_data/corpus.parquet',
project_dir='./content/project_dir')
evaluator.start_trial('./config.yaml')
All reactions