ChatPilot icon indicating copy to clipboard operation
ChatPilot copied to clipboard

ValueError: The text2vec python package is not installed. Please install it with pip install text2vec

Open zhaofangtao opened this issue 6 months ago • 1 comments

Describe the bug

rag_app.py line: 125: elif "text2vec" in app.state.RAG_EMBEDDING_MODEL: app.state.sentence_transformer_ef = embedding_functions.Text2VecEmbeddingFunction( model_name=app.state.RAG_EMBEDDING_MODEL )

error info: File "F:\github\ChatPilot\chatpilot\server.py", line 29, in from chatpilot.apps.rag_app import app as rag_app File "F:\github\ChatPilot\chatpilot\apps\rag_app.py", line 125, in app.state.sentence_transformer_ef = embedding_functions.Text2VecEmbeddingFunction( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "F:\github\ChatPilot\venv\Lib\site-packages\chromadb\utils\embedding_functions\text2vec_embedding_function.py", line 14, in init raise ValueError(

实际text2vec已安装成功: chromadb 0.5.5 text2vec 1.2.9

初步排查embedding_functions没有Text2VecEmbeddingFunction()方法

zhaofangtao avatar Aug 20 '24 08:08 zhaofangtao