Skip to content

armgit / txtai

Public Imported from GitHub
0

💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows

Update notebook

davidmezzettib983704d0c04
diff --git a/README.md b/README.md
index e7f373c7..1ae1e063 100644
--- a/README.md
+++ b/README.md
@@ -138,7 +138,7 @@ Build semantic/similarity/vector/neural search applications.
| [Model explainability](https://github.com/neuml/txtai/blob/master/examples/32_Model_explainability.ipynb) | Explainability for semantic search | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/neuml/txtai/blob/master/examples/32_Model_explainability.ipynb) |
| [Query translation](https://github.com/neuml/txtai/blob/master/examples/33_Query_translation.ipynb) | Domain-specific natural language queries with query translation | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/neuml/txtai/blob/master/examples/33_Query_translation.ipynb) |
| [Build a QA database](https://github.com/neuml/txtai/blob/master/examples/34_Build_a_QA_database.ipynb) | Question matching with semantic search | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/neuml/txtai/blob/master/examples/34_Build_a_QA_database.ipynb) |
-| [Embeddings components](https://github.com/neuml/txtai/blob/master/examples/37_Embeddings_index_components.ipynb) | Low-level components for vector, SQL and scoring-based search | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/neuml/txtai/blob/master/examples/37_Embeddings_index_components.ipynb) |
+| [Embeddings components](https://github.com/neuml/txtai/blob/master/examples/37_Embeddings_index_components.ipynb) | Composable search with vector, SQL and scoring components | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/neuml/txtai/blob/master/examples/37_Embeddings_index_components.ipynb) |
### Pipelines
diff --git a/docs/examples.md b/docs/examples.md
index 0b9400e9..133d00b8 100644
--- a/docs/examples.md
+++ b/docs/examples.md
@@ -23,7 +23,7 @@ Build semantic/similarity/vector/neural search applications.
| [Model explainability](https://github.com/neuml/txtai/blob/master/examples/32_Model_explainability.ipynb) | Explainability for semantic search | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/neuml/txtai/blob/master/examples/32_Model_explainability.ipynb) |
| [Query translation](https://github.com/neuml/txtai/blob/master/examples/33_Query_translation.ipynb) | Domain-specific natural language queries with query translation | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/neuml/txtai/blob/master/examples/33_Query_translation.ipynb) |
| [Build a QA database](https://github.com/neuml/txtai/blob/master/examples/34_Build_a_QA_database.ipynb) | Question matching with semantic search | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/neuml/txtai/blob/master/examples/34_Build_a_QA_database.ipynb) |
-| [Embeddings components](https://github.com/neuml/txtai/blob/master/examples/37_Embeddings_index_components.ipynb) | Low-level components for vector, SQL and scoring-based search | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/neuml/txtai/blob/master/examples/37_Embeddings_index_components.ipynb) |
+| [Embeddings components](https://github.com/neuml/txtai/blob/master/examples/37_Embeddings_index_components.ipynb) | Composable search with vector, SQL and scoring components | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/neuml/txtai/blob/master/examples/37_Embeddings_index_components.ipynb) |
## Pipelines
diff --git a/examples/37_Embeddings_index_components.ipynb b/examples/37_Embeddings_index_components.ipynb
index 0bc521d1..0250a02b 100644
--- a/examples/37_Embeddings_index_components.ipynb
+++ b/examples/37_Embeddings_index_components.ipynb
@@ -27,7 +27,7 @@
"\n",
"[txtai](https://github.com/neuml/txtai) executes machine-learning workflows to transform data and build AI-powered semantic search applications.\n",
"\n",
- "The main components of txtai are `embeddings`, `pipeline`, `workflow` and an `api`. This is confirmed with a look at the txtai src tree.\n",
+ "The main components of txtai are `embeddings`, `pipeline`, `workflow` and an `api`. The following shows the top level view of the txtai src tree.\n",
"\n",
"```\n",
"Abbreviated listing of src/txtai\n",
@@ -43,7 +43,7 @@
"\n",
"One might ask, why are `ann`, `database`, `scoring` and `vectors` top level packages and not under the `embeddings` package? The `embeddings` package provides the glue between these components, making everything easy to use. The reason is that each of these packages are modular and can be used on their own! \n",
"\n",
- "This notebook will go through a series of examples demonstrating how each component can be used standalone.\n",
+ "This notebook will go through a series of examples demonstrating how these components can be used standalone as well as combined together to build custom search indexes.\n",
"\n",
"_Note: This is intended as a deep dive into txtai `embeddings` components. There are much simpler high-level APIs for standard use cases._"
],
@@ -64,7 +64,7 @@
},
{
"cell_type": "code",
- "execution_count": 1,
+ "execution_count": null,
"metadata": {
"id": "xEvX9vCpn4E0"
},
@@ -157,7 +157,7 @@
"id": "DPWrubv5oOn7",
"outputId": "972c1837-2404-42f4-9a5e-51f3c3f149ee"
},
- "execution_count": 3,
+ "execution_count": null,
"outputs": [
{
"output_type": "execute_result",
@@ -199,7 +199,7 @@
"id": "ILSfWHxVHex0",
"outputId": "b9da6a79-778f-4338-a6b5-d693772fcdae"
},
- "execution_count": 4,
+ "execution_count": null,
"outputs": [
{
"output_type": "execute_result",
@@ -238,7 +238,7 @@
"id": "c2FVQlxSLKgP",
"outputId": "825ca5de-d765-4c67-fdde-c7fe06557095"
},
- "execution_count": 5,
+ "execution_count": null,
"outputs": [
{
"output_type": "stream",
@@ -280,7 +280,7 @@
"id": "OYAqPoTmNaNN",
"outputId": "30b6305a-11da-4439-e0f5-646aef8d96f6"
},
- "execution_count": 6,
+ "execution_count": null,
"outputs": [
{
"output_type": "stream",
@@ -323,7 +323,7 @@
"id": "9IwcIgocPSDr",
"outputId": "eeceee2f-cf35-414f-b9e4-ad975c118e42"
},
- "execution_count": 7,
+ "execution_count": null,
"outputs": [
{
"output_type": "execute_result",
@@ -358,7 +358,7 @@
"id": "7yPjcT3peDnZ",
"outputId": "241c98df-9c24-47a1-8ca5-e5bace19abfb"
},
- "execution_count": 8,
+ "execution_count": null,
"outputs": [
{
"output_type": "execute_result",
@@ -397,7 +397,7 @@
"id": "Aq1ZvOhvQHRO",
"outputId": "3c2f9c94-57b1-489d-c854-60b909187ff0"
},
- "execution_count": 9,
+ "execution_count": null,
"outputs": [
{
"output_type": "stream",
@@ -449,7 +449,7 @@
"id": "LJ2FskiiQ_l_",
"outputId": "d023191a-b9bc-47fa-be99-375b81f02e8e"
},
- "execution_count": 10,
+ "execution_count": null,
"outputs": [
{
"output_type": "execute_result",
@@ -476,7 +476,7 @@
"id": "slLtmzfbRuf6",
"outputId": "be7ba16e-fd6d-4c30-fb43-a4617bac21ca"
},
- "execution_count": 11,
+ "execution_count": null,
"outputs": [
{
"output_type": "stream",
@@ -533,7 +533,7 @@
"id": "MEpZAr0TUMCK",
"outputId": "b320604b-f2a0-4546-c91d-2d2b0c449382"
},
- "execution_count": 12,
+ "execution_count": null,
"outputs": [
{
"output_type": "stream",