Skip to content

Repository files navigation

✍️ LinkedIn Content Generator

Generate professional LinkedIn content powered by Groq LLM, LangChain, and Few-Shot Prompting.

Python Streamlit LangChain Groq License


🚀 Overview

LinkedIn Content Generator is an AI-powered application that generates engaging LinkedIn content by learning from existing posts using Few-Shot Prompting.

Simply choose a Topic, Language, and Content Length, and the application generates content that follows a similar writing style.


✨ Features

  • 🤖 AI-powered content generation using Groq LLM
  • 🧠 Few-Shot Prompt Engineering
  • 🌍 English & Hinglish support
  • 📌 Topic-based content generation
  • 📏 Multiple content lengths
  • 📥 Download generated content
  • 🎨 Clean Streamlit interface

📸 Application Preview


🏗️ Project Architecture


🛠️ Tech Stack

Technology Purpose
Python Core Programming
Streamlit Web Application
LangChain Prompt Orchestration
Groq API Large Language Model
Few-Shot Prompting Writing Style Learning
JSON Dataset Storage

⚙️ Installation

Clone the repository

git clone https://github.com/<your-username>/linkedin-content-generator.git

Move into the project directory

cd linkedin-content-generator

Create a virtual environment

python -m venv myenv

Activate the environment

Windows

myenv\Scripts\activate

Install dependencies

pip install -r requirements.txt

Create a .env file

GROQ_API_KEY=YOUR_GROQ_API_KEY

Run the application

streamlit run main.py

📂 Project Structure

linkedin-content-generator
│
├── assets/
├── data/
├── few_shot.py
├── llm_helper.py
├── main.py
├── post_generator.py
├── preprocess.py
├── requirements.txt
└── README.md

🔮 Future Enhancements

  • Copy to Clipboard
  • Content Tone Selection
  • Multi-LLM Support
  • Content History
  • One-click LinkedIn Publishing

👨‍💻 Author

Ankur Dey

If you found this project useful, consider giving it a ⭐ on GitHub!

About

AI-powered LinkedIn Content Generator using Groq LLM, LangChain, and Few-Shot Prompting.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages