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

File chain.py

templates/elastic-query-generator/elastic_query_generator/chain.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1from elasticsearch import Elasticsearch
2from langchain.output_parsers.json import SimpleJsonOutputParser
3from langchain_community.chat_models import ChatOpenAI
4from langchain_core.pydantic_v1 import BaseModel

Callers

nothing calls this directly

Calls 4

ChatOpenAIClass · 0.90
get_indices_infosFunction · 0.85
getMethod · 0.45
with_typesMethod · 0.45

Tested by

no test coverage detected