💡 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 documentation
davidmezzettib9bdb1cfd1a8
diff --git a/docs/embeddings/configuration/vectors.md b/docs/embeddings/configuration/vectors.mdindex 9a59f9cb..53cebf04 100644--- a/docs/embeddings/configuration/vectors.md+++ b/docs/embeddings/configuration/vectors.md@@ -24,6 +24,9 @@ Sentence embeddings method to use. If the method is not provided, it is inferredBuilds sentence embeddings using a transformers model. While this can be any transformers model, it works best with[models trained](https://huggingface.co/models?pipeline_tag=sentence-similarity) to build sentence embeddings.+Both `mean` and `cls` pooling are supported and automatically infered from the model. The pooling method can be overwritten by changing the method+from `transformers` to `meanpooling` or `clspooling` respectively.+### sentence-transformersSame as transformers but loads models with the [sentence-transformers](https://github.com/UKPLab/sentence-transformers) library.@@ -57,7 +60,7 @@ transform: functionWhen method is `external`, this function transforms input content into embeddings. The input to this function is a list of data. This method must return either a numpy array or list of numpy arrays.-#### gpu+## gpu```yamlgpu: boolean|int|string|device```