Skip to content

Commit

Permalink
Remove huggingface encoder
Browse files Browse the repository at this point in the history
  • Loading branch information
homanp committed Feb 22, 2024
1 parent b49453a commit b27e956
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ COPY pyproject.toml poetry.lock ./
# Install the required packages of the application
RUN poetry install --no-root && rm -rf $POETRY_CACHE_DIR

# Install gunicorn
RUN pip install gunicorn

# Make port 80 available to the world outside this container
ENV PORT="8080"

Expand Down
2 changes: 0 additions & 2 deletions models/ingest.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
class EncoderEnum(str, Enum):
cohere = "cohere"
openai = "openai"
huggingface = "huggingface"
fastembed = "fastembed"


class Encoder(BaseModel):
Expand Down
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions service/embedding.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from semantic_router.encoders import (
BaseEncoder,
CohereEncoder,
HuggingFaceEncoder,
OpenAIEncoder,
)
from tqdm import tqdm
Expand Down Expand Up @@ -247,7 +246,6 @@ def get_encoder(*, encoder_config: Encoder) -> BaseEncoder:
encoder_mapping = {
EncoderEnum.cohere: CohereEncoder,
EncoderEnum.openai: OpenAIEncoder,
EncoderEnum.huggingface: HuggingFaceEncoder,
}
encoder_provider = encoder_config.type
encoder = encoder_config.name
Expand Down

0 comments on commit b27e956

Please sign in to comment.