_default_params() — langchain Function Reference
Architecture documentation for the _default_params() function in embeddings.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD ed61a297_f8eb_5ecc_600b_c3611d9d8499["_default_params()"] 0c74773d_9131_7802_d6df_f19bff9e4247["OllamaEmbeddings"] ed61a297_f8eb_5ecc_600b_c3611d9d8499 -->|defined in| 0c74773d_9131_7802_d6df_f19bff9e4247 style ed61a297_f8eb_5ecc_600b_c3611d9d8499 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/ollama/langchain_ollama/embeddings.py lines 257–273
def _default_params(self) -> dict[str, Any]:
"""Get the default parameters for calling Ollama."""
return {
"mirostat": self.mirostat,
"mirostat_eta": self.mirostat_eta,
"mirostat_tau": self.mirostat_tau,
"num_ctx": self.num_ctx,
"num_gpu": self.num_gpu,
"num_thread": self.num_thread,
"repeat_last_n": self.repeat_last_n,
"repeat_penalty": self.repeat_penalty,
"temperature": self.temperature,
"stop": self.stop,
"tfs_z": self.tfs_z,
"top_k": self.top_k,
"top_p": self.top_p,
}
Domain
Subdomains
Source
Frequently Asked Questions
What does _default_params() do?
_default_params() is a function in the langchain codebase, defined in libs/partners/ollama/langchain_ollama/embeddings.py.
Where is _default_params() defined?
_default_params() is defined in libs/partners/ollama/langchain_ollama/embeddings.py at line 257.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free