Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/biome/literature_review.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
import os
import logging
import aiohttp
from paperqa.clients.unpaywall import UnpaywallProvider
from paperqa import Docs, Settings
from pathlib import Path
from typing import cast
import traceback
Expand Down Expand Up @@ -48,6 +46,7 @@ async def paperQA(self, query: str, slug: str) -> str:
"""
run paperQA over the downloaded corpus and returns the response
"""
from paperqa import Docs, Settings
docs = Docs()
llm_model = os.environ.get("PAPERQA_LLM_MODEL", "gpt-4.1-mini")
settings = Settings(
Expand Down Expand Up @@ -123,6 +122,7 @@ async def fetch_from_unpaywall(self, doi: str) -> str:
"""
return the pdf link to a paper from unpaywall as a fallback method
"""
from paperqa.clients.unpaywall import UnpaywallProvider
try:
async with aiohttp.ClientSession() as session:
provider = UnpaywallProvider()
Expand Down