Comments (3)
参考使用文档:https://github.com/baidubce/app-builder/blob/master/docs/basic_module/knowledgebase.md
7、导入知识库。
DocumentChunker类下的choices变量,["onePage"]为整文件切片。
from app-builder.
参考使用文档:https://github.com/baidubce/app-builder/blob/master/docs/basic_module/knowledgebase.md 7、导入知识库。 DocumentChunker类下的choices变量,["onePage"]为整文件切片。
thx a lot. I will try later, then close this issue.
from app-builder.
可以了。按照文档选 onePage 可以上传。此问题已解决。
另外一个小问题,separator 参数是必须的,但文档里写是 Optional.
File "C:\Python312\Lib\site-packages\pydantic\main.py", line 171, in init
self.pydantic_validator.validate_python(data, self_instance=self)
pydantic_core._pydantic_core.ValidationError: 1 validation error for DocumentChunker
separator >>>>>>>>>>>>>>>>> 这里显示错误
Field required [type=missing, input_value={'choices': ['onePage'], 'prependInfo': []}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.6/v/missing
class DocumentChunker(BaseModel):
choices: list[str] = Field(..., description="使用哪些chunker方法 (separator | pattern | onePage), separator:自定义切片—标识符,pattern:自定义切片—标识符中选择正则表达式,onePage:整文件切片")
prependInfo: list[str] = Field(
...,
description="chunker关联元数据,可选值为title (增加标题), filename(增加文件名)",
)
separator: Optional[DocumentSeparator] = Field(..., description="分段符号") # 这里显示是Optional
pattern: Optional[DocumentPattern] = Field(None, description="正则表达式")
from app-builder.
Related Issues (20)
- GBI目前无法使用ERNIE Speed-AppBuilder模型
- 平台知识集链接数据拉取频率过久,希望支持接口手动触发 HOT 2
- GBI是否可以引用知识库检索进行问题的优化 HOT 1
- SDK目前不支持导入结构化文件,是否可以开发该功能 HOT 2
- .net 平台的sdk 有计划么,有的话预计什么时候会出来 HOT 2
- 困扰-文档内嵌套的图片流程图 HOT 1
- 导入sdk时报错 HOT 2
- Java SDK在agent对话时如果调用了自定义的组件,能否把组件结果返回 HOT 1
- constants中写死了单数据集大小为100,需要跟随请求结果动态调整 HOT 1
- langchain支持 HOT 1
- python3.9.7 示例代码运行出错:Interval() takes no arguments HOT 2
- 这写的啥啊top p完全反了。。。改了吧 HOT 2
- readme中添加使用playground组件进行大模型调用的示例 HOT 1
- 不支持pyinstaller打包 HOT 6
- RagWithBaiduSearchPro报错 HOT 1
- 是否有计划实现自定义ui,打造专属应用
- 可以把RAG相关的基础组件、高级组件做一个汇总并在readme进行highlight
- 上传音频采用短语音识别-极速版在线测试没用问题,代码调用的话一直报错不能识别 HOT 1
- DocParser没有返回表格数据 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from app-builder.