mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-04-23 22:29:49 +08:00
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
|