Skip to content

Ahmad-Tamim-Hamad/text-summarization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Repo Size Stars Last Commit License

LangChain Text Summarization

The main purpose of this project is to demonstrate how LangChain can be integrated with a language model. It serves as a simple starting point for working with LangChain. This project is a text summarization tool built using LangChain, OpenAI, and Streamlit. It allows users to input any text and receive a concise summary, accessible via both a web interface and the command line.


Features
  • LangChain integration for clean prompt chaining
  • Streamlit web UI for interactive usage
  • CLI mode via main.py
  • .env support for API key management
  • Modular code structure (LLM config, summarizer, UI)

Quickstart

1. Clone the Repository

git clone https://github.com/your-username/text-summarization.git
cd text-summarization

2. Create a virtual env and activate it

conda create --name txtsum python=3.11
conda activate txtsum

3. install the requirments

pip install -r requirements.txt

4. Run the pipeline using streamlit

streamlit run ui/streamlit_app.py

About

text summarization with LLMs using LangChain

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages