Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Severian
/
dify
like
0
Paused
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
337ba97
dify
/
api
/
core
/
rag
/
entities
/
context_entities.py
Severian
initial commit
a8b3f00
3 months ago
raw
Copy download link
history
blame
Safe
202 Bytes
from
typing
import
Optional
from
pydantic
import
BaseModel
class
DocumentContext
(
BaseModel
):
"""
Model class for document context.
"""
content:
str
score:
Optional
[
float
] =
None