mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-28 05:54:55 +00:00
Using `pyupgrade` to get all `partners` code up to 3.9 standards (mostly, fixing old `typing` imports).
16 lines
427 B
Python
16 lines
427 B
Python
"""Test Ollama embeddings."""
|
|
|
|
from langchain_tests.integration_tests import EmbeddingsIntegrationTests
|
|
|
|
from langchain_ollama.embeddings import OllamaEmbeddings
|
|
|
|
|
|
class TestOllamaEmbeddings(EmbeddingsIntegrationTests):
|
|
@property
|
|
def embeddings_class(self) -> type[OllamaEmbeddings]:
|
|
return OllamaEmbeddings
|
|
|
|
@property
|
|
def embedding_model_params(self) -> dict:
|
|
return {"model": "llama3:latest"}
|