Skip to content

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

Description

@zhaofangtao

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()方法

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions