mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-18 13:55:17 +02:00
tuning code
This commit is contained in:
parent
6d906ce1ed
commit
e03db313a2
9 changed files with 40 additions and 39 deletions
|
|
@ -89,9 +89,9 @@ class RAGEmbeddingFactory(GenericFactory):
|
|||
return OllamaEmbedding(**params)
|
||||
|
||||
def _try_set_model_and_batch_size(self, params: dict):
|
||||
"""Set the model_name and embed_batch_size only when they are specified."""
|
||||
"""Set the model and embed_batch_size only when they are specified."""
|
||||
if config.embedding.model:
|
||||
params["model_name"] = config.embedding.model
|
||||
params["model"] = config.embedding.model
|
||||
|
||||
if config.embedding.embed_batch_size:
|
||||
params["embed_batch_size"] = config.embedding.embed_batch_size
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue