We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f64c2c5 commit 25e8d81Copy full SHA for 25e8d81
open/text/embeddings/server/app.py
@@ -84,10 +84,11 @@ def initialize_embeddings():
84
85
model_name = os.environ["MODEL"]
86
print("Loading model:", model_name)
87
+ normalize_embeddings = bool(os.environ.get("NORMALIZE_EMBEDDINGS", ""))
88
encode_kwargs = {
- "normalize_embeddings": bool(os.environ.get("NORMALIZE_EMBEDDINGS", ""))
89
+ "normalize_embeddings": normalize_embeddings
90
}
- print("encode_kwargs", encode_kwargs)
91
+ print("Normalize embeddings:", normalize_embeddings)
92
if "e5" in model_name:
93
embeddings = HuggingFaceInstructEmbeddings(model_name=model_name,
94
embed_instruction=E5_EMBED_INSTRUCTION,
0 commit comments