Skip to content

lydiamavin/genai-sandbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

genai-sandbox

Small experiments and notebooks for prompt engineering, HF models, and quick GenAI prototypes.

Python

Contents

  • notebooks/01_text_generation.ipynb — Quick HuggingFace text-generation experiments (GPT-2, DistilGPT-2).
  • notebooks/02_summarization.ipynb — Summarization experiments using BART, T5, Pegasus models.
  • notebooks/03_qa_with_context.ipynb — Retrieval-based QA with context and FAISS indexing.
  • notebooks/04_prompt_engineering.ipynb — Few shot and CoT demonstration
  • src/ — Helper scripts for PDF ingestion, text chunking, embeddings, FAISS index, and QA pipeline.
  • data/ — PDF files and other dataset resources.
  • requirements.txt — Python dependencies for the project.

Quickstart

  1. Clone:
    git clone https://github.com/lydiamavin/genai-sandbox.git
    cd genai-sandbox
    
  2. Create venv & install:
    python3 -m venv .venv
    source .venv/bin/activate
    pip install -r requirements.txt
    
  3. Run notebook or the small script:
    python notebooks/01_text_generation.py

About

A hands-on playground for experimenting with Generative AI models - includes text generation, summarization, Q&A pipelines, and prompt engineering using HuggingFace.

Resources

Stars

Watchers

Forks

Contributors