TalentBridge Lebanon

TalentBridge Lebanon

MCP server for the TalentBridge Lebanon career-matching platform, offering job search, job retrieval, skill gap assessment, and job index statistics.

Category
访问服务器

README

TalentBridge Lebanon

An AI career-matching agent for Lebanese computer-science graduates. Upload a CV, and an LLM agent parses the profile, retrieves roles from an embedded job corpus by semantic similarity, computes a deterministic skill gap for each role, re-ranks with Lebanon-aware and seniority-aware signals, and writes a personalised 4-week upskilling plan — end to end in ~15–20 seconds.

Live demo: https://talent-bridge-lebanon.lovable.app

Results (benchmark run: 2026-08-20 15:51)

Metric Value
Mean Precision@5 0.84, across 15 labelled CVs
Retrieval stage 467 ms per CV (CV parse + embedding + vector search)
Full agent run ~15–20 seconds end to end, including the LLM steps
Index coverage 180 of 180 jobs embedded

Why this project

Lebanese CS graduates apply blindly: job boards are keyword-based, don't understand transferable skills, and don't tell you why you were rejected or what to learn next. TalentBridge closes that loop with a retrieval-augmented agent that is measurable — every ranking change is validated against a labelled benchmark of 15 CVs with a Precision@5 harness built into the app.

Dataset

The 180-job corpus and the labelled benchmark CVs are synthetic, generated with AI assistance. Job titles, seniority levels, and skill combinations were modelled on real job postings from Lebanon and the wider region so the distribution reflects the actual market, while company names are fictional. The data was generated for two reasons: there is no public dataset of Lebanese job listings that could be used, and the benchmark requires a correct track label on every job, which scraped postings do not have.

A direct limitation is that results are demonstrated on clean, well-structured records. Performance on real-world postings, which are messier and often incomplete, has not been measured.

Features

  • Agentic pipelineparse_cvsearch_jobsreflect_on_resultsanalyze_gapbuild_plan, orchestrated deterministically with a reflection-driven retry.
  • Semantic retrieval — 384-dim embeddings over 180 jobs, exact cosine search in Postgres (pgvector).
  • Deterministic, hallucination-proof scoring — matched/missing skills and readiness are computed in code from the database's required_skills, never by the model. The narrative prose is derived from those exact sets, so the text can never contradict the lists.
  • Lebanon-first re-ranking — final score = 0.35·semantic + 0.20·readiness + 0.25·location + 0.15·seniority + 0.05·domain, with tiered location fit (Lebanese city 1.0 → remote 0.95 → MENA 0.75) and an over-leveled penalty.
  • Built-in evaluation/eval runs the whole labelled CV set and reports mean Precision@5 and mean retrieval latency, with session-local run history.
  • PDF parsing in the browserpdfjs-dist extracts CV text client-side; nothing is stored until matching starts.
  • MCP server/mcp exposes search_jobs, get_job, assess_fit and job_index_stats so any MCP client (Claude, Cursor, …) can query the corpus.
  • Downloadable report — the results page exports a Markdown report identical to what is on screen.

Architecture

Browser (React 19 + TanStack Start)
  │  PDF text extraction (pdfjs-dist)
  ▼
Server functions (createServerFn, Cloudflare Workers runtime)
  ├─ parse_cv          LLM  → profile, skills (+inferred, cited), domains
  ├─ years/level       code → merged work periods, Intern/Junior/Mid
  ├─ search_jobs       embed query → match_jobs_vector() over pgvector
  ├─ reflect_on_results LLM → topical relevance check, max 1 retry (pooled results)
  ├─ analyze_gap       code → matched/missing skills, readiness %
  ├─ rerank            code → weighted blend (semantic/readiness/location/seniority/domain)
  └─ build_plan        LLM  → 4-week plan grounded in the missing skills
       ▼
Postgres (Supabase + pgvector): jobs, candidates, agent_runs, eval_cvs, eval_results

Tech stack

Layer Choice
Framework TanStack Start v1 (React 19, Vite 7, SSR on Cloudflare Workers)
Styling Tailwind CSS v4 + shadcn/ui
Database Postgres with pgvector (Supabase / Lovable Cloud)
LLM google/gemini-2.5-flash (+ gemini-2.5-pro for reasoning-heavy steps) via the Lovable AI Gateway
Embeddings openai/text-embedding-3-small, 384 dimensions
Agent interop Model Context Protocol server at /mcp

Repository layout

src/routes/            file-based routes: / (run agent), /results, /admin, /eval, /mcp
src/lib/agent.server.ts   the agent: parsing, retrieval, gap analysis, re-ranking, planning
src/lib/agent.config.ts   single source of truth for models and prompt guardrails
src/lib/skill-match.ts    canonical skill normalisation + shared matched/missing logic
src/lib/eval.server.ts    Precision@5 benchmark harness across the labelled CV set
src/lib/mcp/             MCP server and its four tools
supabase/migrations/     full schema: tables, RLS, grants, match_jobs_vector()
data/                    exported datasets (180 jobs; 15 labelled benchmark CVs + 2 demo profiles)

Pages

Route Purpose
/ Pick a benchmark CV or upload your own, then run the agent.
/results Parsed profile, top 5 matches with match %, gap analysis per match, 4-week plan, report download. Session-only — visitors never see someone else's run.
/admin Job index: CSV import, embedding coverage, corpus integrity check.
/eval Runs the agent across every labelled CV and reports mean Precision@5 and mean retrieval latency.

Evaluation

Ground truth lives in eval_cvs.relevant_job_ids. For each CV the harness runs the exact same pipeline a visitor gets (including re-ranking) and computes Precision@5 = |top5 ∩ relevant| / 5, then averages across the set together with per-CV retrieval latency. Because relevance is defined by track and compatible seniority, ranking changes are validated rather than guessed.

Running locally

git clone https://github.com/ak8x6/talent-bridge-lebanon.git
cd talent-bridge-lebanon
bun install
bun run dev            # http://localhost:8080

If you prefer npm:

npm install
npm run dev            # http://localhost:8080

Environment variables (a .env is required, none are committed):

VITE_SUPABASE_URL=...
VITE_SUPABASE_PUBLISHABLE_KEY=...
LOVABLE_API_KEY=...        # server-side only: LLM + embedding gateway

Database setup: apply supabase/migrations/*.sql in order, import data/jobs.csv via /admin, then click Generate embeddings. Load data/eval_cvs.csv into eval_cvs to enable the benchmark.

Security notes

  • No secrets in client code; gateway keys are read only inside server-function handlers.
  • Row-level security and explicit grants on every public table.
  • The track column is never exposed through retrieval, the UI, or the MCP tools — it is an evaluation label only.
  • Prompts forbid inferring gender from names; all generated prose is gender-neutral.

License

MIT © 2026 Ahmad Kassem — see LICENSE.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选