ask_question
Ask a natural language question about an indexed repository and get an answer derived from relevant code context using retrieval-augmented generation.
Instructions
Ask a question about an indexed repository using RAG. Returns an answer based on relevant code context.
Requires: index_repository must be called first.
Example: {"repo_path": "/path/to/repo", "question": "How does authentication work?"}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_path | Yes | Path to the indexed repository | |
| question | Yes | Natural language question about the codebase | |
| max_context | No | Maximum number of code chunks for context (default: 10) | |
| agentic_rag | No | Enable agentic RAG: grade chunk relevance and auto-rewrite query if results are poor (default: false) |