You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
复现问题的步骤 / Steps to Reproduce
python init_database.py --recreate-vs
预期的结果 / Expected Result
正常创建 实际结果 / Actual Result
recreating all vector stores
Traceback (most recent call last):
File "D:\code\python\Langchain-Chatchat\init_database.py", line 107, in
folder2db(kb_names=args.kb_name, mode="recreate_vs", embed_model=args.embed_model)
File "D:\code\python\Langchain-Chatchat\server\knowledge_base\migrate.py", line 119, in folder2db
kb = KBServiceFactory.get_service(kb_name, vs_type, embed_model)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\code\python\Langchain-Chatchat\server\knowledge_base\kb_service\base.py", line 304, in get_service
vector_store_type = getattr(SupportedVSType, vector_store_type.upper())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: type object 'SupportedVSType' has no attribute 'PGVECTOR'
问题描述 / Problem Description
改成pg的时候报错了
复现问题的步骤 / Steps to Reproduce
python init_database.py --recreate-vs
预期的结果 / Expected Result
正常创建
实际结果 / Actual Result
recreating all vector stores
Traceback (most recent call last):
File "D:\code\python\Langchain-Chatchat\init_database.py", line 107, in
folder2db(kb_names=args.kb_name, mode="recreate_vs", embed_model=args.embed_model)
File "D:\code\python\Langchain-Chatchat\server\knowledge_base\migrate.py", line 119, in folder2db
kb = KBServiceFactory.get_service(kb_name, vs_type, embed_model)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\code\python\Langchain-Chatchat\server\knowledge_base\kb_service\base.py", line 304, in get_service
vector_store_type = getattr(SupportedVSType, vector_store_type.upper())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: type object 'SupportedVSType' has no attribute 'PGVECTOR'
环境信息 / Environment Information
附加信息 / Additional Information
添加与问题相关的任何其他信息 / Add any other information related to the issue.
The text was updated successfully, but these errors were encountered: