Question Answering
Get AI-powered answers to questions about your store content. The system searches through your documents, retrieves the most relevant chunks, and generates context-aware responses with source file metadata for transparency. Perfect for building Q&A systems and knowledge bases from your document collections.
Command
mxbai store qa <name-or-id> <question> [options]Options
--top-k <n>- Number of context chunks to use (default:10)--threshold <score>- Minimum relevance score for context chunks--return-metadata- Include source file metadata in the response
Note: Default values for --top-k can be configured using mxbai config. See the Configuration Guide for details.
Examples
# Ask a basic question
mxbai store qa "my-knowledge-base" "How do I configure authentication?"
# Ask for more results
mxbai store qa "my-knowledge-base" "What are the deployment steps?" --top-k 15
# Ask with relevance threshold
mxbai store qa "my-knowledge-base" "What is the API rate limit?" --threshold 0.8
# Ask and include metadata in results
mxbai store qa "my-knowledge-base" "How to handle errors?" --return-metadata
# Combine options
mxbai store qa "my-knowledge-base" "Best practices for security" --top-k 20 --return-metadataLast updated: February 25, 2026