Skip to content

Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!

Python

doc: Add AI Search index schema

Clémence Lesné3b614376de3b
diff --git a/README.md b/README.md
index 520136a..82d8161 100644
--- a/README.md
+++ b/README.md
@@ -326,10 +326,20 @@ make dev
## Advanced usage
-### Add my custom training data
+### Add my custom training data with AI Search
Training data is stored on AI Search to be retrieved by the bot, on demand.
+Required index schema:
+
+| **Field Name** | `Type` | Retrievable | Searchable | Dimensions | Vectorizer |
+|-|-|-|-|-|-|
+| **id** | `Edm.String` | Yes | No | | |
+| **content** | `Edm.String` | Yes | Yes | | |
+| **source_uri** | `Edm.String` | Yes | No | | |
+| **title** | `Edm.String` | Yes | Yes| | |
+| **vectors** | `Collection(Edm.Single)` | No | No | 1536 | *OpenAI ADA* |
+
An exampe is [available at `examples/import-training.ipynb`](examples/import-training.ipynb). It shows how to import training data from a PDF files dataset.
### Customize the prompts