BAAI/bge-large-en-v1.5를 제공할 수 있습니다:
LangChain V1.0 릴리즈 이후 공식 도큐먼트의 한글 번역본 입니다. 번역 오류는 Issue 에 올려주세요 🙇♂️
---
title: Text Embeddings Inference
---
>[Hugging Face Text Embeddings Inference (TEI)](https://huggingface.co/docs/text-embeddings-inference/index)는 오픈소스 텍스트 임베딩 및 시퀀스 분류 모델을 배포하고 제공하기 위한 툴킷입니다. `TEI`는 `FlagEmbedding`, `Ember`, `GTE`, `E5`를 포함한 가장 인기 있는 모델들에 대해 고성능 추출을 가능하게 합니다.
langchain에서 사용하려면 먼저 `huggingface-hub`를 설치하세요.
```python
pip install -U huggingface-hub
BAAI/bge-large-en-v1.5를 제공할 수 있습니다:
model=BAAI/bge-large-en-v1.5
revision=refs/pr/5
volume=$PWD/data # share a volume with the Docker container to avoid downloading weights every run
docker run --gpus all -p 8080:80 -v $volume:/data --pull always ghcr.io/huggingface/text-embeddings-inference:0.6 --model-id $model --revision $revision
from langchain_huggingface.embeddings import HuggingFaceEndpointEmbeddings
embeddings = HuggingFaceEndpointEmbeddings(model="http://localhost:8080")
text = "What is deep learning?"
query_result = embeddings.embed_query(text)
query_result[:3]
[0.018113142, 0.00302585, -0.049911194]
doc_result = embeddings.embed_documents([text])
doc_result[0][:3]
[0.018113142, 0.00302585, -0.049911194]
---
<Callout icon="pen-to-square" iconType="regular">
[Edit the source of this page on GitHub.](https://github.com/langchain-ai/docs/edit/main/src/oss/python/integrations/text_embedding/text_embeddings_inference.mdx)
</Callout>
<Tip icon="terminal" iconType="regular">
[Connect these docs programmatically](/use-these-docs) to Claude, VSCode, and more via MCP for real-time answers.
</Tip>