mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-29 18:08:36 +00:00
18 lines
452 B
Python
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"}
|