- Clone the repository
git clone --recurse-submodules https://github.com/Datata1/wikipedia-api
- Create a virtual environment
python -m venv .venv
- Activate the virtual environment
source .venv/bin/activate
- Install the dependencies
pip install -r requirements.txt
- Download the model
wget -P ./llama.cpp/models https://huggingface.co/bartowski/Llama-3.2-1B-Instruct-GGUF/resolve/main/Llama-3.2-1B-Instruct-Q5_K_M.gguf
- build Llama.cpp
cd llama.cpp
cmake -B build
cmake --build build --config Release
- start uvicorn (from the root directory)
uvicorn main:app --reload
- Open the browser and go to http://127.0.0.1:8000