Captain Adel is a retrieval-augmented assistant: it answers GACAR questions from a curated corpus with the relevant Part cited, and refuses rather than guess when it can't ground an answer. Its answers come from retrieval over source regulations — not from a model that has memorised them. This repo holds the retrieval piece: a bilingual (Arabic / English) embedding model fine-tuned to find the right regulation for a query.
Fly GACA is independent and not affiliated with, endorsed by, or operated by the General Authority of Civil Aviation (GACA). Nothing here is official, legal advice, or for operational use. The authoritative source for any regulation is always GACA —
https://gaca.gov.sa. Captain Adel does not provide real-time weather, NOTAMs, clearances, or airworthiness/medical decisions.
1from sentence_transformers import SentenceTransformer
2
3model = SentenceTransformer("flygaca/CaptAdel")
4
5# If the base model requires prefixes (e.g. E5-style), keep them:
6query = "query: What are the medical requirements for a Part 61 PPL?"
7passages = [
8 "passage: GACAR Part 67 sets out the medical standards ...",
9 "passage: GACAR Part 61 covers certification of pilots ...",
10]
11
12q_emb = model.encode(query, normalize_embeddings=True)
13p_emb = model.encode(passages, normalize_embeddings=True)
14
15scores = q_emb @ p_emb.T
16print(scores)
Evaluated with the Fly GACA retrieval harness against a held-out bilingual query set,
flygaca/gacar-assistant-evals. Metrics reported per language, since cross-lingual retrieval quality is typically asymmetric.
Fine-tuned on query–passage pairs derived from the curated Fly GACA corpus (the 74 GACAR Parts, topical handbooks and the reference shelf). The source regulations remain GACA's; this model is trained only to retrieve over them.