💡 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
davidmezzetti754726ddb09d
diff --git a/docs/cloud.md b/docs/cloud.mdindex 596d6f7a..6b3d9724 100644--- a/docs/cloud.md+++ b/docs/cloud.md@@ -10,7 +10,7 @@ Scalable cloud-native applications can be built with txtai. The following cloud- Serverless Compute- txtai.cloud (coming in 2024)-Images for txtai are available on Docker Hub for [CPU](https://hub.docker.com/r/neuml/txtai-cpu) and [GPU](https://hub.docker.com/r/neuml/txtai-gpu) installs. The CPU install is recommended when GPUs aren't available given the image is half the size.+Images for txtai are available on Docker Hub for [CPU](https://hub.docker.com/r/neuml/txtai-cpu) and [GPU](https://hub.docker.com/r/neuml/txtai-gpu) installs. The CPU install is recommended when GPUs aren't available given the image is significantly smaller.The base txtai images have no models installed and models will be downloaded each time the container starts. Caching the models is recommended as that will significantly reduce container start times. This can be done a couple different ways.diff --git a/docs/embeddings/configuration/scoring.md b/docs/embeddings/configuration/scoring.mdindex d5870b71..0a8c032d 100644--- a/docs/embeddings/configuration/scoring.md+++ b/docs/embeddings/configuration/scoring.md@@ -19,11 +19,19 @@ Sets the scoring method. Add custom scoring via setting this parameter to the fu## terms```yaml-terms: boolean+terms: boolean|dict```Enables term frequency sparse arrays for a scoring instance. This is the backend for sparse keyword indexes.+Supports a `dict` with the parameters `cachelimit` and `cutoff`.++`cachelimit` is the maximum amount of resident memory in bytes to use during indexing before flushing to disk. This parameter is an `int`.++`cutoff` is used during search to determine what constitutes a common term. This parameter is a `float`, i.e. 0.1 for a cutoff of 10%.++When `terms` is set to `True`, default parameters are used for the `cachelimit` and `cutoff`. Normally, these defaults are sufficient.+## normalize```yamlnormalize: booleandiff --git a/docs/install.md b/docs/install.mdindex 5ca420e8..47d4950a 100644--- a/docs/install.md+++ b/docs/install.md@@ -142,11 +142,23 @@ Optional dependencies require [C++ Build Tools](https://visualstudio.microsoft.cThe [txtai build workflow](https://github.com/neuml/txtai/blob/master/.github/workflows/build.yml) occasionally has work arounds for other known but temporary dependency issues. The [FAQ](../faq) also has a list of common problems, including common installation issues.+## CPU-only++The default install adds PyTorch with GPU support. There are a number of dependencies that come with that. When running in a CPU-only environment or using Embeddings/LLM models without PyTorch (i.e. llama.cpp or API services), the CPU-only PyTorch package can be installed with txtai as follows.++```+pip install txtai torch==[version]+cpu -f https://download.pytorch.org/whl/torch_stable.html+```++Where `[version]` is the version of PyTorch (such as 2.3.1). The [txtai-cpu](https://hub.docker.com/r/neuml/txtai-cpu) image on Docker Hub uses this method to reduce the image size.+## Install from sourcetxtai can also be installed directly from GitHub to access the latest, unreleased features.- pip install git+https://github.com/neuml/txtai+```+pip install git+https://github.com/neuml/txtai+```Extras can be installed from GitHub by adding `#egg=txtai[<name-of-extra>]` to the end of the above URL.@@ -154,7 +166,9 @@ Extras can be installed from GitHub by adding `#egg=txtai[<name-of-extra>]` to tA [community-supported txtai package](https://anaconda.org/conda-forge/txtai) is available via conda-forge.- conda install -c conda-forge txtai+```+conda install -c conda-forge txtai+```## Run with containers