Thanks for creating Archon! I’ve successfully forked and deployed the project using Docker. I’m trying to add Docling documentation alongside Pydantic AI docs but facing some challenges.
Implementation Approach
- Custom Module Architecture
- Created
bg_modules
directory for custom implementations - Modified
archon/__init__.py
with a custom module finder that prioritizes these modules - Added
crawl_docling_docs.py
and customizedpydantic_ai_coder.py
- Documentation Storage
- Extended Supabase with source field to differentiate documentation origins
- Successfully crawling and storing Docling docs
Current Issue
While the UI shows both documentation sources correctly, the agent can’t seem to access the Docling documentation when asked. I’ve tried:
- Overriding the documentation retrieval functions in
pydantic_ai_coder.py
- Using function interception by replacing the agent’s execute method
- Direct modification of module imports
However, I keep running into circular import issues or the agent simply using the original retrieval functions.
Questions
What’s the recommended approach for extending agent functionality to use additional documentation sources? Are there specific extension points I should be using instead of trying to override functions?
Any guidance would be appreciated!