Skip to content

doofenshirmtz/wikiHopper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WikiHopper

Shortest Wikipedia click-path demo with RAG sentence explanations.

Run

'''bash python3 hop.py

OUTPUT

Path: Toaster → Air conditioning → Electricity → Albert Einstein → Black hole  
• Toaster → Air conditioning: “Air conditioning is a member of systems that provide HVAC…”  
• Electricity → Black hole: “Einstein used general relativity to argue black holes were impossible”

TECH

1)NetworkX (shortest-path)

2)Wikipedia-API (live data)

3)Sentence-Transformers (RAG retrieval)

INSTALL

git clone https://github.com/doofenshirmtz/wikiHopper.git
cd wikiHopper
python3 -m venv venv && source venv/bin/activate
pip install -r requirements.txt
python3 build_graph.py   # one-time graph build
python3 hop.py           # demo run

About

Lightweight Wikipedia click path finder with RAG explanations

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages