💡 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 docs
davidmezzetti3ddb3e12ba50
diff --git a/docs/api/index.md b/docs/api/index.mdindex 535df924..6f0f5a90 100644--- a/docs/api/index.md+++ b/docs/api/index.md@@ -122,9 +122,13 @@ The following programming languages have bindings with the txtai API:The API also supports hosting [OpenAI-compatible endpoints](./openai).-See the links below for detailed examples covering how to use the API.+See the links below for detailed examples covering the API.| Notebook | Description | ||:----------|:-------------|------:|| [API Gallery](https://github.com/neuml/txtai/blob/master/examples/08_API_Gallery.ipynb) | Using txtai in JavaScript, Java, Rust and Go | [](https://colab.research.google.com/github/neuml/txtai/blob/master/examples/08_API_Gallery.ipynb) |+| [Distributed embeddings cluster](https://github.com/neuml/txtai/blob/master/examples/15_Distributed_embeddings_cluster.ipynb) | Distribute an embeddings index across multiple data nodes | [](https://colab.research.google.com/github/neuml/txtai/blob/master/examples/15_Distributed_embeddings_cluster.ipynb) |+| [Embeddings in the Cloud](https://github.com/neuml/txtai/blob/master/examples/43_Embeddings_in_the_Cloud.ipynb) | Load and use an embeddings index from the Hugging Face Hub | [](https://colab.research.google.com/github/neuml/txtai/blob/master/examples/43_Embeddings_in_the_Cloud.ipynb) |+| [Custom API Endpoints](https://github.com/neuml/txtai/blob/master/examples/51_Custom_API_Endpoints.ipynb) | Extend the API with custom endpoints | [](https://colab.research.google.com/github/neuml/txtai/blob/master/examples/51_Custom_API_Endpoints.ipynb) |+| [API Authorization and Authentication](https://github.com/neuml/txtai/blob/master/examples/54_API_Authorization_and_Authentication.ipynb) | Add authorization, authentication and middleware dependencies to the API | [](https://colab.research.google.com/github/neuml/txtai/blob/master/examples/54_API_Authorization_and_Authentication.ipynb) || [OpenAI Compatible API](https://github.com/neuml/txtai/blob/master/examples/74_OpenAI_Compatible_API.ipynb) | Connect to txtai with a standard OpenAI client library | [](https://colab.research.google.com/github/neuml/txtai/blob/master/examples/74_OpenAI_Compatible_API.ipynb) |diff --git a/docs/examples.md b/docs/examples.mdindex 40a3d365..40f19583 100644--- a/docs/examples.md+++ b/docs/examples.md@@ -105,6 +105,7 @@ Run distributed txtai, integrate with the API and cloud endpoints.| [Embeddings in the Cloud](https://github.com/neuml/txtai/blob/master/examples/43_Embeddings_in_the_Cloud.ipynb) | Load and use an embeddings index from the Hugging Face Hub | [](https://colab.research.google.com/github/neuml/txtai/blob/master/examples/43_Embeddings_in_the_Cloud.ipynb) || [Custom API Endpoints](https://github.com/neuml/txtai/blob/master/examples/51_Custom_API_Endpoints.ipynb) | Extend the API with custom endpoints | [](https://colab.research.google.com/github/neuml/txtai/blob/master/examples/51_Custom_API_Endpoints.ipynb) || [API Authorization and Authentication](https://github.com/neuml/txtai/blob/master/examples/54_API_Authorization_and_Authentication.ipynb) | Add authorization, authentication and middleware dependencies to the API | [](https://colab.research.google.com/github/neuml/txtai/blob/master/examples/54_API_Authorization_and_Authentication.ipynb) |+| [OpenAI Compatible API](https://github.com/neuml/txtai/blob/master/examples/74_OpenAI_Compatible_API.ipynb) | Connect to txtai with a standard OpenAI client library | [](https://colab.research.google.com/github/neuml/txtai/blob/master/examples/74_OpenAI_Compatible_API.ipynb) |## Architecturediff --git a/examples/74_OpenAI_Compatible_API.ipynb b/examples/74_OpenAI_Compatible_API.ipynbindex 728f6065..bc86aeac 100644--- a/examples/74_OpenAI_Compatible_API.ipynb+++ b/examples/74_OpenAI_Compatible_API.ipynb@@ -386,7 +386,7 @@},{"cell_type": "code",- "execution_count": 9,+ "execution_count": null,"metadata": {},"outputs": [{@@ -418,7 +418,6 @@" voice: \"bm_lewis\",\n"," });\n","\n",- " console.log(speechFile);\n"," const buffer = Buffer.from(await mp3.arrayBuffer());\n"," await fs.promises.writeFile(speechFile, buffer);\n","}\n",@@ -428,17 +427,9 @@},{"cell_type": "code",- "execution_count": 10,+ "execution_count": null,"metadata": {},- "outputs": [- {- "name": "stdout",- "output_type": "stream",- "text": [- "/data/neuml/txtai/examples/speech.mp3\n"- ]- }- ],+ "outputs": [],"source": ["!node --no-warnings speech.js"]