How farheenaiml/bid-factory works
BidFactory turns uploaded RFPs into evidence-backed compliance assessments and draft answers, then routes uncertain items through engineer approval before export. The map follows the documented pipeline and the visible API orchestration, with separate knowledge-base and workspace branches. Several pipeline and storage modules are indexed but unsampled; their internal links are included only where the README or source index supports them, so internal detail and external integrations may be incomplete.
Main entry points: routes.py Bid and review API · orchestration.py Analysis orchestrator · knowledge_base.py Knowledge-base service · App.tsx Workspace shell
Components 28
Bid workspace
- Bid and review API
backend/api/routes.py - Bid repository
backend/services/repository.py - Bid records
backend/models/entities.py
Analysis pipeline
- Analysis orchestrator
backend/services/orchestration.py - RocketRide pipeline
backend/services/rocketride_service.py - Document ingestion
backend/services/document_ingestion.py - Requirement extraction
backend/services/requirement_extraction.py - Compliance analysis
backend/services/compliance_analysis.py - Response generation
backend/services/response_generation.py
Evidence knowledge base
- Knowledge-base API
backend/api/knowledge_base.py - Knowledge-base service
backend/services/knowledge_base.py - Document chunking
backend/services/chunking.py - Vector embeddings
backend/services/embeddings.py - Hybrid retrieval
backend/services/retrieval.py - Vector store
backend/services/vector_store.py - Graph service
backend/services/graph_service.py
Review and output
- Human review service
backend/services/review.py - Bid export
backend/services/export_service.py
User interface
- Workspace shell
frontend/src/App.tsx - Bid workspace pages
frontend/src/pages/BidDetail.tsx - RFP upload page
frontend/src/pages/NewRfp.tsx - Review dashboard
frontend/src/pages/Reviews.tsx - Bid dashboard
frontend/src/pages/Dashboard.tsx - API client
frontend/src/api/index.ts
Other components
- Sales engineer
- Groq LLM
- RocketRide Cloud
- CRM and email
Connections 39
- Sales engineer → Workspace shell: uses
frontend/src/App.tsx - Workspace shell → Bid workspace pages: routes to
frontend/src/App.tsx - Workspace shell → RFP upload page: routes to
frontend/src/App.tsx - Workspace shell → Review dashboard: routes to
frontend/src/App.tsx - Workspace shell → Bid dashboard: routes to
frontend/src/App.tsx - RFP upload page → API client: calls
frontend/src/pages/NewRfp.tsx - Bid workspace pages → API client: calls
frontend/src/pages/BidDetail.tsx - Review dashboard → API client: calls
frontend/src/pages/Reviews.tsx - Bid dashboard → API client: calls
frontend/src/pages/Dashboard.tsx - API client → Bid and review API: HTTP requests
frontend/src/api/index.ts - Sales engineer → Bid and review API: uploads RFP
README.md - Bid and review API → Bid repository: stores bid
backend/api/routes.py - Bid repository → Bid records: holds records
backend/services/repository.py - Bid and review API → Analysis orchestrator: analyzes bid
backend/api/routes.py - Analysis orchestrator → RocketRide pipeline: executes pipeline
backend/services/orchestration.py - Bid and review API → RocketRide pipeline: generates bid
backend/api/routes.py - RocketRide pipeline → RocketRide Cloud: runs pipeline
README.md - RocketRide pipeline → Document ingestion: falls back to
backend/services/rocketride_service.py - Document ingestion → Requirement extraction: provides text for
- RocketRide pipeline → Groq LLM: extracts requirements
README.md - Analysis orchestrator → Requirement extraction: extracts requirements
backend/services/orchestration.py - Analysis orchestrator → Compliance analysis: assesses compliance
backend/services/orchestration.py - Compliance analysis → Knowledge-base service: searches evidence
README.md - Knowledge-base API → Knowledge-base service: delegates to
backend/api/knowledge_base.py - Knowledge-base service → Document ingestion: extracts source docs
backend/services/knowledge_base.py - Knowledge-base service → Document chunking: chunks documents
backend/services/knowledge_base.py - Knowledge-base service → Vector embeddings: embeds chunks
backend/services/knowledge_base.py - Knowledge-base service → Hybrid retrieval: searches with
backend/services/knowledge_base.py - Knowledge-base service → Vector store: stores vectors
backend/services/knowledge_base.py - Analysis orchestrator → Response generation: drafts responses
backend/services/orchestration.py - Bid and review API → Response generation: generates responses
backend/api/routes.py - Bid and review API → Human review service: creates review items
backend/api/routes.py - Analysis orchestrator → Human review service: creates review items
backend/services/orchestration.py - Sales engineer → Review dashboard: reviews drafts
README.md - Bid and review API → Human review service: updates decisions
backend/api/routes.py - Bid and review API → Bid export: exports bid
backend/api/routes.py - Bid export → Bid repository: reads bid data
backend/services/export_service.py - Bid export → CRM and email: syncs or drafts
README.md - Analysis orchestrator → Graph service: uses graph analysis