Initial commit with real LangChain modules.: remove langchain_ollama.py
This commit is contained in:
@@ -1,23 +0,0 @@
|
||||
"""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
|
||||
Reference in New Issue
Block a user