fix retrieval resource positon missed (#9155)

Co-authored-by: Bowen Liang <liangbowen@gf.com.cn>
This commit is contained in:
Jyong
2024-10-11 10:32:42 +08:00
committed by GitHub
parent a34891851b
commit cabdb4ef17
2 changed files with 6 additions and 1 deletions

View File

@@ -1,3 +1,5 @@
from typing import Optional
from pydantic import BaseModel
@@ -7,4 +9,4 @@ class DocumentContext(BaseModel):
"""
content: str
score: float
score: Optional[float] = None