forked from tmc/langchaingo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding huggingface text embeddings interface as docker service for co…
…nvienience
- Loading branch information
Showing
3 changed files
with
22 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,21 @@ | ||
# Milvus vector store with local embeddings via huggingface TEI. | ||
|
||
Dependencies: | ||
- [Text Embeddings Inference](https://github.com/huggingface/text-embeddings-inference) | ||
- [Ollama](https://ollama.ai/) | ||
- [Text Embeddings Inference](https://github.com/huggingface/text-embeddings-inference) (optional) | ||
|
||
```shell | ||
# start milvus | ||
# start milvus and text embeddings interface | ||
docker-compose up -d | ||
|
||
#start embedding server | ||
text-embeddings-router --model-id thenlper/gte-large --port 5500 | ||
|
||
``` | ||
|
||
## For faster embeddings | ||
|
||
```shell | ||
# stop txt-inference container | ||
docker compose stop txt-inference | ||
|
||
# start embedding server | ||
text-embeddings-router --model-id thenlper/gte-large --port 5500 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters