From 0727ca871c1314fb16aada30fa3b5760046c0110 Mon Sep 17 00:00:00 2001 From: Joaquin Polonuer <39124788+JoaquinPolonuer@users.noreply.github.com> Date: Mon, 24 Feb 2025 16:29:35 -0800 Subject: [PATCH] Little fix in import at LFRQA tutorial (#887) --- docs/tutorials/running_on_lfrqa.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/tutorials/running_on_lfrqa.md b/docs/tutorials/running_on_lfrqa.md index 39d4a856..dff42570 100644 --- a/docs/tutorials/running_on_lfrqa.md +++ b/docs/tutorials/running_on_lfrqa.md @@ -189,7 +189,7 @@ After this runs, you will get an answer! After you have built the index, you are ready to run the benchmark. -Copy the following into a file and run it. To run this, you will need to have the [`ldp`](https://github.com/Future-House/ldp) package installed. +Copy the following into a file and run it. To run this, you will need to have the [`ldp`](https://github.com/Future-House/ldp) and [`fhaviary[lfrqa]`](https://github.com/Future-House/aviary/blob/main/packages/lfrqa/README.md#installation) packages installed. ```python import asyncio @@ -197,13 +197,14 @@ import json import os import pandas as pd +from aviary.envs.lfrqa import LFRQAQuestion, LFRQATaskDataset from ldp.agent import SimpleAgent from ldp.alg.runners import Evaluator, EvaluatorConfig from paperqa import Settings -from paperqa.agents.task import LFRQAQuestion, LFRQATaskDataset from paperqa.settings import AgentSettings, IndexSettings + log_results_dir = os.path.join("data", "rag-qa-benchmarking", "results") os.makedirs(log_results_dir, exist_ok=True)