Spaces:
Sleeping
Sleeping
| from typing import List, Tuple, Any | |
| from pydantic import BaseModel, Field | |
| class AutoRetrieveModel(BaseModel): | |
| query: str = Field(..., description="natural language query string") | |
| filter_key_list: List[str] = Field( | |
| ..., description="List of metadata filter field names" | |
| ) | |
| filter_value_list: List[str] = Field( | |
| ..., | |
| description=( | |
| "List of metadata filter field values (corresponding to names specified in filter_key_list)" | |
| ) | |
| ) |