Skip to content

Glossary: RAG Beyond the Basics

asyncio / async and await

Also written: asyncio, async, await, asyncio.Semaphore, Semaphore

Python's way of running tasks that spend time waiting, like model calls. An `async def` function pauses at `await` so others run meanwhile, and a Semaphore caps how many run at once (four for RAGAS).

Where the book teaches it

Related terms

RAGASThreadPoolExecutor