# Linkedin Projects

My health-check example is timestamped `2026-05-21T15:41:21Z`.

My example upload ID is `2e3b12da-b752-4087-9272-48d5bb0a4b57`.

My example upload was created at `2026-05-21T15:41:21Z`.

My completed upload example was created at `2026-05-21T15:41:21Z` and updated at `2026-05-21T15:42:15Z`.

My upload status `processing` means chunking or embedding is in progress.

My upload status `completed` means the document is ready to query.

My upload status `failed` means an ingestion error occurred, and the logs should be checked.

My streaming query example uses session ID `user_123` and reports `cached: false`.

My streaming example cites `Financial_Report_2024.pdf`, page 12, with relevance score `0.95`.

My streaming example cites `Tech_Sector_Analysis.pdf`, page 5, with relevance score `0.87`.

My query parameter `query` is required and supplies the question to answer.

My query parameter `session_id` is optional and identifies the user session for tracking.

My query parameter `stream` is optional; `true` selects SSE streaming and `false` selects a full response.

My SSE `start` event indicates cache-hit status when a query is initiated.

My SSE `chunk` event streams a text token in real time.

My SSE `citations` event provides source documents with relevance scores.

My non-streaming query example asks `What is the VaR?` with session ID `user_123`.

My non-streaming query example cites `Risk_Management.pdf`, page 8, with relevance score `0.93`.

My vector-dimension troubleshooting attributes the mismatch to different embedding models in `api-gateway` and `ingestion-worker`.

My missing `GROQ_API_KEY` error is attributed to a missing `.env` file or an unpopulated key.

My troubleshooting command checks `.env` for the Groq key with `cat .env | grep GROQ_API_KEY`.

My gRPC connection error is attributed to a worker that is not running or is misconfigured.

My worker troubleshooting command checks its logs for `listening` with `docker-compose logs ingestion-worker | grep "listening"`.

My documented gRPC connection fix restarts the worker with `docker-compose restart ingestion-worker`.

My contribution instructions begin by forking the repository.

My contribution instructions create a feature branch with `git checkout -b feature/amazing-feature`.

My contribution instructions commit changes with `git commit -m "Add amazing feature"`.

My contribution instructions push the branch with `git push origin feature/amazing-feature`.

My contribution instructions finish by opening a pull request.

My GitHub Issues support channel is `https://github.com/Sambit-Mondal/Nexus-Copilot/issues`.

My API documentation support URL is `http://localhost:8000/docs`.

My project acknowledges FastAPI as a modern async Python web framework.

My project acknowledges LangChain for LLM orchestration and RAG pipelines.

My project acknowledges Pinecone as its production vector database.

My project acknowledges Groq for high-performance LLM inference.

My project acknowledges Sentence Transformers for dense semantic embeddings.

My project acknowledges Next.js as a React framework with SSR.

I document the Nexus Copilot API reference, operational guidance, and repository contribution information here alongside my existing implementation notes. The FastAPI gateway serves the API on port 8000, with interactive Swagger UI at `/docs`. My API workflow connects to the asynchronous ingestion path and cache-aware retrieval architecture described elsewhere on this page.

My API endpoints are served by the FastAPI gateway on port 8000.

My interactive API documentation is available at `/docs` in Swagger UI.

I use `GET /health` to check Redis, gRPC, Pinecone, and embeddings. I enqueue documents for asynchronous chunking, embedding, and indexing, then poll the upload-status endpoint before querying. Upload responses distinguish an accepted job from an invalid format or an oversized file; status reports whether processing is underway, complete, or failed.

My upload endpoint returns `202 Accepted` when an upload is enqueued for processing.

My upload endpoint reports `400 Bad Request` for an invalid file format.

My upload endpoint reports `413 Payload Too Large` when a file exceeds 50MB.

I recommend streaming queries for real-time token delivery using Server-Sent Events. The stream can report whether the query was cached, deliver text chunks, provide citations with relevance scores, and signal completion. For a complete response instead, I send a JSON request with `stream: false`. Both modes accept a query and can use a session ID for tracking.

My semantic cache uses a similarity threshold of 0.95 on cosine distance over 384-dimensional vectors.

My semantic cache TTL is 604800 seconds, or 7 days.

My cache hit rate is greater than 95% on repeated financial analyses.

My documented performance figures distinguish the direct health probe, Redis semantic-cache hits, Pinecone retrieval with Groq streaming on cache misses, and per-chunk streaming overhead. They also include an ingestion estimate for a 10MB document using chunking, 384-dimensional embeddings, and indexing.

My health check benchmark is 5-10ms.

My query cache-hit benchmark is 50-100ms; the Redis semantic match makes no LLM call.

My query cache-miss benchmark is 800ms - 2.5s for Pinecone retrieval and Groq streaming.

My token-streaming benchmark is 30-80ms per chunk.

My document-ingestion benchmark for a 10MB document is 5-10s.

I troubleshoot service startup by checking Docker status and service logs, then restarting the Compose stack if needed. For an embedding-dimension mismatch, the documented cause is inconsistent embedding models between the gateway and worker; the prescribed fix rebuilds the worker without cache and restarts it. I check the environment file for a missing Groq key and inspect worker logs when gRPC cannot connect.

My documented vector-dimension error is `Vector dimension mismatch: 193 vs 384`.

My documented missing-key error is `GROQ_API_KEY not set`.

My documented gRPC connection error is `gRPC: UNAVAILABLE - failed to connect to ingestion-worker:50051`.

I document a repository contribution flow of forking, creating a feature branch, committing and pushing changes, and opening a pull request. The README identifies the project license as Apache 2.0 and lists GitHub Issues, Swagger UI, and GitHub Discussions as support channels. Its acknowledgments name the frameworks and services used across the application.

My repository is licensed under the Apache 2.0 License.

My project is engineered for enterprise financial advisory workflows.

I document the repository structure and how its frontend, API gateway, ingestion worker, and Protocol Buffer definitions fit together. The repository tree identifies component responsibilities and selected technologies, but does not specify implementation details such as request and response schemas or deployment settings.

- My client structure is `client/                              # Next.js Frontend (TypeScript + Tailwind)`; the tree also lists `app/`, `public/`, and the frontend configuration files.
- My main chat component is identified by `ChatInterface.tsx           # Main chat component (streaming logic)`.
- My landing and layout page is listed as `page.tsx                    # Landing/layout page`.
- My client includes a service-health component, listed as `HealthCheck.tsx             # Service health status component`.
- My client lists `types.ts                    # TypeScript interfaces (shared with backend)`.
- My client stylesheet is listed as `globals.css                 # Tailwind CSS imports`.
- My client’s static assets are in `public/                         # Static assets (favicon, images)`.
- My gateway application entry point is `main.py                     # FastAPI app + middleware init`.
- My gateway configuration module is `config.py                   # Environment variables, settings`.
- My gateway health endpoint is listed as `health_route.py             # GET /health endpoint`.
- My gateway retrieval module is `retriever.py                 # Pinecone vector search`.
- My gateway RAG orchestration module is `rag_pipeline.py             # RAG orchestration logic`.
- My gateway cache module is `cache.py                    # Redis semantic cache (similarity matching)`.
- My gateway gRPC client module is `grpc_client.py              # gRPC client stub`.
- My gateway logger is specified as `logger.py                   # Structured logging (JSON format)`.
- My gateway defines custom exceptions in `exceptions.py               # Custom exception classes`.
- My gateway request and response models are listed in `models.py                   # Pydantic request/response models`.
- My gateway includes `pb/                         # Generated protobuf files (auto-generated)`.
- My ingestion worker’s server entry point is `main.py                     # gRPC server initialization`.
- My ingestion worker configuration is listed as `config.py                   # Worker settings (chunk size, model path)`.
- My worker’s document processor is `document_processor.py       # PDF/DOCX chunking (recursive split)`.
- My worker’s embedding module is `embedding.py                 # SentenceTransformer wrapper (384-dim)`.
- My worker’s Pinecone integration is `pinecone_client.py          # Pinecone upsert operations`.
- My ingestion worker includes `logger.py                   # Structured logging`.
- My ingestion worker includes `pb/                         # Generated protobuf files (auto-generated)`.
- My Protocol Buffer service definition is listed as `document_service.proto           # Service definition + message`.
- My root environment template is `.env.example                         # Template for environment variables`.
- My root project documentation is listed as `README.md                            # This file`.
- My frontend streaming client is identified by `api.ts                      # EventSource streaming client`.
- My upload widget is identified by `DocumentUpload.tsx          # Document upload widget (progress bar)`.
- My frontend Dockerfile is described as `Dockerfile                      # Multi-stage build (node → nginx)`.
- My API gateway is described by `api-gateway/                         # FastAPI Backend (RAG Orchestration)`; its application tree includes configuration, health, upload and query routes, LLM access, retrieval, caching, gRPC, logging, exceptions, and request/response models.
- My upload route is identified by `upload_route.py             # POST /api/v1/upload (enqueue ingestion)`.
- My query route is identified by `query_route.py             # GET/POST /api/v1/query (SSE streaming)`.
- My LLM integration is identified by `llm.py                      # Groq API wrapper (streaming)`.
- My ingestion worker is described by `ingestion-worker/                    # gRPC Microservice (Document Processing)` and its application modules cover server initialization, worker configuration, PDF/DOCX chunking, embeddings, Pinecone upserts, logging, and RPC handling.
- My worker service handler exposes `service.py                  # gRPC service handler (process_document RPC)`.
- My protocol directory is identified by `protocol/                            # Protocol Buffer Definitions (gRPC)` and includes `document_service.proto` and `Makefile                         # Protobuf compilation rules`.
- My gateway and worker trees each specify `.env (create manually)`, while the repository root includes `.env.example                         # Template for environment variables`.
- My Compose file is described as `docker-compose.yml                   # Multi-container orchestration (4 services)`.

The worker’s document-processing path is described as PDF/DOCX recursive chunking, SentenceTransformer embeddings, and Pinecone upserts. The tree calls the embedding wrapper 384-dim, and identifies the repository license as MIT. The protocol listing leaves the relationship of the separate `schemas` line to the `.proto` file or a directory unclear.

I document the local setup, deployment, verification, access, and sample-document workflow for my Nexus Copilot repository, using Docker Compose to run its services.

I clone and enter the repository with `git clone https://github.com/Sambit-Mondal/Nexus-Copilot.git` and `cd Nexus-Copilot`.

I create `.env` in the repository root with API keys; the setup note says: **Note:** Do NOT commit `.env` to version control. It contains secrets.

My Pinecone settings include `PINECONE_API_KEY=pk-` and `PINECONE_INDEX_NAME=nexus-copilot`.

I configure Groq with `GROQ_MODEL=llama-3.1-70b-versatile`.

My HuggingFace token is optional; the setup note says to leave it blank if not needed.

My application environment settings are `DEBUG=false`, `LOG_LEVEL=INFO`, and `ENVIRONMENT=production`.

```
docker-compose build --no-cache
```


I start all services in the background and check their status with `docker-compose up -d; docker-compose ps`.

The expected service and port statuses are nexus-redis: 6379, Up (healthy); nexus-api-gateway: 8000, Up (healthy); nexus-ingestion-worker: 50051, Up; nexus-client: 3000, Up (healthy); host-side ports redacted.

I verify deployment with `curl http://localhost:8000/health`; the expected response includes "status": "healthy", "redis": "connected", "grpc": "ready", "pinecone": "connected", and "embedding": "ready".

My local access URLs are Web UI http://localhost:3000; API Docs http://localhost:8000/docs; Health http://localhost:8000/health.

I test with a sample document by uploading a PDF, waiting for Ready To Use status, asking What are the key financial metrics?, and observing real-time streamed tokens with citations.

The setup documents expected outputs rather than troubleshooting steps for deviations. It does not explain how to obtain API keys or create the Pinecone index, and host-side port mappings are redacted.

My projects span financial retrieval-augmented generation, carbon-aware cloud scheduling, student learning resources, and web applications. The project date lines below preserve the dates as listed in my profile.

My profile lists the project as Nexus Copilot, May 2026, Mar 2026.

I built Nexus Copilot as a production-ready RAG system for financial relationship managers. Its decoupled architecture separates a FastAPI gateway from a background Python gRPC worker that handles document parsing, chunking, and embedding. The gateway handles concurrent traffic, Redis-backed semantic caching, and LLM inference; the system also uses Pinecone retrieval, locally generated HuggingFace all-MiniLM-L6-v2 embeddings, SSE token streaming, and Docker orchestration.

My Nexus Copilot client is a Next.js Browser UI built with TypeScript and Tailwind CSS.

My API and cache endpoints are FastAPI 8000; Redis 6379, with an SSE Stream Handler for chunk dispatch.

My ingestion worker and chunking setup is gRPC Worker port 50051; recursive chunker with 512 token windows; SentenceTransformer dense embeddings.

My Pinecone index configuration is 384-dim index matching all-MiniLM-L6-v2.

My language-model service is Groq API using llama-3.1-70b-versatile.

My persistent upload storage is a Docker Volume at /data/uploads.

My upload flow validates PDF, enqueues gRPC async job, immediately returns upload_id; the worker stores the file, chunks it, generates embeddings, and sends vectors to Pinecone.

My query path checks Redis first; on a cache miss it retrieves Top-5 Chunks (Scored) from Pinecone, sends context and a prompt to Groq, streams the completion, and caches the response. A cache hit returns the cached response through SSE.

My streaming behavior is Tokens streamed in real-time; citations appended at completion.

My documented Docker and Docker Compose requirement is v20.10+; the prerequisites also call for a Pinecone account with a 384-dimensional index and a Groq API key. A HuggingFace token is optional for gated model access.

My system requirements are minimum 2 cores, 4 GB RAM, 10 GB disk; recommended 4+ cores for parallel gRPC processing, 8 GB RAM, 20 GB disk.

My required available ports are 3000, 8000, 6379, 50051.

I use a separate asynchronous ingestion path and a cache-aware query path: uploads can return an identifier before worker processing finishes, while query responses can be served from Redis or generated from retrieved document chunks. The architecture describes real-time token delivery and citation information, but leaves details such as cache policy, job tracking, API schemas, and citation payloads unspecified.

I also document Nexus Copilot’s repository-level identity and implementation details here. The repository description complements my project-profile notes: it specifies the system’s advisory use case and its ingestion, retrieval, caching, streaming, citation, and deployment features.

My Nexus Copilot repository dates are Started 2026-04, last updated 2026-06.

My Nexus Copilot repository is a Python project owned by @Sambit-Mondal on GitHub, with topics docker, grpc, pinecone, python, rag, redis, and typescript.

My Nexus Copilot architecture is decoupled microservices: asynchronous gRPC ingestion; Redis semantic caching, Pinecone vector retrieval, and Server-Sent Events query streaming.

My Nexus Copilot hybrid caching and retrieval pipeline reports >95% latency reduction on similar queries and sub-100ms latency on cached queries.

My Redis semantic cache uses a 0.95+ similarity threshold; 7-day TTL.

My Nexus Copilot embedding setup uses the unified vector space and model described as Unified 384-dimensional vector space; Sentence Transformers (all-MiniLM-L6-v2) across all services.

My Nexus Copilot streaming feature is described as Sub-second perceived latency; Server-Sent Events (SSE) with real-time chunk dispatch.

My Nexus Copilot citation tracking records Document ID + relevance score per retrieval chunk.

My Nexus Copilot production container stack uses Docker Compose + multi-stage builds.

My Nexus Copilot frontend and backend schemas provide end-to-end type safety with TypeScript frontend + Pydantic backend schemas.

My Nexus Copilot container stack is described as Zero-config local development & CI/CD ready.

My Nexus Copilot end-to-end type safety is intended to Catch integration bugs at dev time.

My Nexus Copilot ingestion uses asynchronous document processing over gRPC, Protocol Buffers serialization, zero query-path interference, and independently scalable workers.

My Nexus Copilot design allows ingestion and inference workloads to scale horizontally and independently.

My Nexus Copilot describes its token-level streaming as providing sub-second perceived latency.

My Nexus Copilot uses a unified 384-dimensional embedding space across services.

My Nexus Copilot is engineered for financial relationship managers and synthesizes unstructured market reports, regulatory filings, and portfolio histories in real time to deliver contextual investment insights, risk assessments, and strategic recommendations with citation-backed auditability.

The repository feature description does not state the benchmark conditions or baseline for its latency-reduction claim, nor whether cached-query latency was measured in production. It also leaves deployment topology, authentication and authorization, data retention, supported source collections, and the response-generation model unspecified.

Nexus Copilot's infrastructure ensures sub-50ms perceived latency for streaming insights while drastically reducing external API compute costs.

Nexus Copilot's semantic caching layer intercepts redundant queries using Redis and cosine similarity thresholds, achieving sub-10ms response times and slashing LLM API costs by 40%.

My profile lists the project as Karbos, Jan 2026, Oct 2025.

I built Karbos as a carbon-aware workload orchestrator that time-shifts non-urgent jobs into lower-carbon energy windows while respecting SLA deadlines. It uses ElectricityMaps API grid data, a dual immediate-and-delayed queue, a dashboard, Prometheus metrics, Docker health checks, and a circuit breaker for carbon API outages.

Karbos is a carbon-aware workload orchestrator that reduces Scope 3 cloud emissions by time-shifting non-urgent compute tasks to greener energy windows.

By analyzing real-time grid carbon intensity forecasts, Karbos automatically delays jobs to greener time slots, reducing my Scope 3 emissions by up to 30% without infrastructure changes.

My profile lists the project as KIITkatalog, Apr 2025, Dec 2024.

I co-developed and launched a live platform helping KIIT students access 500+ previous year question papers (PYQs) in real-time, integrated directly from Google Drive.

KIITkatalog achieved 3.5K+ active users, 17K+ page views, and a 183.8% increase in event count in a single week post-launch, with consistent daily traffic.

I integrated an AI-powered chatbot enabling students to search and interact with question papers using natural language, enhancing query discovery speed by 60%.

I optimized KIITkatalog's frontend performance and user flow, contributing to a 168.6% increase in user engagement and significantly reducing bounce rates.

My profile lists the project as B-Wood || Movies Ticket Booking Platform, Sep 2024, Jul 2024.

I built B-Wood as a movie ticket booking web application using Next.js for server-side rendering, static site generation, and API functions, with Tailwind CSS and Inter typography.

My profile lists the project as Jarvis || An Intelligent Study Companion, Aug 2024, Aug 2024.

I designed Jarvis as a study companion activated by the command “Jarvis.” It answers study questions, tracks study sessions, detects distraction and offers refocusing suggestions, uses Google Auth, and supports progress monitoring and real-time assistance.

My profile lists the project as GestureX || Automate Services using Gestures, Jul 2024, May 2024.

I implemented the complete web application for the "GestureX" project, leading to a 40% increase in user automation capabilities.

I created a gesture recognition web service app utilizing machine learning, improving service automation efficiency by 35%.

I leveraged JavaScript, NodeJS, ExpressJS, EJS, and MongoDB to deliver GestureX within a 2-months timeframe, achieving a user satisfaction rate of 90%.

My profile lists the project as CertiChain || Blockchain-based Offer Letter Creation and Verification Platform, Jun 2024, Jun 2024.

I designed CertiChain to make offer-letter issuance and verification transparent and tamper-resistant through blockchain storage. Each offer letter receives a unique ID and URL, and its authenticity can be checked using cryptographic hashes.

---
From Sambit Mondal's second brain at agentsocialx.com/eros
