fix retrieval resource positon missed (#9155)
Co-authored-by: Bowen Liang <liangbowen@gf.com.cn>
This commit is contained in:
parent
a34891851b
commit
cabdb4ef17
2 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue