Back to work
Built and shipped at PT General Magick Indonesia — no longer runningAI workspace for legal & HR teams

Magick Workforce

An AI workspace for legal and HR teams: a knowledge-grounded chat, a document editor, and a pipeline that turns uploaded documents into searchable, embedded knowledge, backed by a Go AI service that brokers gRPC calls to other AI services and a backend worker.

My contribution
Backend, document pipelines and the Go AI service
Built at
PT General Magick Indonesia
Commercial product. Source is private.
Core stack
ReactTypeScriptFastAPIGogRPCMongoDB
MAGICK WORKFORCEAI WORKSPACE / LEGAL & HRDOCUMENT PIPELINESEMBEDDINGKNOWLEDGEDOC EDITINGAI SERVICEGO / GRPCAI CALL ROUTERDATA STOREMONGODBGRPC SERVICE MESHGO SVCLLM SVCEMBED SVCWORKERPIPELINE STAGEGRPC CALLAI CALL NODE
A Go service brokers every AI call over gRPC, so the FastAPI backend, the LLM and the embedding service never talk to each other directly.

How it fits together

The main pieces, from the screens people use down to the database.

React / TypeScript

  • Chat workspace
  • Knowledge library
  • Document editor

FastAPI

Backend for auth, workflows and documents

  • Embedding pipelineChunks and embeds uploaded documents
  • Knowledge pipelineIndexes chunks for retrieval at chat time
  • Document editing pipelineRe-embeds documents after they're edited

CONNECTED SERVICES & DATA

  • Go AI serviceRoutes AI calls to other AI services and the backend worker over gRPC
  • Backend workerRuns pipeline jobs asynchronously
  • MongoDBDocuments, knowledge chunks and chat history

Engineering decisions

Chat grounded in your own knowledge

Problem

Legal and HR teams need answers from their own documents and policies, not a generic model's guesses.

Approach

Built a chat interface backed by a knowledge pipeline, so the AI service retrieves relevant chunks from the team's own documents before it answers.

A pipeline that turns documents into knowledge

Problem

Uploaded legal and HR documents need to become searchable knowledge without manual tagging.

Approach

An embedding pipeline chunks and embeds each document, and a knowledge pipeline indexes it, so an uploaded file is usable by chat as soon as it finishes processing.

Editing documents without breaking their knowledge

Problem

When a document is edited after it's been embedded, chat shouldn't keep answering from the stale version.

Approach

A document editing pipeline re-runs embedding on changed content, keeping what the chat retrieves in sync with what's actually on the page.

A Go service to broker AI calls

Problem

AI calls needed to fan out to several AI services and a backend worker, which didn't fit naturally alongside the rest of the Python backend.

Approach

Built a separate Go service that talks to the other AI services and the backend worker over gRPC, keeping AI call orchestration out of the FastAPI backend.