Skip to content

bigdwarf43/Abstractive-Text-Summarization-Using-Llama2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Abstractive Summarization of Long Texts And a Retrieval Augmented Generation Pipeline using Llama2 Large Language Model

Our project allows users to input multiple PDFs to generate a concise summary that encompasses key points from all documents. ## Users can also engage in question-answering with the PDFs using the implemented Retrieval Augmented Generation workflow.

Our pipeline uses Langchain, Qdrant vector database and the LLama2 large language model. The Llama2 model can be swapped with any other large language model by overwriting the custom LLM langchain class.

Steps To run the project

  1. Install the python requirements by using pip pip install -r requirements.txt
  2. Host the LLama2 model on colab and copy the ngrok URL.
  3. Paste the Ngrok URL in the globals file MODEL_URL = NGROK_URL
  4. Run the project using streamlit run app.py

Colab file to host LLama2 on Colab GPU

https://colab.research.google.com/drive/1Yxst2uOyWYVacXHA10WavO3L_ypg-8nZ?usp=sharing

Workflow

Summarization example

Summarizer-main

AllChunkSummaries

Summarizer-Summary

RAG implementation example

cloud1

cloud2

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published