π How to Use This Document
Each topic is structured as:
-
Outcome-first summary
-
Exact README excerpts (verbatim)
-
Representative code / usage
-
Simple architecture diagram
π΄ Kafka β Event-driven order ingestion demo
π£ AI-Agents β Prompt-to-code AI Agent CLI, RAG Agent to answer PDFs
π’ Data-Science-IIITB β R-based academic data science work
π‘ Web-Projects β Collection of small TypeScript/CSS web projects
Event-driven order ingestion with Apache Kafka
Repository: nitinsriv/Kafka
π― High-level Outcome
β Simple, reliable demonstration of file-driven order ingestion into Apache Kafka using Python.
β‘ Quick Summary (from README)
π¬ "This repository provides example producer and consumer scripts using Apache Kafka for simple order processing based on files containing XML order data."
π README Excerpts & Usage (Verbatim)
- producer.py
"Watches an
inputdirectory for new XML files describing orders, extracts their order number and name, and sends these [...]"
- consumer.py
"Consumes messages from the
ordersKafka topic, deserializes the order data, and prints the received messages."
<order>
<number>12345</number>
<name>BWG1</name>
</order>python producer.py
python consumer.pyπ File Summary
-
Monitors the input directory for XML files
-
Parses order number and name
-
Publishes JSON to Kafka topic orders
-
Subscribes to topic orders
-
Prints received JSON messages
π Technical Highlights
- Language: Python 3.x
- Dependency: kafka-python
- Environment Kafka broker :: localhost:9092
Production patterns illustrated:
File watching β parsing β Kafka publish Consumer subscription β deserialization β processing
π§± Architecture Diagram
graph TD;
FileSystem[Input XML files] --> Producer[producer.py]
Producer --> Kafka[Kafka Broker - orders topic]
Kafka --> Consumer[consumer.py]
Consumer --> Terminal[Console Output]
A simplistic programmable implemetation of AI-Agent
Repository: nitinsriv/ai-agents
π― High-level Outcome
β A compact CLI-based Prompt-to-Code AI Agent
β Demonstrates agent-driven code generation using LangChain + OpenAI
β Extracts and persists generated code automatically
π Description
"An AI Agent which provides a simple command-line interface for generating code snippets using langchain."
β¨ Features
- Interactive User Prompt
- AI Agent Integration
- Markdown Code Extraction
- Automatic Code Saving (output.txt)
π§° Dependencies
- LangChain
- OpenAI API key via .env
- Python
python play_webUI.py
π Example Output
Java - implement binary search on a sorted array
Java Code:
public class BinarySearch {
...
}
π Representative Flow & Notes
- Extracts first fenced markdown code block
- Saves to output.txt Uses
- regex-based parsing
π§± Architecture Diagram
graph TD;
User --> CLI[play_webUI.py]
CLI --> Agent[LangChain + OpenAI]
Agent --> AIResponse[AI Text + Code]
AIResponse --> Extractor[Regex Extractor]
Extractor --> Output[output.txt]
Retrieval-Augmented Generation (RAG) for answering questions over PDF documents
Repository: nitinsriv/rag-based-pdf
π― High-level Outcome
β Pipeline to ingest PDF documents, build a vector index of text chunks, and answer user questions by retrieving relevant chunks and conditioning an LLM (RAG).
β Demonstrates PDF parsing, chunking, embedding generation, vector store (FAISS/Chroma), and a retriever+LLM query flow.
β Example usage for document search, Q&A and knowledge-base style assistants.
π Description
RAG-based PDF demo: extract text from PDFs, create embeddings, store in a vector DB and run retrieval-augmented queries against an LLM.
β¨ Features
PDF ingestion Text chunking Embeddings (OpenAI) Retriever + LLM composition (context + generation)
Academic Data Science in R
Repository: nitinsriv/Data-Science-IIITB
π― High-level Outcome
π Data science coursework and labs authored in R, supporting reproducible analysis and use-cases.
π¦ Repository Metadata
Language: R (100%)
Description: R
π Expected Contents & Workflow
β R scripts
β Visualizations using tidyverse / ggplot2
π§ͺ Representative R Snippet
library(tidyverse)
data <- read_csv('data/student_scores.csv') %>%
mutate(passed = score >= 50)
summary_stats <- data %>%
group_by(course) %>%
summarize(
mean_score = mean(score, na.rm = TRUE),
pass_rate = mean(passed, na.rm = TRUE)
)
ggplot(summary_stats, aes(x = course, y = mean_score)) +
geom_col() +
theme_minimal()
Collection of small TypeScript & CSS web projects
Repository: nitinsriv/web-projects
π― High-level Outcome
β A set of compact web projects and demos, primarily implemented in TypeScript with CSS styling β useful as learning exercises and small deployable apps.
π Description
This repository contains multiple front-end projects showcasing TypeScript, modern tooling, and CSS techniques. Use it to explore examples, clone demos, or adapt them for quick prototypes.
β¨ Notable points
- Language composition: TypeScript-focused projects (approx 85% TypeScript, 14% CSS)
- Small, self-contained apps and UI demos