💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows
Python agentsaiai-agentsembeddingsinformation-retrievallanguage-modellarge-language-modelsllmnlppythonragretrieval-augmented-generationsearchsearch-enginesemantic-searchsentence-embeddingstransformerstxtaivector-databasevector-search
Update link in notebook
davidmezzetti6ac0a8cfea1b
diff --git a/examples/01_Introducing_txtai.ipynb b/examples/01_Introducing_txtai.ipynbindex e9756253..a3d475f9 100644--- a/examples/01_Introducing_txtai.ipynb+++ b/examples/01_Introducing_txtai.ipynb@@ -79,7 +79,7 @@"%%capture\n","!pip install git+https://github.com/neuml/txtai"],- "execution_count": 1,+ "execution_count": null,"outputs": []},{@@ -107,7 +107,7 @@"# Create embeddings model, backed by sentence-transformers & transformers\n","embeddings = Embeddings({\"method\": \"transformers\", \"path\": \"sentence-transformers/bert-base-nli-mean-tokens\"})"],- "execution_count": 2,+ "execution_count": null,"outputs": []},{@@ -150,7 +150,7 @@"\n"," print(\"%-20s %s\" % (query, data[uid]))"],- "execution_count": 3,+ "execution_count": null,"outputs": [{"output_type": "stream",@@ -218,7 +218,7 @@" # Print text\n"," print(\"%-20s %s\" % (query, data[uid]))"],- "execution_count": 4,+ "execution_count": null,"outputs": [{"output_type": "stream",@@ -268,7 +268,7 @@"uid = embeddings.search(\"climate change\", 1)[0][0]\n","print(data[uid])"],- "execution_count": 5,+ "execution_count": null,"outputs": [{"output_type": "stream",@@ -292,7 +292,7 @@"source": ["!ls index"],- "execution_count": 6,+ "execution_count": null,"outputs": [{"output_type": "stream",@@ -344,7 +344,7 @@"uid = embeddings.search(\"feel good story\", 1)[0][0]\n","print(\"After delete: \", data[uid])"],- "execution_count": 7,+ "execution_count": null,"outputs": [{"output_type": "stream",@@ -375,7 +375,7 @@"- word embeddings\n"," - Creates a single embeddings vector via BM25 scoring of each word component. See this [Medium article](https://towardsdatascience.com/building-a-sentence-embedding-index-with-fasttext-and-bm25-f07e7148d240) for the logic behind this method.\n"," - Backed by the [pymagnitude](https://github.com/plasticityai/magnitude) library. Pre-trained word vectors can be installed from the referenced link.\n",- " - See [vectors.py](https://github.com/neuml/txtai/blob/master/src/python/txtai/vectors.py) for code that can build word vectors for custom datasets.\n",+ " - See [words.py](https://github.com/neuml/txtai/blob/master/src/python/txtai/vectors/words.py) for code that can build word vectors for custom datasets.\n"," - Significantly better performance with default models. For larger datasets, it offers a good tradeoff of speed and accuracy."]},