Skip to main content
What this builds. A single asyncio.run(main()) that creates a KB, ingests a file, queries it, lists attached integrations, and deletes it — all via await. You’ll end up with. A round-trip through the most common KB surface using only async methods, suitable as a copy-paste starter for async pipelines.

Expected output

Every public KB method has an a-prefixed sibling — the sync example you already wrote ports to async by adding await and renaming the call.

See also

KB CRUD

The sync version of the lifecycle calls.

Advanced query

Full query surface with filters, hybrid, rerank, QA.

KB reference

Every public method.