Hello,
I encountered an error when attempting to clear Pydantic docs from the database.
Here is the code:
asyncio.run(clear_existing_records())
Error is:
archon/streamlit_ui.py:629: RuntimeWarning: coroutine ‘clear_existing_records’ was never awaited
st.error(f"Error clearing Pydantic AI docs: {str(e)}")
Error clearing Pydantic AI docs: asyncio.run() cannot be called from a running event loop
Some background information (may not have any bearing on the above error). I had originally taken the WebCrawler project in ottomator-agents
and updated it to work with my local postgresql database instance. Due to this I already have a set of records for pydantic ai. I made the same updates to Archon and am able to see that yes the table already exists and I can query the data using the “View Indexed Data” button.