ArabsStock  AI Engineer  2023–2024

ArabsStock Assistant: 14 agents and AI search over millions of assets

Architected a 14-agent LangGraph assistant for ArabsStock and the semantic and visual search over millions of its photos, videos and vector graphics.

See the architecture
Role
Architecture and build (AI Engineer) Full-time, Remote
Company
ArabsStock an Arab stock-media platform
When
Apr 2023 – Dec 2024 1 yr 9 mos
Where
Remote (Dubai, UAE)
Stack
  • LangGraph
  • OpenAI API
  • Pinecone
  • Python
  • FastAPI
  • PostgreSQL
  • Docker
specialised agents in one LangGraph assistant
14
vision and audio model services, each a FastAPI container
5
of photos, videos and vector graphics behind semantic search
Millions
Apr 2023 – Dec 2024, full-time and remote
21 months
Fig. 1 ArabsStock Assistant Architecture
ArabsStock Assistant: a 14-agent LangGraph system and the platform's AI servicesArchitecture diagram. Top: media pipelines take raw video and audio through quality optimisation and metadata enrichment, then deliver it to the ArabsStock platform (photos, videos, vectors and audio). Below the platform are three systems. Assistant: platform requests go to a LangGraph orchestrator, which routes them to 14 specialised agents across five kinds of job: AI image generation, content moderation, semantic search, other platform AI services and database operations. Semantic search queries the Pinecone vector index; database operations use the platform database. An LLM agent evaluation workflow monitors response accuracy, agent routing and reliability. Indexing: platform assets go through automated batch ingestion and OpenAI embeddings into the Pinecone vector index, covering millions of assets. Model serving: five containerised FastAPI microservices serve image search, sound generation, instrument classification, BPM detection and audio watermarking to the platform.MEDIA PIPELINESASSISTANT14 AGENTSINDEXINGMODEL SERVINGRaw video & audioQuality optimisationMetadata enrichmentArabsStock platformphotos · videos · vectors · audioOrchestratorLangGraph1LLM agent evaluationaccuracy · routing2AI image generationContent moderationSemantic searchOther platform AI servicesDatabase operationsPlatform databaseBatch ingestionmillions of assetsOpenAI embeddingsPineconevector indexImage searchSound generationInstrument classificationBPM detectionAudio watermarking6345orchestratoragentretrieval · datamodel · LLMevaluationservice · infrastoreexternalrequestbatch · background1note
ArabsStock Assistant: a 14-agent LangGraph system and the platform's AI servicesArchitecture diagram. Top: media pipelines take raw video and audio through quality optimisation and metadata enrichment, then deliver it to the ArabsStock platform (photos, videos, vectors and audio). Below the platform are three systems. Assistant: platform requests go to a LangGraph orchestrator, which routes them to 14 specialised agents across five kinds of job: AI image generation, content moderation, semantic search, other platform AI services and database operations. Semantic search queries the Pinecone vector index; database operations use the platform database. An LLM agent evaluation workflow monitors response accuracy, agent routing and reliability. Indexing: platform assets go through automated batch ingestion and OpenAI embeddings into the Pinecone vector index, covering millions of assets. Model serving: five containerised FastAPI microservices serve image search, sound generation, instrument classification, BPM detection and audio watermarking to the platform.ASSISTANT14 AGENTSINDEXINGMODEL SERVINGMEDIA PIPELINESArabsStock platformphotos · videos · vectors · audioOrchestratorLangGraph1EvaluationLLM agents2AI image generationContent moderationSemantic searchOther platform AI servicesDatabase operationsDatabaseplatformPineconevectorindexBatch ingestionmillionsof assetsOpenAIembeddingsImage searchSound generationInstrument classificationBPM detectionAudio watermarkingRaw video & audioQuality optimisationMetadata enrichment3456orchestratoragentretrieval · datamodel · LLMevaluationstoreservice · infraexternalrequest1notebatch · background

Figure 1 The ArabsStock Assistant routes platform requests through a LangGraph orchestrator to 14 specialised agents across five kinds of job, backed by semantic search on Pinecone, containerised model-serving endpoints and media pipelines. Diagrams show the components named in public descriptions of the work. They are simplified, not complete system maps.

  1. Orchestrator. LangGraph routes each request to the right specialised agent.
  2. Evaluation. LLM agent evaluation workflows monitor reliability, response accuracy and agent routing in production.
  3. Specialised agents. 14 of them across five kinds of job: semantic search, AI image generation, database operations, content moderation and other platform AI services.
  4. Semantic search. Automated batch ingestion processes and indexes millions of photos, videos and vectors with OpenAI embeddings in Pinecone.
  5. AI services. Model-serving endpoints for image search, sound generation, instrument classification, BPM detection and audio watermarking, each a containerised FastAPI microservice.
  6. Media pipelines. Production pipelines take raw video and audio through quality optimisation and metadata enrichment before distribution on the platform.
Text description of the diagram

Architecture diagram. Top: media pipelines take raw video and audio through quality optimisation and metadata enrichment, then deliver it to the ArabsStock platform (photos, videos, vectors and audio). Below the platform are three systems. Assistant: platform requests go to a LangGraph orchestrator, which routes them to 14 specialised agents across five kinds of job: AI image generation, content moderation, semantic search, other platform AI services and database operations. Semantic search queries the Pinecone vector index; database operations use the platform database. An LLM agent evaluation workflow monitors response accuracy, agent routing and reliability. Indexing: platform assets go through automated batch ingestion and OpenAI embeddings into the Pinecone vector index, covering millions of assets. Model serving: five containerised FastAPI microservices serve image search, sound generation, instrument classification, BPM detection and audio watermarking to the platform.

On this page The problem
01

The problem

ArabsStock is an Arab library of millions of royalty-free photos, videos and vector graphics. The platform needed one assistant for very different jobs (finding assets, generating images, running database operations, moderating content) and search that finds assets by meaning and by visual similarity.

02

Approach

  1. Built the semantic search pipeline: OpenAI embeddings into a Pinecone index, filled by automated batch ingestion across millions of assets.
  2. Added visual-similarity search, so users can find visually similar assets across the library.
  3. Served image search, sound generation, instrument classification, BPM detection and audio watermarking as containerised FastAPI microservices, and added sound search for a beta sound library.
  4. Added agent evaluation workflows that track reliability, response accuracy and routing in production.
03

Architecture

Component view: a LangGraph orchestrator routes requests to specialised agents; a batch pipeline keeps the vector index current; model services run as separate containers; evaluation watches routing and accuracy. Figure 1

Users and apps
  • Platform users
Orchestration
  • LangGraph orchestrator
Agents
  • Semantic search
  • Image generation
  • Database operations
  • Content moderation
  • Other platform AI services
Models
  • OpenAI embeddings
Retrieval
  • Visual-similarity search
Data
  • Pinecone vector index
Services
  • Audio model services · Generation, search, instruments, BPM, watermarking
Pipelines
  • Batch ingestion · Millions of photos, videos, vector graphics
Quality
  • Agent evaluation
Connections (9)
  • Platform users to LangGraph orchestrator
  • LangGraph orchestrator to Semantic search
  • LangGraph orchestrator to Image generation
  • LangGraph orchestrator to Database operations
  • LangGraph orchestrator to Content moderation
  • LangGraph orchestrator to Other platform AI services
  • Batch ingestion to OpenAI embeddings
  • OpenAI embeddings to Pinecone vector index
  • Agent evaluation to LangGraph orchestrator (routing, accuracy)
04

Outcome

  • A production assistant whose 14 agents cover search, image generation, data operations and moderation.
  • Millions of photos, videos and vector graphics indexed for semantic search, plus visual-similarity search across the library.
  • A new audio line for the platform: a beta sound library with generation and search.
  • Agent reliability, accuracy and routing measured in production rather than assumed.
05

Stack

Orchestration
LangGraph
Models
OpenAI API
Retrieval
Pinecone
Data
PostgreSQL
Services
PythonFastAPI
Infrastructure
Docker

Where these facts come from. No figure here is estimated: where a client hasn't published a number, the page describes what the system does. Sources: my CV, LinkedIn and GitHub.

Drag to pan, pinch to zoom.

Keep reading

Questions about this build?

Ask my AI about “ArabsStock Assistant: 14 agents”.

It answers from my CV and public profile, in English or Arabic.