Before running the code, you should start Kernel Memory web service and pipeline service.
The example points to http://127.0.0.1:9001 so by default you should run the services locally, though you can also deploy them to Azure and update the script accordingly.
./upload-example.sh
Content of upload-example.sh:
../../tools/upload-file.sh -f test.pdf \
-s http://127.0.0.1:9001 \
-u curlUser \
-t "type:test" \
-i curlExample01
./ask-example.sh
Content of ask-example.sh:
../../tools/ask.sh -s http://127.0.0.1:9001 \
-u curlUser \
-q "tell me about Semantic Kernel" \
-f '"type":["test"]'