feat(examples): add arXiv papers knowledge base demo#2810
Closed
moshierming wants to merge 1 commit intoHKUDS:mainfrom
Closed
feat(examples): add arXiv papers knowledge base demo#2810moshierming wants to merge 1 commit intoHKUDS:mainfrom
moshierming wants to merge 1 commit intoHKUDS:mainfrom
Conversation
Demonstrates building a multi-paper knowledge base from arXiv using
LightRAG's graph-enhanced retrieval.
Features:
- Fetches paper metadata via free arXiv API (no API key needed)
- Supports both OpenAI and local Ollama (qwen2.5:7b + nomic-embed-text)
- Shows Local / Global / Hybrid query modes on academic content
- Includes retry logic for arXiv API in network-restricted environments
Usage:
# OpenAI
python examples/unofficial-sample/lightrag_arxiv_papers_demo.py \
--ids 2410.05779 1706.03762
# Ollama (free, no API key)
python examples/unofficial-sample/lightrag_arxiv_papers_demo.py \
--ids 2410.05779 1706.03762 --ollama
Collaborator
|
Thanks for the interest! The demo looks great. Please go ahead with the submission—I'd be happy to consider merging it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds a new unofficial sample demonstrating how to build a searchable knowledge base from arXiv papers using LightRAG's graph-enhanced retrieval.
What this example does
Usage
Key features
lightrag-hku— arXiv fetching uses stdliburllibTesting
Syntax-checked with
python -m py_compile. Full integration test requires LLM credentials.