How drishyaajith10/decody works
1. What this repo is
- Decody is a single-service meeting analysis application that takes raw meeting transcripts and produces structured insights, mainly action items and decisions.
- The system is oriented around transcript processing rather than long-lived data storage: input comes in, NLP runs, results are returned and optionally exported.
2. Top-level runtime shape
- The backend is a FastAPI application in backend/app/main.py.
- The same backend also serves the static frontend from backend/app/static, so the architecture is a combined API + UI delivery model rather than separate deployed services.
3. User interface boundary
- backend/app/static/index.html, script.js, and style.css form a lightweight browser UI.
- The frontend’s job is to collect transcript text, send requests to the backend endpoints, render extracted results, and likely trigger export.
- There is no indication of a complex client state model; the browser is a thin presentation layer over the API.
4. Primary API layer
- main.py is the orchestration boundary where requests enter the system.
- The README indicates three main endpoints:
- /analyze for transcript analysis,
- /search for query-based retrieval and extraction,
- /export for CSV output.
- This suggests the API layer is responsible for coordinating preprocessing, retrieval, extraction, and formatting rather than embedding NLP logic directly.
5. Transcript cleaning stage
- backend/app/utils/cleaner.py is the first processing boundary for messy transcript text.
- The README says it removes timestamps, speaker labels, and filler words.
- This stage normalizes unstructured input so downstream sentence segmentation and extraction behave more consistently.
6. NLP and model-related subsystem
- The backend/app/ml package contains the core analysis logic:
- nlp.py for NLP setup/pipeline support,
- config.py for model/pipeline settings,
- retriever.py for semantic search,
- action_extractor.py and decision_extractor.py for insight extraction,
- entity_extractor.py for entity-focused parsing.
- This is the main computational boundary of the system.
7. Hybrid retrieval + extraction flow
- The README describes a hybrid pipeline: cleaned transcript → sentence segmentation → embeddings → semantic retrieval → rule-based extraction → structured output.
- The retrieval layer uses MiniLM embeddings and cosine similarity to identify sentences relevant to a query such as “action items” or “decisions”.
- The extraction layer then applies rules and NLP heuristics to transform relevant text into structured records.
8. Action item and decision processing
- Action items are extracted with fields like who, what, and when.
- Decisions are detected using keywords and decision-oriented phrasing such as “agreed,” “decided,” and “approved.”
- These are handled as separate semantic categories, which is important for diagramming the system as two output branches sharing the same upstream pipeline.
9. Data flow through the system
- The dominant flow is:
- raw transcript input,
- cleaning,
- sentence/NLP processing,
- embedding and retrieval,
- targeted extraction,
- JSON-like structured response.
- The retrieval step acts as a filter to reduce the amount of text the extractors need to inspect, which is a meaningful architectural boundary.
10. Output and export
- backend/app/utils/export.py handles CSV export of results.
- This implies the analysis results are represented in a structured format internally, then converted to a tabular export format for sharing or download.
- Export is a secondary output path, not part of the core NLP pipeline.
11. Dependencies and implementation style
- The stack is intentionally lightweight: FastAPI on the backend, spaCy for sentence/NLP handling, Sentence Transformers for embeddings, and plain HTML/JS/CSS on the frontend.
- There is no sign of a database, queue, or external ML inference service; analysis appears to run in-process inside the API server.
12. Supporting materials
- docs/project_overview.md and docs/sample likely provide design notes and sample transcripts/results, useful for understanding expected inputs and outputs.
- These are documentation assets, not runtime components, but they help define the contract of the system.
13. How to draw the architecture
- A clear diagram would show:
- Browser UI on the left,
- FastAPI backend in the center,
- A preprocessing block,
- A shared NLP/embedding/retrieval block,
- Separate action-item and decision extraction branches,
- A CSV export path.
- The key conceptual boundary is that the backend owns all analysis logic; the frontend only submits text and displays results.
Main entry points: main.py FastAPI app · retriever.py Retriever · nlp.py NLP setup · script.js script.js
Components 16
Frontend
Thin browser UI served by the backend
- Browser UI · Lightweight HTML/JS/CSS interface for submitting transcripts and viewing results
backend/app/static - index.html · Entry page for the browser interface
backend/app/static/index.html - script.js · Browser-side request and rendering logic
backend/app/static/script.js - style.css · Presentation styling for the static UI
backend/app/static/style.css
API
FastAPI orchestration layer
- FastAPI app · Main orchestration boundary exposing analysis, search, and export endpoints
backend/app/main.py - CSV export · Converts structured analysis results into CSV output
backend/app/utils/export.py
Analysis
Transcript cleaning, retrieval, and extraction
- Cleaner · Normalizes transcripts by removing timestamps, speaker labels, and filler words
backend/app/utils/cleaner.py - NLP setup · Shared spaCy and sentence-processing support
backend/app/ml/nlp.py - Model config · Central configuration for NLP and embedding behavior
backend/app/ml/config.py - Retriever · Embeddings and cosine-similarity retrieval for relevant transcript sentences
backend/app/ml/retriever.py - Actions · Extracts action items with who, what, and when fields
backend/app/ml/action_extractor.py - Decisions · Detects decision statements from agreement and approval language
backend/app/ml/decision_extractor.py - Entities · Entity-focused parsing support for structured insight generation
backend/app/ml/entity_extractor.py
Support
Documentation and sample material
- README · Project description and endpoint contract
README.md - Project notes · Design and architecture notes
docs/project_overview.md - Samples · Example transcripts and expected outputs
docs/sample
Connections 18
- index.html → script.js: loads · The page loads browser logic
- index.html → style.css: styles · The page uses the stylesheet
- script.js → FastAPI app: calls · Client submits transcript analysis, search, and export requests
- FastAPI app → Cleaner: preprocess · Requests begin by normalizing raw transcript text
- Cleaner → NLP setup: feeds · Clean text flows into sentence and NLP processing
- NLP setup → Model config: configured by · Pipeline behavior is driven by shared model settings
- NLP setup → Retriever: supports · Sentence segmentation and NLP output support retrieval
- Retriever → Actions: routes to · Relevant action-related text is passed to the action extractor
- Retriever → Decisions: routes to · Relevant decision-related text is passed to the decision extractor
- Retriever → Entities: routes to · Relevant text can also be parsed for entities
- Actions → FastAPI app: returns · Structured action items are assembled into the API response
- Decisions → FastAPI app: returns · Structured decisions are assembled into the API response
- Entities → FastAPI app: returns · Entity data is merged into structured output
- FastAPI app → CSV export: exports · Analysis results are formatted as CSV for download or sharing
- FastAPI app → script.js: responds to · Frontend renders the returned structured results
- README → FastAPI app: documents · README describes the available endpoints and pipeline
- Project notes → FastAPI app: documents · Architecture notes explain the backend flow
- Samples → Actions: illustrates · Examples help define expected extraction behavior