Skip to content

Commit

Permalink
Fix issue when using Fastembed (#532)
Browse files Browse the repository at this point in the history
* Update Dockerfile

* Fixed bug with 307 http code

* Revert "Merge branch 'cheshire-cat-ai:main' into embedder"

This reverts commit f7a6138, reversing
changes made to 3756f0c.

---------

Co-authored-by: Piero Savastano <[email protected]>
  • Loading branch information
valentimarco and pieroit authored Oct 30, 2023
1 parent 5115bdd commit 311ba12
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 311ba12

Please sign in to comment.