Internal server error when using ai code generator
I tried using the ai generator in the runnable editor and get this error:
Failed to generate code: Internal Server Error
In the logs, it says: ERROR request: windmill_common::error: error="Internal: Embeddings db not initialized"
Is there some sort of embeddings db I need to set up? I might've missed it in the docs, but I didn't see it mentioned specifically on https://www.windmill.dev/docs/core_concepts/ai_generation eitherWindmill AI | Windmill
Windmill provides ways to have AI help you in your coding experience.
12 Replies
Hi @sigcore , the server fetches embedding from s3 or the hub directly. Are you server hosted with a slow connection or air-gapped ?
Hmm it shouldn't be slow, it's on a colo server with a 1gbit link
Does it download something during startup or on-demand? I can try restarting and look for errors then
yes it downloads them at start of the server
Ah it does fail:
we need to improve the error message but it seems you're unable to fetch the model from api for some reasons
it would be downloaded from hugging face
Do you know what the url would be or where I can find it? I don't think huggingface.co is blocked
it fails very quickly though so I don't think it's dying in the middle of a download
I will do a patch to show a better error
on very latest available in 15mins, the error message will have more info
Thanks, I'll try it in a few minutes
That was fast, thanks! Looks like a permission error, would it be downloading to the current directory or something like /tmp? It is running as non-root
you can tweak it by modifying HF_HOME
awesome, that fixed it, thanks @rubenf . It downloaded the model and the ai thing in the editor works too