PostGen is a Python-based project designed to generate social media posts using a few-shot learning approach. The project processes raw posts, extracts metadata, and uses an LLM (Large Language Model) to generate new posts.
- Few-Shot Learning: Utilize existing post examples for style and content.
- LLM Integration: Powered by Groq's ChatGPT API for generating posts.
- Metadata Extraction: Automatically extracts tags, language, and line counts from raw posts.
- Clone the repository.
- Install dependencies: pip install -r requirements.txt
- Set up environment variables: GROQ_API_KEY=your_api_key_here
- Run the main script: python src/main.py