mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-04-02 08:58:11 +02:00
Model Touchups (#1887)
This commit is contained in:
parent
2ba24b1734
commit
0e8ba111c8
@ -97,6 +97,7 @@ class CloudEmbedding:
|
||||
texts=texts,
|
||||
model=model,
|
||||
input_type=embedding_type,
|
||||
truncate="NONE",
|
||||
)
|
||||
return response.embeddings
|
||||
|
||||
@ -126,6 +127,7 @@ class CloudEmbedding:
|
||||
)
|
||||
return [embedding.values for embedding in embeddings]
|
||||
|
||||
@retry(tries=_RETRY_TRIES, delay=_RETRY_DELAY)
|
||||
def embed(
|
||||
self,
|
||||
*,
|
||||
@ -211,7 +213,6 @@ def warm_up_cross_encoders() -> None:
|
||||
|
||||
|
||||
@simple_log_function_time()
|
||||
@retry(tries=_RETRY_TRIES, delay=_RETRY_DELAY)
|
||||
def embed_text(
|
||||
texts: list[str],
|
||||
text_type: EmbedTextType,
|
||||
|
@ -10,5 +10,5 @@ transformers==4.39.2
|
||||
uvicorn==0.21.1
|
||||
voyageai==0.2.3
|
||||
openai==1.14.3
|
||||
cohere==5.5.8
|
||||
google-cloud-aiplatform==1.58.0
|
||||
cohere==5.6.1
|
||||
google-cloud-aiplatform==1.58.0
|
||||
|
Loading…
x
Reference in New Issue
Block a user