Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue when using Fastembed #532

Merged
merged 9 commits into from
Oct 30, 2023
2 changes: 1 addition & 1 deletion core/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RUN apt-get -y update && apt-get install -y curl build-essential fastjar libmagi

### ADMIN (static build) ###
WORKDIR /admin
RUN curl -sL https://github.com/cheshire-cat-ai/admin-vue/releases/download/Admin/develop.zip | jar -xv
RUN curl -sL https://github.com/cheshire-cat-ai/admin-vue/releases/download/Admin/release.zip | jar -xv
valentimarco marked this conversation as resolved.
Show resolved Hide resolved

### INSTALL PYTHON DEPENDENCIES (Core and Plugins) ###
WORKDIR /app
Expand Down
2 changes: 1 addition & 1 deletion core/cat/factory/custom_embedder.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class CustomFastembedEmbeddings(Embeddings):
"""
def __init__(self, url, model,max_length) -> None:
self.url = url
output = httpx.post(f"{url}/embeddings", json={"model": model, "max_length": max_length})
output = httpx.post(f"{url}/embeddings", json={"model": model, "max_length": max_length}, follow_redirects=True, timeout=None)
output.raise_for_status()


Expand Down
Loading