diff options
author | tmartins <thigm85@gmail.com> | 2020-09-03 09:42:22 +0200 |
---|---|---|
committer | tmartins <thigm85@gmail.com> | 2020-09-03 09:42:22 +0200 |
commit | ff35bc815f399ab787afbf9f6cbb19c38108cd85 (patch) | |
tree | ff705c67a09611d56e10ab12a29c3560771a2954 /python | |
parent | aee188d98280a6ebc80e3779db1b9c9db90a5cad (diff) |
modify howtos
Diffstat (limited to 'python')
-rw-r--r-- | python/vespa/docs/sphinx/source/index.rst | 4 | ||||
-rw-r--r-- | python/vespa/docs/sphinx/source/query-model.ipynb | 17 | ||||
-rw-r--r-- | python/vespa/docs/sphinx/source/query.ipynb | 71 |
3 files changed, 39 insertions, 53 deletions
diff --git a/python/vespa/docs/sphinx/source/index.rst b/python/vespa/docs/sphinx/source/index.rst index 9e56b1df976..238abc0d8fe 100644 --- a/python/vespa/docs/sphinx/source/index.rst +++ b/python/vespa/docs/sphinx/source/index.rst @@ -47,8 +47,8 @@ How-to guides - :doc:`application-package` - :doc:`deploy-application`. -- :doc:`Define query models <query-model>`. -- :doc:`Query Vespa applications <query>`. +- :doc:`query-model`. +- :doc:`query`. - :doc:`Evaluate query models <evaluation>`. - :doc:`Collect training data from Vespa applications <collect-training-data>`. diff --git a/python/vespa/docs/sphinx/source/query-model.ipynb b/python/vespa/docs/sphinx/source/query-model.ipynb index 956cbd9b30a..bd2e73601dc 100644 --- a/python/vespa/docs/sphinx/source/query-model.ipynb +++ b/python/vespa/docs/sphinx/source/query-model.ipynb @@ -1,11 +1,20 @@ { "cells": [ { - "cell_type": "code", - "execution_count": null, + "cell_type": "markdown", "metadata": {}, - "outputs": [], - "source": [] + "source": [ + "# Query models\n", + "\n", + "> Python API define query models" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "TBD" + ] } ], "metadata": { diff --git a/python/vespa/docs/sphinx/source/query.ipynb b/python/vespa/docs/sphinx/source/query.ipynb index 562926d13cf..ec1d5e3ec01 100644 --- a/python/vespa/docs/sphinx/source/query.ipynb +++ b/python/vespa/docs/sphinx/source/query.ipynb @@ -1,23 +1,12 @@ { "cells": [ { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "# hide\n", - "%load_ext autoreload\n", - "%autoreload 2" - ] - }, - { "cell_type": "markdown", "metadata": {}, "source": [ - "# Query API\n", + "# Query Vespa applications\n", "\n", - "> Python query API" + "> Python API to query Vespa applications" ] }, { @@ -29,7 +18,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 1, "metadata": {}, "outputs": [], "source": [ @@ -49,7 +38,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 2, "metadata": {}, "outputs": [], "source": [ @@ -64,7 +53,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 3, "metadata": {}, "outputs": [], "source": [ @@ -73,16 +62,16 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 4, "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "108882" + "202768" ] }, - "execution_count": null, + "execution_count": 4, "metadata": {}, "output_type": "execute_result" } @@ -107,7 +96,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 5, "metadata": {}, "outputs": [], "source": [ @@ -124,16 +113,16 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 6, "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "108882" + "202768" ] }, - "execution_count": null, + "execution_count": 6, "metadata": {}, "output_type": "execute_result" } @@ -151,7 +140,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 7, "metadata": {}, "outputs": [], "source": [ @@ -174,7 +163,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 8, "metadata": {}, "outputs": [], "source": [ @@ -184,16 +173,16 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 9, "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "947" + "1049" ] }, - "execution_count": null, + "execution_count": 9, "metadata": {}, "output_type": "execute_result" } @@ -218,16 +207,16 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 10, "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "[117166, 60125, 28903]" + "[198698, 120155, 120154]" ] }, - "execution_count": null, + "execution_count": 10, "metadata": {}, "output_type": "execute_result" } @@ -246,7 +235,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 11, "metadata": {}, "outputs": [], "source": [ @@ -264,16 +253,16 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 12, "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "[60125, 28903]" + "[120155, 120154]" ] }, - "execution_count": null, + "execution_count": 12, "metadata": {}, "output_type": "execute_result" } @@ -282,18 +271,6 @@ "id_recalled = [hit[\"fields\"][\"id\"] for hit in results_with_recall.hits]\n", "id_recalled" ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "#hide\n", - "from fastcore.test import all_equal, test\n", - "\n", - "test(id_recalled, top_ids[1:3], all_equal)" - ] } ], "metadata": { |