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

error while using other embedding models #43

Open
thedonalddon opened this issue Aug 14, 2024 · 0 comments
Open

error while using other embedding models #43

thedonalddon opened this issue Aug 14, 2024 · 0 comments

Comments

@thedonalddon
Copy link

When I use other embedding models instead of nomic-embeded-text, I meet this error:

❌ Errors occurred during the pipeline run, see logs for more details.

Then I found the problem was in graphrag\llm\openai\openai_embeddings_llm.py:

for inp in input:
            embedding = ollama.embeddings(model="nomic-embeded-text", prompt=inp)
            embedding_list.append(embedding["embedding"])

The model name "nomic-embed-text" is hardcoded in the class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant