Doctor
Doctor Commands
The Arc Memory CLI provides diagnostic commands to check the health of your knowledge graph and provide information about its contents.
Related Documentation:
- Authentication Commands - Authenticate with GitHub
- Build Commands - Build your knowledge graph
- Trace Commands - Trace history in your graph
- Building Graphs Examples - Examples of building graphs
Overview
The doctor command checks the status of the Arc Memory database, verifies its integrity, and provides statistics about the knowledge graph. It’s useful for troubleshooting and understanding what’s in your graph.
Commands
arc doctor
Check the status of the Arc Memory database and provide statistics.
This command checks if the database files exist, decompresses the database if needed, and provides statistics about the nodes and edges in the knowledge graph.
Options
--debug
: Enable debug logging.
Example
Output
The doctor command outputs several tables with information about the knowledge graph:
Files Table
Shows the status and size of important files:
Database Table
Shows statistics about the database:
Build Manifest Table
Shows information from the build manifest:
Automatic Fixes
The doctor command performs some automatic fixes:
- Database Decompression: If the compressed database exists but the uncompressed one doesn’t, it will automatically decompress it.
Overall Status
At the end, the doctor command provides an overall status:
- Ready to Use: If the database exists and is valid.
- Not Set Up: If the database doesn’t exist, with instructions to run
arc build
.
When to Use
Use the doctor command in the following situations:
- After Installation: To verify that Arc Memory is set up correctly.
- After Building: To check that the build process completed successfully.
- Troubleshooting: When you encounter issues with other commands.
- Performance Concerns: To check the size of your knowledge graph.
Troubleshooting
If the doctor command reports issues:
- Missing Files: Run
arc build
to create the knowledge graph. - Database Errors: If there are errors querying the database, try rebuilding it with
arc build
. - Manifest Errors: If the manifest is invalid, run a full build with
arc build
(without--incremental
). - Debug Mode: Run with
--debug
flag to see detailed logs:arc doctor --debug