change KnowledgeQueryResponse (#1202)

Co-authored-by: Fangyin Cheng <staneyffer@gmail.com>
This commit is contained in:
比奇堡 扛把子
2024-02-27 11:23:25 +08:00
committed by GitHub
parent 7de98d5363
commit 08fcb4f744
3 changed files with 11 additions and 11 deletions

View File

@@ -42,3 +42,13 @@ class SpaceQueryResponse(BaseModel):
gmt_modified: str = None
"""doc_count: doc_count"""
docs: int = None
class KnowledgeQueryResponse(BaseModel):
"""source: knowledge reference source"""
source: str
"""score: knowledge vector query similarity score"""
score: float = 0.0
"""text: raw text info"""
text: str