You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Hugging Face support is not installed. Please install it with `poetry add llama-index-llms-huggingface` and `poetry add llama-index-embeddings-huggingface`"
145
+
)
134
146
135
-
# This will download the model automatically if it is not already downloaded
136
-
Settings.embed_model=FastEmbedEmbedding(
137
-
model_name=embed_model_map[embedding_model]
147
+
Settings.llm=HuggingFaceLLM(
148
+
model_name=os.getenv("MODEL"),
149
+
tokenizer_name=os.getenv("MODEL"),
138
150
)
151
+
init_huggingface_embedding()
139
152
140
153
141
154
definit_groq():
@@ -147,8 +160,8 @@ def init_groq():
147
160
)
148
161
149
162
Settings.llm=Groq(model=os.getenv("MODEL"))
150
-
# Groq does not provide embeddings, so we use FastEmbed instead
151
-
init_fastembed()
163
+
# Groq does not provide embeddings, so we use open Sentence Transformer models instead
0 commit comments