Skip to content

Commit 4e4ec10

Browse files
committed
Update docs for new requirements.txt path
Signed-off-by: Marcus Köhler <[email protected]>
1 parent 9f708ff commit 4e4ec10

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/content/features/embeddings.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@ The `sentencetransformers` backend uses Python [sentence-transformers](https://g
7575

7676
{{% notice note %}}
7777

78-
- The `sentencetransformers` backend is an optional backend of LocalAI and uses Python. If you are running `LocalAI` from the containers you are good to go and should be already configured for use. If you are running `LocalAI` manually you must install the python dependencies (`pip install -r /path/to/LocalAI/extra/requirements`) and specify the extra backend in the `EXTERNAL_GRPC_BACKENDS` environment variable ( `EXTERNAL_GRPC_BACKENDS="sentencetransformers:/path/to/LocalAI/backend/python/sentencetransformers/sentencetransformers.py"` ) .
78+
- The `sentencetransformers` backend is an optional backend of LocalAI and uses Python. If you are running `LocalAI` from the containers you are good to go and should be already configured for use.
79+
- If you are running `LocalAI` manually you must install the python dependencies (`make prepare-extra-conda-environments`). This requires `conda` to be installed.
80+
- For local execution, you also have to specify the extra backend in the `EXTERNAL_GRPC_BACKENDS` environment variable.
81+
- Example: `EXTERNAL_GRPC_BACKENDS="sentencetransformers:/path/to/LocalAI/backend/python/sentencetransformers/sentencetransformers.py"`
7982
- The `sentencetransformers` backend does support only embeddings of text, and not of tokens. If you need to embed tokens you can use the `bert` backend or `llama.cpp`.
8083
- No models are required to be downloaded before using the `sentencetransformers` backend. The models will be downloaded automatically the first time the API is used.
8184

0 commit comments

Comments
 (0)