How hala-alkeddeh/market-entry-assistant works
Bosla guides an investor from a bilingual market-entry profile to a source-grounded analysis, then supports cited follow-up questions. The backend retrieves English-normalized source material from Pinecone and uses Gemini to produce answers; a separate ingestion path indexes the private knowledge base. The README documents the end-to-end retrieval flow, while the sampled server code confirms route validation and query delegation. Some page-level API wiring and unsampled analysis details are documented but not visible in the excerpts.
Main entry points: AppRouter.jsx Page router · query.js Retrieval and generation · ingest.js Source ingestion · app.js API routes
Components 21
Bilingual frontend
- App shell
src/App.jsx - Page router
src/router/AppRouter.jsx - Home page
src/pages/Home.jsx - Profile input
src/pages/Input.jsx - Analysis flow
src/pages/Analysis.jsx - Results and follow-up
src/pages/Result.jsx - Markdown renderer
src/components/MarkdownText.jsx - Language context
src/i18n/LanguageContext.jsx - Arabic strings
src/i18n/ar.js - English strings
src/i18n/en.js - Decision engine
src/decisionEngine.js
Analysis API
- API routes
server/app.js - Retrieval and generation
server/query.js - Mock answers
server/mock.js - Runtime configuration
server/config.js - Serverless entrypoint
api/index.js
Knowledge pipeline
- Source ingestion
server/ingest.js - Reference documents
sources
External services
- Pinecone index
- Google Gemini
Other components
- Investor
Connections 23
- Investor → Home page: starts at
- App shell → Page router: renders
src/App.jsx - Page router → Home page: routes to
src/router/AppRouter.jsx - Page router → Profile input: routes to
src/router/AppRouter.jsx - Page router → Analysis flow: routes to
src/router/AppRouter.jsx - Page router → Results and follow-up: routes to
src/router/AppRouter.jsx - Profile input → Analysis flow: submits profile
src/pages/Input.jsx - Analysis flow → API routes: posts analysis
README.md - Results and follow-up → API routes: posts follow-up
src/pages/Result.jsx - API routes → Retrieval and generation: delegates answers
server/app.js - Retrieval and generation → Pinecone index: retrieves matches
README.md - Retrieval and generation → Google Gemini: embeds and generates
server/query.js - Source ingestion → Reference documents: reads documents
server/ingest.js - Source ingestion → Google Gemini: embeds chunks
server/ingest.js - Source ingestion → Pinecone index: upserts vectors
server/ingest.js - Retrieval and generation → Mock answers: uses mock mode
server/query.js - Retrieval and generation → Runtime configuration: reads settings
server/query.js - Source ingestion → Runtime configuration: reads settings
server/ingest.js - Serverless entrypoint → API routes: re-exports app
README.md - Language context → Arabic strings: loads dictionary
src/i18n/LanguageContext.jsx - Language context → English strings: loads dictionary
src/i18n/LanguageContext.jsx - App shell → Language context: uses context
src/App.jsx - Results and follow-up → Markdown renderer: renders answers
src/pages/Result.jsx