Python app that generates a summarized document from multiple files of different types (pdf, doc, csv, html, etc...).
This project implements a Retrieval-Augmented Generation (RAG) pipeline, using LlamaIndex.
- The system first retrieves relevant text passages from a data chunks derivated from defined documents (files/).
- The retrieved passages are then used as input for a language generation model, which generates a summary or response that incorporates information and ideas from the original passages.
- This generated response is intended to be more coherent, informative, and relevant to the user's query than a traditional generation-only approach.
- The flowchart ends with the successful creation and saving of the PDF file, allowing users to easily review and reference their responses in a convenient format.
- Python ==3.12
- Node >12
pip install -r requirements.txtnpm installDownload
curl -fsSL https://ollama.com/install.sh | shnpm startThis will start the python script, load data from ./files and show the program output.
Run the nitro server using the following command
npm run serve:macPlease update the .env file!
Download a model using the following command
npm run model:downloadLoad a model using the following command
npm run model:loadSend a prompt to a model using the following command
npm run model:prompt "Type here the content of the prompt..."- jraleman
