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

Embedding Error Snowflake Ollama #264

Open
Fau57 opened this issue Jun 3, 2024 · 8 comments
Open

Embedding Error Snowflake Ollama #264

Fau57 opened this issue Jun 3, 2024 · 8 comments

Comments

@Fau57
Copy link

Fau57 commented Jun 3, 2024

After picking the snowflake embedding model in the options and reloading the vault i get this response: Error: Embedding function error: Error: Resource initialization failed: Error: Pipeline initialization failed for repo Error: local_files_only=true or env.allowRemoteModels=false and file was not found locally at "C:\Users\user.ollama\models\manifests\registry.ollama.ai\library/snowflake-arctic-embed/tokenizer.json". Stack Trace: Error: local_files_only=true or env.allowRemoteModels=false and file was not found locally at "C:\Users\user.ollama\models\manifests\registry.ollama.ai\library/snowflake-arctic-embed/tokenizer.json". at getModelFile (file:///C:/Users/user/AppData/Local/Programs/Reor/resources/app.asar/node_modules/@xenova/transformers/src/utils/hub.js:462:27) at async getModelJSON (file:///C:/Users/user/AppData/Local/Programs/Reor/resources/app.asar/node_modules/@xenova/transformers/src/utils/hub.js:575:18) at async Promise.all (index 0) at async loadTokenizer (file:///C:/Users/user/AppData/Local/Programs/Reor/resources/app.asar/node_modules/@xenova/transformers/src/tokenizers.js:61:18) at async AutoTokenizer.from_pretrained (file:///C:/Users/user/AppData/Local/Programs/Reor/resources/app
To Reproduce
Steps to reproduce the behavior:

  1. Changed model in local embedding model to snowflake-arctic-embed i think its the 33 million model,
  2. Click on close program to reinitialize the vault
  3. Reopen Reor
  4. See above for error information

Expected behavior
my understanding is it should re do the embedding with the new model or am i wrong?

Desktop (please complete the following information):

  • OS: win 11
  • Hardware: Ryzen 5 5560U and 32 GB ddr4 RAM
  • Version: i think its the most reccent
@uuur86
Copy link
Contributor

uuur86 commented Jun 6, 2024

I guess, Reor only supports "*.onnx" type models.

Also, file structure must contain "tokenizer.json, config.json, tokenizer_config.json" files. The missing files can be downloaded from hf ( https://huggingface.co/Snowflake/snowflake-arctic-embed-m/tree/main )

The directory structure should be as follows for 'C:\Users\user.ollama\models\manifests\registry.ollama.ai\library/snowflake-arctic-embed':

  • onnx (dir)
    -- model.onnx
    -- model_quantized.onnx
  • tokenizer.json
  • config.json
  • tokenizer_config.json

@Fau57
Copy link
Author

Fau57 commented Jun 6, 2024 via email

@uuur86
Copy link
Contributor

uuur86 commented Jun 6, 2024

No problem! Just wanted to make sure everything is clear. If you need any further details or assistance, feel free to ask :)

@Fau57
Copy link
Author

Fau57 commented Jun 6, 2024 via email

@uuur86
Copy link
Contributor

uuur86 commented Jun 7, 2024

Sorry, I didn't understand what you mean. But;

I'm a volunteer contributor to this project.
Open source culture emphasizes collective improvement and shared ownership.
"open source culture" <-- You can search this on google for detailed information..

@Fau57
Copy link
Author

Fau57 commented Jun 8, 2024

i am an aspiring developer. I think i am at beginner level for python at least, ANYWAY. I also use the crap outta Obsidian. Im just wondering if there are plans from you guys involved to add more features? or if i should fork and just go to town?

@uuur86
Copy link
Contributor

uuur86 commented Jun 8, 2024

You can follow the Reor project on Discord. There, you can also suggest features and discuss them. https://discord.gg/b7zanGCTUY

@uuur86
Copy link
Contributor

uuur86 commented Jun 8, 2024

Additionally, I believe everyone would be happy to welcome aspiring developers like you to join us!

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