mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-15 14:11:14 +00:00
feat:Add Knowledge Process Workflow (#2210)
This commit is contained in:
@@ -96,6 +96,8 @@ class ChunkServeResponse(BaseModel):
|
||||
content: Optional[str] = Field(None, description="chunk content")
|
||||
meta_info: Optional[str] = Field(None, description="chunk meta info")
|
||||
questions: Optional[str] = Field(None, description="chunk questions")
|
||||
gmt_created: Optional[str] = Field(None, description="chunk create time")
|
||||
gmt_modified: Optional[str] = Field(None, description="chunk modify time")
|
||||
|
||||
|
||||
class KnowledgeSyncRequest(BaseModel):
|
||||
|
@@ -323,7 +323,7 @@ class Service(BaseService[KnowledgeSpaceEntity, SpaceServeRequest, SpaceServeRes
|
||||
update_chunk = self._chunk_dao.get_one({"document_id": entity.id})
|
||||
if update_chunk:
|
||||
update_chunk.doc_name = request.doc_name
|
||||
self._chunk_dao.update_chunk(update_chunk)
|
||||
self._chunk_dao.update({"id": update_chunk.id}, update_chunk)
|
||||
if len(request.questions) == 0:
|
||||
request.questions = ""
|
||||
questions = [
|
||||
|
Reference in New Issue
Block a user