aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authortmartins <thigm85@gmail.com>2020-08-19 13:37:07 +0200
committertmartins <thigm85@gmail.com>2020-08-19 13:37:07 +0200
commitea4fc5fa8fadfee77664b4786c2615e3b886aca4 (patch)
tree0adc711b5dff0a0737dd070c8983e1d19e653477 /python
parent99761fb3079023ab45a169e46344bad54e767ec8 (diff)
start end-to-end tutorial
Diffstat (limited to 'python')
-rw-r--r--python/vespa/notebooks/create-and-deploy-vespa.ipynb60
1 files changed, 2 insertions, 58 deletions
diff --git a/python/vespa/notebooks/create-and-deploy-vespa.ipynb b/python/vespa/notebooks/create-and-deploy-vespa.ipynb
index bb98d5fd091..29481a29e7b 100644
--- a/python/vespa/notebooks/create-and-deploy-vespa.ipynb
+++ b/python/vespa/notebooks/create-and-deploy-vespa.ipynb
@@ -4,11 +4,9 @@
"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"
]
},
{
@@ -22,60 +20,6 @@
"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": {},
- "source": [
"## Schema API"
]
},