mirror of
https://gitee.com/dify_ai/dify.git
synced 2024-12-05 04:38:37 +08:00
cabdb4ef17
Co-authored-by: Bowen Liang <liangbowen@gf.com.cn>
13 lines
202 B
Python
13 lines
202 B
Python
from typing import Optional
|
|
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class DocumentContext(BaseModel):
|
|
"""
|
|
Model class for document context.
|
|
"""
|
|
|
|
content: str
|
|
score: Optional[float] = None
|