Saksham Kanojia.
All projectsRAG · COLLABORATION

CollabDocs

Useful answers. Inside your access boundary.

A collaborative document workspace with permission-aware retrieval, real-time editing, and an AI layer designed around predictable costs.

  • ACL-first retrieval
  • Zero free-tier API cost
  • 37 unit tests

Zero API cost refers to deterministic local AI features. Hosting and paid-model usage are separate.

CollabDocs public landing page introducing its collaborative document workspace
Live website previewView full image

At a glance

The engineering behind it.

My contribution
Built collaborative editing and permission-aware retrieval, with access roles enforced by the server.
Key decision
Keep deterministic AI features available without paid inference; gate paid models behind entitlements and usage limits.
Results & evidence
37 unit tests and MongoDB/Redis smoke tests. Document ACLs scope retrieval before ranking.

How it fits together

  1. Signed-in user
  2. Document ACLs
  3. Scoped retrieval
  4. Grounded generation
  5. Cited answer

The problem

An assistant in a shared workspace must respect document access before it generates an answer. It also needs a useful experience when paid model inference is unavailable.

Permissions are part of the query

Document ACLs scope the retrieval candidate set inside the database query, before ranking. Content outside a user’s access boundary is excluded from retrieval. Schema-constrained answers preserve citation provenance. This boundary does not replace other prompt-injection defenses.

A useful free tier

Deterministic summaries, mind-maps, and lexical search run without paid model calls. A server-side entitlement layer gates OpenAI features to paid plans, with per-user limits and checksum-keyed artifact caching.

A simpler deployment boundary

I consolidated an eight-service design into a modular monolith. Real-time co-editing uses Socket.IO with server-enforced roles. GitHub Actions runs 37 unit tests and live MongoDB/Redis smoke tests before the Docker deployment to Cloud Run.

Built with React, Node.js, MongoDB, Socket.IO, Redis, OpenAI, Cloud Run.