~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.
Python academiaanthropicarxivbravedeep-researchencryptionhome-automationhomeserverlocallocal-deep-researchlocal-llmmistralollamaopenaipubmedresearchresearch-toolretrieval-augmented-generationsearxngself-hosted
fix: ArXiv text extraction now gets full paper text, not just abstract
LearningCircuit2c926b6394b7
diff --git a/src/local_deep_research/research_library/downloaders/arxiv.py b/src/local_deep_research/research_library/downloaders/arxiv.pyindex 0cd12b2240..25d99235ce 100644--- a/src/local_deep_research/research_library/downloaders/arxiv.py+++ b/src/local_deep_research/research_library/downloaders/arxiv.py@@ -45,24 +45,33 @@ class ArxivDownloader(BaseDownloader):)if content_type == ContentType.TEXT:- # Try to get text via API first- text = self._fetch_from_arxiv_api(arxiv_id)- if text:- return DownloadResult(- content=text.encode("utf-8"), is_success=True- )+ # ArXiv API only provides abstracts, not full text+ # We need to download the PDF and extract full text+ logger.info(+ f"Downloading arXiv PDF for full text extraction: {arxiv_id}"+ )- # Fallback to PDF extractionpdf_content = self._download_pdf(url)if pdf_content:extracted_text = self._extract_text_from_pdf(pdf_content)if extracted_text:- return DownloadResult(- content=extracted_text.encode("utf-8"), is_success=True- )+ # Optionally prepend metadata from API+ metadata = self._fetch_from_arxiv_api(arxiv_id)+ if metadata:+ # Combine metadata with full text+ full_text = f"{metadata}\n\n{'=' * 80}\nFULL PAPER TEXT\n{'=' * 80}\n\n{extracted_text}"+ return DownloadResult(+ content=full_text.encode("utf-8"), is_success=True+ )+ else:+ # Just return the extracted text+ return DownloadResult(+ content=extracted_text.encode("utf-8"),+ is_success=True,+ )return DownloadResult(- skip_reason=f"Could not retrieve text for arXiv:{arxiv_id}"+ skip_reason=f"Could not retrieve full text for arXiv:{arxiv_id}")else:# Download PDF@@ -92,23 +101,26 @@ class ArxivDownloader(BaseDownloader):return super()._download_pdf(pdf_url)def _download_text(self, url: str) -> Optional[bytes]:- """Get text content from arXiv (abstract + metadata via API)."""+ """Get full text content from arXiv PDF (with metadata from API)."""# Extract arXiv IDarxiv_id = self._extract_arxiv_id(url)if not arxiv_id:return None- # Use arXiv API to get abstract and metadata- text = self._fetch_from_arxiv_api(arxiv_id)- if text:- return text.encode("utf-8")-- # Fallback: Download PDF and extract text+ # Download PDF for full text extraction+ logger.info(f"Downloading arXiv PDF for full text: {arxiv_id}")pdf_content = self._download_pdf(url)if pdf_content:extracted_text = self._extract_text_from_pdf(pdf_content)if extracted_text:- return extracted_text.encode("utf-8")+ # Get metadata from API to prepend+ metadata = self._fetch_from_arxiv_api(arxiv_id)+ if metadata:+ # Combine metadata with full text+ full_text = f"{metadata}\n\n{'=' * 80}\nFULL PAPER TEXT\n{'=' * 80}\n\n{extracted_text}"+ return full_text.encode("utf-8")+ else:+ return extracted_text.encode("utf-8")return None