The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
community[patch]: llama cpp embeddings reset default n_batch (#17594)
Lance Martin12843f292f44
diff --git a/libs/community/langchain_community/embeddings/llamacpp.py b/libs/community/langchain_community/embeddings/llamacpp.pyindex 1f75171dcb..4cd89fc0ea 100644--- a/libs/community/langchain_community/embeddings/llamacpp.py+++ b/libs/community/langchain_community/embeddings/llamacpp.py@@ -47,7 +47,7 @@ class LlamaCppEmbeddings(BaseModel, Embeddings):"""Number of threads to use. If None, the numberof threads is automatically determined."""- n_batch: Optional[int] = Field(8, alias="n_batch")+ n_batch: Optional[int] = Field(512, alias="n_batch")"""Number of tokens to process in parallel.Should be a number between 1 and n_ctx."""