sample_id
stringlengths
21
196
text
stringlengths
105
936k
metadata
dict
category
stringclasses
6 values
langchain-ai/langchain:libs/langchain/langchain_classic/chat_models/minimax.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.chat_models.minimax import MiniMaxChat # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/chat_models/minimax.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/chat_models/mlflow.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.chat_models.mlflow import ChatMlflow # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional i...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/chat_models/mlflow.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/chat_models/mlflow_ai_gateway.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.chat_models.mlflow_ai_gateway import ( ChatMLflowAIGateway, ChatParams, ) # Create a way to dynamically look up deprecated imports. # Used to consolidate logic f...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/chat_models/mlflow_ai_gateway.py", "license": "MIT License", "lines": 22, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/chat_models/ollama.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.chat_models.ollama import ChatOllama # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional i...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/chat_models/ollama.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/chat_models/openai.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.chat_models.openai import ChatOpenAI # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional i...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/chat_models/openai.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/chat_models/pai_eas_endpoint.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.chat_models.pai_eas_endpoint import PaiEasChatEndpoint # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # h...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/chat_models/pai_eas_endpoint.py", "license": "MIT License", "lines": 17, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/chat_models/promptlayer_openai.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.chat_models.promptlayer_openai import PromptLayerChatOpenAI # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings an...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/chat_models/promptlayer_openai.py", "license": "MIT License", "lines": 17, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/chat_models/tongyi.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.chat_models.tongyi import ChatTongyi # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional i...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/chat_models/tongyi.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/chat_models/vertexai.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.chat_models.vertexai import ChatVertexAI # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling option...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/chat_models/vertexai.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/chat_models/volcengine_maas.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.chat_models.volcengine_maas import ( VolcEngineMaasChat, convert_dict_to_message, ) # Create a way to dynamically look up deprecated imports. # Used to consolida...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/chat_models/volcengine_maas.py", "license": "MIT License", "lines": 22, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/chat_models/yandex.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.chat_models.yandex import ChatYandexGPT # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optiona...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/chat_models/yandex.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/docstore/base.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.docstore.base import AddableMixin, Docstore # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling opt...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/docstore/base.py", "license": "MIT License", "lines": 19, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/docstore/in_memory.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.docstore.in_memory import InMemoryDocstore # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling opti...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/docstore/in_memory.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/docstore/wikipedia.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.docstore.wikipedia import Wikipedia # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional im...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/docstore/wikipedia.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/document_loaders/arxiv.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders import ArxivLoader # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional im...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/document_loaders/arxiv.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/document_loaders/bibtex.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders import BibtexLoader # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional i...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/document_loaders/bibtex.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/document_loaders/blob_loaders/file_system.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders import FileSystemBlobLoader # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling op...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/document_loaders/blob_loaders/file_system.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/document_loaders/blob_loaders/schema.py
from typing import Any from langchain_core.document_loaders import Blob, BlobLoader from langchain_classic._api import create_importer # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional imports. DEPRECATED_LOOKUP = { "Blo...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/document_loaders/blob_loaders/schema.py", "license": "MIT License", "lines": 18, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/document_loaders/brave_search.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders import BraveSearchLoader # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optio...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/document_loaders/brave_search.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/document_loaders/generic.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders.generic import GenericLoader # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling o...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/document_loaders/generic.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/document_loaders/github.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders import GitHubIssuesLoader from langchain_community.document_loaders.github import BaseGitHubLoader # Create a way to dynamically look up deprecated imports. # U...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/document_loaders/github.py", "license": "MIT License", "lines": 20, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/document_loaders/max_compute.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders import MaxComputeLoader # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling option...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/document_loaders/max_compute.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/document_loaders/mongodb.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders import MongodbLoader # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional ...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/document_loaders/mongodb.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/document_loaders/parsers/generic.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders.parsers.generic import MimeTypeBasedParser # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings an...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/document_loaders/parsers/generic.py", "license": "MIT License", "lines": 17, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/document_loaders/parsers/language/python.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders.parsers.language.python import ( PythonSegmenter, ) # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising de...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/document_loaders/parsers/language/python.py", "license": "MIT License", "lines": 19, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/document_loaders/parsers/pdf.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders.parsers.pdf import ( AmazonTextractPDFParser, DocumentIntelligenceParser, PDFMinerParser, PDFPlumberParser, PyMuPDFParser, ...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/document_loaders/parsers/pdf.py", "license": "MIT License", "lines": 42, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/document_loaders/pdf.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders import ( AmazonTextractPDFLoader, MathpixPDFLoader, OnlinePDFLoader, PagedPDFSplitter, PDFMinerLoader, PDFMinerPDFasH...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/document_loaders/pdf.py", "license": "MIT License", "lines": 57, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/document_loaders/pubmed.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders import PubMedLoader # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional i...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/document_loaders/pubmed.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/document_loaders/python.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders.python import PythonLoader # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling op...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/document_loaders/python.py", "license": "MIT License", "lines": 13, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/document_loaders/rocksetdb.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders import RocksetLoader # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional ...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/document_loaders/rocksetdb.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/document_loaders/telegram.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders import ( TelegramChatApiLoader, TelegramChatFileLoader, ) from langchain_community.document_loaders.telegram import ( concatenate_row...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/document_loaders/telegram.py", "license": "MIT License", "lines": 30, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/document_loaders/tensorflow_datasets.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders import TensorflowDatasetLoader # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/document_loaders/tensorflow_datasets.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/document_loaders/wikipedia.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders import WikipediaLoader # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optiona...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/document_loaders/wikipedia.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/document_loaders/xml.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders import UnstructuredXMLLoader # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling o...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/document_loaders/xml.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/document_transformers/openai_functions.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_transformers import OpenAIMetadataTagger from langchain_community.document_transformers.openai_functions import ( create_metadata_tagger, ) # Create a way t...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/document_transformers/openai_functions.py", "license": "MIT License", "lines": 24, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/embeddings/aleph_alpha.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.embeddings import ( AlephAlphaAsymmetricSemanticEmbedding, AlephAlphaSymmetricSemanticEmbedding, ) # Create a way to dynamically look up deprecated imports. # Us...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/embeddings/aleph_alpha.py", "license": "MIT License", "lines": 22, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/embeddings/azure_openai.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.embeddings import AzureOpenAIEmbeddings # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optiona...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/embeddings/azure_openai.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/embeddings/baidu_qianfan_endpoint.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.embeddings import QianfanEmbeddingsEndpoint # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling opt...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/embeddings/baidu_qianfan_endpoint.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/embeddings/bedrock.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.embeddings import BedrockEmbeddings # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional im...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/embeddings/bedrock.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/embeddings/cache.py
"""Module contains code for a cache backed embedder. The cache backed embedder is a wrapper around an embedder that caches embeddings in a key-value store. The cache is used to avoid recomputing embeddings for the same text. The text is hashed and the hash is used as the key in the cache. """ from __future__ import ...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/embeddings/cache.py", "license": "MIT License", "lines": 302, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
langchain-ai/langchain:libs/langchain/langchain_classic/embeddings/clarifai.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.embeddings import ClarifaiEmbeddings # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional i...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/embeddings/clarifai.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/embeddings/cloudflare_workersai.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.embeddings.cloudflare_workersai import ( CloudflareWorkersAIEmbeddings, ) # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raisi...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/embeddings/cloudflare_workersai.py", "license": "MIT License", "lines": 21, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/embeddings/cohere.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.embeddings import CohereEmbeddings # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional imp...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/embeddings/cohere.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/embeddings/databricks.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.embeddings import DatabricksEmbeddings # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/embeddings/databricks.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/embeddings/deepinfra.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.embeddings import DeepInfraEmbeddings # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional ...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/embeddings/deepinfra.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/embeddings/edenai.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.embeddings import EdenAiEmbeddings # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional imp...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/embeddings/edenai.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/embeddings/elasticsearch.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.embeddings import ElasticsearchEmbeddings # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optio...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/embeddings/elasticsearch.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/embeddings/ernie.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.embeddings import ErnieEmbeddings # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional impo...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/embeddings/ernie.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/embeddings/fake.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.embeddings import ( DeterministicFakeEmbedding, FakeEmbeddings, ) # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raisi...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/embeddings/fake.py", "license": "MIT License", "lines": 22, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/embeddings/google_palm.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.embeddings import GooglePalmEmbeddings # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/embeddings/google_palm.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/embeddings/gpt4all.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.embeddings import GPT4AllEmbeddings # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional im...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/embeddings/gpt4all.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/embeddings/gradient_ai.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.embeddings import GradientEmbeddings # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional i...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/embeddings/gradient_ai.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/embeddings/huggingface_hub.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.embeddings import HuggingFaceHubEmbeddings # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling opti...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/embeddings/huggingface_hub.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/embeddings/javelin_ai_gateway.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.embeddings import JavelinAIGatewayEmbeddings # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling op...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/embeddings/javelin_ai_gateway.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/embeddings/llamacpp.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.embeddings import LlamaCppEmbeddings # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional i...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/embeddings/llamacpp.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/embeddings/llm_rails.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.embeddings import LLMRailsEmbeddings # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional i...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/embeddings/llm_rails.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/embeddings/minimax.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.embeddings import MiniMaxEmbeddings # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional im...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/embeddings/minimax.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/embeddings/mlflow.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.embeddings import MlflowEmbeddings # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional imp...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/embeddings/mlflow.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/embeddings/mosaicml.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.embeddings import MosaicMLInstructorEmbeddings # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling ...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/embeddings/mosaicml.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/embeddings/nlpcloud.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.embeddings import NLPCloudEmbeddings # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional i...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/embeddings/nlpcloud.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/embeddings/ollama.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.embeddings import OllamaEmbeddings # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional imp...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/embeddings/ollama.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/embeddings/openai.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.embeddings import OpenAIEmbeddings # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional imp...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/embeddings/openai.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/embeddings/sagemaker_endpoint.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.embeddings import SagemakerEndpointEmbeddings from langchain_community.embeddings.sagemaker_endpoint import ( EmbeddingsContentHandler, ) # Create a way to dynamical...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/embeddings/sagemaker_endpoint.py", "license": "MIT License", "lines": 22, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/embeddings/self_hosted.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.embeddings import SelfHostedEmbeddings # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/embeddings/self_hosted.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/embeddings/self_hosted_hugging_face.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.embeddings import ( SelfHostedHuggingFaceEmbeddings, SelfHostedHuggingFaceInstructEmbeddings, ) # Create a way to dynamically look up deprecated imports. # Used ...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/embeddings/self_hosted_hugging_face.py", "license": "MIT License", "lines": 22, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/embeddings/vertexai.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.embeddings import VertexAIEmbeddings # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional i...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/embeddings/vertexai.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/embeddings/xinference.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.embeddings import XinferenceEmbeddings # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/embeddings/xinference.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/evaluation/comparison/eval_chain.py
"""Base classes for comparing the output of two models.""" from __future__ import annotations import logging import re from typing import Any from langchain_core.callbacks import Callbacks from langchain_core.language_models import BaseLanguageModel from langchain_core.output_parsers import BaseOutputParser from lan...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/evaluation/comparison/eval_chain.py", "license": "MIT License", "lines": 398, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
langchain-ai/langchain:libs/langchain/langchain_classic/evaluation/criteria/eval_chain.py
from __future__ import annotations import re from collections.abc import Mapping from enum import Enum from typing import Any from langchain_core.callbacks import Callbacks from langchain_core.language_models import BaseLanguageModel from langchain_core.output_parsers import BaseOutputParser from langchain_core.promp...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/evaluation/criteria/eval_chain.py", "license": "MIT License", "lines": 526, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
langchain-ai/langchain:libs/langchain/langchain_classic/evaluation/embedding_distance/base.py
"""A chain for comparing the output of two models using embeddings.""" import functools import logging from enum import Enum from importlib import util from typing import Any from langchain_core.callbacks import Callbacks from langchain_core.callbacks.manager import ( AsyncCallbackManagerForChainRun, Callback...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/evaluation/embedding_distance/base.py", "license": "MIT License", "lines": 553, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
langchain-ai/langchain:libs/langchain/langchain_classic/evaluation/exact_match/base.py
import string from typing import Any from typing_extensions import override from langchain_classic.evaluation.schema import StringEvaluator class ExactMatchStringEvaluator(StringEvaluator): """Compute an exact match between the prediction and the reference. Examples: ---------- >>> evaluator = Exac...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/evaluation/exact_match/base.py", "license": "MIT License", "lines": 84, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
langchain-ai/langchain:libs/langchain/langchain_classic/evaluation/loading.py
"""Loading datasets and evaluators.""" from collections.abc import Sequence from typing import Any from langchain_core.language_models import BaseLanguageModel from langchain_classic.chains.base import Chain from langchain_classic.evaluation.agents.trajectory_eval_chain import ( TrajectoryEvalChain, ) from langc...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/evaluation/loading.py", "license": "MIT License", "lines": 194, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
langchain-ai/langchain:libs/langchain/langchain_classic/evaluation/parsing/base.py
"""Evaluators for parsing strings.""" import json import logging from collections.abc import Callable from operator import eq from typing import Any, cast from langchain_core.utils.json import parse_json_markdown from typing_extensions import override from langchain_classic.evaluation.schema import StringEvaluator ...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/evaluation/parsing/base.py", "license": "MIT License", "lines": 145, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
langchain-ai/langchain:libs/langchain/langchain_classic/evaluation/qa/eval_chain.py
"""LLM Chains for evaluating question answering.""" from __future__ import annotations import re import string from collections.abc import Sequence from typing import Any from langchain_core.callbacks import Callbacks from langchain_core.language_models import BaseLanguageModel from langchain_core.prompts import Pro...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/evaluation/qa/eval_chain.py", "license": "MIT License", "lines": 322, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
langchain-ai/langchain:libs/langchain/langchain_classic/evaluation/regex_match/base.py
import re from typing import Any from typing_extensions import override from langchain_classic.evaluation.schema import StringEvaluator class RegexMatchStringEvaluator(StringEvaluator): """Compute a regex match between the prediction and the reference. Examples: ---------- >>> evaluator = RegexMatc...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/evaluation/regex_match/base.py", "license": "MIT License", "lines": 70, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
langchain-ai/langchain:libs/langchain/langchain_classic/evaluation/schema.py
"""Interfaces to be implemented by general evaluators.""" from __future__ import annotations import logging from abc import ABC, abstractmethod from collections.abc import Sequence from enum import Enum from typing import Any from warnings import warn from langchain_core.agents import AgentAction from langchain_core...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/evaluation/schema.py", "license": "MIT License", "lines": 441, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
langchain-ai/langchain:libs/langchain/langchain_classic/evaluation/scoring/eval_chain.py
"""Base classes for scoring the output of a model on a scale of 1-10.""" from __future__ import annotations import logging import re from typing import Any from langchain_core.callbacks import Callbacks from langchain_core.language_models import BaseLanguageModel from langchain_core.output_parsers import BaseOutputP...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/evaluation/scoring/eval_chain.py", "license": "MIT License", "lines": 407, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
langchain-ai/langchain:libs/langchain/langchain_classic/evaluation/string_distance/base.py
"""String distance evaluators based on the RapidFuzz library.""" from collections.abc import Callable from enum import Enum from typing import Any from langchain_core.callbacks import Callbacks from langchain_core.callbacks.manager import ( AsyncCallbackManagerForChainRun, CallbackManagerForChainRun, ) from l...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/evaluation/string_distance/base.py", "license": "MIT License", "lines": 378, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
langchain-ai/langchain:libs/langchain/langchain_classic/graphs/hugegraph.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.graphs import HugeGraph # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional imports. DEPRE...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/graphs/hugegraph.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/indexes/vectorstore.py
"""Vectorstore stubs for the indexing api.""" from typing import Any from langchain_core.document_loaders import BaseLoader from langchain_core.documents import Document from langchain_core.embeddings import Embeddings from langchain_core.language_models import BaseLanguageModel from langchain_core.vectorstores impor...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/indexes/vectorstore.py", "license": "MIT License", "lines": 231, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
langchain-ai/langchain:libs/langchain/langchain_classic/llms/aleph_alpha.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.llms import AlephAlpha # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional imports. DEPREC...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/llms/aleph_alpha.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/llms/anthropic.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.llms import Anthropic # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional imports. DEPRECA...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/llms/anthropic.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/llms/anyscale.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.llms import Anyscale # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional imports. DEPRECAT...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/llms/anyscale.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/llms/arcee.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.llms import Arcee # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional imports. DEPRECATED_...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/llms/arcee.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/llms/azureml_endpoint.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.llms import AzureMLOnlineEndpoint from langchain_community.llms.azureml_endpoint import ( AzureMLEndpointClient, ContentFormatterBase, CustomOpenAIContent...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/llms/azureml_endpoint.py", "license": "MIT License", "lines": 40, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/llms/baidu_qianfan_endpoint.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.llms import QianfanLLMEndpoint # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional imports...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/llms/baidu_qianfan_endpoint.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/llms/bedrock.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.llms import Bedrock from langchain_community.llms.bedrock import BedrockBase # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising de...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/llms/bedrock.py", "license": "MIT License", "lines": 20, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/llms/clarifai.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.llms import Clarifai # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional imports. DEPRECAT...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/llms/clarifai.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/llms/cloudflare_workersai.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.llms.cloudflare_workersai import CloudflareWorkersAI # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # han...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/llms/cloudflare_workersai.py", "license": "MIT License", "lines": 17, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/llms/cohere.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.llms import Cohere # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional imports. DEPRECATED...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/llms/cohere.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/llms/databricks.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.llms import Databricks # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional imports. DEPREC...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/llms/databricks.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/llms/deepinfra.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.llms import DeepInfra # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional imports. DEPRECA...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/llms/deepinfra.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/llms/edenai.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.llms import EdenAI # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional imports. DEPRECATED...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/llms/edenai.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/llms/fake.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.llms.fake import FakeStreamingListLLM from langchain_core.language_models import FakeListLLM # Create a way to dynamically look up deprecated imports. # Used to consolidate logi...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/llms/fake.py", "license": "MIT License", "lines": 20, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/llms/fireworks.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.llms import Fireworks # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional imports. DEPRECA...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/llms/fireworks.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/llms/gigachat.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.llms import GigaChat # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional imports. DEPRECAT...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/llms/gigachat.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/llms/google_palm.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.llms import GooglePalm # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional imports. DEPREC...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/llms/google_palm.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/llms/gpt4all.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.llms import GPT4All # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional imports. DEPRECATE...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/llms/gpt4all.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/llms/gradient_ai.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.llms import GradientLLM from langchain_community.llms.gradient_ai import TrainResult # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for ra...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/llms/gradient_ai.py", "license": "MIT License", "lines": 20, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
langchain-ai/langchain:libs/langchain/langchain_classic/llms/huggingface_hub.py
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.llms import HuggingFaceHub # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional imports. DE...
{ "repo_id": "langchain-ai/langchain", "file_path": "libs/langchain/langchain_classic/llms/huggingface_hub.py", "license": "MIT License", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple