API-based indexing with semantic search, AI Q&A, and state persistence.
# Authenticate
auggie login
# Run the example (from the context directory)
cd examples/python-sdk/context
python -m direct_context
# Or run directly
python direct_context/main.py- Creates a Direct Context instance
- Adds sample files to the index
- Performs semantic searches
- Uses
search_and_ask()for AI-powered Q&A - Generates documentation
- Exports/imports context state
search(): Semantic search returning formatted code snippetssearch_and_ask(): One-step AI Q&A about indexed code- State persistence: Export/import index for reuse