Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

docs(examples): migrate Ollama embeddings imports to langchain_ollama (#4399)

LearningCircuit67204c66534a
diff --git a/examples/api_usage/programmatic/custom_llm_retriever_example.py b/examples/api_usage/programmatic/custom_llm_retriever_example.py
index 4ad5b3f53b..ecf4950453 100644
--- a/examples/api_usage/programmatic/custom_llm_retriever_example.py
+++ b/examples/api_usage/programmatic/custom_llm_retriever_example.py
@@ -7,10 +7,9 @@ retrieval system for programmatic access.
"""
from typing import List, Dict
-from langchain_ollama import ChatOllama
+from langchain_ollama import ChatOllama, OllamaEmbeddings
from langchain_core.retrievers import Document
from langchain_community.vectorstores import FAISS
-from langchain_community.embeddings import OllamaEmbeddings
# Import the search system
from local_deep_research.search_system import AdvancedSearchSystem
diff --git a/examples/api_usage/programmatic/hybrid_search_example.py b/examples/api_usage/programmatic/hybrid_search_example.py
index c6ddd691bc..6cc5423ed1 100644
--- a/examples/api_usage/programmatic/hybrid_search_example.py
+++ b/examples/api_usage/programmatic/hybrid_search_example.py
@@ -11,7 +11,7 @@ This example demonstrates how to combine multiple search sources:
from typing import List
from langchain_core.retrievers import Document, BaseRetriever
from langchain_community.vectorstores import FAISS
-from langchain_community.embeddings import OllamaEmbeddings
+from langchain_ollama import OllamaEmbeddings
from local_deep_research.api import quick_summary, detailed_research
from local_deep_research.api.settings_utils import create_settings_snapshot