start end-to-end tutorial
"cell_type": "markdown",
"metadata": {},
"source": [
- "# Vespa - Application Package\n",
+ "# Build end-to-end Vespa apps with pyvespa\n",
"\n",
- "> Python API to create, modify and deploy application packages\n",
- "\n",
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/vespa-engine/vespa/blob/tgm/pyvespa-tutorial/python/vespa/notebooks/create-and-deploy-vespa.ipynb)"
+ "> Python API to create, modify, deploy and interact with Vespa applications"
]
},
{
"Our goal is to create, modify and deploy simple application packages using our python API. This enables us to run data analysis experiments that are fully integrated with Vespa. As an example, we want to create the application package we used in our [text search tutorial](https://docs.vespa.ai/documentation/tutorials/text-search.html). "
]
},
- {
- "cell_type": "markdown",
- "metadata": {},
- "source": [
- "## Application spec"
- ]
- },
- {
- "cell_type": "markdown",
- "metadata": {},
- "source": [
- "Our goal in this section is to create the following `msmarco` schema using our python API."
- ]
- },
- {
- "cell_type": "markdown",
- "metadata": {},
- "source": [
- "```\n",
- "schema msmarco {\n",
- " document msmarco {\n",
- " field id type string {\n",
- " indexing: attribute | summary\n",
- " }\n",
- " field title type string {\n",
- " indexing: index | summary\n",
- " index: enable-bm25\n",
- " }\n",
- " field body type string {\n",
- " indexing: index | summary\n",
- " index: enable-bm25\n",
- " }\n",
- " }\n",
- "\n",
- " fieldset default {\n",
- " fields: title, body\n",
- " }\n",
- "\n",
- " rank-profile default {\n",
- " first-phase {\n",
- " expression: nativeRank(title, body)\n",
- " }\n",
- " }\n",
- "\n",
- " rank-profile bm25 inherits default {\n",
- " first-phase {\n",
- " expression: bm25(title) + bm25(body)\n",
- " }\n",
- " }\n",
- "\n",
- "}\n",
- "```"
- ]
- },
{
"cell_type": "markdown",
"metadata": {},
