Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zhaofangtao opened this issue Aug 20, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@zhaofangtao
Copy link

zhaofangtao commented Aug 20, 2024

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 zhaofangtao added the bug Something isn't working label Aug 20, 2024
@zhaofangtao zhaofangtao changed the title Text2VecEmbeddingFunction ValueError: The text2vec python package is not installed. Please install it with pip install text2vec Aug 20, 2024
shibing624 added a commit that referenced this issue Aug 22, 2024
@shibing624
Copy link
Owner

fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants