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
commit cabdb4ef17
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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