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: failed to call OrtRun(). error code = 6. #13

Closed
w3cdotorg opened this issue Feb 29, 2024 · 3 comments
Closed

Error: failed to call OrtRun(). error code = 6. #13

w3cdotorg opened this issue Feb 29, 2024 · 3 comments

Comments

@w3cdotorg
Copy link

w3cdotorg commented Feb 29, 2024

Hi!

Just tried to run this today, by cloning the repo and running:
$ yarn

Then:
$ npm run build
$ npx serve@latest out

When I try embedding a PDF, after a while it just fails with 'An error occurred during model execution: "Error: failed to call OrtRun(). error code = 6.'.

I don't know enough about WASM, or where the error could come from... Ollama is up and running on 127.0.0.1:11435.

Thanks!

Screenshot 2024-02-29 at 4 43 00 PM
@jacoblee93
Copy link
Owner

Hey! Looks like a transformers.js error. You could try switching them out for Ollama-served embeddings now that Nomic is well supported there:

https://js.langchain.com/docs/integrations/text_embedding/ollama

@w3cdotorg
Copy link
Author

Thanks, I'll try! Do you know if it makes sense to play with the chunk size / chunk overlap?

@w3cdotorg
Copy link
Author

OK, it works perfectly when switching to the ollama embeddings. Thanks!

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

2 participants