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 embeddings documentation to mention loading ONNX vector models, closes #1071

davidmezzettif2e02dff4aaf
diff --git a/docs/embeddings/configuration/vectors.md b/docs/embeddings/configuration/vectors.md
index d409149c..8e2e0ec9 100644
--- a/docs/embeddings/configuration/vectors.md
+++ b/docs/embeddings/configuration/vectors.md
@@ -12,7 +12,8 @@ Sets the path for a vectors model. When using a transformers/sentence-transforme
## method
```yaml
-method: transformers|sentence-transformers|llama.cpp|litellm|model2vec|external|words
+method: transformers|sentence-transformers|llama.cpp|litellm|model2vec|external|
+ words
```
Embeddings method to use. If the method is not provided, it is inferred using the `path`.
@@ -29,6 +30,8 @@ from `transformers` to `meanpooling`, `clspooling` or `latepooling` respectively
Setting `maxlength` to `True` enables truncating inputs to the `max_seq_length`. Setting `maxlength` to an integer will truncate inputs to that value. When omitted (default), the `maxlength` will be set to either the model or tokenizer maxlength.
+Supports loading ONNX models directly. [See this section for more](../../../examples/#model-training).
+
### sentence-transformers
Same as transformers but loads models with the [sentence-transformers](https://github.com/UKPLab/sentence-transformers) library.