I crafted this for my own enjoyment, involving the chunking of PDFs and their storage in a vector store for Retrieval-Augmented Generation (RAG) purposes.
Make sure node is already installed.
git clone git@github.com:synacktraa/pdf-service.git
npm run serve
Visit
/endpointsfor documentation.
npm run test
docker build -t pdf-service .
docker run -p 3000:3000 pdf-service
Make sure to update
-pvalue accordingly if you’re using--env-file .env