Skip to content
View nitinsriv's full-sized avatar

Block or report nitinsriv

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. Markdown is supported. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
nitinsriv/README.md

πŸ’Ό My Work/Learning's Highlights β€” nitinsriv

πŸ“Œ How to Use This Document

Each topic is structured as:

  1. Outcome-first summary

  2. Exact README excerpts (verbatim)

  3. Representative code / usage

  4. Simple architecture diagram


🧩 Index

πŸ”΄ 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


πŸ”΄ Kafka

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)

πŸ“‚ Repository Contents

  • producer.py

"Watches an input directory for new XML files describing orders, extracts their order number and name, and sends these [...]"

  • consumer.py

"Consumes messages from the orders Kafka topic, deserializes the order data, and prints the received messages."


🧾 XML Input Format

<order>
<number>12345</number>
<name>BWG1</name>
</order>

▢️ Commands to Run

python producer.py
python consumer.py

πŸ“ File Summary

producer.py:

  • Monitors the input directory for XML files

  • Parses order number and name

  • Publishes JSON to Kafka topic orders

consumer.py

  • 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]
Loading

🟣 Prompt-to-Code AI Agent CLI

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

▢️ Run Command

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

⚠️ Extraction assumes markdown format and only captures the first block

🧱 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]
Loading

πŸ”΅ RAG Agent Query PDF

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)


🟒 Data Science (Data preparation, analytics, ML algos)

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()

🟑 Web Projects

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

Pinned Loading

  1. ai-agents ai-agents Public

    Python

  2. Data-Science-IIITB Data-Science-IIITB Public

    R

    R

  3. Kafka Kafka Public

    Python

  4. support-examples support-examples Public

    Forked from hivemq/support-examples

    Public repo with support examples to share.

    Java