coderabbit214 / bibliothecarius

Quickly build services to integrate your local data and AI models.
MIT License
458 stars 79 forks source link

貌似curl语句里缺少了size字段 #25

Closed colin4k closed 1 year ago

colin4k commented 1 year ago

2023-04-14T16:32:16.172+08:00 ERROR 25392 --- [nio-8080-exec-9] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed: jakarta.validation.UnexpectedTypeException: HV000030: No validator could be found for constraint 'jakarta.validation.constraints.NotEmpty' validating type 'java.lang.Integer'. Check configuration for 'size'] with root cause

colin4k commented 1 year ago

目前无法通过curl来添加,只能自己手动在数据库里创建了一条记录,size字段随手填了个1024,请问应该如何填?另外在web界面添加dataset的时候,相比readme文件多了个relevant_size字段,这个字段要怎么设置?

caoshengdong commented 1 year ago

size:768,如果你使用的是text2vec-bibliothecarius relevant_size:每次查询的相关数据条数

caoshengdong commented 1 year ago

@colin4k 如果阁下有空,是否有意愿提一个 PR 帮助项目改进文档?

colin4k commented 1 year ago

@colin4k 如果阁下有空,是否有意愿提一个 PR 帮助项目改进文档?

done.