2024-10-11 10:32:42 +08:00
|
|
|
from typing import Optional
|
|
|
|
|
2024-09-30 15:38:43 +08:00
|
|
|
from pydantic import BaseModel
|
|
|
|
|
|
|
|
|
|
|
|
class DocumentContext(BaseModel):
|
|
|
|
"""
|
|
|
|
Model class for document context.
|
|
|
|
"""
|
|
|
|
|
|
|
|
content: str
|
2024-10-11 10:32:42 +08:00
|
|
|
score: Optional[float] = None
|