24 lines
612 B
Python
24 lines
612 B
Python
"""Dummy langchain_ollama module for local testing.
|
|
|
|
This module provides minimal stub classes to satisfy imports in main.py
|
|
without requiring the actual langchain-ollama package.
|
|
"""
|
|
|
|
class ChatOllama:
|
|
def __init__(self, *args, **kwargs):
|
|
pass
|
|
|
|
def invoke(self, *args, **kwargs):
|
|
return "<chat response>"
|
|
|
|
class OllamaEmbeddings:
|
|
def __init__(self, *args, **kwargs):
|
|
pass
|
|
|
|
def embed_documents(self, documents):
|
|
# Return dummy embeddings (list of zeros)
|
|
return [[0.0] * 768 for _ in documents]
|
|
|
|
def embed_query(self, query):
|
|
return [0.0] * 768
|