Skip to content
View Anshsurana123's full-sized avatar

Block or report Anshsurana123

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.

Content in all repositories owned by your account will be closed.
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
Anshsurana123/README.md

⚡ ANSH SURANA

AI Systems · Infrastructure · Security · Edge AI


GitHub LinkedIn Email Portfolio


I don't just use abstractions.

Sometimes I build what's underneath them.


🧠 $ whoami

┌─────────────────────────────────────────────────────────┐
│                                                         │
│  ANSH SURANA                                            │
│                                                         │
│  ▸ AI systems                                           │
│  ▸ Retrieval & ranking                                  │
│  ▸ Backend infrastructure                               │
│  ▸ Security engineering                                 │
│  ▸ Edge / Android AI                                    │
│  ▸ Developer tooling                                    │
│                                                         │
│  Current loop:                                          │
│                                                         │
│       BUILD → MEASURE → BREAK → FIX → SHIP             │
│                                                         │
└─────────────────────────────────────────────────────────┘

I like working on the layer where things stop being magic and start becoming engineering.

Vector indexes. Retrieval pipelines. Authentication protocols. Agent execution. Android internals. Real-time systems.

Basically:

if something interesting is happening underneath the API, I probably want to know how it works.


🚀 Things I've Built

🧠 SYSTEMS

vector-db-from-scratch

⚡ AI

RAGINGOA

🔐 SECURITY

Bitfrost

📱 EDGE

Jagrut

🔎 INTELLIGENCE

Sentinel

🎯 RANKING

Job Recruitment


🧠 vector-db-from-scratch

A vector database built from scratch in Rust.

HNSW · WAL · Snapshots · Recovery · PQ · Filtering · Concurrency

This is probably the project that best represents how I like to build.

Instead of wrapping an existing vector database, I implemented the machinery underneath it.

                    ┌───────────────┐
                    │    Client     │
                    └───────┬───────┘
                            │
                            ▼
                    ┌───────────────┐
                    │   API Layer   │
                    └───────┬───────┘
                            │
                 ┌──────────┴──────────┐
                 ▼                     ▼
          ┌──────────────┐      ┌──────────────┐
          │ HNSW Search  │      │   Filtering  │
          └──────┬───────┘      └──────┬───────┘
                 │                     │
                 └──────────┬──────────┘
                            ▼
                    ┌───────────────┐
                    │ Vector Store  │
                    └───────┬───────┘
                            │
                  ┌─────────┴─────────┐
                  ▼                   ▼
             ┌────────┐          ┌──────────┐
             │  WAL   │          │ Snapshot │
             └────┬───┘          └─────┬────┘
                  └─────────┬──────────┘
                            ▼
                       Crash Recovery

What makes it interesting

  • HNSW approximate nearest-neighbor search
  • optimized distance calculations
  • metadata filtering
  • tombstones and compaction
  • product quantization
  • WAL persistence
  • snapshot recovery
  • concurrent read/write workloads
  • actual recall and latency gates
  • crash-recovery testing

Rust HNSW WAL PQ Concurrency


⚡ RAGINGOA

Retrieval engineering, not “just another RAG app.”

FAISS HNSW · Embeddings · Reranking · Guardrails · Multilingual · STT

The pipeline is designed around measurable retrieval latency and layered safety rather than a single retrieve → prompt → answer call.

Input
  │
  ▼
Language / STT
  │
  ▼
Guardrails
  │
  ▼
Embedding
  │
  ▼
FAISS HNSW
  │
  ▼
Hybrid Retrieval
  │
  ▼
Reranking
  │
  ▼
Evidence
  │
  ▼
Generation
  │
  ▼
Post-check
  │
  ▼
Response

The repository includes reproducible retrieval benchmark artifacts with measured latency breakdowns and percentile statistics.

Python FAISS HNSW Embeddings Reranking


🔐 Bitfrost

An AI/API gateway built around identity, request protection and reliability.

HMAC · Replay Protection · Rate Limiting · Circuit Breaker · Cache · Telemetry

The interesting part isn't forwarding an API request.

It's everything that can go wrong around one.

Client
  │
  ▼
Identity
  │
  ├── HMAC
  ├── Timestamp
  ├── Replay Protection
  └── Tenant Validation
           │
           ▼
      Policy Layer
           │
      ┌────┴────┐
      ▼         ▼
    Cache    Upstream
      │         │
      └────┬────┘
           ▼
       Telemetry

Go HMAC-SHA256 Supabase WebSockets Gateway


📱 Jagrut

An Android assistant that actually touches the operating system.

Wake Word · ONNX/TFLite · Hinglish · Accessibility · Camera2 · Automation

Instead of stopping at conversational AI, Jagrut connects language understanding to real Android capabilities.

Voice
  │
  ▼
Wake Word
  │
  ▼
STT
  │
  ▼
Command Parser
  │
  ├───────────────┐
  ▼               ▼
Local Action    AI Planner
  │               │
  └───────┬───────┘
          ▼
    Action Validation
          │
          ▼
 Android Execution

Built around Android internals such as AccessibilityService, Camera2, and on-device model runtimes.

Kotlin Android ONNX Runtime AccessibilityService Camera2


🔎 Sentinel

Academic intelligence + claim lineage.

Sentinel combines academic document processing with a structured claim relationship model.

The interesting bit isn't simply generating an answer.

It's being able to reason about:

Where did this claim come from? What supports it? What depends on it? What is connected to it?

Source
  │
  ▼
Document
  │
  ▼
Claim
  │
 ┌┴─────────────┐
 ▼              ▼
Parent        Children
 │              │
 └──────┬───────┘
        ▼
   Evidence Graph

Next.js React Prisma Supabase Gemini


🎯 Job Recruitment

Hybrid retrieval + deterministic ranking + reranking.

Rather than asking an LLM to simply “score this candidate,” the system separates retrieval and ranking into distinct stages.

Candidate
   │
   ├───────────────┐
   ▼               ▼
Lexical         Semantic
Retrieval       Retrieval
   │               │
   └───────┬───────┘
           ▼
      Hybrid Score
           │
           ▼
   Deterministic Rules
           │
           ▼
    Cross-Encoder
           │
           ▼
      Final Ranking

Python BM25 Embeddings Cross-Encoder Docker


🧪 The Rest of the Lab

Not every experiment deserves a giant section.

But they're here:

Project What it explores
Collaborative Workspace Real-time collaboration, synchronization, whiteboards & shared state
DevLens AI-assisted repository analysis and developer tooling
ChronoGuard Computer vision, tracking, privacy filtering & real-time events
Sark Pharma Tech Services Deployed full-stack product

🧰 Stack

Languages

Rust Python Go TypeScript Kotlin

AI / Systems

FAISS ONNX PostgreSQL

Web / Infrastructure

Next.js React Supabase Docker GitHub Actions


⚙️ Current Operating System

┌────────────────────────────────────────────────────────┐
│                                                        │
│  BUILD                                                │
│      ↓                                                 │
│  MEASURE                                               │
│      ↓                                                 │
│  FIND THE UGLY EDGE CASE                               │
│      ↓                                                 │
│  BREAK IT                                               │
│      ↓                                                 │
│  FIX IT                                                 │
│      ↓                                                 │
│  SHIP                                                   │
│      ↺                                                 │
│                                                        │
└────────────────────────────────────────────────────────┘

I genuinely enjoy the part where the happy-path demo stops working.

That's usually where the interesting engineering starts.


📊 GitHub Activity




some people collect tabs. I collect unfinished systems.


Build something weird.

Pinned Loading

  1. vector-db-from-scratch vector-db-from-scratch Public

    Rust

  2. RAGINGOA RAGINGOA Public

    Python 1

  3. jagrut jagrut Public

    Kotlin 2

  4. sentinel sentinel Public

    JavaScript

  5. Bitfrost Bitfrost Public

    Go

  6. job-recruitment job-recruitment Public

    Python