Skip to content

tollefj/KriRAG-develop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KriRAG

DOI

Code for the paper: Enhancing Criminal Investigation Analysis with Summarization and Memory-based Retrieval-Augmented Generation: A Comprehensive Evaluation of Real Case Data

Installation

docker containers

First, download the docker images (served as .tar files) through Zenodo. Link: https://doi.org/10.5281/zenodo.14450178

The script below sets up two containers: the API and UI service.

chmod +x run-krirag.sh
./run-krirag.sh

server-only docker container

./docker/build.server.sh
./docker/run.server.sh

frontend-only docker container

./docker/build.ui.sh 
./docker/run.ui.sh

local installation

llama.cpp server

git clone git@github.com:ggerganov/llama.cpp.git
cd llama.cpp
cmake -B build -DGGML_CUDA=ON
cmake --build build --config Release
# this assumes enough VRAM to offload all layers (rarely >~ 40) and 4096 context length
./llama.cpp/llama-server -m <PATH/TO/MODEL.gguf> -ngl 100 -c 4096 --port 8052

frontend

cd src
# requirements.cpu.txt if CUDA is unavailable
# the SBERT model will use the openvino backend to offload the GPU memory.
python -m pip install -r requirements.txt
python install.py
streamlit run ui.py

About

Continued development of the system for the paper "Enhancing Criminal Investigation Analysis with Summarization and Memory-based Retrieval-Augmented Generation: A Comprehensive Evaluation of Real Case Data"

Resources

License

Stars

3 stars

Watchers

2 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors