Skip to content

Commit

Permalink
Little fix in import at LFRQA tutorial (#887)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoaquinPolonuer authored Feb 25, 2025
1 parent ba9a6e2 commit 0727ca8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/tutorials/running_on_lfrqa.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,21 +189,22 @@ 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
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)

Expand Down

0 comments on commit 0727ca8

Please sign in to comment.