This project demonstrates various text summarization methods utilizing the Langchain framework and Gemini-pro model. The tool can summarise large bodies of text efficiently and effectively, leveraging advanced language processing techniques.
Text summarization is performed using various techniques and the summarization model provided by LangChain with different techniques to handle simple to large and complex text. Text summarization is the process of condensing a piece of text to a shorter version, retaining the most important information. This project employs Langchain and Gemini's Pro model to provide high-quality summaries of input texts. The application supports various text formats and is designed for easy integration and deployment.
- Summarizes long texts into concise summaries.
- Utilizes Gemini's Pro to generate summaries.
- Used customized prompt and chains
To get started with the project, follow these steps:
-
Clone the repository:
git clone https://github.com/spkothari0/Text-Summarization-Using-LangChain-Gemini.git cd Text-Summarization-Using-LangChain-Gemini
-
Install dependencies using Poetry:
poetry install --no-root
-
Set up your environment variables:
- Rename the
.env.example
file to.env
and update the variables inside with your own values. Example:
mv .env.example .env
- Rename the
-
Activate the Poetry shell to run the examples:
poetry shell
-
Run the code examples:
Run the ipynb file using the kernel that was created in the above step.