Skip to main content
async_lance_db.py
Knowledge.ainsert() awaits reader and embedding work. In Agno v2.7.2, LanceDb.async_upsert() calls the synchronous upsert and table methods, and LanceDb.async_search() calls the synchronous search directly.
For LanceDB Cloud async calls, set LANCEDB_API_KEY in the environment. Passing only api_key= authenticates the synchronous connection, while the v2.7.2 adapter does not forward that value to lancedb.connect_async().

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Export the API key

4

Run the example

Next Steps