langchain/libs/partners/ollama/tests/integration_tests/test_embeddings.py

18 lines
452 B
Python

"""Test Ollama embeddings."""
from typing import Type
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"}