Skip to content

Instantly share code, notes, and snippets.

Product Requirements Document (PRD)

Project Title

AI-Powered Iterative Report Writer using LangGraph


Objective

Develop an AI system using LangGraph that automates the process of writing a report, providing feedback on the report, and rewriting it iteratively for a user-defined number of times (n). The graph will consist of modular LangGraph nodes that interact to write, critique, and improve the report in a stateful, traceable workflow.

Project Plan: AI-Powered Iterative Report Writer using LangGraph

Overview

This plan outlines the development steps, timelines, and responsibilities for building the AI-powered report writing and feedback system using LangGraph. The system will iterate over reports to enhance quality based on user-defined iteration counts.


Phase 1: Project Setup

Tasks

  • Create GitHub repository and define branch strategy

Utility Profit Workflow Scripts

  • initial_curls.sh (script to perform a flow of curls to get the initial json data from the api)

  • merge_forms.py (script to merge the json data files in to one that can be sent to ombiform)

    Merge Process

flowchart TD

Vectorizing and Indexing Structured JSON for RAG

Introduction

Retrieval-Augmented Generation (RAG) systems rely heavily on high-quality, efficiently retrievable vector embeddings. Using structured JSON as a source for vectorization can be very effective—provided the structure is leveraged appropriately.

This document outlines best practices, potential pitfalls, and implementation examples for vectorizing and indexing structured JSON data, with an emphasis on downstream use in RAG pipelines.

When is JSON a Good Source for Vectorization?

JSON is a great candidate for vectorization if:

  • The schema is consistent across entries.

LangServe vs. n8n (Self-Hosted on Elestio)

This document compares LangServe and n8n, particularly when deployed on platforms like Elestio, to help determine which tool fits best for building and deploying AI-powered or automation workflows.


🔁 Comparison Overview

Feature/Aspect LangServe n8n (on Elestio)

Persisting and Inspecting Conversation History in LangGraph

In a multi-agent LangGraph setup, capturing and inspecting the full conversation history is essential for debugging, auditing, and improving LLM workflows. Below are several recommended strategies:


✅ Recommended Approaches

1. Use LangSmith (Best Overall)

LangSmith is purpose-built for:

Rate Limiting Implementation Guide

Overview

This document outlines rate limiting strategies for LangServe applications to prevent abuse, manage resources, and control costs.

Implementation Options

Option 1: External Rate Limiting

Java Code Execution in LangGraph/LangChain

Overview

Adding Java code execution capabilities to LangGraph or LangChain workflows enables agents to write, compile, and run Java code dynamically. This pattern extends the reasoning capabilities of LLM agents with the ability to execute Java-specific operations, interact with JVM-based libraries, and leverage enterprise Java ecosystems.

graph TD
    A[LLM Agent] -->|Generates| B[Java Code]
    B --> C[Java Execution Tool]
    C -->|Compile| D[javac]

Asynchronous Validation in LangGraph Workflows

Conceptual Overview

Asynchronous validation in LangGraph refers to validation processes that run independently of the main request-response cycle. Instead of blocking the response while validation completes, the system:

  1. Returns results to the user immediately
  2. Runs validation in the background
  3. Handles validation outcomes separately (logging, alerting, or feeding back into the system)

Digital Wellness Reminder - Product Requirements Document

Overview

The Digital Wellness Reminder is a web application designed to help office workers maintain better digital wellness habits by reminding them to take regular breaks from screen time.

User Profile

Primary User: Office workers who spend extended periods in front of computer screens.