https://github.com/snxtyle/rag-enhanced-content-generator-and-draft-polisher
This is a Content Refiner Model which will help freelancers or the employees to prompt their draft and get a polished refined output draft that is professional and clean.
https://github.com/snxtyle/rag-enhanced-content-generator-and-draft-polisher
artificial-intelligence content-generator llm python rag
Last synced: about 1 month ago
JSON representation
This is a Content Refiner Model which will help freelancers or the employees to prompt their draft and get a polished refined output draft that is professional and clean.
- Host: GitHub
- URL: https://github.com/snxtyle/rag-enhanced-content-generator-and-draft-polisher
- Owner: snxtyle
- Created: 2025-06-10T06:35:09.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-23T12:28:27.000Z (12 months ago)
- Last Synced: 2025-09-15T22:43:22.621Z (9 months ago)
- Topics: artificial-intelligence, content-generator, llm, python, rag
- Language: Python
- Homepage:
- Size: 163 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 📝 Campaign Draft Generator + Polisher (RAG + ChromaDB + OpenAI)
This is a Streamlit-based tool that allows content creators to either:
- 🪄 **Generate** a full campaign story from a simple idea and category, or
- 📝 **Polish** an existing draft using SOP guidelines, past campaigns, and banned keyword filters.
It uses:
- **OpenAI GPT-4** for generation + refinement
- **ChromaDB** for storing and retrieving past content contextually
- **LangChain** for chunking and embedding logic
---
## 🎯 Use Cases
- Crowdfunding platforms like Donatekart, Milaap, Ketto
- NGOs creating stories across categories like Medical, Hunger, Elderly, Animals, Education
- Freelancers or content teams streamlining campaign creation
---
## ✨ Features
- 🪄 **Generate from Idea**: Create new stories from a category + objective
- 🧠 **RAG-Based Polishing**: Retrieve examples and SOPs based on category and refine the draft accordingly
- ❌ **Banned Keyword Filtering**: Enforces content compliance using rule-based PDF
- 🔄 **Self-Learning**: Saves polished outputs to ChromaDB for better future retrieval
- 💬 Built using **Streamlit** UI
---
## 🚀 Installation
```bash
git clone https://github.com/YOUR_USERNAME/campaign-draft-tool.git
cd campaign-draft-tool
pip install -r requirements.txt
```
## ⚙️ Usage
```bash
streamlit run app.py
```
## 📃 License
Suraj's License – free to use and modify.