Senior AI Engineer (RAG/Search, LangChain)

We are hiring a Senior AI Engineer to build the core AI system behind a high-impact project: digitizing law in Morocco and Africa and creating the first AI-queryable legal knowledge base.

Our goal is to deliver reliable, source-grounded answers to legal questions, based on a large corpus of heterogeneous legal documents.

 

๐Ÿš€ Why this project

  • Build a legal knowledge infrastructure, not a demo
  • Work on high-precision AI where accuracy, traceability, and reliability matter
  • Create a long-term asset (Morocco โ†’ Africa) with real societal impact

 

๐ŸŽฏ Your mission

Own the end-to-end AI pipeline:

Legal documents โ†’ structured data โ†’ retrieval โ†’ cited answers

You will design, build, and improve both the document processing pipelines and the RAG/search system, with a strong focus on quality, evaluation, and robustness.

 

 

๐Ÿ”ง Key responsibilities

  • Process and structure heterogeneous legal documents (PDFs, scans, Word, images):
    • parsing, OCR, cleaning, structuring (articles, sections, hierarchy)
    • intelligent chunking with full traceability and metadata
  • Build and improve retrieval & RAG:
    • hybrid search (BM25 + embeddings)
    • reranking (cross-encoders)
    • query understanding and expansion
  • Ensure grounded, reliable answers:
    • strict citation to sources
    • no-answer / controlled refusal when evidence is missing
  • Measure and improve quality:
    • evaluation datasets, relevance metrics (Recall@k, MRR, nDCG)
    • regression testing and error analysis
  • Production readiness:
    • robust pipelines, monitoring, logging, performance

 

 

โœ… Profile

  • 5+ years of experience in AI / NLP / Search / Data Engineering roles
  • Strong Python skills
  • Hands-on experience with unstructured documents and/or RAG systems
  • Strong culture of measurement and experimentation
  • Professional proficiency in English, French is a plus.

 

 

๐Ÿ›  Tech stack (indicative)

  • Document processing & OCR tools
  • Retrieval: OpenSearch / Elasticsearch, vector search (FAISS, pgvector, etc.)
  • Reranking: HuggingFace / cross-encoders
  • RAG orchestration: LangChain or LlamaIndex (nice-to-have)
  • Cloud: AWS

Required skills experience

LangChain 1 year
Python 4 years

Required languages

English B2 - Upper Intermediate
Python, RAG, semantic search, ElasticSearch
Published 22 January
39 views
ยท
13 applications
70% read
ยท
16% responded
Last responded 1 day ago
To apply for this and other jobs on Djinni login or signup.
Loading...