/api/queryAsk a natural-language question about an indexed project. Returns a grounded answer with citations to the source files used.
{
"projectId": "uuid",
"question": "How does authentication work?",
"conversationHistory": [
{ "role": "user", "content": "previous question" },
{ "role": "assistant", "content": "previous answer" }
]
}{
"answer": "Authentication is handled by Clerk middleware...",
"sources": [
{
"fileName": "src/lib/auth.ts",
"similarity": 0.89,
"summary": "Configures Clerk session validation"
}
]
}