MCPcopy
hub / github.com/langchain-ai/langchain / chain.py

File chain.py

templates/rag-elasticsearch/rag_elasticsearch/chain.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1from operator import itemgetter
2from typing import List, Optional, Tuple
3
4from langchain_community.chat_models import ChatOpenAI

Callers

nothing calls this directly

Calls 9

ChatOpenAIClass · 0.90
RunnableParallelClass · 0.90
StrOutputParserClass · 0.90
ElasticsearchStoreClass · 0.85
_format_chat_historyFunction · 0.70
as_retrieverMethod · 0.45
assignMethod · 0.45
with_typesMethod · 0.45

Tested by

no test coverage detected