Open AaronWard opened 11 months ago
az functionapp config appsettings set --name awazfunctionapp --resource-group awazfunctionapp --settings SCM_DO_BUILD_DURING_DEPLOYMENT=false ENABLE_ORYX_BUILD=true
export PATH=/Applications/Docker.app/Contents/Resources/bin:$PATH
The "AlwaysOn" setting is not supported in Consumption Plan. i want this to be basically free to implement so i can't go with the docker option it seems. I will need to find an alternative to querying chroma db that doesn't use sqlite3. User a docker container would get around the dependency issues, but would require a premium plan because the the container can't be "cold started" like a regular function can.
FUNCTIONS_WORKER_RUNTIME
to from ~3.10
to python
.
The dependencies require torch
to run, which is pretty big - causing a OOM issue on the free-to-use runner. IE: Need to pay for basic plan š¤¬
But the API works now at least
20:04:57 ****: cp: failed to close '/home/data/SitePackages/20231222200237.zip': No space left on device
20:04:57 ****: cp: failed to close '/home/data/SitePackages/20231222200237.zip': No space left on device\n/opt/Kudu/Scripts/starter.sh cp /tmp/build/expressbuild/20231222200237.zip /home/data/SitePackages/20231222200237.zip
went into the ssh
tab and and rm -rf
'd the site packages folder
note to self, the sentence-transformers/all-mpnet-base-v2 embeddings are too big to zip into a function app, therefore i went back to using sentence-transformers/all-MiniLM-L6-v2
Appears that sometimes the API is working and sometimes it fails to return a response.
Testing with thunder client on vs code, i got a 504.0 GatewayTimeout
when making this request: https://awazfunctionapp2.azurewebsites.net/query/What%20is%20autogen%?
Here are some relevant links:
To read:
Was unable to deploy the FastAPI to the function when installing Chromadb - two initial problems:
Dumping all the links i focused on to troubleshoot:
Useful commands:
python3.10 -m venv .venv
source .venv/bin/activate
func new --name awazfunctionapp-dev --template "HTTP trigger" --authlevel "anonymous"
func azure functionapp publish awazfunctionapp --build remote
uvicorn ApiFunction:app --reload
az functionapp deployment source sync --name awazfunctionapp --resource-group awazfunctionapp