mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 19:59:50 +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
|