Skip to content
B
BIPASHA.DEV
system boot — v1.0
$ initializing bipasha.dev0%
click or press any key to skip ↵
Back to projects

Machine Learning · Shipped

TextGen

A natural-language generation app — Bi-LSTM/LSTM networks combined with a pre-trained LLM, tuned with attention mechanisms and prompt engineering for coherent, contextually relevant text.

Overview

A natural-language generation app — Bi-LSTM/LSTM networks combined with a pre-trained LLM, tuned with attention mechanisms and prompt engineering for coherent, contextually relevant text.

What I built

  • Bi-LSTM + LSTM architecture combined with a pre-trained LLM, trained and served with PyTorch

  • Attention mechanisms + prompt engineering for contextual coherence

  • BLEU/ROUGE evaluation against reference text, plus an interactive Streamlit UI for live generation

Architecture

PromptStreamlit UIBi-LSTM + LSTMwith attentionPre-trained LLMPyTorchBLEU / ROUGEoptional reference
Prompt in, generated text out, with optional scoring against a reference.
  • Bidirectional LSTM and LSTM layers combined with a pre-trained language model, built and served with PyTorch.

  • Attention mechanisms focus on the relevant parts of the input sequence, and prompt engineering improves contextual coherence.

  • A Streamlit interface lets you generate text, try prompt variations and customise settings live.

  • If you supply a reference text, the app scores the output with BLEU and ROUGE.

Results

  • Built-in evaluation with BLEU and ROUGE-1, ROUGE-2 and ROUGE-L, so quality is measured rather than eyeballed.

Built with

PythonPyTorchLSTMStreamlit