Skip to content

with-rl/rag-practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RAG with wiki & langchain

0. 실행 확인 환경

  • python 3.9
  • mac
  • library: requirements.txt

1. Make Wiki Dump

mkdir data

wget https://dumps.wikimedia.org/kowiki/latest/kowiki-latest-pages-articles.xml.bz2 \
    -O ./data/kowiki-latest-pages-articles.xml.bz2

python -m wikiextractor.WikiExtractor \
    --json \
    --out ./data/kowiki \
    ./data/kowiki-latest-pages-articles.xml.bz2

python src/wiki/make_wiki_dump.py \
    --n_file 100

2. Make context embedding index

python src/vdb/make_vdb_index.py

3. RUN rag server

python src/app/server.py \
    --hf_token <huggingface_access_token>

4. Test RAG

5. Demo

demo

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published