Closed zhaojianjun0319 closed 5 months ago
通过docker打镜像之后运行服务,浏览器访问8501端口,选择milvus数据库,填完数据库地址,选择测试case 直接报错了 哪位大神给看下
@zhaojianjun0319 We are not able to reproduce this issue, could you please tell us your parameter configuration (index type and index parameters).
I meet the same error, and it is random, wired.
pydantic.error_wrappers.ValidationError: 2 validation errors for TaskConfig
│ db_config
│ Can't instantiate abstract class DBConfig with abstract method to_dict (type=type_error)
│ db_case_config
│ instance of DBCaseConfig expected (type=type_error.arbitrary_type; expected_arbitrary_type=DBCaseConfig)
│ 2024-06-07 02:19:22.136 Uncaught app exception
│ Traceback (most recent call last):
│ File "/usr/local/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 600, in _run_script
│ exec(code, module.__dict__)
│ File "/opt/code/vectordb_bench/frontend/pages/run_test.py", line 65, in <module>
│ main()
│ File "/opt/code/vectordb_bench/frontend/pages/run_test.py", line 48, in main
│ generate_tasks(activedDbList, dbConfigs, activedCaseList, allCaseConfigs)
│ File "/opt/code/vectordb_bench/frontend/components/run_test/generateTasks.py", line 8, in generate_tasks
│ task = TaskConfig(
│ ^^^^^^^^^^^
│ File "pydantic/main.py", line 341, in pydantic.main.BaseModel.__init__
@alwayslove2013
ValidationError: 2 validation errors for TaskConfig db_config Can't instantiate abstract class DBConfig with abstract method to_dict (type=type_error) db_case_config instance of DBCaseConfig expected (type=type_error.arbitrary_type; expected_arbitrary_type=DBCaseConfig)
File "/usr/local/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 584, in _run_script exec(code, module.dict) File "/opt/code/vectordb_bench/frontend/pages/run_test.py", line 65, in
main()
File "/opt/code/vectordb_bench/frontend/pages/run_test.py", line 48, in main
generate_tasks(activedDbList, dbConfigs, activedCaseList, allCaseConfigs)
File "/opt/code/vectordb_bench/frontend/components/run_test/generateTasks.py", line 8, in generate_tasks
task = TaskConfig(
^^^^^^^^^^^
File "pydantic/main.py", line 341, in pydantic.main.BaseModel.init