Get Document Answer
Answer a question based on the documents matching the provided metadata filter.
The metadata_filter parameter supports MongoDB-like query syntax with operators:
- Comparison:
$eq, $ne, $gt, $lt, $gte, $lte, $in, $nin - Array:
$contains, $containsAny, $notContains, $size - Logical:
$and, $or, $not - Type:
$type - Regex:
$regex, $iregex
Example Metadata Filter
json { "$and": [ { "category": "finance" }, { "tags": { "$contains": ["important"] } }, { "$or": [ { "priority": { "$gt": 2 } }, { "status": "active" } ] } ] }
Authorizations
Headers
Body
Request model for asking questions about documents.
If True, optimize the metadata filter based on the question
If True, optimize the question by removing parts covered by metadata filter
Optional metadata filters using MongoDB-like query syntax
Filter by created_at database field. Supports operators: $eq, $ne, $gt, $lt, $gte, $lte, $in, $nin. Use ISO date format (e.g., '2024-01-01T00:00:00')
Filter by updated_at database field. Supports operators: $eq, $ne, $gt, $lt, $gte, $lte, $in, $nin. Use ISO date format (e.g., '2024-01-01T00:00:00')
Format of the answer (MARKDOWN or PLAIN_TEXT)
MARKDOWN, PLAIN_TEXT