Skip to content

Latest commit

 

History

History
 
 

tensor-playground

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Vespa sample applications - Tensor Playground

The rank expression playground used to visualize rank operations. Once deployed, try the Tensor Playground:

http://localhost:8080/playground/index.html

Find tensor math examples in the Tensor User Guide.


Check-out, compile and run:

$ git clone https://github.com/vespa-engine/sample-apps.git
$ VESPA_SAMPLE_APPS=`pwd`/sample-apps
$ cd $VESPA_SAMPLE_APPS/tensor-playground && mvn clean package
$ docker run --detach --name vespa --hostname vespa-container --privileged \
  --volume $VESPA_SAMPLE_APPS:/vespa-sample-apps --publish 8080:8080 vespaengine/vespa

Wait for the configserver to start:

$ docker exec vespa bash -c 'curl -s --head http://localhost:19071/ApplicationStatus'

Deploy the application:

$ docker exec vespa bash -c '/opt/vespa/bin/vespa-deploy prepare /vespa-sample-apps/tensor-playground/target/application.zip && \
  /opt/vespa/bin/vespa-deploy activate'

Wait for the application to start - then try the examples in the guide:

$ curl -s --head http://localhost:8080/ApplicationStatus

Shutdown and remove the container:

$ docker rm -f vespa