-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
【RAG】文档上传支持图表解析、表格深度解析 && 切片接口增加知识库ID参数
- Loading branch information
Showing
10 changed files
with
171 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
java/src/main/java/com/baidubce/appbuilder/model/knowledgebase/ChunkCreateRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,43 @@ | ||
package com.baidubce.appbuilder.model.knowledgebase; | ||
|
||
public class ChunkCreateRequest { | ||
private String knowledgeBaseId; | ||
private String documentId; | ||
private String content; | ||
|
||
|
||
public ChunkCreateRequest(String documetId, String content) { | ||
this.documentId = documetId; | ||
this.content = content; | ||
} | ||
|
||
public ChunkCreateRequest(String knowledgeBaseId, String documetId, String content) { | ||
this.knowledgeBaseId = knowledgeBaseId; | ||
this.documentId = documetId; | ||
this.content = content; | ||
} | ||
|
||
public String getKnowledgeBaseId() { | ||
return knowledgeBaseId; | ||
} | ||
|
||
public void setKnowledgeBaseId(String knowledgeBaseId) { | ||
this.knowledgeBaseId = knowledgeBaseId; | ||
} | ||
|
||
public String getDocumentId() { | ||
return documentId; | ||
} | ||
|
||
public void setDocumentId(String documentId) { | ||
this.documentId = documentId; | ||
} | ||
|
||
public String getContent() { | ||
return content; | ||
} | ||
|
||
public void setContent(String content) { | ||
this.content = content; | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
java/src/main/java/com/baidubce/appbuilder/model/knowledgebase/ChunkDeleteRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
java/src/main/java/com/baidubce/appbuilder/model/knowledgebase/ChunkDescribeRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,22 @@ | ||
package com.baidubce.appbuilder.model.knowledgebase; | ||
|
||
public class ChunkDescribeRequest { | ||
private String knowledgeBaseId; | ||
private String chunkId; | ||
|
||
public void setChunkId(String chunkId) { | ||
this.chunkId = chunkId; | ||
} | ||
|
||
public void setKnowledgeBaseId(String knowledgeBaseId) { | ||
this.knowledgeBaseId = knowledgeBaseId; | ||
} | ||
|
||
public String getChunkId() { | ||
return chunkId; | ||
} | ||
|
||
public String getKnowledgeBaseId() { | ||
return knowledgeBaseId; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.