diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a498372ede407411f9477dcb91ea00d70c1c6749 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/__pycache__/llm_requests.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/__pycache__/llm_requests.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..247913bec9937d593013bfd4cc0cf76faaec18b6 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/__pycache__/llm_requests.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/ernie_functions/__init__.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/ernie_functions/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..28e91d12dccd217aa48cf3f7163e91da3f78549e --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/ernie_functions/__init__.py @@ -0,0 +1,17 @@ +from langchain_classic.chains.ernie_functions.base import ( + convert_to_ernie_function, + create_ernie_fn_chain, + create_ernie_fn_runnable, + create_structured_output_chain, + create_structured_output_runnable, + get_ernie_output_parser, +) + +__all__ = [ + "convert_to_ernie_function", + "create_structured_output_chain", + "create_ernie_fn_chain", + "create_structured_output_runnable", + "create_ernie_fn_runnable", + "get_ernie_output_parser", +] diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/ernie_functions/base.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/ernie_functions/base.py new file mode 100644 index 0000000000000000000000000000000000000000..e80b70268763f99d13aa128ddede0203453f7e80 --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/ernie_functions/base.py @@ -0,0 +1,553 @@ +"""Methods for creating chains that use Ernie function-calling APIs.""" + +import inspect +from typing import ( + Any, + Callable, + Dict, + List, + Optional, + Sequence, + Tuple, + Type, + Union, + cast, +) + +from langchain_classic.chains import LLMChain +from langchain_core.language_models import BaseLanguageModel +from langchain_core.output_parsers import ( + BaseGenerationOutputParser, + BaseLLMOutputParser, + BaseOutputParser, +) +from langchain_core.prompts import BasePromptTemplate +from langchain_core.runnables import Runnable +from langchain_core.utils.pydantic import is_basemodel_subclass +from pydantic import BaseModel + +from langchain_community.output_parsers.ernie_functions import ( + JsonOutputFunctionsParser, + PydanticAttrOutputFunctionsParser, + PydanticOutputFunctionsParser, +) +from langchain_community.utils.ernie_functions import convert_pydantic_to_ernie_function + +PYTHON_TO_JSON_TYPES = { + "str": "string", + "int": "number", + "float": "number", + "bool": "boolean", +} + + +def _get_python_function_name(function: Callable) -> str: + """Get the name of a Python function.""" + return function.__name__ + + +def _parse_python_function_docstring(function: Callable) -> Tuple[str, dict]: + """Parse the function and argument descriptions from the docstring of a function. + + Assumes the function docstring follows Google Python style guide. + """ + docstring = inspect.getdoc(function) + if docstring: + docstring_blocks = docstring.split("\n\n") + descriptors = [] + args_block = None + past_descriptors = False + for block in docstring_blocks: + if block.startswith("Args:"): + args_block = block + break + elif block.startswith("Returns:") or block.startswith("Example:"): + # Don't break in case Args come after + past_descriptors = True + elif not past_descriptors: + descriptors.append(block) + else: + continue + description = " ".join(descriptors) + else: + description = "" + args_block = None + arg_descriptions = {} + if args_block: + arg = None + for line in args_block.split("\n")[1:]: + if ":" in line: + arg, desc = line.split(":") + arg_descriptions[arg.strip()] = desc.strip() + elif arg: + arg_descriptions[arg.strip()] += " " + line.strip() + return description, arg_descriptions + + +def _get_python_function_arguments(function: Callable, arg_descriptions: dict) -> dict: + """Get JsonSchema describing a Python functions arguments. + + Assumes all function arguments are of primitive types (int, float, str, bool) or + are subclasses of pydantic.BaseModel. + """ + properties = {} + annotations = inspect.getfullargspec(function).annotations + for arg, arg_type in annotations.items(): + if arg == "return": + continue + if isinstance(arg_type, type) and is_basemodel_subclass(arg_type): + # Mypy error: + # "type" has no attribute "schema" + properties[arg] = arg_type.schema() # type: ignore[attr-defined] + elif arg_type.__name__ in PYTHON_TO_JSON_TYPES: + properties[arg] = {"type": PYTHON_TO_JSON_TYPES[arg_type.__name__]} + if arg in arg_descriptions: + if arg not in properties: + properties[arg] = {} + properties[arg]["description"] = arg_descriptions[arg] + return properties + + +def _get_python_function_required_args(function: Callable) -> List[str]: + """Get the required arguments for a Python function.""" + spec = inspect.getfullargspec(function) + required = spec.args[: -len(spec.defaults)] if spec.defaults else spec.args + required += [k for k in spec.kwonlyargs if k not in (spec.kwonlydefaults or {})] + + is_class = type(function) is type + if is_class and required[0] == "self": + required = required[1:] + return required + + +def convert_python_function_to_ernie_function( + function: Callable, +) -> Dict[str, Any]: + """Convert a Python function to an Ernie function-calling API compatible dict. + + Assumes the Python function has type hints and a docstring with a description. If + the docstring has Google Python style argument descriptions, these will be + included as well. + """ + description, arg_descriptions = _parse_python_function_docstring(function) + return { + "name": _get_python_function_name(function), + "description": description, + "parameters": { + "type": "object", + "properties": _get_python_function_arguments(function, arg_descriptions), + "required": _get_python_function_required_args(function), + }, + } + + +def convert_to_ernie_function( + function: Union[Dict[str, Any], Type[BaseModel], Callable], +) -> Dict[str, Any]: + """Convert a raw function/class to an Ernie function. + + Args: + function: Either a dictionary, a pydantic.BaseModel class, or a Python function. + If a dictionary is passed in, it is assumed to already be a valid Ernie + function. + + Returns: + A dict version of the passed in function which is compatible with the + Ernie function-calling API. + """ + if isinstance(function, dict): + return function + elif isinstance(function, type) and is_basemodel_subclass(function): + return cast(Dict, convert_pydantic_to_ernie_function(function)) + elif callable(function): + return convert_python_function_to_ernie_function(function) + + else: + raise ValueError( + f"Unsupported function type {type(function)}. Functions must be passed in" + f" as Dict, pydantic.BaseModel, or Callable." + ) + + +def get_ernie_output_parser( + functions: Sequence[Union[Dict[str, Any], Type[BaseModel], Callable]], +) -> Union[BaseOutputParser, BaseGenerationOutputParser]: + """Get the appropriate function output parser given the user functions. + + Args: + functions: Sequence where element is a dictionary, a pydantic.BaseModel class, + or a Python function. If a dictionary is passed in, it is assumed to + already be a valid Ernie function. + + Returns: + A PydanticOutputFunctionsParser if functions are Pydantic classes, otherwise + a JsonOutputFunctionsParser. If there's only one function and it is + not a Pydantic class, then the output parser will automatically extract + only the function arguments and not the function name. + """ + function_names = [convert_to_ernie_function(f)["name"] for f in functions] + if isinstance(functions[0], type) and is_basemodel_subclass(functions[0]): + if len(functions) > 1: + pydantic_schema: Union[Dict, Type[BaseModel]] = { + name: fn for name, fn in zip(function_names, functions) + } + else: + pydantic_schema = functions[0] + output_parser: Union[BaseOutputParser, BaseGenerationOutputParser] = ( + PydanticOutputFunctionsParser(pydantic_schema=pydantic_schema) + ) + else: + output_parser = JsonOutputFunctionsParser(args_only=len(functions) <= 1) + return output_parser + + +def create_ernie_fn_runnable( + functions: Sequence[Union[Dict[str, Any], Type[BaseModel], Callable]], + llm: Runnable, + prompt: BasePromptTemplate, + *, + output_parser: Optional[Union[BaseOutputParser, BaseGenerationOutputParser]] = None, + **kwargs: Any, +) -> Runnable: + """Create a runnable sequence that uses Ernie functions. + + Args: + functions: A sequence of either dictionaries, pydantic.BaseModels classes, or + Python functions. If dictionaries are passed in, they are assumed to + already be a valid Ernie functions. If only a single + function is passed in, then it will be enforced that the model use that + function. pydantic.BaseModels and Python functions should have docstrings + describing what the function does. For best results, pydantic.BaseModels + should have descriptions of the parameters and Python functions should have + Google Python style args descriptions in the docstring. Additionally, + Python functions should only use primitive types (str, int, float, bool) or + pydantic.BaseModels for arguments. + llm: Language model to use, assumed to support the Ernie function-calling API. + prompt: BasePromptTemplate to pass to the model. + output_parser: BaseLLMOutputParser to use for parsing model outputs. By default + will be inferred from the function types. If pydantic.BaseModels are passed + in, then the OutputParser will try to parse outputs using those. Otherwise + model outputs will simply be parsed as JSON. If multiple functions are + passed in and they are not pydantic.BaseModels, the chain output will + include both the name of the function that was returned and the arguments + to pass to the function. + + Returns: + A runnable sequence that will pass in the given functions to the model when run. + + Example: + .. code-block:: python + + from typing import Optional + + from langchain_classic.chains.ernie_functions import create_ernie_fn_chain + from langchain_community.chat_models import ErnieBotChat + from langchain_core.prompts import ChatPromptTemplate + from pydantic import BaseModel, Field + + + class RecordPerson(BaseModel): + \"\"\"Record some identifying information about a person.\"\"\" + + name: str = Field(..., description="The person's name") + age: int = Field(..., description="The person's age") + fav_food: Optional[str] = Field(None, description="The person's favorite food") + + + class RecordDog(BaseModel): + \"\"\"Record some identifying information about a dog.\"\"\" + + name: str = Field(..., description="The dog's name") + color: str = Field(..., description="The dog's color") + fav_food: Optional[str] = Field(None, description="The dog's favorite food") + + + llm = ErnieBotChat(model_name="ERNIE-Bot-4") + prompt = ChatPromptTemplate.from_messages( + [ + ("user", "Make calls to the relevant function to record the entities in the following input: {input}"), + ("assistant", "OK!"), + ("user", "Tip: Make sure to answer in the correct format"), + ] + ) + chain = create_ernie_fn_runnable([RecordPerson, RecordDog], llm, prompt) + chain.invoke({"input": "Harry was a chubby brown beagle who loved chicken"}) + # -> RecordDog(name="Harry", color="brown", fav_food="chicken") + """ # noqa: E501 + if not functions: + raise ValueError("Need to pass in at least one function. Received zero.") + ernie_functions = [convert_to_ernie_function(f) for f in functions] + llm_kwargs: Dict[str, Any] = {"functions": ernie_functions, **kwargs} + if len(ernie_functions) == 1: + llm_kwargs["function_call"] = {"name": ernie_functions[0]["name"]} + output_parser = output_parser or get_ernie_output_parser(functions) + return prompt | llm.bind(**llm_kwargs) | output_parser + + +def create_structured_output_runnable( + output_schema: Union[Dict[str, Any], Type[BaseModel]], + llm: Runnable, + prompt: BasePromptTemplate, + *, + output_parser: Optional[Union[BaseOutputParser, BaseGenerationOutputParser]] = None, + **kwargs: Any, +) -> Runnable: + """Create a runnable that uses an Ernie function to get a structured output. + + Args: + output_schema: Either a dictionary or pydantic.BaseModel class. If a dictionary + is passed in, it's assumed to already be a valid JsonSchema. + For best results, pydantic.BaseModels should have docstrings describing what + the schema represents and descriptions for the parameters. + llm: Language model to use, assumed to support the Ernie function-calling API. + prompt: BasePromptTemplate to pass to the model. + output_parser: BaseLLMOutputParser to use for parsing model outputs. By default + will be inferred from the function types. If pydantic.BaseModels are passed + in, then the OutputParser will try to parse outputs using those. Otherwise + model outputs will simply be parsed as JSON. + + Returns: + A runnable sequence that will pass the given function to the model when run. + + Example: + .. code-block:: python + + from typing import Optional + + from langchain_classic.chains.ernie_functions import create_structured_output_chain + from langchain_community.chat_models import ErnieBotChat + from langchain_core.prompts import ChatPromptTemplate + from pydantic import BaseModel, Field + + class Dog(BaseModel): + \"\"\"Identifying information about a dog.\"\"\" + + name: str = Field(..., description="The dog's name") + color: str = Field(..., description="The dog's color") + fav_food: Optional[str] = Field(None, description="The dog's favorite food") + + llm = ErnieBotChat(model_name="ERNIE-Bot-4") + prompt = ChatPromptTemplate.from_messages( + [ + ("user", "Use the given format to extract information from the following input: {input}"), + ("assistant", "OK!"), + ("user", "Tip: Make sure to answer in the correct format"), + ] + ) + chain = create_structured_output_chain(Dog, llm, prompt) + chain.invoke({"input": "Harry was a chubby brown beagle who loved chicken"}) + # -> Dog(name="Harry", color="brown", fav_food="chicken") + """ # noqa: E501 + if isinstance(output_schema, dict): + function: Any = { + "name": "output_formatter", + "description": ( + "Output formatter. Should always be used to format your response to the" + " user." + ), + "parameters": output_schema, + } + else: + + class _OutputFormatter(BaseModel): + """Output formatter. Should always be used to format your response to the user.""" # noqa: E501 + + output: output_schema # type: ignore[valid-type] + + function = _OutputFormatter + output_parser = output_parser or PydanticAttrOutputFunctionsParser( + pydantic_schema=_OutputFormatter, attr_name="output" + ) + return create_ernie_fn_runnable( + [function], + llm, + prompt, + output_parser=output_parser, + **kwargs, + ) + + +""" --- Legacy --- """ + + +def create_ernie_fn_chain( + functions: Sequence[Union[Dict[str, Any], Type[BaseModel], Callable]], + llm: BaseLanguageModel, + prompt: BasePromptTemplate, + *, + output_key: str = "function", + output_parser: Optional[BaseLLMOutputParser] = None, + **kwargs: Any, +) -> LLMChain: + """[Legacy] Create an LLM chain that uses Ernie functions. + + Args: + functions: A sequence of either dictionaries, pydantic.BaseModels classes, or + Python functions. If dictionaries are passed in, they are assumed to + already be a valid Ernie functions. If only a single + function is passed in, then it will be enforced that the model use that + function. pydantic.BaseModels and Python functions should have docstrings + describing what the function does. For best results, pydantic.BaseModels + should have descriptions of the parameters and Python functions should have + Google Python style args descriptions in the docstring. Additionally, + Python functions should only use primitive types (str, int, float, bool) or + pydantic.BaseModels for arguments. + llm: Language model to use, assumed to support the Ernie function-calling API. + prompt: BasePromptTemplate to pass to the model. + output_key: The key to use when returning the output in LLMChain.__call__. + output_parser: BaseLLMOutputParser to use for parsing model outputs. By default + will be inferred from the function types. If pydantic.BaseModels are passed + in, then the OutputParser will try to parse outputs using those. Otherwise + model outputs will simply be parsed as JSON. If multiple functions are + passed in and they are not pydantic.BaseModels, the chain output will + include both the name of the function that was returned and the arguments + to pass to the function. + + Returns: + An LLMChain that will pass in the given functions to the model when run. + + Example: + .. code-block:: python + + from typing import Optional + + from langchain_classic.chains.ernie_functions import create_ernie_fn_chain + from langchain_community.chat_models import ErnieBotChat + from langchain_core.prompts import ChatPromptTemplate + + from pydantic import BaseModel, Field + + + class RecordPerson(BaseModel): + \"\"\"Record some identifying information about a person.\"\"\" + + name: str = Field(..., description="The person's name") + age: int = Field(..., description="The person's age") + fav_food: Optional[str] = Field(None, description="The person's favorite food") + + + class RecordDog(BaseModel): + \"\"\"Record some identifying information about a dog.\"\"\" + + name: str = Field(..., description="The dog's name") + color: str = Field(..., description="The dog's color") + fav_food: Optional[str] = Field(None, description="The dog's favorite food") + + + llm = ErnieBotChat(model_name="ERNIE-Bot-4") + prompt = ChatPromptTemplate.from_messages( + [ + ("user", "Make calls to the relevant function to record the entities in the following input: {input}"), + ("assistant", "OK!"), + ("user", "Tip: Make sure to answer in the correct format"), + ] + ) + chain = create_ernie_fn_chain([RecordPerson, RecordDog], llm, prompt) + chain.run("Harry was a chubby brown beagle who loved chicken") + # -> RecordDog(name="Harry", color="brown", fav_food="chicken") + """ # noqa: E501 + if not functions: + raise ValueError("Need to pass in at least one function. Received zero.") + ernie_functions = [convert_to_ernie_function(f) for f in functions] + output_parser = output_parser or get_ernie_output_parser(functions) + llm_kwargs: Dict[str, Any] = { + "functions": ernie_functions, + } + if len(ernie_functions) == 1: + llm_kwargs["function_call"] = {"name": ernie_functions[0]["name"]} + llm_chain = LLMChain( + llm=llm, + prompt=prompt, + output_parser=output_parser, + llm_kwargs=llm_kwargs, + output_key=output_key, + **kwargs, + ) + return llm_chain + + +def create_structured_output_chain( + output_schema: Union[Dict[str, Any], Type[BaseModel]], + llm: BaseLanguageModel, + prompt: BasePromptTemplate, + *, + output_key: str = "function", + output_parser: Optional[BaseLLMOutputParser] = None, + **kwargs: Any, +) -> LLMChain: + """[Legacy] Create an LLMChain that uses an Ernie function to get a structured output. + + Args: + output_schema: Either a dictionary or pydantic.BaseModel class. If a dictionary + is passed in, it's assumed to already be a valid JsonSchema. + For best results, pydantic.BaseModels should have docstrings describing what + the schema represents and descriptions for the parameters. + llm: Language model to use, assumed to support the Ernie function-calling API. + prompt: BasePromptTemplate to pass to the model. + output_key: The key to use when returning the output in LLMChain.__call__. + output_parser: BaseLLMOutputParser to use for parsing model outputs. By default + will be inferred from the function types. If pydantic.BaseModels are passed + in, then the OutputParser will try to parse outputs using those. Otherwise + model outputs will simply be parsed as JSON. + + Returns: + An LLMChain that will pass the given function to the model. + + Example: + .. code-block:: python + + from typing import Optional + + from langchain_classic.chains.ernie_functions import create_structured_output_chain + from langchain_community.chat_models import ErnieBotChat + from langchain_core.prompts import ChatPromptTemplate + + from pydantic import BaseModel, Field + + class Dog(BaseModel): + \"\"\"Identifying information about a dog.\"\"\" + + name: str = Field(..., description="The dog's name") + color: str = Field(..., description="The dog's color") + fav_food: Optional[str] = Field(None, description="The dog's favorite food") + + llm = ErnieBotChat(model_name="ERNIE-Bot-4") + prompt = ChatPromptTemplate.from_messages( + [ + ("user", "Use the given format to extract information from the following input: {input}"), + ("assistant", "OK!"), + ("user", "Tip: Make sure to answer in the correct format"), + ] + ) + chain = create_structured_output_chain(Dog, llm, prompt) + chain.run("Harry was a chubby brown beagle who loved chicken") + # -> Dog(name="Harry", color="brown", fav_food="chicken") + """ # noqa: E501 + if isinstance(output_schema, dict): + function: Any = { + "name": "output_formatter", + "description": ( + "Output formatter. Should always be used to format your response to the" + " user." + ), + "parameters": output_schema, + } + else: + + class _OutputFormatter(BaseModel): + """Output formatter. Should always be used to format your response to the user.""" # noqa: E501 + + output: output_schema # type: ignore[valid-type] + + function = _OutputFormatter + output_parser = output_parser or PydanticAttrOutputFunctionsParser( + pydantic_schema=_OutputFormatter, attr_name="output" + ) + return create_ernie_fn_chain( + [function], + llm, + prompt, + output_key=output_key, + output_parser=output_parser, + **kwargs, + ) diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/graph_qa/__init__.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/graph_qa/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..f3bc55efbca8efd011ea4a5aa5fbd25bb5b4c457 --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/graph_qa/__init__.py @@ -0,0 +1 @@ +"""Question answering over a knowledge graph.""" diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/graph_qa/arangodb.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/graph_qa/arangodb.py new file mode 100644 index 0000000000000000000000000000000000000000..42a3d362b840a083e731d0c49ed4c0e226403739 --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/graph_qa/arangodb.py @@ -0,0 +1,273 @@ +"""Question answering over a graph.""" + +from __future__ import annotations + +import re +from typing import Any, Dict, List, Optional + +from langchain_classic.chains.base import Chain +from langchain_classic.chains.llm import LLMChain +from langchain_core.callbacks import CallbackManagerForChainRun +from langchain_core.language_models import BaseLanguageModel +from langchain_core.prompts import BasePromptTemplate +from pydantic import Field + +from langchain_community.chains.graph_qa.prompts import ( + AQL_FIX_PROMPT, + AQL_GENERATION_PROMPT, + AQL_QA_PROMPT, +) +from langchain_community.graphs.arangodb_graph import ArangoGraph + + +class ArangoGraphQAChain(Chain): + """Chain for question-answering against a graph by generating AQL statements. + + *Security note*: Make sure that the database connection uses credentials + that are narrowly-scoped to only include necessary permissions. + Failure to do so may result in data corruption or loss, since the calling + code may attempt commands that would result in deletion, mutation + of data if appropriately prompted or reading sensitive data if such + data is present in the database. + The best way to guard against such negative outcomes is to (as appropriate) + limit the permissions granted to the credentials used with this tool. + + See https://python.langchain.com/docs/security for more information. + """ + + graph: ArangoGraph = Field(exclude=True) + aql_generation_chain: LLMChain + aql_fix_chain: LLMChain + qa_chain: LLMChain + input_key: str = "query" #: :meta private: + output_key: str = "result" #: :meta private: + + # Specifies the maximum number of AQL Query Results to return + top_k: int = 10 + + # Specifies the set of AQL Query Examples that promote few-shot-learning + aql_examples: str = "" + + # Specify whether to return the AQL Query in the output dictionary + return_aql_query: bool = False + + # Specify whether to return the AQL JSON Result in the output dictionary + return_aql_result: bool = False + + # Specify the maximum amount of AQL Generation attempts that should be made + max_aql_generation_attempts: int = 3 + + allow_dangerous_requests: bool = False + """Forced user opt-in to acknowledge that the chain can make dangerous requests. + + *Security note*: Make sure that the database connection uses credentials + that are narrowly-scoped to only include necessary permissions. + Failure to do so may result in data corruption or loss, since the calling + code may attempt commands that would result in deletion, mutation + of data if appropriately prompted or reading sensitive data if such + data is present in the database. + The best way to guard against such negative outcomes is to (as appropriate) + limit the permissions granted to the credentials used with this tool. + + See https://python.langchain.com/docs/security for more information. + """ + + def __init__(self, **kwargs: Any) -> None: + """Initialize the chain.""" + super().__init__(**kwargs) + if self.allow_dangerous_requests is not True: + raise ValueError( + "In order to use this chain, you must acknowledge that it can make " + "dangerous requests by setting `allow_dangerous_requests` to `True`." + "You must narrowly scope the permissions of the database connection " + "to only include necessary permissions. Failure to do so may result " + "in data corruption or loss or reading sensitive data if such data is " + "present in the database." + "Only use this chain if you understand the risks and have taken the " + "necessary precautions. " + "See https://python.langchain.com/docs/security for more information." + ) + + @property + def input_keys(self) -> List[str]: + return [self.input_key] + + @property + def output_keys(self) -> List[str]: + return [self.output_key] + + @property + def _chain_type(self) -> str: + return "graph_aql_chain" + + @classmethod + def from_llm( + cls, + llm: BaseLanguageModel, + *, + qa_prompt: BasePromptTemplate = AQL_QA_PROMPT, + aql_generation_prompt: BasePromptTemplate = AQL_GENERATION_PROMPT, + aql_fix_prompt: BasePromptTemplate = AQL_FIX_PROMPT, + **kwargs: Any, + ) -> ArangoGraphQAChain: + """Initialize from LLM.""" + qa_chain = LLMChain(llm=llm, prompt=qa_prompt) + aql_generation_chain = LLMChain(llm=llm, prompt=aql_generation_prompt) + aql_fix_chain = LLMChain(llm=llm, prompt=aql_fix_prompt) + + return cls( + qa_chain=qa_chain, + aql_generation_chain=aql_generation_chain, + aql_fix_chain=aql_fix_chain, + **kwargs, + ) + + def _call( + self, + inputs: Dict[str, Any], + run_manager: Optional[CallbackManagerForChainRun] = None, + ) -> Dict[str, Any]: + """ + Generate an AQL statement from user input, use it retrieve a response + from an ArangoDB Database instance, and respond to the user input + in natural language. + + Users can modify the following ArangoGraphQAChain Class Variables: + + :var top_k: The maximum number of AQL Query Results to return + :type top_k: int + + :var aql_examples: A set of AQL Query Examples that are passed to + the AQL Generation Prompt Template to promote few-shot-learning. + Defaults to an empty string. + :type aql_examples: str + + :var return_aql_query: Whether to return the AQL Query in the + output dictionary. Defaults to False. + :type return_aql_query: bool + + :var return_aql_result: Whether to return the AQL Query in the + output dictionary. Defaults to False + :type return_aql_result: bool + + :var max_aql_generation_attempts: The maximum amount of AQL + Generation attempts to be made prior to raising the last + AQL Query Execution Error. Defaults to 3. + :type max_aql_generation_attempts: int + """ + _run_manager = run_manager or CallbackManagerForChainRun.get_noop_manager() + callbacks = _run_manager.get_child() + user_input = inputs[self.input_key] + + ######################### + # Generate AQL Query # + aql_generation_output = self.aql_generation_chain.run( + { + "adb_schema": self.graph.schema, + "aql_examples": self.aql_examples, + "user_input": user_input, + }, + callbacks=callbacks, + ) + ######################### + + aql_query = "" + aql_error = "" + aql_result = None + aql_generation_attempt = 1 + + while ( + aql_result is None + and aql_generation_attempt < self.max_aql_generation_attempts + 1 + ): + ##################### + # Extract AQL Query # + pattern = r"```(?i:aql)?(.*?)```" + matches = re.findall(pattern, aql_generation_output, re.DOTALL) + if not matches: + _run_manager.on_text( + "Invalid Response: ", end="\n", verbose=self.verbose + ) + _run_manager.on_text( + aql_generation_output, color="red", end="\n", verbose=self.verbose + ) + raise ValueError(f"Response is Invalid: {aql_generation_output}") + + aql_query = matches[0] + ##################### + + _run_manager.on_text( + f"AQL Query ({aql_generation_attempt}):", verbose=self.verbose + ) + _run_manager.on_text( + aql_query, color="green", end="\n", verbose=self.verbose + ) + + ##################### + # Execute AQL Query # + from arango import AQLQueryExecuteError + + try: + aql_result = self.graph.query(aql_query, self.top_k) + except AQLQueryExecuteError as e: + aql_error = e.error_message + + _run_manager.on_text( + "AQL Query Execution Error: ", end="\n", verbose=self.verbose + ) + _run_manager.on_text( + aql_error, color="yellow", end="\n\n", verbose=self.verbose + ) + + ######################## + # Retry AQL Generation # + aql_generation_output = self.aql_fix_chain.run( + { + "adb_schema": self.graph.schema, + "aql_query": aql_query, + "aql_error": aql_error, + }, + callbacks=callbacks, + ) + ######################## + + ##################### + + aql_generation_attempt += 1 + + if aql_result is None: + m = f""" + Maximum amount of AQL Query Generation attempts reached. + Unable to execute the AQL Query due to the following error: + {aql_error} + """ + raise ValueError(m) + + _run_manager.on_text("AQL Result:", end="\n", verbose=self.verbose) + _run_manager.on_text( + str(aql_result), color="green", end="\n", verbose=self.verbose + ) + + ######################## + # Interpret AQL Result # + result = self.qa_chain( + { + "adb_schema": self.graph.schema, + "user_input": user_input, + "aql_query": aql_query, + "aql_result": aql_result, + }, + callbacks=callbacks, + ) + ######################## + + # Return results # + result = {self.output_key: result[self.qa_chain.output_key]} + + if self.return_aql_query: + result["aql_query"] = aql_query + + if self.return_aql_result: + result["aql_result"] = aql_result + + return result diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/graph_qa/base.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/graph_qa/base.py new file mode 100644 index 0000000000000000000000000000000000000000..f3e31af96a896b1545065a8d108c89c7e9d2f840 --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/graph_qa/base.py @@ -0,0 +1,104 @@ +"""Question answering over a graph.""" + +from __future__ import annotations + +from typing import Any, Dict, List, Optional + +from langchain_classic.chains.base import Chain +from langchain_classic.chains.llm import LLMChain +from langchain_core.callbacks.manager import CallbackManagerForChainRun +from langchain_core.language_models import BaseLanguageModel +from langchain_core.prompts import BasePromptTemplate +from pydantic import Field + +from langchain_community.chains.graph_qa.prompts import ( + ENTITY_EXTRACTION_PROMPT, + GRAPH_QA_PROMPT, +) +from langchain_community.graphs.networkx_graph import NetworkxEntityGraph, get_entities + + +class GraphQAChain(Chain): + """Chain for question-answering against a graph. + + *Security note*: Make sure that the database connection uses credentials + that are narrowly-scoped to only include necessary permissions. + Failure to do so may result in data corruption or loss, since the calling + code may attempt commands that would result in deletion, mutation + of data if appropriately prompted or reading sensitive data if such + data is present in the database. + The best way to guard against such negative outcomes is to (as appropriate) + limit the permissions granted to the credentials used with this tool. + + See https://python.langchain.com/docs/security for more information. + """ + + graph: NetworkxEntityGraph = Field(exclude=True) + entity_extraction_chain: LLMChain + qa_chain: LLMChain + input_key: str = "query" #: :meta private: + output_key: str = "result" #: :meta private: + + @property + def input_keys(self) -> List[str]: + """Input keys. + + :meta private: + """ + return [self.input_key] + + @property + def output_keys(self) -> List[str]: + """Output keys. + + :meta private: + """ + _output_keys = [self.output_key] + return _output_keys + + @classmethod + def from_llm( + cls, + llm: BaseLanguageModel, + qa_prompt: BasePromptTemplate = GRAPH_QA_PROMPT, + entity_prompt: BasePromptTemplate = ENTITY_EXTRACTION_PROMPT, + **kwargs: Any, + ) -> GraphQAChain: + """Initialize from LLM.""" + qa_chain = LLMChain(llm=llm, prompt=qa_prompt) + entity_chain = LLMChain(llm=llm, prompt=entity_prompt) + + return cls( + qa_chain=qa_chain, + entity_extraction_chain=entity_chain, + **kwargs, + ) + + def _call( + self, + inputs: Dict[str, Any], + run_manager: Optional[CallbackManagerForChainRun] = None, + ) -> Dict[str, str]: + """Extract entities, look up info and answer question.""" + _run_manager = run_manager or CallbackManagerForChainRun.get_noop_manager() + question = inputs[self.input_key] + + entity_string = self.entity_extraction_chain.run(question) + + _run_manager.on_text("Entities Extracted:", end="\n", verbose=self.verbose) + _run_manager.on_text( + entity_string, color="green", end="\n", verbose=self.verbose + ) + entities = get_entities(entity_string) + context = "" + all_triplets = [] + for entity in entities: + all_triplets.extend(self.graph.get_entity_knowledge(entity)) + context = "\n".join(all_triplets) + _run_manager.on_text("Full Context:", end="\n", verbose=self.verbose) + _run_manager.on_text(context, color="green", end="\n", verbose=self.verbose) + result = self.qa_chain( + {"question": question, "context": context}, + callbacks=_run_manager.get_child(), + ) + return {self.output_key: result[self.qa_chain.output_key]} diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/graph_qa/cypher.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/graph_qa/cypher.py new file mode 100644 index 0000000000000000000000000000000000000000..925be36d5480dc29afc9774765edbe78a66207d9 --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/graph_qa/cypher.py @@ -0,0 +1,421 @@ +"""Question answering over a graph.""" + +from __future__ import annotations + +import re +from typing import Any, Dict, List, Optional, Union + +from langchain_classic.chains.base import Chain +from langchain_classic.chains.llm import LLMChain +from langchain_core._api.deprecation import deprecated +from langchain_core.callbacks import CallbackManagerForChainRun +from langchain_core.language_models import BaseLanguageModel +from langchain_core.messages import ( + AIMessage, + BaseMessage, + SystemMessage, + ToolMessage, +) +from langchain_core.output_parsers import StrOutputParser +from langchain_core.prompts import ( + BasePromptTemplate, + ChatPromptTemplate, + HumanMessagePromptTemplate, + MessagesPlaceholder, +) +from langchain_core.runnables import Runnable +from pydantic import Field + +from langchain_community.chains.graph_qa.cypher_utils import ( + CypherQueryCorrector, + Schema, +) +from langchain_community.chains.graph_qa.prompts import ( + CYPHER_GENERATION_PROMPT, + CYPHER_QA_PROMPT, +) +from langchain_community.graphs.graph_store import GraphStore + +INTERMEDIATE_STEPS_KEY = "intermediate_steps" + +FUNCTION_RESPONSE_SYSTEM = """You are an assistant that helps to form nice and human +understandable answers based on the provided information from tools. +Do not add any other information that wasn't present in the tools, and use +very concise style in interpreting results! +""" + + +@deprecated( + since="0.3.8", + removal="1.0", + alternative_import="langchain_neo4j.chains.graph_qa.cypher.extract_cypher", +) +def extract_cypher(text: str) -> str: + """Extract Cypher code from a text. + + Args: + text: Text to extract Cypher code from. + + Returns: + Cypher code extracted from the text. + """ + # The pattern to find Cypher code enclosed in triple backticks + pattern = r"```(.*?)```" + + # Find all matches in the input text + matches = re.findall(pattern, text, re.DOTALL) + + return matches[0] if matches else text + + +@deprecated( + since="0.3.8", + removal="1.0", + alternative_import="langchain_neo4j.chains.graph_qa.cypher.construct_schema", +) +def construct_schema( + structured_schema: Dict[str, Any], + include_types: List[str], + exclude_types: List[str], +) -> str: + """Filter the schema based on included or excluded types""" + + def filter_func(x: str) -> bool: + return x in include_types if include_types else x not in exclude_types + + filtered_schema: Dict[str, Any] = { + "node_props": { + k: v + for k, v in structured_schema.get("node_props", {}).items() + if filter_func(k) + }, + "rel_props": { + k: v + for k, v in structured_schema.get("rel_props", {}).items() + if filter_func(k) + }, + "relationships": [ + r + for r in structured_schema.get("relationships", []) + if all(filter_func(r[t]) for t in ["start", "end", "type"]) + ], + } + + # Format node properties + formatted_node_props = [] + for label, properties in filtered_schema["node_props"].items(): + props_str = ", ".join( + [f"{prop['property']}: {prop['type']}" for prop in properties] + ) + formatted_node_props.append(f"{label} {{{props_str}}}") + + # Format relationship properties + formatted_rel_props = [] + for rel_type, properties in filtered_schema["rel_props"].items(): + props_str = ", ".join( + [f"{prop['property']}: {prop['type']}" for prop in properties] + ) + formatted_rel_props.append(f"{rel_type} {{{props_str}}}") + + # Format relationships + formatted_rels = [ + f"(:{el['start']})-[:{el['type']}]->(:{el['end']})" + for el in filtered_schema["relationships"] + ] + + return "\n".join( + [ + "Node properties are the following:", + ",".join(formatted_node_props), + "Relationship properties are the following:", + ",".join(formatted_rel_props), + "The relationships are the following:", + ",".join(formatted_rels), + ] + ) + + +@deprecated( + since="0.3.8", + removal="1.0", + alternative_import="langchain_neo4j.chains.graph_qa.cypher.get_function_response", +) +def get_function_response( + question: str, context: List[Dict[str, Any]] +) -> List[BaseMessage]: + TOOL_ID = "call_H7fABDuzEau48T10Qn0Lsh0D" + messages = [ + AIMessage( + content="", + additional_kwargs={ + "tool_calls": [ + { + "id": TOOL_ID, + "function": { + "arguments": '{"question":"' + question + '"}', + "name": "GetInformation", + }, + "type": "function", + } + ] + }, + ), + ToolMessage(content=str(context), tool_call_id=TOOL_ID), + ] + return messages + + +@deprecated( + since="0.3.8", + removal="1.0", + alternative_import="langchain_neo4j.GraphCypherQAChain", +) +class GraphCypherQAChain(Chain): + """Chain for question-answering against a graph by generating Cypher statements. + + *Security note*: Make sure that the database connection uses credentials + that are narrowly-scoped to only include necessary permissions. + Failure to do so may result in data corruption or loss, since the calling + code may attempt commands that would result in deletion, mutation + of data if appropriately prompted or reading sensitive data if such + data is present in the database. + The best way to guard against such negative outcomes is to (as appropriate) + limit the permissions granted to the credentials used with this tool. + + See https://python.langchain.com/docs/security for more information. + """ + + graph: GraphStore = Field(exclude=True) + cypher_generation_chain: LLMChain + qa_chain: Union[LLMChain, Runnable] + graph_schema: str + input_key: str = "query" #: :meta private: + output_key: str = "result" #: :meta private: + top_k: int = 10 + """Number of results to return from the query""" + return_intermediate_steps: bool = False + """Whether or not to return the intermediate steps along with the final answer.""" + return_direct: bool = False + """Whether or not to return the result of querying the graph directly.""" + cypher_query_corrector: Optional[CypherQueryCorrector] = None + """Optional cypher validation tool""" + use_function_response: bool = False + """Whether to wrap the database context as tool/function response""" + allow_dangerous_requests: bool = False + """Forced user opt-in to acknowledge that the chain can make dangerous requests. + + *Security note*: Make sure that the database connection uses credentials + that are narrowly-scoped to only include necessary permissions. + Failure to do so may result in data corruption or loss, since the calling + code may attempt commands that would result in deletion, mutation + of data if appropriately prompted or reading sensitive data if such + data is present in the database. + The best way to guard against such negative outcomes is to (as appropriate) + limit the permissions granted to the credentials used with this tool. + + See https://python.langchain.com/docs/security for more information. + """ + + def __init__(self, **kwargs: Any) -> None: + """Initialize the chain.""" + super().__init__(**kwargs) + if self.allow_dangerous_requests is not True: + raise ValueError( + "In order to use this chain, you must acknowledge that it can make " + "dangerous requests by setting `allow_dangerous_requests` to `True`." + "You must narrowly scope the permissions of the database connection " + "to only include necessary permissions. Failure to do so may result " + "in data corruption or loss or reading sensitive data if such data is " + "present in the database." + "Only use this chain if you understand the risks and have taken the " + "necessary precautions. " + "See https://python.langchain.com/docs/security for more information." + ) + + @property + def input_keys(self) -> List[str]: + """Return the input keys. + + :meta private: + """ + return [self.input_key] + + @property + def output_keys(self) -> List[str]: + """Return the output keys. + + :meta private: + """ + _output_keys = [self.output_key] + return _output_keys + + @property + def _chain_type(self) -> str: + return "graph_cypher_chain" + + @classmethod + def from_llm( + cls, + llm: Optional[BaseLanguageModel] = None, + *, + qa_prompt: Optional[BasePromptTemplate] = None, + cypher_prompt: Optional[BasePromptTemplate] = None, + cypher_llm: Optional[BaseLanguageModel] = None, + qa_llm: Optional[Union[BaseLanguageModel, Any]] = None, + exclude_types: List[str] = [], + include_types: List[str] = [], + validate_cypher: bool = False, + qa_llm_kwargs: Optional[Dict[str, Any]] = None, + cypher_llm_kwargs: Optional[Dict[str, Any]] = None, + use_function_response: bool = False, + function_response_system: str = FUNCTION_RESPONSE_SYSTEM, + **kwargs: Any, + ) -> GraphCypherQAChain: + """Initialize from LLM.""" + + if not cypher_llm and not llm: + raise ValueError("Either `llm` or `cypher_llm` parameters must be provided") + if not qa_llm and not llm: + raise ValueError("Either `llm` or `qa_llm` parameters must be provided") + if cypher_llm and qa_llm and llm: + raise ValueError( + "You can specify up to two of 'cypher_llm', 'qa_llm'" + ", and 'llm', but not all three simultaneously." + ) + if cypher_prompt and cypher_llm_kwargs: + raise ValueError( + "Specifying cypher_prompt and cypher_llm_kwargs together is" + " not allowed. Please pass prompt via cypher_llm_kwargs." + ) + if qa_prompt and qa_llm_kwargs: + raise ValueError( + "Specifying qa_prompt and qa_llm_kwargs together is" + " not allowed. Please pass prompt via qa_llm_kwargs." + ) + use_qa_llm_kwargs = qa_llm_kwargs if qa_llm_kwargs is not None else {} + use_cypher_llm_kwargs = ( + cypher_llm_kwargs if cypher_llm_kwargs is not None else {} + ) + if "prompt" not in use_qa_llm_kwargs: + use_qa_llm_kwargs["prompt"] = ( + qa_prompt if qa_prompt is not None else CYPHER_QA_PROMPT + ) + if "prompt" not in use_cypher_llm_kwargs: + use_cypher_llm_kwargs["prompt"] = ( + cypher_prompt if cypher_prompt is not None else CYPHER_GENERATION_PROMPT + ) + + qa_llm = qa_llm or llm + if use_function_response: + try: + qa_llm.bind_tools({}) # type: ignore[union-attr] + response_prompt = ChatPromptTemplate.from_messages( + [ + SystemMessage(content=function_response_system), + HumanMessagePromptTemplate.from_template("{question}"), + MessagesPlaceholder(variable_name="function_response"), + ] + ) + qa_chain = response_prompt | qa_llm | StrOutputParser() # type: ignore[operator] + except (NotImplementedError, AttributeError): + raise ValueError("Provided LLM does not support native tools/functions") + else: + qa_chain = LLMChain(llm=qa_llm, **use_qa_llm_kwargs) # type: ignore[arg-type] + + cypher_generation_chain = LLMChain( + llm=cypher_llm or llm, # type: ignore[arg-type] + **use_cypher_llm_kwargs, + ) + + if exclude_types and include_types: + raise ValueError( + "Either `exclude_types` or `include_types` " + "can be provided, but not both" + ) + graph_schema = construct_schema( + kwargs["graph"].get_structured_schema, include_types, exclude_types + ) + + cypher_query_corrector = None + if validate_cypher: + corrector_schema = [ + Schema(el["start"], el["type"], el["end"]) + for el in kwargs["graph"].structured_schema.get("relationships") + ] + cypher_query_corrector = CypherQueryCorrector(corrector_schema) + + return cls( + graph_schema=graph_schema, + qa_chain=qa_chain, + cypher_generation_chain=cypher_generation_chain, + cypher_query_corrector=cypher_query_corrector, + use_function_response=use_function_response, + **kwargs, + ) + + def _call( + self, + inputs: Dict[str, Any], + run_manager: Optional[CallbackManagerForChainRun] = None, + ) -> Dict[str, Any]: + """Generate Cypher statement, use it to look up in db and answer question.""" + _run_manager = run_manager or CallbackManagerForChainRun.get_noop_manager() + callbacks = _run_manager.get_child() + question = inputs[self.input_key] + args = { + "question": question, + "schema": self.graph_schema, + } + args.update(inputs) + + intermediate_steps: List = [] + + generated_cypher = self.cypher_generation_chain.run(args, callbacks=callbacks) + + # Extract Cypher code if it is wrapped in backticks + generated_cypher = extract_cypher(generated_cypher) + + # Correct Cypher query if enabled + if self.cypher_query_corrector: + generated_cypher = self.cypher_query_corrector(generated_cypher) + + _run_manager.on_text("Generated Cypher:", end="\n", verbose=self.verbose) + _run_manager.on_text( + generated_cypher, color="green", end="\n", verbose=self.verbose + ) + + intermediate_steps.append({"query": generated_cypher}) + + # Retrieve and limit the number of results + # Generated Cypher be null if query corrector identifies invalid schema + if generated_cypher: + context = self.graph.query(generated_cypher)[: self.top_k] + else: + context = [] + + if self.return_direct: + final_result = context + else: + _run_manager.on_text("Full Context:", end="\n", verbose=self.verbose) + _run_manager.on_text( + str(context), color="green", end="\n", verbose=self.verbose + ) + + intermediate_steps.append({"context": context}) + if self.use_function_response: + function_response = get_function_response(question, context) + final_result = self.qa_chain.invoke( # type: ignore[assignment] + {"question": question, "function_response": function_response}, + ) + else: + result = self.qa_chain.invoke( + {"question": question, "context": context}, + callbacks=callbacks, + ) + final_result = result[self.qa_chain.output_key] # type: ignore[union-attr] + + chain_result: Dict[str, Any] = {self.output_key: final_result} + if self.return_intermediate_steps: + chain_result[INTERMEDIATE_STEPS_KEY] = intermediate_steps + + return chain_result diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/graph_qa/cypher_utils.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/graph_qa/cypher_utils.py new file mode 100644 index 0000000000000000000000000000000000000000..4d8c7c45572fb7a0645cf613fd3c58d5bed809a4 --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/graph_qa/cypher_utils.py @@ -0,0 +1,267 @@ +import re +from collections import namedtuple +from typing import Any, Dict, List, Optional, Tuple + +from langchain_core._api.deprecation import deprecated + +Schema = namedtuple("Schema", ["left_node", "relation", "right_node"]) + + +@deprecated( + since="0.3.8", + removal="1.0", + alternative_import="langchain_neo4j.chains.graph_qa.cypher_utils.CypherQueryCorrector", +) +class CypherQueryCorrector: + """ + Used to correct relationship direction in generated Cypher statements. + This code is copied from the winner's submission to the Cypher competition: + https://github.com/sakusaku-rich/cypher-direction-competition + """ + + property_pattern = re.compile(r"\{.+?\}") + node_pattern = re.compile(r"\(.+?\)") + path_pattern = re.compile( + r"(\([^\,\(\)]*?(\{.+\})?[^\,\(\)]*?\))(?)(\([^\,\(\)]*?(\{.+\})?[^\,\(\)]*?\))" + ) + node_relation_node_pattern = re.compile( + r"(\()+(?P[^()]*?)\)(?P.*?)\((?P[^()]*?)(\))+" + ) + relation_type_pattern = re.compile(r":(?P.+?)?(\{.+\})?]") + + def __init__(self, schemas: List[Schema]): + """ + Args: + schemas: list of schemas + """ + self.schemas = schemas + + def clean_node(self, node: str) -> str: + """ + Args: + node: node in string format + + """ + node = re.sub(self.property_pattern, "", node) + node = node.replace("(", "") + node = node.replace(")", "") + node = node.strip() + return node + + def detect_node_variables(self, query: str) -> Dict[str, List[str]]: + """ + Args: + query: cypher query + """ + nodes = re.findall(self.node_pattern, query) + nodes = [self.clean_node(node) for node in nodes] + res: Dict[str, Any] = {} + for node in nodes: + parts = node.split(":") + if parts == "": + continue + variable = parts[0] + if variable not in res: + res[variable] = [] + res[variable] += parts[1:] + return res + + def extract_paths(self, query: str) -> "List[str]": + """ + Args: + query: cypher query + """ + paths = [] + idx = 0 + while matched := self.path_pattern.findall(query[idx:]): + matched = matched[0] + matched = [ + m for i, m in enumerate(matched) if i not in [1, len(matched) - 1] + ] + path = "".join(matched) + idx = query.find(path) + len(path) - len(matched[-1]) + paths.append(path) + return paths + + def judge_direction(self, relation: str) -> str: + """ + Args: + relation: relation in string format + """ + direction = "BIDIRECTIONAL" + if relation[0] == "<": + direction = "INCOMING" + if relation[-1] == ">": + direction = "OUTGOING" + return direction + + def extract_node_variable(self, part: str) -> Optional[str]: + """ + Args: + part: node in string format + """ + part = part.lstrip("(").rstrip(")") + idx = part.find(":") + if idx != -1: + part = part[:idx] + return None if part == "" else part + + def detect_labels( + self, str_node: str, node_variable_dict: Dict[str, Any] + ) -> List[str]: + """ + Args: + str_node: node in string format + node_variable_dict: dictionary of node variables + """ + splitted_node = str_node.split(":") + variable = splitted_node[0] + labels = [] + if variable in node_variable_dict: + labels = node_variable_dict[variable] + elif variable == "" and len(splitted_node) > 1: + labels = splitted_node[1:] + return labels + + def verify_schema( + self, + from_node_labels: List[str], + relation_types: List[str], + to_node_labels: List[str], + ) -> bool: + """ + Args: + from_node_labels: labels of the from node + relation_type: type of the relation + to_node_labels: labels of the to node + """ + valid_schemas = self.schemas + if from_node_labels != []: + from_node_labels = [label.strip("`") for label in from_node_labels] + valid_schemas = [ + schema for schema in valid_schemas if schema[0] in from_node_labels + ] + if to_node_labels != []: + to_node_labels = [label.strip("`") for label in to_node_labels] + valid_schemas = [ + schema for schema in valid_schemas if schema[2] in to_node_labels + ] + if relation_types != []: + relation_types = [type.strip("`") for type in relation_types] + valid_schemas = [ + schema for schema in valid_schemas if schema[1] in relation_types + ] + return valid_schemas != [] + + def detect_relation_types(self, str_relation: str) -> Tuple[str, List[str]]: + """ + Args: + str_relation: relation in string format + """ + relation_direction = self.judge_direction(str_relation) + relation_type = self.relation_type_pattern.search(str_relation) + if relation_type is None or relation_type.group("relation_type") is None: + return relation_direction, [] + relation_types = [ + t.strip().strip("!") + for t in relation_type.group("relation_type").split("|") + ] + return relation_direction, relation_types + + def correct_query(self, query: str) -> str: + """ + Args: + query: cypher query + """ + node_variable_dict = self.detect_node_variables(query) + paths = self.extract_paths(query) + for path in paths: + original_path = path + start_idx = 0 + while start_idx < len(path): + match_res = re.match(self.node_relation_node_pattern, path[start_idx:]) + if match_res is None: + break + start_idx += match_res.start() + match_dict = match_res.groupdict() + left_node_labels = self.detect_labels( + match_dict["left_node"], node_variable_dict + ) + right_node_labels = self.detect_labels( + match_dict["right_node"], node_variable_dict + ) + end_idx = ( + start_idx + + 4 + + len(match_dict["left_node"]) + + len(match_dict["relation"]) + + len(match_dict["right_node"]) + ) + original_partial_path = original_path[start_idx : end_idx + 1] + relation_direction, relation_types = self.detect_relation_types( + match_dict["relation"] + ) + + if relation_types != [] and "".join(relation_types).find("*") != -1: + start_idx += ( + len(match_dict["left_node"]) + len(match_dict["relation"]) + 2 + ) + continue + + if relation_direction == "OUTGOING": + is_legal = self.verify_schema( + left_node_labels, relation_types, right_node_labels + ) + if not is_legal: + is_legal = self.verify_schema( + right_node_labels, relation_types, left_node_labels + ) + if is_legal: + corrected_relation = "<" + match_dict["relation"][:-1] + corrected_partial_path = original_partial_path.replace( + match_dict["relation"], corrected_relation + ) + query = query.replace( + original_partial_path, corrected_partial_path + ) + else: + return "" + elif relation_direction == "INCOMING": + is_legal = self.verify_schema( + right_node_labels, relation_types, left_node_labels + ) + if not is_legal: + is_legal = self.verify_schema( + left_node_labels, relation_types, right_node_labels + ) + if is_legal: + corrected_relation = match_dict["relation"][1:] + ">" + corrected_partial_path = original_partial_path.replace( + match_dict["relation"], corrected_relation + ) + query = query.replace( + original_partial_path, corrected_partial_path + ) + else: + return "" + else: + is_legal = self.verify_schema( + left_node_labels, relation_types, right_node_labels + ) + is_legal |= self.verify_schema( + right_node_labels, relation_types, left_node_labels + ) + if not is_legal: + return "" + + start_idx += ( + len(match_dict["left_node"]) + len(match_dict["relation"]) + 2 + ) + return query + + def __call__(self, query: str) -> str: + """Correct the query to make it valid. If + Args: + query: cypher query + """ + return self.correct_query(query) diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/graph_qa/falkordb.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/graph_qa/falkordb.py new file mode 100644 index 0000000000000000000000000000000000000000..1f47fb561665576751bfc83feb1a34d96aafcb0a --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/graph_qa/falkordb.py @@ -0,0 +1,189 @@ +"""Question answering over a graph.""" + +from __future__ import annotations + +import re +from typing import Any, Dict, List, Optional + +from langchain_classic.chains.base import Chain +from langchain_classic.chains.llm import LLMChain +from langchain_core.callbacks import CallbackManagerForChainRun +from langchain_core.language_models import BaseLanguageModel +from langchain_core.prompts import BasePromptTemplate +from pydantic import Field + +from langchain_community.chains.graph_qa.prompts import ( + CYPHER_GENERATION_PROMPT, + CYPHER_QA_PROMPT, +) +from langchain_community.graphs import FalkorDBGraph + +INTERMEDIATE_STEPS_KEY = "intermediate_steps" + + +def extract_cypher(text: str) -> str: + """ + Extract Cypher code from a text. + Args: + text: Text to extract Cypher code from. + + Returns: + Cypher code extracted from the text. + """ + # The pattern to find Cypher code enclosed in triple backticks + pattern = r"```(.*?)```" + + # Find all matches in the input text + matches = re.findall(pattern, text, re.DOTALL) + + return matches[0] if matches else text + + +class FalkorDBQAChain(Chain): + """Chain for question-answering against a graph by generating Cypher statements. + + *Security note*: Make sure that the database connection uses credentials + that are narrowly-scoped to only include necessary permissions. + Failure to do so may result in data corruption or loss, since the calling + code may attempt commands that would result in deletion, mutation + of data if appropriately prompted or reading sensitive data if such + data is present in the database. + The best way to guard against such negative outcomes is to (as appropriate) + limit the permissions granted to the credentials used with this tool. + + See https://python.langchain.com/docs/security for more information. + """ + + graph: FalkorDBGraph = Field(exclude=True) + cypher_generation_chain: LLMChain + qa_chain: LLMChain + input_key: str = "query" #: :meta private: + output_key: str = "result" #: :meta private: + top_k: int = 10 + """Number of results to return from the query""" + return_intermediate_steps: bool = False + """Whether or not to return the intermediate steps along with the final answer.""" + return_direct: bool = False + """Whether or not to return the result of querying the graph directly.""" + + allow_dangerous_requests: bool = False + """Forced user opt-in to acknowledge that the chain can make dangerous requests. + + *Security note*: Make sure that the database connection uses credentials + that are narrowly-scoped to only include necessary permissions. + Failure to do so may result in data corruption or loss, since the calling + code may attempt commands that would result in deletion, mutation + of data if appropriately prompted or reading sensitive data if such + data is present in the database. + The best way to guard against such negative outcomes is to (as appropriate) + limit the permissions granted to the credentials used with this tool. + + See https://python.langchain.com/docs/security for more information. + """ + + def __init__(self, **kwargs: Any) -> None: + """Initialize the chain.""" + super().__init__(**kwargs) + if self.allow_dangerous_requests is not True: + raise ValueError( + "In order to use this chain, you must acknowledge that it can make " + "dangerous requests by setting `allow_dangerous_requests` to `True`." + "You must narrowly scope the permissions of the database connection " + "to only include necessary permissions. Failure to do so may result " + "in data corruption or loss or reading sensitive data if such data is " + "present in the database." + "Only use this chain if you understand the risks and have taken the " + "necessary precautions. " + "See https://python.langchain.com/docs/security for more information." + ) + + @property + def input_keys(self) -> List[str]: + """Return the input keys. + + :meta private: + """ + return [self.input_key] + + @property + def output_keys(self) -> List[str]: + """Return the output keys. + + :meta private: + """ + _output_keys = [self.output_key] + return _output_keys + + @property + def _chain_type(self) -> str: + return "graph_cypher_chain" + + @classmethod + def from_llm( + cls, + llm: BaseLanguageModel, + *, + qa_prompt: BasePromptTemplate = CYPHER_QA_PROMPT, + cypher_prompt: BasePromptTemplate = CYPHER_GENERATION_PROMPT, + **kwargs: Any, + ) -> FalkorDBQAChain: + """Initialize from LLM.""" + qa_chain = LLMChain(llm=llm, prompt=qa_prompt) + cypher_generation_chain = LLMChain(llm=llm, prompt=cypher_prompt) + + return cls( + qa_chain=qa_chain, + cypher_generation_chain=cypher_generation_chain, + **kwargs, + ) + + def _call( + self, + inputs: Dict[str, Any], + run_manager: Optional[CallbackManagerForChainRun] = None, + ) -> Dict[str, Any]: + """Generate Cypher statement, use it to look up in db and answer question.""" + _run_manager = run_manager or CallbackManagerForChainRun.get_noop_manager() + callbacks = _run_manager.get_child() + question = inputs[self.input_key] + + intermediate_steps: List = [] + + generated_cypher = self.cypher_generation_chain.run( + {"question": question, "schema": self.graph.schema}, callbacks=callbacks + ) + + # Extract Cypher code if it is wrapped in backticks + generated_cypher = extract_cypher(generated_cypher) + + _run_manager.on_text("Generated Cypher:", end="\n", verbose=self.verbose) + _run_manager.on_text( + generated_cypher, color="green", end="\n", verbose=self.verbose + ) + + intermediate_steps.append({"query": generated_cypher}) + + # Retrieve and limit the number of results + context = self.graph.query(generated_cypher)[: self.top_k] + + if self.return_direct: + final_result = context + else: + _run_manager.on_text("Full Context:", end="\n", verbose=self.verbose) + _run_manager.on_text( + str(context), color="green", end="\n", verbose=self.verbose + ) + + intermediate_steps.append({"context": context}) + + result = self.qa_chain( + {"question": question, "context": context}, + callbacks=callbacks, + ) + final_result = result[self.qa_chain.output_key] + + chain_result: Dict[str, Any] = {self.output_key: final_result} + if self.return_intermediate_steps: + chain_result[INTERMEDIATE_STEPS_KEY] = intermediate_steps + + return chain_result diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/graph_qa/gremlin.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/graph_qa/gremlin.py new file mode 100644 index 0000000000000000000000000000000000000000..1680bd8f4c16f3e2984544f692d0df9bb6cfc7e1 --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/graph_qa/gremlin.py @@ -0,0 +1,253 @@ +"""Question answering over a graph.""" + +from __future__ import annotations + +from typing import Any, Dict, List, Optional + +from langchain_classic.chains.base import Chain +from langchain_classic.chains.llm import LLMChain +from langchain_core.callbacks.manager import CallbackManager, CallbackManagerForChainRun +from langchain_core.language_models import BaseLanguageModel +from langchain_core.prompts import BasePromptTemplate +from langchain_core.prompts.prompt import PromptTemplate +from pydantic import Field + +from langchain_community.chains.graph_qa.prompts import ( + CYPHER_QA_PROMPT, + GRAPHDB_SPARQL_FIX_TEMPLATE, + GREMLIN_GENERATION_PROMPT, +) +from langchain_community.graphs import GremlinGraph + +INTERMEDIATE_STEPS_KEY = "intermediate_steps" + + +def extract_gremlin(text: str) -> str: + """Extract Gremlin code from a text. + + Args: + text: Text to extract Gremlin code from. + + Returns: + Gremlin code extracted from the text. + """ + text = text.replace("`", "") + if text.startswith("gremlin"): + text = text[len("gremlin") :] + return text.replace("\n", "") + + +class GremlinQAChain(Chain): + """Chain for question-answering against a graph by generating gremlin statements. + + *Security note*: Make sure that the database connection uses credentials + that are narrowly-scoped to only include necessary permissions. + Failure to do so may result in data corruption or loss, since the calling + code may attempt commands that would result in deletion, mutation + of data if appropriately prompted or reading sensitive data if such + data is present in the database. + The best way to guard against such negative outcomes is to (as appropriate) + limit the permissions granted to the credentials used with this tool. + + See https://python.langchain.com/docs/security for more information. + """ + + graph: GremlinGraph = Field(exclude=True) + gremlin_generation_chain: LLMChain + qa_chain: LLMChain + gremlin_fix_chain: LLMChain + max_fix_retries: int = 3 + input_key: str = "query" #: :meta private: + output_key: str = "result" #: :meta private: + top_k: int = 100 + return_direct: bool = False + return_intermediate_steps: bool = False + + allow_dangerous_requests: bool = False + """Forced user opt-in to acknowledge that the chain can make dangerous requests. + + *Security note*: Make sure that the database connection uses credentials + that are narrowly-scoped to only include necessary permissions. + Failure to do so may result in data corruption or loss, since the calling + code may attempt commands that would result in deletion, mutation + of data if appropriately prompted or reading sensitive data if such + data is present in the database. + The best way to guard against such negative outcomes is to (as appropriate) + limit the permissions granted to the credentials used with this tool. + + See https://python.langchain.com/docs/security for more information. + """ + + def __init__(self, **kwargs: Any) -> None: + """Initialize the chain.""" + super().__init__(**kwargs) + if self.allow_dangerous_requests is not True: + raise ValueError( + "In order to use this chain, you must acknowledge that it can make " + "dangerous requests by setting `allow_dangerous_requests` to `True`." + "You must narrowly scope the permissions of the database connection " + "to only include necessary permissions. Failure to do so may result " + "in data corruption or loss or reading sensitive data if such data is " + "present in the database." + "Only use this chain if you understand the risks and have taken the " + "necessary precautions. " + "See https://python.langchain.com/docs/security for more information." + ) + + @property + def input_keys(self) -> List[str]: + """Input keys. + + :meta private: + """ + return [self.input_key] + + @property + def output_keys(self) -> List[str]: + """Output keys. + + :meta private: + """ + _output_keys = [self.output_key] + return _output_keys + + @classmethod + def from_llm( + cls, + llm: BaseLanguageModel, + *, + gremlin_fix_prompt: BasePromptTemplate = PromptTemplate( + input_variables=["error_message", "generated_sparql", "schema"], + template=GRAPHDB_SPARQL_FIX_TEMPLATE.replace("SPARQL", "Gremlin").replace( + "in Turtle format", "" + ), + ), + qa_prompt: BasePromptTemplate = CYPHER_QA_PROMPT, + gremlin_prompt: BasePromptTemplate = GREMLIN_GENERATION_PROMPT, + **kwargs: Any, + ) -> GremlinQAChain: + """Initialize from LLM.""" + qa_chain = LLMChain(llm=llm, prompt=qa_prompt) + gremlin_generation_chain = LLMChain(llm=llm, prompt=gremlin_prompt) + gremlinl_fix_chain = LLMChain(llm=llm, prompt=gremlin_fix_prompt) + return cls( + qa_chain=qa_chain, + gremlin_generation_chain=gremlin_generation_chain, + gremlin_fix_chain=gremlinl_fix_chain, + **kwargs, + ) + + def _call( + self, + inputs: Dict[str, Any], + run_manager: Optional[CallbackManagerForChainRun] = None, + ) -> Dict[str, str]: + """Generate gremlin statement, use it to look up in db and answer question.""" + _run_manager = run_manager or CallbackManagerForChainRun.get_noop_manager() + callbacks = _run_manager.get_child() + question = inputs[self.input_key] + + intermediate_steps: List = [] + + chain_response = self.gremlin_generation_chain.invoke( + {"question": question, "schema": self.graph.get_schema}, callbacks=callbacks + ) + + generated_gremlin = extract_gremlin( + chain_response[self.gremlin_generation_chain.output_key] + ) + + _run_manager.on_text("Generated gremlin:", end="\n", verbose=self.verbose) + _run_manager.on_text( + generated_gremlin, color="green", end="\n", verbose=self.verbose + ) + + intermediate_steps.append({"query": generated_gremlin}) + + if generated_gremlin: + context = self.execute_with_retry( + _run_manager, callbacks, generated_gremlin + )[: self.top_k] + else: + context = [] + + if self.return_direct: + final_result = context + else: + _run_manager.on_text("Full Context:", end="\n", verbose=self.verbose) + _run_manager.on_text( + str(context), color="green", end="\n", verbose=self.verbose + ) + + intermediate_steps.append({"context": context}) + + result = self.qa_chain.invoke( + {"question": question, "context": context}, + callbacks=callbacks, + ) + final_result = result[self.qa_chain.output_key] + + chain_result: Dict[str, Any] = {self.output_key: final_result} + if self.return_intermediate_steps: + chain_result[INTERMEDIATE_STEPS_KEY] = intermediate_steps + + return chain_result + + def execute_query(self, query: str) -> List[Any]: + try: + return self.graph.query(query) + except Exception as e: + if hasattr(e, "status_message"): + raise ValueError(e.status_message) + else: + raise ValueError(str(e)) + + def execute_with_retry( + self, + _run_manager: CallbackManagerForChainRun, + callbacks: CallbackManager, + generated_gremlin: str, + ) -> List[Any]: + try: + return self.execute_query(generated_gremlin) + except Exception as e: + retries = 0 + error_message = str(e) + self.log_invalid_query(_run_manager, generated_gremlin, error_message) + + while retries < self.max_fix_retries: + try: + fix_chain_result = self.gremlin_fix_chain.invoke( + { + "error_message": error_message, + # we are borrowing template from sparql + "generated_sparql": generated_gremlin, + "schema": self.schema, + }, + callbacks=callbacks, + ) + fixed_gremlin = fix_chain_result[self.gremlin_fix_chain.output_key] + return self.execute_query(fixed_gremlin) + except Exception as e: + retries += 1 + parse_exception = str(e) + self.log_invalid_query(_run_manager, fixed_gremlin, parse_exception) + + raise ValueError("The generated Gremlin query is invalid.") + + def log_invalid_query( + self, + _run_manager: CallbackManagerForChainRun, + generated_query: str, + error_message: str, + ) -> None: + _run_manager.on_text("Invalid Gremlin query: ", end="\n", verbose=self.verbose) + _run_manager.on_text( + generated_query, color="red", end="\n", verbose=self.verbose + ) + _run_manager.on_text( + "Gremlin Query Parse Error: ", end="\n", verbose=self.verbose + ) + _run_manager.on_text( + error_message, color="red", end="\n\n", verbose=self.verbose + ) diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/graph_qa/hugegraph.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/graph_qa/hugegraph.py new file mode 100644 index 0000000000000000000000000000000000000000..206e26df3836f3254239996f5b66ce08a57ce000 --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/graph_qa/hugegraph.py @@ -0,0 +1,138 @@ +"""Question answering over a graph.""" + +from __future__ import annotations + +from typing import Any, Dict, List, Optional + +from langchain_classic.chains.base import Chain +from langchain_classic.chains.llm import LLMChain +from langchain_core.callbacks import CallbackManagerForChainRun +from langchain_core.language_models import BaseLanguageModel +from langchain_core.prompts import BasePromptTemplate +from pydantic import Field + +from langchain_community.chains.graph_qa.prompts import ( + CYPHER_QA_PROMPT, + GREMLIN_GENERATION_PROMPT, +) +from langchain_community.graphs.hugegraph import HugeGraph + + +class HugeGraphQAChain(Chain): + """Chain for question-answering against a graph by generating gremlin statements. + + *Security note*: Make sure that the database connection uses credentials + that are narrowly-scoped to only include necessary permissions. + Failure to do so may result in data corruption or loss, since the calling + code may attempt commands that would result in deletion, mutation + of data if appropriately prompted or reading sensitive data if such + data is present in the database. + The best way to guard against such negative outcomes is to (as appropriate) + limit the permissions granted to the credentials used with this tool. + + See https://python.langchain.com/docs/security for more information. + """ + + graph: HugeGraph = Field(exclude=True) + gremlin_generation_chain: LLMChain + qa_chain: LLMChain + input_key: str = "query" #: :meta private: + output_key: str = "result" #: :meta private: + + allow_dangerous_requests: bool = False + """Forced user opt-in to acknowledge that the chain can make dangerous requests. + + *Security note*: Make sure that the database connection uses credentials + that are narrowly-scoped to only include necessary permissions. + Failure to do so may result in data corruption or loss, since the calling + code may attempt commands that would result in deletion, mutation + of data if appropriately prompted or reading sensitive data if such + data is present in the database. + The best way to guard against such negative outcomes is to (as appropriate) + limit the permissions granted to the credentials used with this tool. + + See https://python.langchain.com/docs/security for more information. + """ + + def __init__(self, **kwargs: Any) -> None: + """Initialize the chain.""" + super().__init__(**kwargs) + if self.allow_dangerous_requests is not True: + raise ValueError( + "In order to use this chain, you must acknowledge that it can make " + "dangerous requests by setting `allow_dangerous_requests` to `True`." + "You must narrowly scope the permissions of the database connection " + "to only include necessary permissions. Failure to do so may result " + "in data corruption or loss or reading sensitive data if such data is " + "present in the database." + "Only use this chain if you understand the risks and have taken the " + "necessary precautions. " + "See https://python.langchain.com/docs/security for more information." + ) + + @property + def input_keys(self) -> List[str]: + """Input keys. + + :meta private: + """ + return [self.input_key] + + @property + def output_keys(self) -> List[str]: + """Output keys. + + :meta private: + """ + _output_keys = [self.output_key] + return _output_keys + + @classmethod + def from_llm( + cls, + llm: BaseLanguageModel, + *, + qa_prompt: BasePromptTemplate = CYPHER_QA_PROMPT, + gremlin_prompt: BasePromptTemplate = GREMLIN_GENERATION_PROMPT, + **kwargs: Any, + ) -> HugeGraphQAChain: + """Initialize from LLM.""" + qa_chain = LLMChain(llm=llm, prompt=qa_prompt) + gremlin_generation_chain = LLMChain(llm=llm, prompt=gremlin_prompt) + + return cls( + qa_chain=qa_chain, + gremlin_generation_chain=gremlin_generation_chain, + **kwargs, + ) + + def _call( + self, + inputs: Dict[str, Any], + run_manager: Optional[CallbackManagerForChainRun] = None, + ) -> Dict[str, str]: + """Generate gremlin statement, use it to look up in db and answer question.""" + _run_manager = run_manager or CallbackManagerForChainRun.get_noop_manager() + callbacks = _run_manager.get_child() + question = inputs[self.input_key] + + generated_gremlin = self.gremlin_generation_chain.run( + {"question": question, "schema": self.graph.get_schema}, callbacks=callbacks + ) + + _run_manager.on_text("Generated gremlin:", end="\n", verbose=self.verbose) + _run_manager.on_text( + generated_gremlin, color="green", end="\n", verbose=self.verbose + ) + context = self.graph.query(generated_gremlin) + + _run_manager.on_text("Full Context:", end="\n", verbose=self.verbose) + _run_manager.on_text( + str(context), color="green", end="\n", verbose=self.verbose + ) + + result = self.qa_chain( + {"question": question, "context": context}, + callbacks=callbacks, + ) + return {self.output_key: result[self.qa_chain.output_key]} diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/graph_qa/kuzu.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/graph_qa/kuzu.py new file mode 100644 index 0000000000000000000000000000000000000000..c4da7b5dcdd29f9104b030ebb203f264b27ed7f5 --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/graph_qa/kuzu.py @@ -0,0 +1,196 @@ +"""Question answering over a graph.""" + +from __future__ import annotations + +import re +from typing import Any, Dict, List, Optional + +from langchain_classic.chains.base import Chain +from langchain_classic.chains.llm import LLMChain +from langchain_core.callbacks import CallbackManagerForChainRun +from langchain_core.language_models import BaseLanguageModel +from langchain_core.prompts import BasePromptTemplate +from pydantic import Field + +from langchain_community.chains.graph_qa.prompts import ( + CYPHER_QA_PROMPT, + KUZU_GENERATION_PROMPT, +) +from langchain_community.graphs.kuzu_graph import KuzuGraph + + +def remove_prefix(text: str, prefix: str) -> str: + """Remove a prefix from a text. + + Args: + text: Text to remove the prefix from. + prefix: Prefix to remove from the text. + + Returns: + Text with the prefix removed. + """ + if text.startswith(prefix): + return text[len(prefix) :] + return text + + +def extract_cypher(text: str) -> str: + """Extract Cypher code from a text. + + Args: + text: Text to extract Cypher code from. + + Returns: + Cypher code extracted from the text. + """ + # The pattern to find Cypher code enclosed in triple backticks + pattern = r"```(.*?)```" + + # Find all matches in the input text + matches = re.findall(pattern, text, re.DOTALL) + + return matches[0] if matches else text + + +class KuzuQAChain(Chain): + """Question-answering against a graph by generating Cypher statements for Kùzu. + + *Security note*: Make sure that the database connection uses credentials + that are narrowly-scoped to only include necessary permissions. + Failure to do so may result in data corruption or loss, since the calling + code may attempt commands that would result in deletion, mutation + of data if appropriately prompted or reading sensitive data if such + data is present in the database. + The best way to guard against such negative outcomes is to (as appropriate) + limit the permissions granted to the credentials used with this tool. + + See https://python.langchain.com/docs/security for more information. + """ + + graph: KuzuGraph = Field(exclude=True) + cypher_generation_chain: LLMChain + qa_chain: LLMChain + input_key: str = "query" #: :meta private: + output_key: str = "result" #: :meta private: + + allow_dangerous_requests: bool = False + """Forced user opt-in to acknowledge that the chain can make dangerous requests. + + *Security note*: Make sure that the database connection uses credentials + that are narrowly-scoped to only include necessary permissions. + Failure to do so may result in data corruption or loss, since the calling + code may attempt commands that would result in deletion, mutation + of data if appropriately prompted or reading sensitive data if such + data is present in the database. + The best way to guard against such negative outcomes is to (as appropriate) + limit the permissions granted to the credentials used with this tool. + + See https://python.langchain.com/docs/security for more information. + """ + + def __init__(self, **kwargs: Any) -> None: + """Initialize the chain.""" + super().__init__(**kwargs) + if self.allow_dangerous_requests is not True: + raise ValueError( + "In order to use this chain, you must acknowledge that it can make " + "dangerous requests by setting `allow_dangerous_requests` to `True`." + "You must narrowly scope the permissions of the database connection " + "to only include necessary permissions. Failure to do so may result " + "in data corruption or loss or reading sensitive data if such data is " + "present in the database." + "Only use this chain if you understand the risks and have taken the " + "necessary precautions. " + "See https://python.langchain.com/docs/security for more information." + ) + + @property + def input_keys(self) -> List[str]: + """Return the input keys. + + :meta private: + """ + return [self.input_key] + + @property + def output_keys(self) -> List[str]: + """Return the output keys. + + :meta private: + """ + _output_keys = [self.output_key] + return _output_keys + + @classmethod + def from_llm( + cls, + llm: Optional[BaseLanguageModel] = None, + *, + qa_prompt: BasePromptTemplate = CYPHER_QA_PROMPT, + cypher_prompt: BasePromptTemplate = KUZU_GENERATION_PROMPT, + cypher_llm: Optional[BaseLanguageModel] = None, + qa_llm: Optional[BaseLanguageModel] = None, + **kwargs: Any, + ) -> KuzuQAChain: + """Initialize from LLM.""" + if not cypher_llm and not llm: + raise ValueError("Either `llm` or `cypher_llm` parameters must be provided") + if not qa_llm and not llm: + raise ValueError( + "Either `llm` or `qa_llm` parameters must be provided along with" + " `cypher_llm`" + ) + if cypher_llm and qa_llm and llm: + raise ValueError( + "You can specify up to two of 'cypher_llm', 'qa_llm'" + ", and 'llm', but not all three simultaneously." + ) + + qa_chain = LLMChain( + llm=qa_llm or llm, # type: ignore[arg-type] + prompt=qa_prompt, + ) + cypher_generation_chain = LLMChain( + llm=cypher_llm or llm, # type: ignore[arg-type] + prompt=cypher_prompt, + ) + + return cls( + qa_chain=qa_chain, + cypher_generation_chain=cypher_generation_chain, + **kwargs, + ) + + def _call( + self, + inputs: Dict[str, Any], + run_manager: Optional[CallbackManagerForChainRun] = None, + ) -> Dict[str, str]: + """Generate Cypher statement, use it to look up in db and answer question.""" + _run_manager = run_manager or CallbackManagerForChainRun.get_noop_manager() + callbacks = _run_manager.get_child() + question = inputs[self.input_key] + + generated_cypher = self.cypher_generation_chain.run( + {"question": question, "schema": self.graph.get_schema}, callbacks=callbacks + ) + # Extract Cypher code if it is wrapped in triple backticks + # with the language marker "cypher" + generated_cypher = remove_prefix(extract_cypher(generated_cypher), "cypher") + + _run_manager.on_text("Generated Cypher:", end="\n", verbose=self.verbose) + _run_manager.on_text( + generated_cypher, color="green", end="\n", verbose=self.verbose + ) + context = self.graph.query(generated_cypher) + + _run_manager.on_text("Full Context:", end="\n", verbose=self.verbose) + _run_manager.on_text( + str(context), color="green", end="\n", verbose=self.verbose + ) + + result = self.qa_chain( + {"question": question, "context": context}, + callbacks=callbacks, + ) + return {self.output_key: result[self.qa_chain.output_key]} diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/graph_qa/memgraph.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/graph_qa/memgraph.py new file mode 100644 index 0000000000000000000000000000000000000000..349bdf67d2c45a208268918df03e3be0fedeb279 --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/graph_qa/memgraph.py @@ -0,0 +1,316 @@ +"""Question answering over a graph.""" + +from __future__ import annotations + +import re +from typing import Any, Dict, List, Optional, Union + +from langchain_classic.chains.base import Chain +from langchain_core.callbacks import CallbackManagerForChainRun +from langchain_core.language_models import BaseLanguageModel +from langchain_core.messages import ( + AIMessage, + BaseMessage, + SystemMessage, + ToolMessage, +) +from langchain_core.output_parsers import StrOutputParser +from langchain_core.prompts import ( + BasePromptTemplate, + ChatPromptTemplate, + HumanMessagePromptTemplate, + MessagesPlaceholder, +) +from langchain_core.runnables import Runnable +from pydantic import Field + +from langchain_community.chains.graph_qa.prompts import ( + MEMGRAPH_GENERATION_PROMPT, + MEMGRAPH_QA_PROMPT, +) +from langchain_community.graphs.memgraph_graph import MemgraphGraph + +INTERMEDIATE_STEPS_KEY = "intermediate_steps" + +FUNCTION_RESPONSE_SYSTEM = """You are an assistant that helps to form nice and human +understandable answers based on the provided information from tools. +Do not add any other information that wasn't present in the tools, and use +very concise style in interpreting results! +""" + + +def extract_cypher(text: str) -> str: + """Extract Cypher code from a text. + + Args: + text: Text to extract Cypher code from. + + Returns: + Cypher code extracted from the text. + """ + # The pattern to find Cypher code enclosed in triple backticks + pattern = r"```(.*?)```" + + # Find all matches in the input text + matches = re.findall(pattern, text, re.DOTALL) + + return matches[0] if matches else text + + +def get_function_response( + question: str, context: List[Dict[str, Any]] +) -> List[BaseMessage]: + TOOL_ID = "call_H7fABDuzEau48T10Qn0Lsh0D" + messages = [ + AIMessage( + content="", + additional_kwargs={ + "tool_calls": [ + { + "id": TOOL_ID, + "function": { + "arguments": '{"question":"' + question + '"}', + "name": "GetInformation", + }, + "type": "function", + } + ] + }, + ), + ToolMessage(content=str(context), tool_call_id=TOOL_ID), + ] + return messages + + +class MemgraphQAChain(Chain): + """Chain for question-answering against a graph by generating Cypher statements. + + *Security note*: Make sure that the database connection uses credentials + that are narrowly-scoped to only include necessary permissions. + Failure to do so may result in data corruption or loss, since the calling + code may attempt commands that would result in deletion, mutation + of data if appropriately prompted or reading sensitive data if such + data is present in the database. + The best way to guard against such negative outcomes is to (as appropriate) + limit the permissions granted to the credentials used with this tool. + + See https://python.langchain.com/docs/security for more information. + """ + + graph: MemgraphGraph = Field(exclude=True) + cypher_generation_chain: Runnable + qa_chain: Runnable + graph_schema: str + input_key: str = "query" #: :meta private: + output_key: str = "result" #: :meta private: + top_k: int = 10 + """Number of results to return from the query""" + return_intermediate_steps: bool = False + """Whether or not to return the intermediate steps along with the final answer.""" + return_direct: bool = False + """Optional cypher validation tool""" + use_function_response: bool = False + """Whether to wrap the database context as tool/function response""" + allow_dangerous_requests: bool = False + """Forced user opt-in to acknowledge that the chain can make dangerous requests. + + *Security note*: Make sure that the database connection uses credentials + that are narrowly-scoped to only include necessary permissions. + Failure to do so may result in data corruption or loss, since the calling + code may attempt commands that would result in deletion, mutation + of data if appropriately prompted or reading sensitive data if such + data is present in the database. + The best way to guard against such negative outcomes is to (as appropriate) + limit the permissions granted to the credentials used with this tool. + + See https://python.langchain.com/docs/security for more information. + """ + + def __init__(self, **kwargs: Any) -> None: + """Initialize the chain.""" + super().__init__(**kwargs) + if self.allow_dangerous_requests is not True: + raise ValueError( + "In order to use this chain, you must acknowledge that it can make " + "dangerous requests by setting `allow_dangerous_requests` to `True`." + "You must narrowly scope the permissions of the database connection " + "to only include necessary permissions. Failure to do so may result " + "in data corruption or loss or reading sensitive data if such data is " + "present in the database." + "Only use this chain if you understand the risks and have taken the " + "necessary precautions. " + "See https://python.langchain.com/docs/security for more information." + ) + + @property + def input_keys(self) -> List[str]: + """Return the input keys. + + :meta private: + """ + return [self.input_key] + + @property + def output_keys(self) -> List[str]: + """Return the output keys. + + :meta private: + """ + _output_keys = [self.output_key] + return _output_keys + + @property + def _chain_type(self) -> str: + return "graph_cypher_chain" + + @classmethod + def from_llm( + cls, + llm: Optional[BaseLanguageModel] = None, + *, + qa_prompt: Optional[BasePromptTemplate] = None, + cypher_prompt: Optional[BasePromptTemplate] = None, + cypher_llm: Optional[BaseLanguageModel] = None, + qa_llm: Optional[Union[BaseLanguageModel, Any]] = None, + qa_llm_kwargs: Optional[Dict[str, Any]] = None, + cypher_llm_kwargs: Optional[Dict[str, Any]] = None, + use_function_response: bool = False, + function_response_system: str = FUNCTION_RESPONSE_SYSTEM, + **kwargs: Any, + ) -> MemgraphQAChain: + """Initialize from LLM.""" + + if not cypher_llm and not llm: + raise ValueError("Either `llm` or `cypher_llm` parameters must be provided") + if not qa_llm and not llm: + raise ValueError("Either `llm` or `qa_llm` parameters must be provided") + if cypher_llm and qa_llm and llm: + raise ValueError( + "You can specify up to two of 'cypher_llm', 'qa_llm'" + ", and 'llm', but not all three simultaneously." + ) + if cypher_prompt and cypher_llm_kwargs: + raise ValueError( + "Specifying cypher_prompt and cypher_llm_kwargs together is" + " not allowed. Please pass prompt via cypher_llm_kwargs." + ) + if qa_prompt and qa_llm_kwargs: + raise ValueError( + "Specifying qa_prompt and qa_llm_kwargs together is" + " not allowed. Please pass prompt via qa_llm_kwargs." + ) + use_qa_llm_kwargs = qa_llm_kwargs if qa_llm_kwargs is not None else {} + use_cypher_llm_kwargs = ( + cypher_llm_kwargs if cypher_llm_kwargs is not None else {} + ) + if "prompt" not in use_qa_llm_kwargs: + use_qa_llm_kwargs["prompt"] = ( + qa_prompt if qa_prompt is not None else MEMGRAPH_QA_PROMPT + ) + if "prompt" not in use_cypher_llm_kwargs: + use_cypher_llm_kwargs["prompt"] = ( + cypher_prompt + if cypher_prompt is not None + else MEMGRAPH_GENERATION_PROMPT + ) + + qa_llm = qa_llm or llm + if use_function_response: + try: + qa_llm.bind_tools({}) # type: ignore[union-attr] + response_prompt = ChatPromptTemplate.from_messages( + [ + SystemMessage(content=function_response_system), + HumanMessagePromptTemplate.from_template("{question}"), + MessagesPlaceholder(variable_name="function_response"), + ] + ) + qa_chain = response_prompt | qa_llm | StrOutputParser() # type: ignore[operator] + except (NotImplementedError, AttributeError): + raise ValueError("Provided LLM does not support native tools/functions") + else: + qa_chain = use_qa_llm_kwargs["prompt"] | qa_llm | StrOutputParser() + + prompt = use_cypher_llm_kwargs["prompt"] + llm_to_use = cypher_llm if cypher_llm is not None else llm + + if prompt is not None and llm_to_use is not None: + cypher_generation_chain = prompt | llm_to_use | StrOutputParser() + else: + raise ValueError( + "Missing required components for the cypher generation chain: " + "'prompt' or 'llm'" + ) + + graph_schema = kwargs["graph"].get_schema + + return cls( + graph_schema=graph_schema, + qa_chain=qa_chain, + cypher_generation_chain=cypher_generation_chain, + use_function_response=use_function_response, + **kwargs, + ) + + def _call( + self, + inputs: Dict[str, Any], + run_manager: Optional[CallbackManagerForChainRun] = None, + ) -> Dict[str, Any]: + """Generate Cypher statement, use it to look up in db and answer question.""" + _run_manager = run_manager or CallbackManagerForChainRun.get_noop_manager() + callbacks = _run_manager.get_child() + question = inputs[self.input_key] + args = { + "question": question, + "schema": self.graph_schema, + } + args.update(inputs) + + intermediate_steps: List = [] + + generated_cypher = self.cypher_generation_chain.invoke( + args, callbacks=callbacks + ) + # Extract Cypher code if it is wrapped in backticks + generated_cypher = extract_cypher(generated_cypher) + + _run_manager.on_text("Generated Cypher:", end="\n", verbose=self.verbose) + _run_manager.on_text( + generated_cypher, color="green", end="\n", verbose=self.verbose + ) + + intermediate_steps.append({"query": generated_cypher}) + + # Retrieve and limit the number of results + # Generated Cypher be null if query corrector identifies invalid schema + if generated_cypher: + context = self.graph.query(generated_cypher)[: self.top_k] + else: + context = [] + + if self.return_direct: + result = context + else: + _run_manager.on_text("Full Context:", end="\n", verbose=self.verbose) + _run_manager.on_text( + str(context), color="green", end="\n", verbose=self.verbose + ) + + intermediate_steps.append({"context": context}) + if self.use_function_response: + function_response = get_function_response(question, context) + result = self.qa_chain.invoke( + {"question": question, "function_response": function_response}, + ) + else: + result = self.qa_chain.invoke( + {"question": question, "context": context}, + callbacks=callbacks, + ) + + chain_result: Dict[str, Any] = {"result": result} + if self.return_intermediate_steps: + chain_result[INTERMEDIATE_STEPS_KEY] = intermediate_steps + + return chain_result diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/graph_qa/nebulagraph.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/graph_qa/nebulagraph.py new file mode 100644 index 0000000000000000000000000000000000000000..48326b508d65d19a280f2f5759c9f1c5603c43e3 --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/graph_qa/nebulagraph.py @@ -0,0 +1,138 @@ +"""Question answering over a graph.""" + +from __future__ import annotations + +from typing import Any, Dict, List, Optional + +from langchain_classic.chains.base import Chain +from langchain_classic.chains.llm import LLMChain +from langchain_core.callbacks import CallbackManagerForChainRun +from langchain_core.language_models import BaseLanguageModel +from langchain_core.prompts import BasePromptTemplate +from pydantic import Field + +from langchain_community.chains.graph_qa.prompts import ( + CYPHER_QA_PROMPT, + NGQL_GENERATION_PROMPT, +) +from langchain_community.graphs.nebula_graph import NebulaGraph + + +class NebulaGraphQAChain(Chain): + """Chain for question-answering against a graph by generating nGQL statements. + + *Security note*: Make sure that the database connection uses credentials + that are narrowly-scoped to only include necessary permissions. + Failure to do so may result in data corruption or loss, since the calling + code may attempt commands that would result in deletion, mutation + of data if appropriately prompted or reading sensitive data if such + data is present in the database. + The best way to guard against such negative outcomes is to (as appropriate) + limit the permissions granted to the credentials used with this tool. + + See https://python.langchain.com/docs/security for more information. + """ + + graph: NebulaGraph = Field(exclude=True) + ngql_generation_chain: LLMChain + qa_chain: LLMChain + input_key: str = "query" #: :meta private: + output_key: str = "result" #: :meta private: + + allow_dangerous_requests: bool = False + """Forced user opt-in to acknowledge that the chain can make dangerous requests. + + *Security note*: Make sure that the database connection uses credentials + that are narrowly-scoped to only include necessary permissions. + Failure to do so may result in data corruption or loss, since the calling + code may attempt commands that would result in deletion, mutation + of data if appropriately prompted or reading sensitive data if such + data is present in the database. + The best way to guard against such negative outcomes is to (as appropriate) + limit the permissions granted to the credentials used with this tool. + + See https://python.langchain.com/docs/security for more information. + """ + + def __init__(self, **kwargs: Any) -> None: + """Initialize the chain.""" + super().__init__(**kwargs) + if self.allow_dangerous_requests is not True: + raise ValueError( + "In order to use this chain, you must acknowledge that it can make " + "dangerous requests by setting `allow_dangerous_requests` to `True`." + "You must narrowly scope the permissions of the database connection " + "to only include necessary permissions. Failure to do so may result " + "in data corruption or loss or reading sensitive data if such data is " + "present in the database." + "Only use this chain if you understand the risks and have taken the " + "necessary precautions. " + "See https://python.langchain.com/docs/security for more information." + ) + + @property + def input_keys(self) -> List[str]: + """Return the input keys. + + :meta private: + """ + return [self.input_key] + + @property + def output_keys(self) -> List[str]: + """Return the output keys. + + :meta private: + """ + _output_keys = [self.output_key] + return _output_keys + + @classmethod + def from_llm( + cls, + llm: BaseLanguageModel, + *, + qa_prompt: BasePromptTemplate = CYPHER_QA_PROMPT, + ngql_prompt: BasePromptTemplate = NGQL_GENERATION_PROMPT, + **kwargs: Any, + ) -> NebulaGraphQAChain: + """Initialize from LLM.""" + qa_chain = LLMChain(llm=llm, prompt=qa_prompt) + ngql_generation_chain = LLMChain(llm=llm, prompt=ngql_prompt) + + return cls( + qa_chain=qa_chain, + ngql_generation_chain=ngql_generation_chain, + **kwargs, + ) + + def _call( + self, + inputs: Dict[str, Any], + run_manager: Optional[CallbackManagerForChainRun] = None, + ) -> Dict[str, str]: + """Generate nGQL statement, use it to look up in db and answer question.""" + _run_manager = run_manager or CallbackManagerForChainRun.get_noop_manager() + callbacks = _run_manager.get_child() + question = inputs[self.input_key] + + generated_ngql = self.ngql_generation_chain.run( + {"question": question, "schema": self.graph.get_schema}, callbacks=callbacks + ) + + _run_manager.on_text("Generated nGQL:", end="\n", verbose=self.verbose) + _run_manager.on_text( + generated_ngql, color="green", end="\n", verbose=self.verbose + ) + context = self.graph.query(generated_ngql) + + _run_manager.on_text("Full Context:", end="\n", verbose=self.verbose) + _run_manager.on_text( + str(context), color="green", end="\n", verbose=self.verbose + ) + + result = self.qa_chain( + {"question": question, "context": context}, + callbacks=callbacks, + ) + return {self.output_key: result[self.qa_chain.output_key]} diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/graph_qa/neptune_cypher.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/graph_qa/neptune_cypher.py new file mode 100644 index 0000000000000000000000000000000000000000..7318962b620c297764a36d879b8689daead07898 --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/graph_qa/neptune_cypher.py @@ -0,0 +1,254 @@ +from __future__ import annotations + +import re +from typing import Any, Dict, List, Optional + +from langchain_classic.chains.base import Chain +from langchain_classic.chains.llm import LLMChain +from langchain_classic.chains.prompt_selector import ConditionalPromptSelector +from langchain_core._api.deprecation import deprecated +from langchain_core.callbacks import CallbackManagerForChainRun +from langchain_core.language_models import BaseLanguageModel +from langchain_core.prompts.base import BasePromptTemplate +from pydantic import Field + +from langchain_community.chains.graph_qa.prompts import ( + CYPHER_QA_PROMPT, + NEPTUNE_OPENCYPHER_GENERATION_PROMPT, + NEPTUNE_OPENCYPHER_GENERATION_SIMPLE_PROMPT, +) +from langchain_community.graphs import BaseNeptuneGraph + +INTERMEDIATE_STEPS_KEY = "intermediate_steps" + + +def trim_query(query: str) -> str: + """Trim the query to only include Cypher keywords.""" + keywords = ( + "CALL", + "CREATE", + "DELETE", + "DETACH", + "LIMIT", + "MATCH", + "MERGE", + "OPTIONAL", + "ORDER", + "REMOVE", + "RETURN", + "SET", + "SKIP", + "UNWIND", + "WITH", + "WHERE", + "//", + ) + + lines = query.split("\n") + new_query = "" + + for line in lines: + if line.strip().upper().startswith(keywords): + new_query += line + "\n" + + return new_query + + +def extract_cypher(text: str) -> str: + """Extract Cypher code from text using Regex.""" + # The pattern to find Cypher code enclosed in triple backticks + pattern = r"```(.*?)```" + + # Find all matches in the input text + matches = re.findall(pattern, text, re.DOTALL) + + return matches[0] if matches else text + + +def use_simple_prompt(llm: BaseLanguageModel) -> bool: + """Decides whether to use the simple prompt""" + if llm._llm_type and "anthropic" in llm._llm_type: # type: ignore[attr-defined] + return True + + # Bedrock anthropic + if hasattr(llm, "model_id") and "anthropic" in llm.model_id: + return True + + return False + + +PROMPT_SELECTOR = ConditionalPromptSelector( + default_prompt=NEPTUNE_OPENCYPHER_GENERATION_PROMPT, + conditionals=[(use_simple_prompt, NEPTUNE_OPENCYPHER_GENERATION_SIMPLE_PROMPT)], +) + + +@deprecated( + since="0.3.15", + removal="1.0", + alternative_import="langchain_aws.create_neptune_opencypher_qa_chain", +) +class NeptuneOpenCypherQAChain(Chain): + """Chain for question-answering against a Neptune graph + by generating openCypher statements. + + *Security note*: Make sure that the database connection uses credentials + that are narrowly-scoped to only include necessary permissions. + Failure to do so may result in data corruption or loss, since the calling + code may attempt commands that would result in deletion, mutation + of data if appropriately prompted or reading sensitive data if such + data is present in the database. + The best way to guard against such negative outcomes is to (as appropriate) + limit the permissions granted to the credentials used with this tool. + + See https://python.langchain.com/docs/security for more information. + + Example: + .. code-block:: python + + chain = NeptuneOpenCypherQAChain.from_llm( + llm=llm, + graph=graph + ) + response = chain.run(query) + """ + + graph: BaseNeptuneGraph = Field(exclude=True) + cypher_generation_chain: LLMChain + qa_chain: LLMChain + input_key: str = "query" #: :meta private: + output_key: str = "result" #: :meta private: + top_k: int = 10 + return_intermediate_steps: bool = False + """Whether or not to return the intermediate steps along with the final answer.""" + return_direct: bool = False + """Whether or not to return the result of querying the graph directly.""" + extra_instructions: Optional[str] = None + """Extra instructions by the appended to the query generation prompt.""" + + allow_dangerous_requests: bool = False + """Forced user opt-in to acknowledge that the chain can make dangerous requests. + + *Security note*: Make sure that the database connection uses credentials + that are narrowly-scoped to only include necessary permissions. + Failure to do so may result in data corruption or loss, since the calling + code may attempt commands that would result in deletion, mutation + of data if appropriately prompted or reading sensitive data if such + data is present in the database. + The best way to guard against such negative outcomes is to (as appropriate) + limit the permissions granted to the credentials used with this tool. + + See https://python.langchain.com/docs/security for more information. + """ + + def __init__(self, **kwargs: Any) -> None: + """Initialize the chain.""" + super().__init__(**kwargs) + if self.allow_dangerous_requests is not True: + raise ValueError( + "In order to use this chain, you must acknowledge that it can make " + "dangerous requests by setting `allow_dangerous_requests` to `True`." + "You must narrowly scope the permissions of the database connection " + "to only include necessary permissions. Failure to do so may result " + "in data corruption or loss or reading sensitive data if such data is " + "present in the database." + "Only use this chain if you understand the risks and have taken the " + "necessary precautions. " + "See https://python.langchain.com/docs/security for more information." + ) + + @property + def input_keys(self) -> List[str]: + """Return the input keys. + + :meta private: + """ + return [self.input_key] + + @property + def output_keys(self) -> List[str]: + """Return the output keys. + + :meta private: + """ + _output_keys = [self.output_key] + return _output_keys + + @classmethod + def from_llm( + cls, + llm: BaseLanguageModel, + *, + qa_prompt: BasePromptTemplate = CYPHER_QA_PROMPT, + cypher_prompt: Optional[BasePromptTemplate] = None, + extra_instructions: Optional[str] = None, + **kwargs: Any, + ) -> NeptuneOpenCypherQAChain: + """Initialize from LLM.""" + qa_chain = LLMChain(llm=llm, prompt=qa_prompt) + + _cypher_prompt = cypher_prompt or PROMPT_SELECTOR.get_prompt(llm) + cypher_generation_chain = LLMChain(llm=llm, prompt=_cypher_prompt) + + return cls( + qa_chain=qa_chain, + cypher_generation_chain=cypher_generation_chain, + extra_instructions=extra_instructions, + **kwargs, + ) + + def _call( + self, + inputs: Dict[str, Any], + run_manager: Optional[CallbackManagerForChainRun] = None, + ) -> Dict[str, Any]: + """Generate Cypher statement, use it to look up in db and answer question.""" + _run_manager = run_manager or CallbackManagerForChainRun.get_noop_manager() + callbacks = _run_manager.get_child() + question = inputs[self.input_key] + + intermediate_steps: List = [] + + generated_cypher = self.cypher_generation_chain.run( + { + "question": question, + "schema": self.graph.get_schema, + "extra_instructions": self.extra_instructions or "", + }, + callbacks=callbacks, + ) + + # Extract Cypher code if it is wrapped in backticks + generated_cypher = extract_cypher(generated_cypher) + generated_cypher = trim_query(generated_cypher) + + _run_manager.on_text("Generated Cypher:", end="\n", verbose=self.verbose) + _run_manager.on_text( + generated_cypher, color="green", end="\n", verbose=self.verbose + ) + + intermediate_steps.append({"query": generated_cypher}) + + context = self.graph.query(generated_cypher) + + if self.return_direct: + final_result = context + else: + _run_manager.on_text("Full Context:", end="\n", verbose=self.verbose) + _run_manager.on_text( + str(context), color="green", end="\n", verbose=self.verbose + ) + + intermediate_steps.append({"context": context}) + + result = self.qa_chain( + {"question": question, "context": context}, + callbacks=callbacks, + ) + final_result = result[self.qa_chain.output_key] + + chain_result: Dict[str, Any] = {self.output_key: final_result} + if self.return_intermediate_steps: + chain_result[INTERMEDIATE_STEPS_KEY] = intermediate_steps + + return chain_result diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/graph_qa/neptune_sparql.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/graph_qa/neptune_sparql.py new file mode 100644 index 0000000000000000000000000000000000000000..60a35eab284aa90aee2703537ed77418c6f633d5 --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/graph_qa/neptune_sparql.py @@ -0,0 +1,242 @@ +""" +Question answering over an RDF or OWL graph using SPARQL. +""" + +from __future__ import annotations + +from typing import Any, Dict, List, Optional + +from langchain_classic.chains.base import Chain +from langchain_classic.chains.llm import LLMChain +from langchain_core._api.deprecation import deprecated +from langchain_core.callbacks.manager import CallbackManagerForChainRun +from langchain_core.language_models import BaseLanguageModel +from langchain_core.prompts.base import BasePromptTemplate +from langchain_core.prompts.prompt import PromptTemplate +from pydantic import Field + +from langchain_community.chains.graph_qa.prompts import SPARQL_QA_PROMPT +from langchain_community.graphs import NeptuneRdfGraph + +INTERMEDIATE_STEPS_KEY = "intermediate_steps" + +SPARQL_GENERATION_TEMPLATE = """ +Task: Generate a SPARQL SELECT statement for querying a graph database. +For instance, to find all email addresses of John Doe, the following +query in backticks would be suitable: +``` +PREFIX foaf: +SELECT ?email +WHERE {{ + ?person foaf:name "John Doe" . + ?person foaf:mbox ?email . +}} +``` +Instructions: +Use only the node types and properties provided in the schema. +Do not use any node types and properties that are not explicitly provided. +Include all necessary prefixes. + +Examples: + +Schema: +{schema} +Note: Be as concise as possible. +Do not include any explanations or apologies in your responses. +Do not respond to any questions that ask for anything else than +for you to construct a SPARQL query. +Do not include any text except the SPARQL query generated. + +The question is: +{prompt}""" + +SPARQL_GENERATION_PROMPT = PromptTemplate( + input_variables=["schema", "prompt"], template=SPARQL_GENERATION_TEMPLATE +) + + +def extract_sparql(query: str) -> str: + """Extract SPARQL code from a text. + + Args: + query: Text to extract SPARQL code from. + + Returns: + SPARQL code extracted from the text. + """ + query = query.strip() + querytoks = query.split("```") + if len(querytoks) == 3: + query = querytoks[1] + + if query.startswith("sparql"): + query = query[6:] + elif query.startswith("") and query.endswith(""): + query = query[8:-9] + return query + + +@deprecated( + since="0.3.15", + removal="1.0", + alternative_import="langchain_aws.create_neptune_sparql_qa_chain", +) +class NeptuneSparqlQAChain(Chain): + """Chain for question-answering against a Neptune graph + by generating SPARQL statements. + + *Security note*: Make sure that the database connection uses credentials + that are narrowly-scoped to only include necessary permissions. + Failure to do so may result in data corruption or loss, since the calling + code may attempt commands that would result in deletion, mutation + of data if appropriately prompted or reading sensitive data if such + data is present in the database. + The best way to guard against such negative outcomes is to (as appropriate) + limit the permissions granted to the credentials used with this tool. + + See https://python.langchain.com/docs/security for more information. + + Example: + .. code-block:: python + + chain = NeptuneSparqlQAChain.from_llm( + llm=llm, + graph=graph + ) + response = chain.invoke(query) + """ + + graph: NeptuneRdfGraph = Field(exclude=True) + sparql_generation_chain: LLMChain + qa_chain: LLMChain + input_key: str = "query" #: :meta private: + output_key: str = "result" #: :meta private: + top_k: int = 10 + return_intermediate_steps: bool = False + """Whether or not to return the intermediate steps along with the final answer.""" + return_direct: bool = False + """Whether or not to return the result of querying the graph directly.""" + extra_instructions: Optional[str] = None + """Extra instructions by the appended to the query generation prompt.""" + + allow_dangerous_requests: bool = False + """Forced user opt-in to acknowledge that the chain can make dangerous requests. + + *Security note*: Make sure that the database connection uses credentials + that are narrowly-scoped to only include necessary permissions. + Failure to do so may result in data corruption or loss, since the calling + code may attempt commands that would result in deletion, mutation + of data if appropriately prompted or reading sensitive data if such + data is present in the database. + The best way to guard against such negative outcomes is to (as appropriate) + limit the permissions granted to the credentials used with this tool. + + See https://python.langchain.com/docs/security for more information. + """ + + def __init__(self, **kwargs: Any) -> None: + """Initialize the chain.""" + super().__init__(**kwargs) + if self.allow_dangerous_requests is not True: + raise ValueError( + "In order to use this chain, you must acknowledge that it can make " + "dangerous requests by setting `allow_dangerous_requests` to `True`." + "You must narrowly scope the permissions of the database connection " + "to only include necessary permissions. Failure to do so may result " + "in data corruption or loss or reading sensitive data if such data is " + "present in the database." + "Only use this chain if you understand the risks and have taken the " + "necessary precautions. " + "See https://python.langchain.com/docs/security for more information." + ) + + @property + def input_keys(self) -> List[str]: + return [self.input_key] + + @property + def output_keys(self) -> List[str]: + _output_keys = [self.output_key] + return _output_keys + + @classmethod + def from_llm( + cls, + llm: BaseLanguageModel, + *, + qa_prompt: BasePromptTemplate = SPARQL_QA_PROMPT, + sparql_prompt: BasePromptTemplate = SPARQL_GENERATION_PROMPT, + examples: Optional[str] = None, + **kwargs: Any, + ) -> NeptuneSparqlQAChain: + """Initialize from LLM.""" + qa_chain = LLMChain(llm=llm, prompt=qa_prompt) + template_to_use = SPARQL_GENERATION_TEMPLATE + if examples: + template_to_use = template_to_use.replace( + "Examples:", "Examples: " + examples + ) + sparql_prompt = PromptTemplate( + input_variables=["schema", "prompt"], template=template_to_use + ) + sparql_generation_chain = LLMChain(llm=llm, prompt=sparql_prompt) + + return cls( + qa_chain=qa_chain, + sparql_generation_chain=sparql_generation_chain, + examples=examples, + **kwargs, + ) + + def _call( + self, + inputs: Dict[str, Any], + run_manager: Optional[CallbackManagerForChainRun] = None, + ) -> Dict[str, str]: + """ + Generate SPARQL query, use it to retrieve a response from the gdb and answer + the question. + """ + _run_manager = run_manager or CallbackManagerForChainRun.get_noop_manager() + callbacks = _run_manager.get_child() + prompt = inputs[self.input_key] + + intermediate_steps: List = [] + + generated_sparql = self.sparql_generation_chain.run( + {"prompt": prompt, "schema": self.graph.get_schema}, callbacks=callbacks + ) + + # Extract SPARQL + generated_sparql = extract_sparql(generated_sparql) + + _run_manager.on_text("Generated SPARQL:", end="\n", verbose=self.verbose) + _run_manager.on_text( + generated_sparql, color="green", end="\n", verbose=self.verbose + ) + + intermediate_steps.append({"query": generated_sparql}) + + context = self.graph.query(generated_sparql) + + if self.return_direct: + final_result = context + else: + _run_manager.on_text("Full Context:", end="\n", verbose=self.verbose) + _run_manager.on_text( + str(context), color="green", end="\n", verbose=self.verbose + ) + + intermediate_steps.append({"context": context}) + + result = self.qa_chain( + {"prompt": prompt, "context": context}, + callbacks=callbacks, + ) + final_result = result[self.qa_chain.output_key] + + chain_result: Dict[str, Any] = {self.output_key: final_result} + if self.return_intermediate_steps: + chain_result[INTERMEDIATE_STEPS_KEY] = intermediate_steps + + return chain_result diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/graph_qa/ontotext_graphdb.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/graph_qa/ontotext_graphdb.py new file mode 100644 index 0000000000000000000000000000000000000000..613100a33ba265415bb3dd6985dda4e6ee638166 --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/graph_qa/ontotext_graphdb.py @@ -0,0 +1,222 @@ +"""Question answering over a graph.""" + +from __future__ import annotations + +from typing import TYPE_CHECKING, Any, Dict, List, Optional + +if TYPE_CHECKING: + import rdflib + +from langchain_classic.chains.base import Chain +from langchain_classic.chains.llm import LLMChain +from langchain_core.callbacks.manager import CallbackManager, CallbackManagerForChainRun +from langchain_core.language_models import BaseLanguageModel +from langchain_core.prompts.base import BasePromptTemplate +from pydantic import Field + +from langchain_community.chains.graph_qa.prompts import ( + GRAPHDB_QA_PROMPT, + GRAPHDB_SPARQL_FIX_PROMPT, + GRAPHDB_SPARQL_GENERATION_PROMPT, +) +from langchain_community.graphs import OntotextGraphDBGraph + + +class OntotextGraphDBQAChain(Chain): + """Question-answering against Ontotext GraphDB + https://graphdb.ontotext.com/ by generating SPARQL queries. + + *Security note*: Make sure that the database connection uses credentials + that are narrowly-scoped to only include necessary permissions. + Failure to do so may result in data corruption or loss, since the calling + code may attempt commands that would result in deletion, mutation + of data if appropriately prompted or reading sensitive data if such + data is present in the database. + The best way to guard against such negative outcomes is to (as appropriate) + limit the permissions granted to the credentials used with this tool. + + See https://python.langchain.com/docs/security for more information. + """ + + graph: OntotextGraphDBGraph = Field(exclude=True) + sparql_generation_chain: LLMChain + sparql_fix_chain: LLMChain + max_fix_retries: int + qa_chain: LLMChain + input_key: str = "query" #: :meta private: + output_key: str = "result" #: :meta private: + + allow_dangerous_requests: bool = False + """Forced user opt-in to acknowledge that the chain can make dangerous requests. + + *Security note*: Make sure that the database connection uses credentials + that are narrowly-scoped to only include necessary permissions. + Failure to do so may result in data corruption or loss, since the calling + code may attempt commands that would result in deletion, mutation + of data if appropriately prompted or reading sensitive data if such + data is present in the database. + The best way to guard against such negative outcomes is to (as appropriate) + limit the permissions granted to the credentials used with this tool. + + See https://python.langchain.com/docs/security for more information. + """ + + def __init__(self, **kwargs: Any) -> None: + """Initialize the chain.""" + super().__init__(**kwargs) + if self.allow_dangerous_requests is not True: + raise ValueError( + "In order to use this chain, you must acknowledge that it can make " + "dangerous requests by setting `allow_dangerous_requests` to `True`." + "You must narrowly scope the permissions of the database connection " + "to only include necessary permissions. Failure to do so may result " + "in data corruption or loss or reading sensitive data if such data is " + "present in the database." + "Only use this chain if you understand the risks and have taken the " + "necessary precautions. " + "See https://python.langchain.com/docs/security for more information." + ) + + @property + def input_keys(self) -> List[str]: + return [self.input_key] + + @property + def output_keys(self) -> List[str]: + _output_keys = [self.output_key] + return _output_keys + + @classmethod + def from_llm( + cls, + llm: BaseLanguageModel, + *, + sparql_generation_prompt: BasePromptTemplate = GRAPHDB_SPARQL_GENERATION_PROMPT, + sparql_fix_prompt: BasePromptTemplate = GRAPHDB_SPARQL_FIX_PROMPT, + max_fix_retries: int = 5, + qa_prompt: BasePromptTemplate = GRAPHDB_QA_PROMPT, + **kwargs: Any, + ) -> OntotextGraphDBQAChain: + """Initialize from LLM.""" + sparql_generation_chain = LLMChain(llm=llm, prompt=sparql_generation_prompt) + sparql_fix_chain = LLMChain(llm=llm, prompt=sparql_fix_prompt) + max_fix_retries = max_fix_retries + qa_chain = LLMChain(llm=llm, prompt=qa_prompt) + return cls( + qa_chain=qa_chain, + sparql_generation_chain=sparql_generation_chain, + sparql_fix_chain=sparql_fix_chain, + max_fix_retries=max_fix_retries, + **kwargs, + ) + + def _call( + self, + inputs: Dict[str, Any], + run_manager: Optional[CallbackManagerForChainRun] = None, + ) -> Dict[str, str]: + """ + Generate a SPARQL query, use it to retrieve a response from GraphDB and answer + the question. + """ + _run_manager = run_manager or CallbackManagerForChainRun.get_noop_manager() + callbacks = _run_manager.get_child() + prompt = inputs[self.input_key] + ontology_schema = self.graph.get_schema + + sparql_generation_chain_result = self.sparql_generation_chain.invoke( + {"prompt": prompt, "schema": ontology_schema}, callbacks=callbacks + ) + generated_sparql = sparql_generation_chain_result[ + self.sparql_generation_chain.output_key + ] + + generated_sparql = self._get_prepared_sparql_query( + _run_manager, callbacks, generated_sparql, ontology_schema + ) + query_results = self._execute_query(generated_sparql) + + qa_chain_result = self.qa_chain.invoke( + {"prompt": prompt, "context": query_results}, callbacks=callbacks + ) + result = qa_chain_result[self.qa_chain.output_key] + return {self.output_key: result} + + def _get_prepared_sparql_query( + self, + _run_manager: CallbackManagerForChainRun, + callbacks: CallbackManager, + generated_sparql: str, + ontology_schema: str, + ) -> str: + try: + return self._prepare_sparql_query(_run_manager, generated_sparql) + except Exception as e: + retries = 0 + error_message = str(e) + self._log_invalid_sparql_query( + _run_manager, generated_sparql, error_message + ) + + while retries < self.max_fix_retries: + try: + sparql_fix_chain_result = self.sparql_fix_chain.invoke( + { + "error_message": error_message, + "generated_sparql": generated_sparql, + "schema": ontology_schema, + }, + callbacks=callbacks, + ) + generated_sparql = sparql_fix_chain_result[ + self.sparql_fix_chain.output_key + ] + return self._prepare_sparql_query(_run_manager, generated_sparql) + except Exception as e: + retries += 1 + parse_exception = str(e) + self._log_invalid_sparql_query( + _run_manager, generated_sparql, parse_exception + ) + + raise ValueError("The generated SPARQL query is invalid.") + + def _prepare_sparql_query( + self, _run_manager: CallbackManagerForChainRun, generated_sparql: str + ) -> str: + from rdflib.plugins.sparql import prepareQuery + + prepareQuery(generated_sparql) + self._log_prepared_sparql_query(_run_manager, generated_sparql) + return generated_sparql + + def _log_prepared_sparql_query( + self, _run_manager: CallbackManagerForChainRun, generated_query: str + ) -> None: + _run_manager.on_text("Generated SPARQL:", end="\n", verbose=self.verbose) + _run_manager.on_text( + generated_query, color="green", end="\n", verbose=self.verbose + ) + + def _log_invalid_sparql_query( + self, + _run_manager: CallbackManagerForChainRun, + generated_query: str, + error_message: str, + ) -> None: + _run_manager.on_text("Invalid SPARQL query: ", end="\n", verbose=self.verbose) + _run_manager.on_text( + generated_query, color="red", end="\n", verbose=self.verbose + ) + _run_manager.on_text( + "SPARQL Query Parse Error: ", end="\n", verbose=self.verbose + ) + _run_manager.on_text( + error_message, color="red", end="\n\n", verbose=self.verbose + ) + + def _execute_query(self, query: str) -> List[rdflib.query.ResultRow]: + try: + return self.graph.query(query) + except Exception: + raise ValueError("Failed to execute the generated SPARQL query.") diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/graph_qa/prompts.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/graph_qa/prompts.py new file mode 100644 index 0000000000000000000000000000000000000000..9077da3e00e3dc38dfce2a27bec4013756d9264f --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/graph_qa/prompts.py @@ -0,0 +1,468 @@ +# flake8: noqa +from langchain_core.prompts.prompt import PromptTemplate + +_DEFAULT_ENTITY_EXTRACTION_TEMPLATE = """Extract all entities from the following text. As a guideline, a proper noun is generally capitalized. You should definitely extract all names and places. + +Return the output as a single comma-separated list, or NONE if there is nothing of note to return. + +EXAMPLE +i'm trying to improve Langchain's interfaces, the UX, its integrations with various products the user might want ... a lot of stuff. +Output: Langchain +END OF EXAMPLE + +EXAMPLE +i'm trying to improve Langchain's interfaces, the UX, its integrations with various products the user might want ... a lot of stuff. I'm working with Sam. +Output: Langchain, Sam +END OF EXAMPLE + +Begin! + +{input} +Output:""" +ENTITY_EXTRACTION_PROMPT = PromptTemplate( + input_variables=["input"], template=_DEFAULT_ENTITY_EXTRACTION_TEMPLATE +) + +_DEFAULT_GRAPH_QA_TEMPLATE = """Use the following knowledge triplets to answer the question at the end. If you don't know the answer, just say that you don't know, don't try to make up an answer. + +{context} + +Question: {question} +Helpful Answer:""" +GRAPH_QA_PROMPT = PromptTemplate( + template=_DEFAULT_GRAPH_QA_TEMPLATE, input_variables=["context", "question"] +) + +CYPHER_GENERATION_TEMPLATE = """Task:Generate Cypher statement to query a graph database. +Instructions: +Use only the provided relationship types and properties in the schema. +Do not use any other relationship types or properties that are not provided. +Schema: +{schema} +Note: Do not include any explanations or apologies in your responses. +Do not respond to any questions that might ask anything else than for you to construct a Cypher statement. +Do not include any text except the generated Cypher statement. + +The question is: +{question}""" +CYPHER_GENERATION_PROMPT = PromptTemplate( + input_variables=["schema", "question"], template=CYPHER_GENERATION_TEMPLATE +) + +NEBULAGRAPH_EXTRA_INSTRUCTIONS = """ +Instructions: + +First, generate cypher then convert it to NebulaGraph Cypher dialect(rather than standard): +1. it requires explicit label specification only when referring to node properties: v.`Foo`.name +2. note explicit label specification is not needed for edge properties, so it's e.name instead of e.`Bar`.name +3. it uses double equals sign for comparison: `==` rather than `=` +For instance: +```diff +< MATCH (p:person)-[e:directed]->(m:movie) WHERE m.name = 'The Godfather II' +< RETURN p.name, e.year, m.name; +--- +> MATCH (p:`person`)-[e:directed]->(m:`movie`) WHERE m.`movie`.`name` == 'The Godfather II' +> RETURN p.`person`.`name`, e.year, m.`movie`.`name`; +```\n""" + +NGQL_GENERATION_TEMPLATE = CYPHER_GENERATION_TEMPLATE.replace( + "Generate Cypher", "Generate NebulaGraph Cypher" +).replace("Instructions:", NEBULAGRAPH_EXTRA_INSTRUCTIONS) + +NGQL_GENERATION_PROMPT = PromptTemplate( + input_variables=["schema", "question"], template=NGQL_GENERATION_TEMPLATE +) + +KUZU_EXTRA_INSTRUCTIONS = """ +Instructions: +Generate the Kùzu dialect of Cypher with the following rules in mind: +1. Do not omit the relationship pattern. Always use `()-[]->()` instead of `()->()`. +2. Do not include triple backticks ``` in your response. Return only Cypher. +3. Do not return any notes or comments in your response. +\n""" + +KUZU_GENERATION_TEMPLATE = CYPHER_GENERATION_TEMPLATE.replace( + "Generate Cypher", "Generate Kùzu Cypher" +).replace("Instructions:", KUZU_EXTRA_INSTRUCTIONS) + +KUZU_GENERATION_PROMPT = PromptTemplate( + input_variables=["schema", "question"], template=KUZU_GENERATION_TEMPLATE +) + +GREMLIN_GENERATION_TEMPLATE = CYPHER_GENERATION_TEMPLATE.replace("Cypher", "Gremlin") + +GREMLIN_GENERATION_PROMPT = PromptTemplate( + input_variables=["schema", "question"], template=GREMLIN_GENERATION_TEMPLATE +) + +CYPHER_QA_TEMPLATE = """You are an assistant that helps to form nice and human understandable answers. +The information part contains the provided information that you must use to construct an answer. +The provided information is authoritative, you must never doubt it or try to use your internal knowledge to correct it. +Make the answer sound as a response to the question. Do not mention that you based the result on the given information. +Here is an example: + +Question: Which managers own Neo4j stocks? +Context:[manager:CTL LLC, manager:JANE STREET GROUP LLC] +Helpful Answer: CTL LLC, JANE STREET GROUP LLC owns Neo4j stocks. + +Follow this example when generating answers. +If the provided information is empty, say that you don't know the answer. +Information: +{context} + +Question: {question} +Helpful Answer:""" +CYPHER_QA_PROMPT = PromptTemplate( + input_variables=["context", "question"], template=CYPHER_QA_TEMPLATE +) + +SPARQL_INTENT_TEMPLATE = """Task: Identify the intent of a prompt and return the appropriate SPARQL query type. +You are an assistant that distinguishes different types of prompts and returns the corresponding SPARQL query types. +Consider only the following query types: +* SELECT: this query type corresponds to questions +* UPDATE: this query type corresponds to all requests for deleting, inserting, or changing triples +Note: Be as concise as possible. +Do not include any explanations or apologies in your responses. +Do not respond to any questions that ask for anything else than for you to identify a SPARQL query type. +Do not include any unnecessary whitespaces or any text except the query type, i.e., either return 'SELECT' or 'UPDATE'. + +The prompt is: +{prompt} +Helpful Answer:""" +SPARQL_INTENT_PROMPT = PromptTemplate( + input_variables=["prompt"], template=SPARQL_INTENT_TEMPLATE +) + +SPARQL_GENERATION_SELECT_TEMPLATE = """Task: Generate a SPARQL SELECT statement for querying a graph database. +For instance, to find all email addresses of John Doe, the following query in backticks would be suitable: +``` +PREFIX foaf: +SELECT ?email +WHERE {{ + ?person foaf:name "John Doe" . + ?person foaf:mbox ?email . +}} +``` +Instructions: +Use only the node types and properties provided in the schema. +Do not use any node types and properties that are not explicitly provided. +Include all necessary prefixes. +Schema: +{schema} +Note: Be as concise as possible. +Do not include any explanations or apologies in your responses. +Do not respond to any questions that ask for anything else than for you to construct a SPARQL query. +Do not include any text except the SPARQL query generated. + +The question is: +{prompt}""" +SPARQL_GENERATION_SELECT_PROMPT = PromptTemplate( + input_variables=["schema", "prompt"], template=SPARQL_GENERATION_SELECT_TEMPLATE +) + +SPARQL_GENERATION_UPDATE_TEMPLATE = """Task: Generate a SPARQL UPDATE statement for updating a graph database. +For instance, to add 'jane.doe@foo.bar' as a new email address for Jane Doe, the following query in backticks would be suitable: +``` +PREFIX foaf: +INSERT {{ + ?person foaf:mbox . +}} +WHERE {{ + ?person foaf:name "Jane Doe" . +}} +``` +Instructions: +Make the query as short as possible and avoid adding unnecessary triples. +Use only the node types and properties provided in the schema. +Do not use any node types and properties that are not explicitly provided. +Include all necessary prefixes. +Schema: +{schema} +Note: Be as concise as possible. +Do not include any explanations or apologies in your responses. +Do not respond to any questions that ask for anything else than for you to construct a SPARQL query. +Return only the generated SPARQL query, nothing else. + +The information to be inserted is: +{prompt}""" +SPARQL_GENERATION_UPDATE_PROMPT = PromptTemplate( + input_variables=["schema", "prompt"], template=SPARQL_GENERATION_UPDATE_TEMPLATE +) + +SPARQL_QA_TEMPLATE = """Task: Generate a natural language response from the results of a SPARQL query. +You are an assistant that creates well-written and human understandable answers. +The information part contains the information provided, which you can use to construct an answer. +The information provided is authoritative, you must never doubt it or try to use your internal knowledge to correct it. +Make your response sound like the information is coming from an AI assistant, but don't add any information. +Information: +{context} + +Question: {prompt} +Helpful Answer:""" +SPARQL_QA_PROMPT = PromptTemplate( + input_variables=["context", "prompt"], template=SPARQL_QA_TEMPLATE +) + +GRAPHDB_SPARQL_GENERATION_TEMPLATE = """ +Write a SPARQL SELECT query for querying a graph database. +The ontology schema delimited by triple backticks in Turtle format is: +``` +{schema} +``` +Use only the classes and properties provided in the schema to construct the SPARQL query. +Do not use any classes or properties that are not explicitly provided in the SPARQL query. +Include all necessary prefixes. +Do not include any explanations or apologies in your responses. +Do not wrap the query in backticks. +Do not include any text except the SPARQL query generated. +The question delimited by triple backticks is: +``` +{prompt} +``` +""" +GRAPHDB_SPARQL_GENERATION_PROMPT = PromptTemplate( + input_variables=["schema", "prompt"], + template=GRAPHDB_SPARQL_GENERATION_TEMPLATE, +) + +GRAPHDB_SPARQL_FIX_TEMPLATE = """ +This following SPARQL query delimited by triple backticks +``` +{generated_sparql} +``` +is not valid. +The error delimited by triple backticks is +``` +{error_message} +``` +Give me a correct version of the SPARQL query. +Do not change the logic of the query. +Do not include any explanations or apologies in your responses. +Do not wrap the query in backticks. +Do not include any text except the SPARQL query generated. +The ontology schema delimited by triple backticks in Turtle format is: +``` +{schema} +``` +""" + +GRAPHDB_SPARQL_FIX_PROMPT = PromptTemplate( + input_variables=["error_message", "generated_sparql", "schema"], + template=GRAPHDB_SPARQL_FIX_TEMPLATE, +) + +GRAPHDB_QA_TEMPLATE = """Task: Generate a natural language response from the results of a SPARQL query. +You are an assistant that creates well-written and human understandable answers. +The information part contains the information provided, which you can use to construct an answer. +The information provided is authoritative, you must never doubt it or try to use your internal knowledge to correct it. +Make your response sound like the information is coming from an AI assistant, but don't add any information. +Don't use internal knowledge to answer the question, just say you don't know if no information is available. +Information: +{context} + +Question: {prompt} +Helpful Answer:""" +GRAPHDB_QA_PROMPT = PromptTemplate( + input_variables=["context", "prompt"], template=GRAPHDB_QA_TEMPLATE +) + +AQL_GENERATION_TEMPLATE = """Task: Generate an ArangoDB Query Language (AQL) query from a User Input. + +You are an ArangoDB Query Language (AQL) expert responsible for translating a `User Input` into an ArangoDB Query Language (AQL) query. + +You are given an `ArangoDB Schema`. It is a JSON Object containing: +1. `Graph Schema`: Lists all Graphs within the ArangoDB Database Instance, along with their Edge Relationships. +2. `Collection Schema`: Lists all Collections within the ArangoDB Database Instance, along with their document/edge properties and a document/edge example. + +You may also be given a set of `AQL Query Examples` to help you create the `AQL Query`. If provided, the `AQL Query Examples` should be used as a reference, similar to how `ArangoDB Schema` should be used. + +Things you should do: +- Think step by step. +- Rely on `ArangoDB Schema` and `AQL Query Examples` (if provided) to generate the query. +- Begin the `AQL Query` by the `WITH` AQL keyword to specify all of the ArangoDB Collections required. +- Return the `AQL Query` wrapped in 3 backticks (```). +- Use only the provided relationship types and properties in the `ArangoDB Schema` and any `AQL Query Examples` queries. +- Only answer to requests related to generating an AQL Query. +- If a request is unrelated to generating AQL Query, say that you cannot help the user. + +Things you should not do: +- Do not use any properties/relationships that can't be inferred from the `ArangoDB Schema` or the `AQL Query Examples`. +- Do not include any text except the generated AQL Query. +- Do not provide explanations or apologies in your responses. +- Do not generate an AQL Query that removes or deletes any data. + +Under no circumstance should you generate an AQL Query that deletes any data whatsoever. + +ArangoDB Schema: +{adb_schema} + +AQL Query Examples (Optional): +{aql_examples} + +User Input: +{user_input} + +AQL Query: +""" + +AQL_GENERATION_PROMPT = PromptTemplate( + input_variables=["adb_schema", "aql_examples", "user_input"], + template=AQL_GENERATION_TEMPLATE, +) + +AQL_FIX_TEMPLATE = """Task: Address the ArangoDB Query Language (AQL) error message of an ArangoDB Query Language query. + +You are an ArangoDB Query Language (AQL) expert responsible for correcting the provided `AQL Query` based on the provided `AQL Error`. + +The `AQL Error` explains why the `AQL Query` could not be executed in the database. +The `AQL Error` may also contain the position of the error relative to the total number of lines of the `AQL Query`. +For example, 'error X at position 2:5' denotes that the error X occurs on line 2, column 5 of the `AQL Query`. + +You are also given the `ArangoDB Schema`. It is a JSON Object containing: +1. `Graph Schema`: Lists all Graphs within the ArangoDB Database Instance, along with their Edge Relationships. +2. `Collection Schema`: Lists all Collections within the ArangoDB Database Instance, along with their document/edge properties and a document/edge example. + +You will output the `Corrected AQL Query` wrapped in 3 backticks (```). Do not include any text except the Corrected AQL Query. + +Remember to think step by step. + +ArangoDB Schema: +{adb_schema} + +AQL Query: +{aql_query} + +AQL Error: +{aql_error} + +Corrected AQL Query: +""" + +AQL_FIX_PROMPT = PromptTemplate( + input_variables=[ + "adb_schema", + "aql_query", + "aql_error", + ], + template=AQL_FIX_TEMPLATE, +) + +AQL_QA_TEMPLATE = """Task: Generate a natural language `Summary` from the results of an ArangoDB Query Language query. + +You are an ArangoDB Query Language (AQL) expert responsible for creating a well-written `Summary` from the `User Input` and associated `AQL Result`. + +A user has executed an ArangoDB Query Language query, which has returned the AQL Result in JSON format. +You are responsible for creating an `Summary` based on the AQL Result. + +You are given the following information: +- `ArangoDB Schema`: contains a schema representation of the user's ArangoDB Database. +- `User Input`: the original question/request of the user, which has been translated into an AQL Query. +- `AQL Query`: the AQL equivalent of the `User Input`, translated by another AI Model. Should you deem it to be incorrect, suggest a different AQL Query. +- `AQL Result`: the JSON output returned by executing the `AQL Query` within the ArangoDB Database. + +Remember to think step by step. + +Your `Summary` should sound like it is a response to the `User Input`. +Your `Summary` should not include any mention of the `AQL Query` or the `AQL Result`. + +ArangoDB Schema: +{adb_schema} + +User Input: +{user_input} + +AQL Query: +{aql_query} + +AQL Result: +{aql_result} +""" +AQL_QA_PROMPT = PromptTemplate( + input_variables=["adb_schema", "user_input", "aql_query", "aql_result"], + template=AQL_QA_TEMPLATE, +) + + +NEPTUNE_OPENCYPHER_EXTRA_INSTRUCTIONS = """ +Instructions: +Generate the query in openCypher format and follow these rules: +Do not use `NONE`, `ALL` or `ANY` predicate functions, rather use list comprehensions. +Do not use `REDUCE` function. Rather use a combination of list comprehension and the `UNWIND` clause to achieve similar results. +Do not use `FOREACH` clause. Rather use a combination of `WITH` and `UNWIND` clauses to achieve similar results.{extra_instructions} +\n""" + +NEPTUNE_OPENCYPHER_GENERATION_TEMPLATE = CYPHER_GENERATION_TEMPLATE.replace( + "Instructions:", NEPTUNE_OPENCYPHER_EXTRA_INSTRUCTIONS +) + +NEPTUNE_OPENCYPHER_GENERATION_PROMPT = PromptTemplate( + input_variables=["schema", "question", "extra_instructions"], + template=NEPTUNE_OPENCYPHER_GENERATION_TEMPLATE, +) + +NEPTUNE_OPENCYPHER_GENERATION_SIMPLE_TEMPLATE = """ +Write an openCypher query to answer the following question. Do not explain the answer. Only return the query.{extra_instructions} +Question: "{question}". +Here is the property graph schema: +{schema} +\n""" + +NEPTUNE_OPENCYPHER_GENERATION_SIMPLE_PROMPT = PromptTemplate( + input_variables=["schema", "question", "extra_instructions"], + template=NEPTUNE_OPENCYPHER_GENERATION_SIMPLE_TEMPLATE, +) + +MEMGRAPH_GENERATION_TEMPLATE = """Your task is to directly translate natural language inquiry into precise and executable Cypher query for Memgraph database. +You will utilize a provided database schema to understand the structure, nodes and relationships within the Memgraph database. +Instructions: +- Use provided node and relationship labels and property names from the +schema which describes the database's structure. Upon receiving a user +question, synthesize the schema to craft a precise Cypher query that +directly corresponds to the user's intent. +- Generate valid executable Cypher queries on top of Memgraph database. +Any explanation, context, or additional information that is not a part +of the Cypher query syntax should be omitted entirely. +- Use Memgraph MAGE procedures instead of Neo4j APOC procedures. +- Do not include any explanations or apologies in your responses. +- Do not include any text except the generated Cypher statement. +- For queries that ask for information or functionalities outside the direct +generation of Cypher queries, use the Cypher query format to communicate +limitations or capabilities. For example: RETURN "I am designed to generate +Cypher queries based on the provided schema only." +Schema: +{schema} + +With all the above information and instructions, generate Cypher query for the +user question. + +The question is: +{question}""" + +MEMGRAPH_GENERATION_PROMPT = PromptTemplate( + input_variables=["schema", "question"], template=MEMGRAPH_GENERATION_TEMPLATE +) + + +MEMGRAPH_QA_TEMPLATE = """Your task is to form nice and human +understandable answers. The information part contains the provided +information that you must use to construct an answer. +The provided information is authoritative, you must never doubt it or try to +use your internal knowledge to correct it. Make the answer sound as a +response to the question. Do not mention that you based the result on the +given information. Here is an example: + +Question: Which managers own Neo4j stocks? +Context:[manager:CTL LLC, manager:JANE STREET GROUP LLC] +Helpful Answer: CTL LLC, JANE STREET GROUP LLC owns Neo4j stocks. + +Follow this example when generating answers. If the provided information is +empty, say that you don't know the answer. + +Information: +{context} + +Question: {question} +Helpful Answer:""" +MEMGRAPH_QA_PROMPT = PromptTemplate( + input_variables=["context", "question"], template=MEMGRAPH_QA_TEMPLATE +) diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/graph_qa/sparql.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/graph_qa/sparql.py new file mode 100644 index 0000000000000000000000000000000000000000..56ed5cc9b57364c6891f9b61d41b0a8c2a471c59 --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/graph_qa/sparql.py @@ -0,0 +1,184 @@ +""" +Question answering over an RDF or OWL graph using SPARQL. +""" + +from __future__ import annotations + +from typing import Any, Dict, List, Optional + +from langchain_classic.chains.base import Chain +from langchain_classic.chains.llm import LLMChain +from langchain_core.callbacks import CallbackManagerForChainRun +from langchain_core.language_models import BaseLanguageModel +from langchain_core.prompts.base import BasePromptTemplate +from pydantic import Field + +from langchain_community.chains.graph_qa.prompts import ( + SPARQL_GENERATION_SELECT_PROMPT, + SPARQL_GENERATION_UPDATE_PROMPT, + SPARQL_INTENT_PROMPT, + SPARQL_QA_PROMPT, +) +from langchain_community.graphs.rdf_graph import RdfGraph + + +class GraphSparqlQAChain(Chain): + """Question-answering against an RDF or OWL graph by generating SPARQL statements. + + *Security note*: Make sure that the database connection uses credentials + that are narrowly-scoped to only include necessary permissions. + Failure to do so may result in data corruption or loss, since the calling + code may attempt commands that would result in deletion, mutation + of data if appropriately prompted or reading sensitive data if such + data is present in the database. + The best way to guard against such negative outcomes is to (as appropriate) + limit the permissions granted to the credentials used with this tool. + + See https://python.langchain.com/docs/security for more information. + """ + + graph: RdfGraph = Field(exclude=True) + sparql_generation_select_chain: LLMChain + sparql_generation_update_chain: LLMChain + sparql_intent_chain: LLMChain + qa_chain: LLMChain + return_sparql_query: bool = False + input_key: str = "query" #: :meta private: + output_key: str = "result" #: :meta private: + sparql_query_key: str = "sparql_query" #: :meta private: + + allow_dangerous_requests: bool = False + """Forced user opt-in to acknowledge that the chain can make dangerous requests. + + *Security note*: Make sure that the database connection uses credentials + that are narrowly-scoped to only include necessary permissions. + Failure to do so may result in data corruption or loss, since the calling + code may attempt commands that would result in deletion, mutation + of data if appropriately prompted or reading sensitive data if such + data is present in the database. + The best way to guard against such negative outcomes is to (as appropriate) + limit the permissions granted to the credentials used with this tool. + + See https://python.langchain.com/docs/security for more information. + """ + + def __init__(self, **kwargs: Any) -> None: + """Initialize the chain.""" + super().__init__(**kwargs) + if self.allow_dangerous_requests is not True: + raise ValueError( + "In order to use this chain, you must acknowledge that it can make " + "dangerous requests by setting `allow_dangerous_requests` to `True`." + "You must narrowly scope the permissions of the database connection " + "to only include necessary permissions. Failure to do so may result " + "in data corruption or loss or reading sensitive data if such data is " + "present in the database." + "Only use this chain if you understand the risks and have taken the " + "necessary precautions. " + "See https://python.langchain.com/docs/security for more information." + ) + + @property + def input_keys(self) -> List[str]: + """Return the input keys. + + :meta private: + """ + return [self.input_key] + + @property + def output_keys(self) -> List[str]: + """Return the output keys. + + :meta private: + """ + _output_keys = [self.output_key] + return _output_keys + + @classmethod + def from_llm( + cls, + llm: BaseLanguageModel, + *, + qa_prompt: BasePromptTemplate = SPARQL_QA_PROMPT, + sparql_select_prompt: BasePromptTemplate = SPARQL_GENERATION_SELECT_PROMPT, + sparql_update_prompt: BasePromptTemplate = SPARQL_GENERATION_UPDATE_PROMPT, + sparql_intent_prompt: BasePromptTemplate = SPARQL_INTENT_PROMPT, + **kwargs: Any, + ) -> GraphSparqlQAChain: + """Initialize from LLM.""" + qa_chain = LLMChain(llm=llm, prompt=qa_prompt) + sparql_generation_select_chain = LLMChain(llm=llm, prompt=sparql_select_prompt) + sparql_generation_update_chain = LLMChain(llm=llm, prompt=sparql_update_prompt) + sparql_intent_chain = LLMChain(llm=llm, prompt=sparql_intent_prompt) + + return cls( + qa_chain=qa_chain, + sparql_generation_select_chain=sparql_generation_select_chain, + sparql_generation_update_chain=sparql_generation_update_chain, + sparql_intent_chain=sparql_intent_chain, + **kwargs, + ) + + def _call( + self, + inputs: Dict[str, Any], + run_manager: Optional[CallbackManagerForChainRun] = None, + ) -> Dict[str, str]: + """ + Generate SPARQL query, use it to retrieve a response from the gdb and answer + the question. + """ + _run_manager = run_manager or CallbackManagerForChainRun.get_noop_manager() + callbacks = _run_manager.get_child() + prompt = inputs[self.input_key] + + _intent = self.sparql_intent_chain.run({"prompt": prompt}, callbacks=callbacks) + intent = _intent.strip() + + if "SELECT" in intent and "UPDATE" not in intent: + sparql_generation_chain = self.sparql_generation_select_chain + intent = "SELECT" + elif "UPDATE" in intent and "SELECT" not in intent: + sparql_generation_chain = self.sparql_generation_update_chain + intent = "UPDATE" + else: + raise ValueError( + "I am sorry, but this prompt seems to fit none of the currently " + "supported SPARQL query types, i.e., SELECT and UPDATE." + ) + + _run_manager.on_text("Identified intent:", end="\n", verbose=self.verbose) + _run_manager.on_text(intent, color="green", end="\n", verbose=self.verbose) + + generated_sparql = sparql_generation_chain.run( + {"prompt": prompt, "schema": self.graph.get_schema}, callbacks=callbacks + ) + + _run_manager.on_text("Generated SPARQL:", end="\n", verbose=self.verbose) + _run_manager.on_text( + generated_sparql, color="green", end="\n", verbose=self.verbose + ) + + if intent == "SELECT": + context = self.graph.query(generated_sparql) + + _run_manager.on_text("Full Context:", end="\n", verbose=self.verbose) + _run_manager.on_text( + str(context), color="green", end="\n", verbose=self.verbose + ) + result = self.qa_chain( + {"prompt": prompt, "context": context}, + callbacks=callbacks, + ) + res = result[self.qa_chain.output_key] + elif intent == "UPDATE": + self.graph.update(generated_sparql) + res = "Successfully inserted triples into the graph." + else: + raise ValueError("Unsupported SPARQL query type.") + + chain_result: Dict[str, Any] = {self.output_key: res} + if self.return_sparql_query: + chain_result[self.sparql_query_key] = generated_sparql + return chain_result diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/natbot/__init__.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/natbot/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..aeec86f8bf21976881339ffa2546a4b88ea538e8 --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/natbot/__init__.py @@ -0,0 +1,8 @@ +"""Implement a GPT-3 driven browser. + +Heavily influenced from https://github.com/nat/natbot +""" + +from langchain_community.chains.natbot.base import NatBotChain + +__all__ = ["NatBotChain"] diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/natbot/base.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/natbot/base.py new file mode 100644 index 0000000000000000000000000000000000000000..609d5c281032a1f9edf5a61aebe53fe7f8d47b1c --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/natbot/base.py @@ -0,0 +1,3 @@ +from langchain_classic.chains import NatBotChain + +__all__ = ["NatBotChain"] diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/natbot/crawler.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/natbot/crawler.py new file mode 100644 index 0000000000000000000000000000000000000000..794ea0f69f922e6db5f652acb2686b150da397f9 --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/natbot/crawler.py @@ -0,0 +1,7 @@ +from langchain_classic.chains.natbot.crawler import ( + Crawler, + ElementInViewPort, + black_listed_elements, +) + +__all__ = ["ElementInViewPort", "Crawler", "black_listed_elements"] diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/natbot/prompt.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/natbot/prompt.py new file mode 100644 index 0000000000000000000000000000000000000000..0147ee81f138ef2755713fba03ca0288afa02d5f --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/natbot/prompt.py @@ -0,0 +1,3 @@ +from langchain_classic.chains.natbot.prompt import PROMPT + +__all__ = ["PROMPT"] diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/openapi/__init__.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/openapi/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/openapi/chain.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/openapi/chain.py new file mode 100644 index 0000000000000000000000000000000000000000..3b9ebe9a3678f13f3fd126cadf245e6187448a71 --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/openapi/chain.py @@ -0,0 +1,230 @@ +"""Chain that makes API calls and summarizes the responses to answer a question.""" + +from __future__ import annotations + +import json +from typing import Any, Dict, List, NamedTuple, Optional, cast + +from langchain_classic.chains.api.openapi.requests_chain import APIRequesterChain +from langchain_classic.chains.api.openapi.response_chain import APIResponderChain +from langchain_classic.chains.base import Chain +from langchain_classic.chains.llm import LLMChain +from langchain_core.callbacks import CallbackManagerForChainRun, Callbacks +from langchain_core.language_models import BaseLanguageModel +from pydantic import BaseModel, Field +from requests import Response + +from langchain_community.tools.openapi.utils.api_models import APIOperation +from langchain_community.utilities.requests import Requests + + +class _ParamMapping(NamedTuple): + """Mapping from parameter name to parameter value.""" + + query_params: List[str] + body_params: List[str] + path_params: List[str] + + +class OpenAPIEndpointChain(Chain, BaseModel): + """Chain interacts with an OpenAPI endpoint using natural language.""" + + api_request_chain: LLMChain + api_response_chain: Optional[LLMChain] = None + api_operation: APIOperation + requests: Requests = Field(exclude=True, default_factory=Requests) + param_mapping: _ParamMapping = Field(alias="param_mapping") + return_intermediate_steps: bool = False + instructions_key: str = "instructions" #: :meta private: + output_key: str = "output" #: :meta private: + max_text_length: Optional[int] = Field(ge=0) #: :meta private: + + @property + def input_keys(self) -> List[str]: + """Expect input key. + + :meta private: + """ + return [self.instructions_key] + + @property + def output_keys(self) -> List[str]: + """Expect output key. + + :meta private: + """ + if not self.return_intermediate_steps: + return [self.output_key] + else: + return [self.output_key, "intermediate_steps"] + + def _construct_path(self, args: Dict[str, str]) -> str: + """Construct the path from the deserialized input.""" + path = self.api_operation.base_url + self.api_operation.path + for param in self.param_mapping.path_params: + path = path.replace(f"{{{param}}}", str(args.pop(param, ""))) + return path + + def _extract_query_params(self, args: Dict[str, str]) -> Dict[str, str]: + """Extract the query params from the deserialized input.""" + query_params = {} + for param in self.param_mapping.query_params: + if param in args: + query_params[param] = args.pop(param) + return query_params + + def _extract_body_params(self, args: Dict[str, str]) -> Optional[Dict[str, str]]: + """Extract the request body params from the deserialized input.""" + body_params = None + if self.param_mapping.body_params: + body_params = {} + for param in self.param_mapping.body_params: + if param in args: + body_params[param] = args.pop(param) + return body_params + + def deserialize_json_input(self, serialized_args: str) -> dict: + """Use the serialized typescript dictionary. + + Resolve the path, query params dict, and optional requestBody dict. + """ + args: dict = json.loads(serialized_args) + path = self._construct_path(args) + body_params = self._extract_body_params(args) + query_params = self._extract_query_params(args) + return { + "url": path, + "data": body_params, + "params": query_params, + } + + def _get_output(self, output: str, intermediate_steps: dict) -> dict: + """Return the output from the API call.""" + if self.return_intermediate_steps: + return { + self.output_key: output, + "intermediate_steps": intermediate_steps, + } + else: + return {self.output_key: output} + + def _call( + self, + inputs: Dict[str, Any], + run_manager: Optional[CallbackManagerForChainRun] = None, + ) -> Dict[str, str]: + _run_manager = run_manager or CallbackManagerForChainRun.get_noop_manager() + intermediate_steps = {} + instructions = inputs[self.instructions_key] + instructions = instructions[: self.max_text_length] + _api_arguments = self.api_request_chain.predict_and_parse( + instructions=instructions, callbacks=_run_manager.get_child() + ) + api_arguments = cast(str, _api_arguments) + intermediate_steps["request_args"] = api_arguments + _run_manager.on_text( + api_arguments, color="green", end="\n", verbose=self.verbose + ) + if api_arguments.startswith("ERROR"): + return self._get_output(api_arguments, intermediate_steps) + elif api_arguments.startswith("MESSAGE:"): + return self._get_output( + api_arguments[len("MESSAGE:") :], intermediate_steps + ) + try: + request_args = self.deserialize_json_input(api_arguments) + method = getattr(self.requests, self.api_operation.method.value) + api_response: Response = method(**request_args) + if api_response.status_code != 200: + method_str = str(self.api_operation.method.value) + response_text = ( + f"{api_response.status_code}: {api_response.reason}" + + f"\nFor {method_str.upper()} {request_args['url']}\n" + + f"Called with args: {request_args['params']}" + ) + else: + response_text = api_response.text + except Exception as e: + response_text = f"Error with message {str(e)}" + response_text = response_text[: self.max_text_length] + intermediate_steps["response_text"] = response_text + _run_manager.on_text( + response_text, color="blue", end="\n", verbose=self.verbose + ) + if self.api_response_chain is not None: + _answer = self.api_response_chain.predict_and_parse( + response=response_text, + instructions=instructions, + callbacks=_run_manager.get_child(), + ) + answer = cast(str, _answer) + _run_manager.on_text(answer, color="yellow", end="\n", verbose=self.verbose) + return self._get_output(answer, intermediate_steps) + else: + return self._get_output(response_text, intermediate_steps) + + @classmethod + def from_url_and_method( + cls, + spec_url: str, + path: str, + method: str, + llm: BaseLanguageModel, + requests: Optional[Requests] = None, + return_intermediate_steps: bool = False, + **kwargs: Any, + # TODO: Handle async + ) -> "OpenAPIEndpointChain": + """Create an OpenAPIEndpoint from a spec at the specified url.""" + operation = APIOperation.from_openapi_url(spec_url, path, method) + return cls.from_api_operation( + operation, + requests=requests, + llm=llm, + return_intermediate_steps=return_intermediate_steps, + **kwargs, + ) + + @classmethod + def from_api_operation( + cls, + operation: APIOperation, + llm: BaseLanguageModel, + requests: Optional[Requests] = None, + verbose: bool = False, + return_intermediate_steps: bool = False, + raw_response: bool = False, + callbacks: Callbacks = None, + **kwargs: Any, + # TODO: Handle async + ) -> "OpenAPIEndpointChain": + """Create an OpenAPIEndpointChain from an operation and a spec.""" + param_mapping = _ParamMapping( + query_params=operation.query_params, + body_params=operation.body_params, + path_params=operation.path_params, + ) + requests_chain = APIRequesterChain.from_llm_and_typescript( + llm, + typescript_definition=operation.to_typescript(), + verbose=verbose, + callbacks=callbacks, + ) + if raw_response: + response_chain = None + else: + response_chain = APIResponderChain.from_llm( + llm, verbose=verbose, callbacks=callbacks + ) + _requests = requests or Requests() + return cls( + api_request_chain=requests_chain, + api_response_chain=response_chain, + api_operation=operation, + requests=_requests, + param_mapping=param_mapping, + verbose=verbose, + return_intermediate_steps=return_intermediate_steps, + callbacks=callbacks, + **kwargs, + ) diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/openapi/prompts.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/openapi/prompts.py new file mode 100644 index 0000000000000000000000000000000000000000..84e5a2baee986bf3dc69d708bebe5c7e8a522ceb --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/openapi/prompts.py @@ -0,0 +1,57 @@ +# flake8: noqa +REQUEST_TEMPLATE = """You are a helpful AI Assistant. Please provide JSON arguments to agentFunc() based on the user's instructions. + +API_SCHEMA: ```typescript +{schema} +``` + +USER_INSTRUCTIONS: "{instructions}" + +Your arguments must be plain json provided in a markdown block: + +ARGS: ```json +{{valid json conforming to API_SCHEMA}} +``` + +Example +----- + +ARGS: ```json +{{"foo": "bar", "baz": {{"qux": "quux"}}}} +``` + +The block must be no more than 1 line long, and all arguments must be valid JSON. All string arguments must be wrapped in double quotes. +You MUST strictly comply to the types indicated by the provided schema, including all required args. + +If you don't have sufficient information to call the function due to things like requiring specific uuid's, you can reply with the following message: + +Message: ```text +Concise response requesting the additional information that would make calling the function successful. +``` + +Begin +----- +ARGS: +""" +RESPONSE_TEMPLATE = """You are a helpful AI assistant trained to answer user queries from API responses. +You attempted to call an API, which resulted in: +API_RESPONSE: {response} + +USER_COMMENT: "{instructions}" + + +If the API_RESPONSE can answer the USER_COMMENT respond with the following markdown json block: +Response: ```json +{{"response": "Human-understandable synthesis of the API_RESPONSE"}} +``` + +Otherwise respond with the following markdown json block: +Response Error: ```json +{{"response": "What you did and a concise statement of the resulting error. If it can be easily fixed, provide a suggestion."}} +``` + +You MUST respond as a markdown json code block. The person you are responding to CANNOT see the API_RESPONSE, so if there is any relevant information there you must include it in your response. + +Begin: +--- +""" diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/openapi/requests_chain.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/openapi/requests_chain.py new file mode 100644 index 0000000000000000000000000000000000000000..f6102f180f97e0744ccc7f8ae8fd4b7e8c2127d6 --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/openapi/requests_chain.py @@ -0,0 +1,62 @@ +"""request parser.""" + +import json +import re +from typing import Any + +from langchain_classic.chains.api.openapi.prompts import REQUEST_TEMPLATE +from langchain_classic.chains.llm import LLMChain +from langchain_core.language_models import BaseLanguageModel +from langchain_core.output_parsers import BaseOutputParser +from langchain_core.prompts.prompt import PromptTemplate + + +class APIRequesterOutputParser(BaseOutputParser): + """Parse the request and error tags.""" + + def _load_json_block(self, serialized_block: str) -> str: + try: + return json.dumps(json.loads(serialized_block, strict=False)) + except json.JSONDecodeError: + return "ERROR serializing request." + + def parse(self, llm_output: str) -> str: + """Parse the request and error tags.""" + + json_match = re.search(r"```json(.*?)```", llm_output, re.DOTALL) + if json_match: + return self._load_json_block(json_match.group(1).strip()) + message_match = re.search(r"```text(.*?)```", llm_output, re.DOTALL) + if message_match: + return f"MESSAGE: {message_match.group(1).strip()}" + return "ERROR making request" + + @property + def _type(self) -> str: + return "api_requester" + + +class APIRequesterChain(LLMChain): + """Get the request parser.""" + + @classmethod + def is_lc_serializable(cls) -> bool: + return False + + @classmethod + def from_llm_and_typescript( + cls, + llm: BaseLanguageModel, + typescript_definition: str, + verbose: bool = True, + **kwargs: Any, + ) -> LLMChain: + """Get the request parser.""" + output_parser = APIRequesterOutputParser() + prompt = PromptTemplate( + template=REQUEST_TEMPLATE, + output_parser=output_parser, + partial_variables={"schema": typescript_definition}, + input_variables=["instructions"], + ) + return cls(prompt=prompt, llm=llm, verbose=verbose, **kwargs) diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/openapi/response_chain.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/openapi/response_chain.py new file mode 100644 index 0000000000000000000000000000000000000000..3c3ec0ac9ce8ae404e0c3ae22ee34636b9b44527 --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/openapi/response_chain.py @@ -0,0 +1,57 @@ +"""Response parser.""" + +import json +import re +from typing import Any + +from langchain_classic.chains.api.openapi.prompts import RESPONSE_TEMPLATE +from langchain_classic.chains.llm import LLMChain +from langchain_core.language_models import BaseLanguageModel +from langchain_core.output_parsers import BaseOutputParser +from langchain_core.prompts.prompt import PromptTemplate + + +class APIResponderOutputParser(BaseOutputParser): + """Parse the response and error tags.""" + + def _load_json_block(self, serialized_block: str) -> str: + try: + response_content = json.loads(serialized_block, strict=False) + return response_content.get("response", "ERROR parsing response.") + except json.JSONDecodeError: + return "ERROR parsing response." + except: + raise + + def parse(self, llm_output: str) -> str: + """Parse the response and error tags.""" + json_match = re.search(r"```json(.*?)```", llm_output, re.DOTALL) + if json_match: + return self._load_json_block(json_match.group(1).strip()) + else: + raise ValueError(f"No response found in output: {llm_output}.") + + @property + def _type(self) -> str: + return "api_responder" + + +class APIResponderChain(LLMChain): + """Get the response parser.""" + + @classmethod + def is_lc_serializable(cls) -> bool: + return False + + @classmethod + def from_llm( + cls, llm: BaseLanguageModel, verbose: bool = True, **kwargs: Any + ) -> LLMChain: + """Get the response parser.""" + output_parser = APIResponderOutputParser() + prompt = PromptTemplate( + template=RESPONSE_TEMPLATE, + output_parser=output_parser, + input_variables=["response", "instructions"], + ) + return cls(prompt=prompt, llm=llm, verbose=verbose, **kwargs) diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/pebblo_retrieval/__init__.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/pebblo_retrieval/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/pebblo_retrieval/__pycache__/base.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/pebblo_retrieval/__pycache__/base.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..dda5209f2e5d0f5985aceac80562673c60bac8d4 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/pebblo_retrieval/__pycache__/base.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/pebblo_retrieval/__pycache__/enforcement_filters.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/pebblo_retrieval/__pycache__/enforcement_filters.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ed3cd6b99ec1e86b26c3343f300fb937387df5c6 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/pebblo_retrieval/__pycache__/enforcement_filters.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/pebblo_retrieval/__pycache__/models.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/pebblo_retrieval/__pycache__/models.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e5ff808f246164d72d1458c9c0c4a488429e7b3a Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/pebblo_retrieval/__pycache__/models.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/pebblo_retrieval/__pycache__/utilities.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/pebblo_retrieval/__pycache__/utilities.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7c0687c3d0a49fa4f03a9fd7e7207037fdb6f1b8 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/pebblo_retrieval/__pycache__/utilities.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/pebblo_retrieval/base.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/pebblo_retrieval/base.py new file mode 100644 index 0000000000000000000000000000000000000000..29ae7ba2a56ae3f834fedfb9883b0385d4f0d3f2 --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/pebblo_retrieval/base.py @@ -0,0 +1,386 @@ +""" +Pebblo Retrieval Chain with Identity & Semantic Enforcement for question-answering +against a vector database. +""" + +import datetime +import inspect +import logging +from importlib.metadata import version +from typing import Any, Dict, List, Optional + +from langchain_classic.chains.base import Chain +from langchain_classic.chains.combine_documents.base import BaseCombineDocumentsChain +from langchain_core.callbacks import ( + AsyncCallbackManagerForChainRun, + CallbackManagerForChainRun, +) +from langchain_core.documents import Document +from langchain_core.language_models import BaseLanguageModel +from langchain_core.vectorstores import VectorStoreRetriever +from pydantic import ConfigDict, Field, validator + +from langchain_community.chains.pebblo_retrieval.enforcement_filters import ( + SUPPORTED_VECTORSTORES, + set_enforcement_filters, +) +from langchain_community.chains.pebblo_retrieval.models import ( + App, + AuthContext, + ChainInfo, + Framework, + Model, + SemanticContext, + VectorDB, +) +from langchain_community.chains.pebblo_retrieval.utilities import ( + PLUGIN_VERSION, + PebbloRetrievalAPIWrapper, + get_runtime, +) + +logger = logging.getLogger(__name__) + + +class PebbloRetrievalQA(Chain): + """ + Retrieval Chain with Identity & Semantic Enforcement for question-answering + against a vector database. + """ + + combine_documents_chain: BaseCombineDocumentsChain + """Chain to use to combine the documents.""" + input_key: str = "query" #: :meta private: + output_key: str = "result" #: :meta private: + return_source_documents: bool = False + """Return the source documents or not.""" + + retriever: VectorStoreRetriever = Field(exclude=True) + """VectorStore to use for retrieval.""" + auth_context_key: str = "auth_context" #: :meta private: + """Authentication context for identity enforcement.""" + semantic_context_key: str = "semantic_context" #: :meta private: + """Semantic context for semantic enforcement.""" + app_name: str #: :meta private: + """App name.""" + owner: str #: :meta private: + """Owner of app.""" + description: str #: :meta private: + """Description of app.""" + api_key: Optional[str] = None #: :meta private: + """Pebblo cloud API key for app.""" + classifier_url: Optional[str] = None #: :meta private: + """Classifier endpoint.""" + classifier_location: str = "local" #: :meta private: + """Classifier location. It could be either of 'local' or 'pebblo-cloud'.""" + _discover_sent: bool = False #: :meta private: + """Flag to check if discover payload has been sent.""" + enable_prompt_gov: bool = True #: :meta private: + """Flag to check if prompt governance is enabled or not""" + pb_client: PebbloRetrievalAPIWrapper = Field( + default_factory=PebbloRetrievalAPIWrapper + ) + """Pebblo Retrieval API client""" + + def _call( + self, + inputs: Dict[str, Any], + run_manager: Optional[CallbackManagerForChainRun] = None, + ) -> Dict[str, Any]: + """Run get_relevant_text and llm on input query. + + If chain has 'return_source_documents' as 'True', returns + the retrieved documents as well under the key 'source_documents'. + + Example: + .. code-block:: python + + res = indexqa({'query': 'This is my query'}) + answer, docs = res['result'], res['source_documents'] + """ + prompt_time = datetime.datetime.now().isoformat() + _run_manager = run_manager or CallbackManagerForChainRun.get_noop_manager() + question = inputs[self.input_key] + auth_context = inputs.get(self.auth_context_key) + semantic_context = inputs.get(self.semantic_context_key) + _, prompt_entities = self.pb_client.check_prompt_validity(question) + + accepts_run_manager = ( + "run_manager" in inspect.signature(self._get_docs).parameters + ) + if accepts_run_manager: + docs = self._get_docs( + question, auth_context, semantic_context, run_manager=_run_manager + ) + else: + docs = self._get_docs(question, auth_context, semantic_context) # type: ignore[call-arg] + answer = self.combine_documents_chain.run( + input_documents=docs, question=question, callbacks=_run_manager.get_child() + ) + + self.pb_client.send_prompt( + self.app_name, + self.retriever, + question, + answer, + auth_context, + docs, + prompt_entities, + prompt_time, + self.enable_prompt_gov, + ) + + if self.return_source_documents: + return {self.output_key: answer, "source_documents": docs} + else: + return {self.output_key: answer} + + async def _acall( + self, + inputs: Dict[str, Any], + run_manager: Optional[AsyncCallbackManagerForChainRun] = None, + ) -> Dict[str, Any]: + """Run get_relevant_text and llm on input query. + + If chain has 'return_source_documents' as 'True', returns + the retrieved documents as well under the key 'source_documents'. + + Example: + .. code-block:: python + + res = indexqa({'query': 'This is my query'}) + answer, docs = res['result'], res['source_documents'] + """ + prompt_time = datetime.datetime.now().isoformat() + _run_manager = run_manager or AsyncCallbackManagerForChainRun.get_noop_manager() + question = inputs[self.input_key] + auth_context = inputs.get(self.auth_context_key) + semantic_context = inputs.get(self.semantic_context_key) + accepts_run_manager = ( + "run_manager" in inspect.signature(self._aget_docs).parameters + ) + + _, prompt_entities = await self.pb_client.acheck_prompt_validity(question) + + if accepts_run_manager: + docs = await self._aget_docs( + question, auth_context, semantic_context, run_manager=_run_manager + ) + else: + docs = await self._aget_docs(question, auth_context, semantic_context) # type: ignore[call-arg] + answer = await self.combine_documents_chain.arun( + input_documents=docs, question=question, callbacks=_run_manager.get_child() + ) + + await self.pb_client.asend_prompt( + self.app_name, + self.retriever, + question, + answer, + auth_context, + docs, + prompt_entities, + prompt_time, + self.enable_prompt_gov, + ) + + if self.return_source_documents: + return {self.output_key: answer, "source_documents": docs} + else: + return {self.output_key: answer} + + model_config = ConfigDict( + populate_by_name=True, + arbitrary_types_allowed=True, + extra="forbid", + ) + + @property + def input_keys(self) -> List[str]: + """Input keys. + + :meta private: + """ + return [self.input_key, self.auth_context_key, self.semantic_context_key] + + @property + def output_keys(self) -> List[str]: + """Output keys. + + :meta private: + """ + _output_keys = [self.output_key] + if self.return_source_documents: + _output_keys += ["source_documents"] + return _output_keys + + @property + def _chain_type(self) -> str: + """Return the chain type.""" + return "pebblo_retrieval_qa" + + @classmethod + def from_chain_type( + cls, + llm: BaseLanguageModel, + app_name: str, + description: str, + owner: str, + chain_type: str = "stuff", + chain_type_kwargs: Optional[dict] = None, + api_key: Optional[str] = None, + classifier_url: Optional[str] = None, + classifier_location: str = "local", + **kwargs: Any, + ) -> "PebbloRetrievalQA": + """Load chain from chain type.""" + from langchain_classic.chains.question_answering import load_qa_chain + + _chain_type_kwargs = chain_type_kwargs or {} + combine_documents_chain = load_qa_chain( + llm, chain_type=chain_type, **_chain_type_kwargs + ) + + # generate app + app: App = PebbloRetrievalQA._get_app_details( + app_name=app_name, + description=description, + owner=owner, + llm=llm, + **kwargs, + ) + # initialize Pebblo API client + pb_client = PebbloRetrievalAPIWrapper( + api_key=api_key, + classifier_location=classifier_location, + classifier_url=classifier_url, + ) + # send app discovery request + pb_client.send_app_discover(app) + return cls( + combine_documents_chain=combine_documents_chain, + app_name=app_name, + owner=owner, + description=description, + api_key=api_key, + classifier_url=classifier_url, + classifier_location=classifier_location, + pb_client=pb_client, + **kwargs, + ) + + @validator("retriever", pre=True, always=True) + def validate_vectorstore( + cls, retriever: VectorStoreRetriever + ) -> VectorStoreRetriever: + """ + Validate that the vectorstore of the retriever is supported vectorstores. + """ + if retriever.vectorstore.__class__.__name__ not in SUPPORTED_VECTORSTORES: + raise ValueError( + f"Vectorstore must be an instance of one of the supported " + f"vectorstores: {SUPPORTED_VECTORSTORES}. " + f"Got '{retriever.vectorstore.__class__.__name__}' instead." + ) + return retriever + + def _get_docs( + self, + question: str, + auth_context: Optional[AuthContext], + semantic_context: Optional[SemanticContext], + *, + run_manager: CallbackManagerForChainRun, + ) -> List[Document]: + """Get docs.""" + set_enforcement_filters(self.retriever, auth_context, semantic_context) + return self.retriever.invoke( + question, config={"callbacks": run_manager.get_child()} + ) + + async def _aget_docs( + self, + question: str, + auth_context: Optional[AuthContext], + semantic_context: Optional[SemanticContext], + *, + run_manager: AsyncCallbackManagerForChainRun, + ) -> List[Document]: + """Get docs.""" + set_enforcement_filters(self.retriever, auth_context, semantic_context) + return await self.retriever.ainvoke( + question, config={"callbacks": run_manager.get_child()} + ) + + @staticmethod + def _get_app_details( + app_name: str, + owner: str, + description: str, + llm: BaseLanguageModel, + **kwargs: Any, + ) -> App: + """Fetch app details. Internal method. + Returns: + App: App details. + """ + framework, runtime = get_runtime() + chains = PebbloRetrievalQA.get_chain_details(llm, **kwargs) + app = App( + name=app_name, + owner=owner, + description=description, + runtime=runtime, + framework=framework, + chains=chains, + plugin_version=PLUGIN_VERSION, + client_version=Framework( + name="langchain_community", + version=version("langchain_community"), + ), + ) + return app + + @classmethod + def set_discover_sent(cls) -> None: + cls._discover_sent = True + + @classmethod + def get_chain_details( + cls, llm: BaseLanguageModel, **kwargs: Any + ) -> List[ChainInfo]: + """ + Get chain details. + + Args: + llm (BaseLanguageModel): Language model instance. + **kwargs: Additional keyword arguments. + + Returns: + List[ChainInfo]: Chain details. + """ + llm_dict = llm.__dict__ + chains = [ + ChainInfo( + name=cls.__name__, + model=Model( + name=llm_dict.get("model_name", llm_dict.get("model")), + vendor=llm.__class__.__name__, + ), + vector_dbs=[ + VectorDB( + name=kwargs["retriever"].vectorstore.__class__.__name__, + embedding_model=str( + kwargs["retriever"].vectorstore._embeddings.model + ) + if hasattr(kwargs["retriever"].vectorstore, "_embeddings") + else ( + str(kwargs["retriever"].vectorstore._embedding.model) + if hasattr(kwargs["retriever"].vectorstore, "_embedding") + else None + ), + ) + ], + ), + ] + return chains diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/pebblo_retrieval/enforcement_filters.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/pebblo_retrieval/enforcement_filters.py new file mode 100644 index 0000000000000000000000000000000000000000..579b86acb0ebc15c2bf6e2f0ee291d341379e5b6 --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/pebblo_retrieval/enforcement_filters.py @@ -0,0 +1,532 @@ +""" +Identity & Semantic Enforcement filters for PebbloRetrievalQA chain: + +This module contains methods for applying Identity and Semantic Enforcement filters +in the PebbloRetrievalQA chain. +These filters are used to control the retrieval of documents based on authorization and +semantic context. +The Identity Enforcement filter ensures that only authorized identities can access +certain documents, while the Semantic Enforcement filter controls document retrieval +based on semantic context. + +The methods in this module are designed to work with different types of vector stores. +""" + +import logging +from typing import Any, List, Optional, Union + +from langchain_core.vectorstores import VectorStoreRetriever + +from langchain_community.chains.pebblo_retrieval.models import ( + AuthContext, + SemanticContext, +) + +logger = logging.getLogger(__name__) + +PINECONE = "Pinecone" +QDRANT = "Qdrant" +PGVECTOR = "PGVector" +PINECONE_VECTOR_STORE = "PineconeVectorStore" + +SUPPORTED_VECTORSTORES = {PINECONE, QDRANT, PGVECTOR, PINECONE_VECTOR_STORE} + + +def clear_enforcement_filters(retriever: VectorStoreRetriever) -> None: + """ + Clear the identity and semantic enforcement filters in the retriever search_kwargs. + """ + if retriever.vectorstore.__class__.__name__ == PGVECTOR: + search_kwargs = retriever.search_kwargs + if "filter" in search_kwargs: + filters = search_kwargs["filter"] + _pgvector_clear_pebblo_filters( + search_kwargs, filters, "authorized_identities" + ) + _pgvector_clear_pebblo_filters( + search_kwargs, filters, "pebblo_semantic_topics" + ) + _pgvector_clear_pebblo_filters( + search_kwargs, filters, "pebblo_semantic_entities" + ) + + +def set_enforcement_filters( + retriever: VectorStoreRetriever, + auth_context: Optional[AuthContext], + semantic_context: Optional[SemanticContext], +) -> None: + """ + Set identity and semantic enforcement filters in the retriever. + """ + # Clear existing enforcement filters + clear_enforcement_filters(retriever) + if auth_context is not None: + _set_identity_enforcement_filter(retriever, auth_context) + if semantic_context is not None: + _set_semantic_enforcement_filter(retriever, semantic_context) + + +def _apply_qdrant_semantic_filter( + search_kwargs: dict, semantic_context: Optional[SemanticContext] +) -> None: + """ + Set semantic enforcement filter in search_kwargs for Qdrant vectorstore. + """ + try: + from qdrant_client.http import models as rest + except ImportError as e: + raise ValueError( + "Could not import `qdrant-client.http` python package. " + "Please install it with `pip install qdrant-client`." + ) from e + + # Create a semantic enforcement filter condition + semantic_filters: List[ + Union[ + rest.FieldCondition, + rest.IsEmptyCondition, + rest.IsNullCondition, + rest.HasIdCondition, + rest.NestedCondition, + rest.Filter, + ] + ] = [] + + if ( + semantic_context is not None + and semantic_context.pebblo_semantic_topics is not None + ): + semantic_topics_filter = rest.FieldCondition( + key="metadata.pebblo_semantic_topics", + match=rest.MatchAny(any=semantic_context.pebblo_semantic_topics.deny), + ) + semantic_filters.append(semantic_topics_filter) + if ( + semantic_context is not None + and semantic_context.pebblo_semantic_entities is not None + ): + semantic_entities_filter = rest.FieldCondition( + key="metadata.pebblo_semantic_entities", + match=rest.MatchAny(any=semantic_context.pebblo_semantic_entities.deny), + ) + semantic_filters.append(semantic_entities_filter) + + # If 'filter' already exists in search_kwargs + if "filter" in search_kwargs: + existing_filter: rest.Filter = search_kwargs["filter"] + + # Check if existing_filter is a qdrant-client filter + if isinstance(existing_filter, rest.Filter): + # If 'must_not' condition exists in the existing filter + if isinstance(existing_filter.must_not, list): + # Warn if 'pebblo_semantic_topics' or 'pebblo_semantic_entities' + # filter is overridden + new_must_not_conditions: List[ + Union[ + rest.FieldCondition, + rest.IsEmptyCondition, + rest.IsNullCondition, + rest.HasIdCondition, + rest.NestedCondition, + rest.Filter, + ] + ] = [] + # Drop semantic filter conditions if already present + for condition in existing_filter.must_not: + if hasattr(condition, "key"): + if condition.key == "metadata.pebblo_semantic_topics": + continue + if condition.key == "metadata.pebblo_semantic_entities": + continue + new_must_not_conditions.append(condition) + # Add semantic enforcement filters to 'must_not' conditions + existing_filter.must_not = new_must_not_conditions + existing_filter.must_not.extend(semantic_filters) + else: + # Set 'must_not' condition with semantic enforcement filters + existing_filter.must_not = semantic_filters + else: + raise TypeError( + "Using dict as a `filter` is deprecated. " + "Please use qdrant-client filters directly: " + "https://qdrant.tech/documentation/concepts/filtering/" + ) + else: + # If 'filter' does not exist in search_kwargs, create it + search_kwargs["filter"] = rest.Filter(must_not=semantic_filters) + + +def _apply_qdrant_authorization_filter( + search_kwargs: dict, auth_context: Optional[AuthContext] +) -> None: + """ + Set identity enforcement filter in search_kwargs for Qdrant vectorstore. + """ + try: + from qdrant_client.http import models as rest + except ImportError as e: + raise ValueError( + "Could not import `qdrant-client.http` python package. " + "Please install it with `pip install qdrant-client`." + ) from e + + if auth_context is not None: + # Create a identity enforcement filter condition + identity_enforcement_filter = rest.FieldCondition( + key="metadata.authorized_identities", + match=rest.MatchAny(any=auth_context.user_auth), + ) + else: + return + + # If 'filter' already exists in search_kwargs + if "filter" in search_kwargs: + existing_filter: rest.Filter = search_kwargs["filter"] + + # Check if existing_filter is a qdrant-client filter + if isinstance(existing_filter, rest.Filter): + # If 'must' exists in the existing filter + if existing_filter.must: + new_must_conditions: List[ + Union[ + rest.FieldCondition, + rest.IsEmptyCondition, + rest.IsNullCondition, + rest.HasIdCondition, + rest.NestedCondition, + rest.Filter, + ] + ] = [] + # Drop 'authorized_identities' filter condition if already present + for condition in existing_filter.must: + if ( + hasattr(condition, "key") + and condition.key == "metadata.authorized_identities" + ): + continue + new_must_conditions.append(condition) + + # Add identity enforcement filter to 'must' conditions + existing_filter.must = new_must_conditions + existing_filter.must.append(identity_enforcement_filter) + else: + # Set 'must' condition with identity enforcement filter + existing_filter.must = [identity_enforcement_filter] + else: + raise TypeError( + "Using dict as a `filter` is deprecated. " + "Please use qdrant-client filters directly: " + "https://qdrant.tech/documentation/concepts/filtering/" + ) + else: + # If 'filter' does not exist in search_kwargs, create it + search_kwargs["filter"] = rest.Filter(must=[identity_enforcement_filter]) + + +def _apply_pinecone_semantic_filter( + search_kwargs: dict, semantic_context: Optional[SemanticContext] +) -> None: + """ + Set semantic enforcement filter in search_kwargs for Pinecone vectorstore. + """ + # Check if semantic_context is provided + semantic_context = semantic_context + if semantic_context is not None: + if semantic_context.pebblo_semantic_topics is not None: + # Add pebblo_semantic_topics filter to search_kwargs + search_kwargs.setdefault("filter", {})["pebblo_semantic_topics"] = { + "$nin": semantic_context.pebblo_semantic_topics.deny + } + + if semantic_context.pebblo_semantic_entities is not None: + # Add pebblo_semantic_entities filter to search_kwargs + search_kwargs.setdefault("filter", {})["pebblo_semantic_entities"] = { + "$nin": semantic_context.pebblo_semantic_entities.deny + } + + +def _apply_pinecone_authorization_filter( + search_kwargs: dict, auth_context: Optional[AuthContext] +) -> None: + """ + Set identity enforcement filter in search_kwargs for Pinecone vectorstore. + """ + if auth_context is not None: + search_kwargs.setdefault("filter", {})["authorized_identities"] = { + "$in": auth_context.user_auth + } + + +def _apply_pgvector_filter( + search_kwargs: dict, filters: Optional[Any], pebblo_filter: dict +) -> None: + """ + Apply pebblo filters in the search_kwargs filters. + """ + if isinstance(filters, dict): + if len(filters) == 1: + # The only operators allowed at the top level are $and, $or, and $not + # First check if an operator or a field + key, value = list(filters.items())[0] + if key.startswith("$"): + # Then it's an operator + if key.lower() not in ["$and", "$or", "$not"]: + raise ValueError( + f"Invalid filter condition. Expected $and, $or or $not " + f"but got: {key}" + ) + if not isinstance(value, list): + raise ValueError( + f"Expected a list, but got {type(value)} for value: {value}" + ) + + # Here we handle the $and, $or, and $not operators(Semantic filters) + if key.lower() == "$and": + # Add pebblo_filter to the $and list as it is + value.append(pebblo_filter) + elif key.lower() == "$not": + # Check if pebblo_filter is an operator or a field + _key, _value = list(pebblo_filter.items())[0] + if _key.startswith("$"): + # Then it's a operator + if _key.lower() == "$not": + # It's Semantic filter, add it's value to filters + value.append(_value) + logger.warning( + "Adding $not operator to the existing $not operator" + ) + return + else: + # Only $not operator is supported in pebblo_filter + raise ValueError( + f"Invalid filter key. Expected '$not' but got: {_key}" + ) + else: + # Then it's a field(Auth filter), move filters into $and + search_kwargs["filter"] = {"$and": [filters, pebblo_filter]} + return + elif key.lower() == "$or": + search_kwargs["filter"] = {"$and": [filters, pebblo_filter]} + else: + # Then it's a field and we can check pebblo_filter now + # Check if pebblo_filter is an operator or a field + _key, _ = list(pebblo_filter.items())[0] + if _key.startswith("$"): + # Then it's a operator + if _key.lower() == "$not": + # It's a $not operator(Semantic filter), move filters into $and + search_kwargs["filter"] = {"$and": [filters, pebblo_filter]} + return + else: + # Only $not operator is allowed in pebblo_filter + raise ValueError( + f"Invalid filter key. Expected '$not' but got: {_key}" + ) + else: + # Then it's a field(This handles Auth filter) + filters.update(pebblo_filter) + return + elif len(filters) > 1: + # Then all keys have to be fields (they cannot be operators) + for key in filters.keys(): + if key.startswith("$"): + raise ValueError( + f"Invalid filter condition. Expected a field but got: {key}" + ) + # filters should all be fields and we can check pebblo_filter now + # Check if pebblo_filter is an operator or a field + _key, _ = list(pebblo_filter.items())[0] + if _key.startswith("$"): + # Then it's a operator + if _key.lower() == "$not": + # It's a $not operator(Semantic filter), move filters into '$and' + search_kwargs["filter"] = {"$and": [filters, pebblo_filter]} + return + else: + # Only $not operator is supported in pebblo_filter + raise ValueError( + f"Invalid filter key. Expected '$not' but got: {_key}" + ) + else: + # Then it's a field(This handles Auth filter) + filters.update(pebblo_filter) + return + else: + # Got an empty dictionary for filters, set pebblo_filter in filter + search_kwargs.setdefault("filter", {}).update(pebblo_filter) + elif filters is None: + # If filters is None, set pebblo_filter as a new filter + search_kwargs.setdefault("filter", {}).update(pebblo_filter) + else: + raise ValueError( + f"Invalid filter. Expected a dictionary/None but got type: {type(filters)}" + ) + + +def _pgvector_clear_pebblo_filters( + search_kwargs: dict, filters: dict, pebblo_filter_key: str +) -> None: + """ + Remove pebblo filters from the search_kwargs filters. + """ + if isinstance(filters, dict): + if len(filters) == 1: + # The only operators allowed at the top level are $and, $or, and $not + # First check if an operator or a field + key, value = list(filters.items())[0] + if key.startswith("$"): + # Then it's an operator + # Validate the operator's key and value type + if key.lower() not in ["$and", "$or", "$not"]: + raise ValueError( + f"Invalid filter condition. Expected $and, $or or $not " + f"but got: {key}" + ) + elif not isinstance(value, list): + raise ValueError( + f"Expected a list, but got {type(value)} for value: {value}" + ) + + # Here we handle the $and, $or, and $not operators + if key.lower() == "$and": + # Remove the pebblo filter from the $and list + for i, _filter in enumerate(value): + if pebblo_filter_key in _filter: + # This handles Auth filter + value.pop(i) + break + # Check for $not operator with Semantic filter + if "$not" in _filter: + sem_filter_found = False + # This handles Semantic filter + for j, nested_filter in enumerate(_filter["$not"]): + if pebblo_filter_key in nested_filter: + if len(_filter["$not"]) == 1: + # If only one filter is left, + # then remove the $not operator + value.pop(i) + else: + value[i]["$not"].pop(j) + sem_filter_found = True + break + if sem_filter_found: + break + if len(value) == 1: + # If only one filter is left, then remove the $and operator + search_kwargs["filter"] = value[0] + elif key.lower() == "$not": + # Remove the pebblo filter from the $not list + for i, _filter in enumerate(value): + if pebblo_filter_key in _filter: + # This removes Semantic filter + value.pop(i) + break + if len(value) == 0: + # If no filter is left, then unset the filter + search_kwargs["filter"] = {} + elif key.lower() == "$or": + # If $or, pebblo filter will not be present + return + else: + # Then it's a field, check if it's a pebblo filter + if key == pebblo_filter_key: + filters.pop(key) + return + elif len(filters) > 1: + # Then all keys have to be fields (they cannot be operators) + if pebblo_filter_key in filters: + # This handles Auth filter + filters.pop(pebblo_filter_key) + return + else: + # Got an empty dictionary for filters, ignore the filter + return + elif filters is None: + # If filters is None, ignore the filter + return + else: + raise ValueError( + f"Invalid filter. Expected a dictionary/None but got type: {type(filters)}" + ) + + +def _apply_pgvector_semantic_filter( + search_kwargs: dict, semantic_context: Optional[SemanticContext] +) -> None: + """ + Set semantic enforcement filter in search_kwargs for PGVector vectorstore. + """ + # Check if semantic_context is provided + if semantic_context is not None: + _semantic_filters = [] + filters = search_kwargs.get("filter") + if semantic_context.pebblo_semantic_topics is not None: + # Add pebblo_semantic_topics filter to search_kwargs + topic_filter: dict = { + "pebblo_semantic_topics": { + "$eq": semantic_context.pebblo_semantic_topics.deny + } + } + _semantic_filters.append(topic_filter) + + if semantic_context.pebblo_semantic_entities is not None: + # Add pebblo_semantic_entities filter to search_kwargs + entity_filter: dict = { + "pebblo_semantic_entities": { + "$eq": semantic_context.pebblo_semantic_entities.deny + } + } + _semantic_filters.append(entity_filter) + + if len(_semantic_filters) > 0: + semantic_filter: dict = {"$not": _semantic_filters} + _apply_pgvector_filter(search_kwargs, filters, semantic_filter) + + +def _apply_pgvector_authorization_filter( + search_kwargs: dict, auth_context: Optional[AuthContext] +) -> None: + """ + Set identity enforcement filter in search_kwargs for PGVector vectorstore. + """ + if auth_context is not None: + auth_filter: dict = {"authorized_identities": {"$eq": auth_context.user_auth}} + filters = search_kwargs.get("filter") + _apply_pgvector_filter(search_kwargs, filters, auth_filter) + + +def _set_identity_enforcement_filter( + retriever: VectorStoreRetriever, auth_context: Optional[AuthContext] +) -> None: + """ + Set identity enforcement filter in search_kwargs. + + This method sets the identity enforcement filter in the search_kwargs + of the retriever based on the type of the vectorstore. + """ + search_kwargs = retriever.search_kwargs + if retriever.vectorstore.__class__.__name__ in [PINECONE, PINECONE_VECTOR_STORE]: + _apply_pinecone_authorization_filter(search_kwargs, auth_context) + elif retriever.vectorstore.__class__.__name__ == QDRANT: + _apply_qdrant_authorization_filter(search_kwargs, auth_context) + elif retriever.vectorstore.__class__.__name__ == PGVECTOR: + _apply_pgvector_authorization_filter(search_kwargs, auth_context) + + +def _set_semantic_enforcement_filter( + retriever: VectorStoreRetriever, semantic_context: Optional[SemanticContext] +) -> None: + """ + Set semantic enforcement filter in search_kwargs. + + This method sets the semantic enforcement filter in the search_kwargs + of the retriever based on the type of the vectorstore. + """ + search_kwargs = retriever.search_kwargs + if retriever.vectorstore.__class__.__name__ == PINECONE: + _apply_pinecone_semantic_filter(search_kwargs, semantic_context) + elif retriever.vectorstore.__class__.__name__ == QDRANT: + _apply_qdrant_semantic_filter(search_kwargs, semantic_context) + elif retriever.vectorstore.__class__.__name__ == PGVECTOR: + _apply_pgvector_semantic_filter(search_kwargs, semantic_context) diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/pebblo_retrieval/models.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/pebblo_retrieval/models.py new file mode 100644 index 0000000000000000000000000000000000000000..97e29769ced6f65034ecbc7f0896d2fa77fd482b --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/pebblo_retrieval/models.py @@ -0,0 +1,151 @@ +"""Models for the PebbloRetrievalQA chain.""" + +from typing import Any, List, Optional, Union + +from pydantic import BaseModel + + +class AuthContext(BaseModel): + """Class for an authorization context.""" + + name: Optional[str] = None + user_id: str + user_auth: List[str] + """List of user authorizations, which may include their User ID and + the groups they are part of""" + + +class SemanticEntities(BaseModel): + """Class for a semantic entity filter.""" + + deny: List[str] + + +class SemanticTopics(BaseModel): + """Class for a semantic topic filter.""" + + deny: List[str] + + +class SemanticContext(BaseModel): + """Class for a semantic context.""" + + pebblo_semantic_entities: Optional[SemanticEntities] = None + pebblo_semantic_topics: Optional[SemanticTopics] = None + + def __init__(self, **data: Any) -> None: + super().__init__(**data) + + # Validate semantic_context + if ( + self.pebblo_semantic_entities is None + and self.pebblo_semantic_topics is None + ): + raise ValueError( + "semantic_context must contain 'pebblo_semantic_entities' or " + "'pebblo_semantic_topics'" + ) + + +class ChainInput(BaseModel): + """Input for PebbloRetrievalQA chain.""" + + query: str + auth_context: Optional[AuthContext] = None + semantic_context: Optional[SemanticContext] = None + + def dict(self, **kwargs: Any) -> dict: + base_dict = super().dict(**kwargs) + # Keep auth_context and semantic_context as it is(Pydantic models) + base_dict["auth_context"] = self.auth_context + base_dict["semantic_context"] = self.semantic_context + return base_dict + + +class Runtime(BaseModel): + """ + OS, language details + """ + + type: Optional[str] = "" + host: str + path: str + ip: Optional[str] = "" + platform: str + os: str + os_version: str + language: str + language_version: str + runtime: Optional[str] = "" + + +class Framework(BaseModel): + """ + Langchain framework details + """ + + name: str + version: str + + +class Model(BaseModel): + vendor: Optional[str] + name: Optional[str] + + +class PkgInfo(BaseModel): + project_home_page: Optional[str] + documentation_url: Optional[str] + pypi_url: Optional[str] + liscence_type: Optional[str] + installed_via: Optional[str] + location: Optional[str] + + +class VectorDB(BaseModel): + name: Optional[str] = None + version: Optional[str] = None + location: Optional[str] = None + embedding_model: Optional[str] = None + + +class ChainInfo(BaseModel): + name: str + model: Optional[Model] + vector_dbs: Optional[List[VectorDB]] + + +class App(BaseModel): + name: str + owner: str + description: Optional[str] + runtime: Runtime + framework: Framework + chains: List[ChainInfo] + plugin_version: str + client_version: Framework + + +class Context(BaseModel): + retrieved_from: Optional[str] + doc: Optional[str] + vector_db: str + pb_checksum: Optional[str] + + +class Prompt(BaseModel): + data: Optional[Union[list, str]] + entityCount: Optional[int] = None + entities: Optional[dict] = None + prompt_gov_enabled: Optional[bool] = None + + +class Qa(BaseModel): + name: str + context: Union[List[Optional[Context]], Optional[Context]] + prompt: Optional[Prompt] + response: Optional[Prompt] + prompt_time: str + user: str + user_identities: Optional[List[str]] + classifier_location: str diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/pebblo_retrieval/utilities.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/pebblo_retrieval/utilities.py new file mode 100644 index 0000000000000000000000000000000000000000..25f6efe1542c40802b62d85941a8443f4d98e9b1 --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chains/pebblo_retrieval/utilities.py @@ -0,0 +1,542 @@ +import json +import logging +import os +import platform +from enum import Enum +from http import HTTPStatus +from typing import Any, Dict, List, Optional, Tuple + +import aiohttp +from aiohttp import ClientTimeout +from langchain_core.documents import Document +from langchain_core.env import get_runtime_environment +from langchain_core.utils import get_from_dict_or_env +from langchain_core.vectorstores import VectorStoreRetriever +from pydantic import BaseModel +from requests import Response, request +from requests.exceptions import RequestException + +from langchain_community.chains.pebblo_retrieval.models import ( + App, + AuthContext, + Context, + Framework, + Prompt, + Qa, + Runtime, +) + +logger = logging.getLogger(__name__) + +PLUGIN_VERSION = "0.1.1" + +_DEFAULT_CLASSIFIER_URL = "http://localhost:8000" +_DEFAULT_PEBBLO_CLOUD_URL = "https://api.daxa.ai" + + +class Routes(str, Enum): + """Routes available for the Pebblo API as enumerator.""" + + retrieval_app_discover = "/v1/app/discover" + prompt = "/v1/prompt" + prompt_governance = "/v1/prompt/governance" + + +def get_runtime() -> Tuple[Framework, Runtime]: + """Fetch the current Framework and Runtime details. + + Returns: + Tuple[Framework, Runtime]: Framework and Runtime for the current app instance. + """ + runtime_env = get_runtime_environment() + framework = Framework( + name="langchain", version=runtime_env.get("library_version", "unknown") + ) + uname = platform.uname() + runtime = Runtime( + host=uname.node, + path=os.environ["PWD"], + platform=runtime_env.get("platform", "unknown"), + os=uname.system, + os_version=uname.version, + ip=get_ip(), + language=runtime_env.get("runtime", "unknown"), + language_version=runtime_env.get("runtime_version", "unknown"), + ) + + if "Darwin" in runtime.os: + runtime.type = "desktop" + runtime.runtime = "Mac OSX" + + logger.debug(f"framework {framework}") + logger.debug(f"runtime {runtime}") + return framework, runtime + + +def get_ip() -> str: + """Fetch local runtime ip address. + + Returns: + str: IP address + """ + import socket # lazy imports + + host = socket.gethostname() + try: + public_ip = socket.gethostbyname(host) + except Exception: + public_ip = socket.gethostbyname("localhost") + return public_ip + + +class PebbloRetrievalAPIWrapper(BaseModel): + """Wrapper for Pebblo Retrieval API.""" + + api_key: Optional[str] # Use SecretStr + """API key for Pebblo Cloud""" + classifier_location: str = "local" + """Location of the classifier, local or cloud. Defaults to 'local'""" + classifier_url: Optional[str] + """URL of the Pebblo Classifier""" + cloud_url: Optional[str] + """URL of the Pebblo Cloud""" + + def __init__(self, **kwargs: Any): + """Validate that api key in environment.""" + kwargs["api_key"] = get_from_dict_or_env( + kwargs, "api_key", "PEBBLO_API_KEY", "" + ) + kwargs["classifier_url"] = get_from_dict_or_env( + kwargs, "classifier_url", "PEBBLO_CLASSIFIER_URL", _DEFAULT_CLASSIFIER_URL + ) + kwargs["cloud_url"] = get_from_dict_or_env( + kwargs, "cloud_url", "PEBBLO_CLOUD_URL", _DEFAULT_PEBBLO_CLOUD_URL + ) + super().__init__(**kwargs) + + def send_app_discover(self, app: App) -> None: + """ + Send app discovery request to Pebblo server & cloud. + + Args: + app (App): App instance to be discovered. + """ + pebblo_resp = None + payload = app.dict(exclude_unset=True) + + if self.classifier_location == "local": + # Send app details to local classifier + headers = self._make_headers() + app_discover_url = ( + f"{self.classifier_url}{Routes.retrieval_app_discover.value}" + ) + pebblo_resp = self.make_request("POST", app_discover_url, headers, payload) + + if self.api_key: + # Send app details to Pebblo cloud if api_key is present + headers = self._make_headers(cloud_request=True) + if pebblo_resp: + pebblo_server_version = json.loads(pebblo_resp.text).get( + "pebblo_server_version" + ) + payload.update({"pebblo_server_version": pebblo_server_version}) + + payload.update({"pebblo_client_version": PLUGIN_VERSION}) + pebblo_cloud_url = f"{self.cloud_url}{Routes.retrieval_app_discover.value}" + _ = self.make_request("POST", pebblo_cloud_url, headers, payload) + + def send_prompt( + self, + app_name: str, + retriever: VectorStoreRetriever, + question: str, + answer: str, + auth_context: Optional[AuthContext], + docs: List[Document], + prompt_entities: Dict[str, Any], + prompt_time: str, + prompt_gov_enabled: bool = False, + ) -> None: + """ + Send prompt to Pebblo server for classification. + Then send prompt to Daxa cloud(If api_key is present). + + Args: + app_name (str): Name of the app. + retriever (VectorStoreRetriever): Retriever instance. + question (str): Question asked in the prompt. + answer (str): Answer generated by the model. + auth_context (Optional[AuthContext]): Authentication context. + docs (List[Document]): List of documents retrieved. + prompt_entities (Dict[str, Any]): Entities present in the prompt. + prompt_time (str): Time when the prompt was generated. + prompt_gov_enabled (bool): Whether prompt governance is enabled. + """ + pebblo_resp = None + payload = self.build_prompt_qa_payload( + app_name, + retriever, + question, + answer, + auth_context, + docs, + prompt_entities, + prompt_time, + prompt_gov_enabled, + ) + + if self.classifier_location == "local": + # Send prompt to local classifier + headers = self._make_headers() + prompt_url = f"{self.classifier_url}{Routes.prompt.value}" + pebblo_resp = self.make_request("POST", prompt_url, headers, payload) + + if self.api_key: + # Send prompt to Pebblo cloud if api_key is present + if self.classifier_location == "local": + # If classifier location is local, then response, context and prompt + # should be fetched from pebblo_resp and replaced in payload. + pebblo_resp = pebblo_resp.json() if pebblo_resp else None + self.update_cloud_payload(payload, pebblo_resp) + + headers = self._make_headers(cloud_request=True) + pebblo_cloud_prompt_url = f"{self.cloud_url}{Routes.prompt.value}" + _ = self.make_request("POST", pebblo_cloud_prompt_url, headers, payload) + elif self.classifier_location == "pebblo-cloud": + logger.warning("API key is missing for sending prompt to Pebblo cloud.") + raise NameError("API key is missing for sending prompt to Pebblo cloud.") + + async def asend_prompt( + self, + app_name: str, + retriever: VectorStoreRetriever, + question: str, + answer: str, + auth_context: Optional[AuthContext], + docs: List[Document], + prompt_entities: Dict[str, Any], + prompt_time: str, + prompt_gov_enabled: bool = False, + ) -> None: + """ + Send prompt to Pebblo server for classification. + Then send prompt to Daxa cloud(If api_key is present). + + Args: + app_name (str): Name of the app. + retriever (VectorStoreRetriever): Retriever instance. + question (str): Question asked in the prompt. + answer (str): Answer generated by the model. + auth_context (Optional[AuthContext]): Authentication context. + docs (List[Document]): List of documents retrieved. + prompt_entities (Dict[str, Any]): Entities present in the prompt. + prompt_time (str): Time when the prompt was generated. + prompt_gov_enabled (bool): Whether prompt governance is enabled. + """ + pebblo_resp = None + payload = self.build_prompt_qa_payload( + app_name, + retriever, + question, + answer, + auth_context, + docs, + prompt_entities, + prompt_time, + prompt_gov_enabled, + ) + + if self.classifier_location == "local": + # Send prompt to local classifier + headers = self._make_headers() + prompt_url = f"{self.classifier_url}{Routes.prompt.value}" + pebblo_resp = await self.amake_request("POST", prompt_url, headers, payload) + + if self.api_key: + # Send prompt to Pebblo cloud if api_key is present + if self.classifier_location == "local": + # If classifier location is local, then response, context and prompt + # should be fetched from pebblo_resp and replaced in payload. + self.update_cloud_payload(payload, pebblo_resp) + + headers = self._make_headers(cloud_request=True) + pebblo_cloud_prompt_url = f"{self.cloud_url}{Routes.prompt.value}" + _ = await self.amake_request( + "POST", pebblo_cloud_prompt_url, headers, payload + ) + elif self.classifier_location == "pebblo-cloud": + logger.warning("API key is missing for sending prompt to Pebblo cloud.") + raise NameError("API key is missing for sending prompt to Pebblo cloud.") + + def check_prompt_validity(self, question: str) -> Tuple[bool, Dict[str, Any]]: + """ + Check the validity of the given prompt using a remote classification service. + + This method sends a prompt to a remote classifier service and return entities + present in prompt or not. + + Args: + question (str): The prompt question to be validated. + + Returns: + bool: True if the prompt is valid (does not contain deny list entities), + False otherwise. + dict: The entities present in the prompt + """ + prompt_payload = {"prompt": question} + prompt_entities: dict = {"entities": {}, "entityCount": 0} + is_valid_prompt: bool = True + if self.classifier_location == "local": + headers = self._make_headers() + prompt_gov_api_url = ( + f"{self.classifier_url}{Routes.prompt_governance.value}" + ) + pebblo_resp = self.make_request( + "POST", prompt_gov_api_url, headers, prompt_payload + ) + if pebblo_resp: + prompt_entities["entities"] = pebblo_resp.json().get("entities", {}) + prompt_entities["entityCount"] = pebblo_resp.json().get( + "entityCount", 0 + ) + return is_valid_prompt, prompt_entities + + async def acheck_prompt_validity( + self, question: str + ) -> Tuple[bool, Dict[str, Any]]: + """ + Check the validity of the given prompt using a remote classification service. + + This method sends a prompt to a remote classifier service and return entities + present in prompt or not. + + Args: + question (str): The prompt question to be validated. + + Returns: + bool: True if the prompt is valid (does not contain deny list entities), + False otherwise. + dict: The entities present in the prompt + """ + prompt_payload = {"prompt": question} + prompt_entities: dict = {"entities": {}, "entityCount": 0} + is_valid_prompt: bool = True + if self.classifier_location == "local": + headers = self._make_headers() + prompt_gov_api_url = ( + f"{self.classifier_url}{Routes.prompt_governance.value}" + ) + pebblo_resp = await self.amake_request( + "POST", prompt_gov_api_url, headers, prompt_payload + ) + if pebblo_resp: + prompt_entities["entities"] = pebblo_resp.get("entities", {}) + prompt_entities["entityCount"] = pebblo_resp.get("entityCount", 0) + return is_valid_prompt, prompt_entities + + def _make_headers(self, cloud_request: bool = False) -> dict: + """ + Generate headers for the request. + + args: + cloud_request (bool): flag indicating whether the request is for Pebblo + cloud. + returns: + dict: Headers for the request. + + """ + headers = { + "Accept": "application/json", + "Content-Type": "application/json", + } + if cloud_request: + # Add API key for Pebblo cloud request + if self.api_key: + headers.update({"x-api-key": self.api_key}) + else: + logger.warning("API key is missing for Pebblo cloud request.") + return headers + + @staticmethod + def make_request( + method: str, + url: str, + headers: dict, + payload: Optional[dict] = None, + timeout: int = 20, + ) -> Optional[Response]: + """ + Make a request to the Pebblo server/cloud API. + + Args: + method (str): HTTP method (GET, POST, PUT, DELETE, etc.). + url (str): URL for the request. + headers (dict): Headers for the request. + payload (Optional[dict]): Payload for the request (for POST, PUT, etc.). + timeout (int): Timeout for the request in seconds. + + Returns: + Optional[Response]: Response object if the request is successful. + """ + try: + response = request( + method=method, url=url, headers=headers, json=payload, timeout=timeout + ) + logger.debug( + "Request: method %s, url %s, len %s response status %s", + method, + response.request.url, + str(len(response.request.body if response.request.body else [])), + str(response.status_code), + ) + + if response.status_code >= HTTPStatus.INTERNAL_SERVER_ERROR: + logger.warning(f"Pebblo Server: Error {response.status_code}") + elif response.status_code >= HTTPStatus.BAD_REQUEST: + logger.warning(f"Pebblo received an invalid payload: {response.text}") + elif response.status_code != HTTPStatus.OK: + logger.warning( + f"Pebblo returned an unexpected response code: " + f"{response.status_code}" + ) + + return response + except RequestException: + logger.warning("Unable to reach server %s", url) + except Exception as e: + logger.warning("An Exception caught in make_request: %s", e) + return None + + @staticmethod + def update_cloud_payload(payload: dict, pebblo_resp: Optional[dict]) -> None: + """ + Update the payload with response, prompt and context from Pebblo response. + + Args: + payload (dict): Payload to be updated. + pebblo_resp (Optional[dict]): Response from Pebblo server. + """ + if pebblo_resp: + # Update response, prompt and context from pebblo response + response = payload.get("response", {}) + response.update(pebblo_resp.get("retrieval_data", {}).get("response", {})) + response.pop("data", None) + prompt = payload.get("prompt", {}) + prompt.update(pebblo_resp.get("retrieval_data", {}).get("prompt", {})) + prompt.pop("data", None) + context = payload.get("context", []) + for context_data in context: + context_data.pop("doc", None) + else: + payload["response"] = {} + payload["prompt"] = {} + payload["context"] = [] + + @staticmethod + async def amake_request( + method: str, + url: str, + headers: dict, + payload: Optional[dict] = None, + timeout: int = 20, + ) -> Any: + """ + Make a async request to the Pebblo server/cloud API. + + Args: + method (str): HTTP method (GET, POST, PUT, DELETE, etc.). + url (str): URL for the request. + headers (dict): Headers for the request. + payload (Optional[dict]): Payload for the request (for POST, PUT, etc.). + timeout (int): Timeout for the request in seconds. + + Returns: + Any: Response json if the request is successful. + """ + try: + client_timeout = ClientTimeout(total=timeout) + async with aiohttp.ClientSession() as asession: + async with asession.request( + method=method, + url=url, + json=payload, + headers=headers, + timeout=client_timeout, + ) as response: + if response.status >= HTTPStatus.INTERNAL_SERVER_ERROR: + logger.warning(f"Pebblo Server: Error {response.status}") + elif response.status >= HTTPStatus.BAD_REQUEST: + logger.warning( + f"Pebblo received an invalid payload: {response.text}" + ) + elif response.status != HTTPStatus.OK: + logger.warning( + f"Pebblo returned an unexpected response code: " + f"{response.status}" + ) + response_json = await response.json() + return response_json + except RequestException: + logger.warning("Unable to reach server %s", url) + except Exception as e: + logger.warning("An Exception caught in amake_request: %s", e) + return None + + def build_prompt_qa_payload( + self, + app_name: str, + retriever: VectorStoreRetriever, + question: str, + answer: str, + auth_context: Optional[AuthContext], + docs: List[Document], + prompt_entities: Dict[str, Any], + prompt_time: str, + prompt_gov_enabled: bool = False, + ) -> dict: + """ + Build the QA payload for the prompt. + + Args: + app_name (str): Name of the app. + retriever (VectorStoreRetriever): Retriever instance. + question (str): Question asked in the prompt. + answer (str): Answer generated by the model. + auth_context (Optional[AuthContext]): Authentication context. + docs (List[Document]): List of documents retrieved. + prompt_entities (Dict[str, Any]): Entities present in the prompt. + prompt_time (str): Time when the prompt was generated. + prompt_gov_enabled (bool): Whether prompt governance is enabled. + + Returns: + dict: The QA payload for the prompt. + """ + qa = Qa( + name=app_name, + context=[ + Context( + retrieved_from=doc.metadata.get( + "full_path", doc.metadata.get("source") + ), + doc=doc.page_content, + vector_db=retriever.vectorstore.__class__.__name__, + pb_checksum=doc.metadata.get("pb_checksum"), + ) + for doc in docs + if isinstance(doc, Document) + ], + prompt=Prompt( + data=question, + entities=prompt_entities.get("entities", {}), + entityCount=prompt_entities.get("entityCount", 0), + prompt_gov_enabled=prompt_gov_enabled, + ), + response=Prompt(data=answer), + prompt_time=prompt_time, + user=auth_context.user_id if auth_context else "unknown", + user_identities=auth_context.user_auth + if auth_context and hasattr(auth_context, "user_auth") + else [], + classifier_location=self.classifier_location, + ) + return qa.dict(exclude_unset=True) diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_loaders/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_loaders/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..737e9bcc21fd8201e263fb865207acf03334fa14 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_loaders/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_loaders/__pycache__/base.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_loaders/__pycache__/base.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d65c88b020cfc217473f65072ed1a2dd52f52384 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_loaders/__pycache__/base.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_loaders/__pycache__/facebook_messenger.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_loaders/__pycache__/facebook_messenger.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2bfc032c11eb8e81a4e4f2681cba78138cb75390 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_loaders/__pycache__/facebook_messenger.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_loaders/__pycache__/gmail.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_loaders/__pycache__/gmail.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..24b4f167993d90131d8938657ed1576e0bb24789 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_loaders/__pycache__/gmail.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_loaders/__pycache__/imessage.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_loaders/__pycache__/imessage.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..42d9070ed8a975dc76eac16baaef88d72f7712e3 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_loaders/__pycache__/imessage.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_loaders/__pycache__/langsmith.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_loaders/__pycache__/langsmith.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c340bc54fe8d1bd5fe2a6930f30041370626f572 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_loaders/__pycache__/langsmith.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_loaders/__pycache__/slack.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_loaders/__pycache__/slack.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5e06cc05d70ea262e447e09cda3e1983671a7814 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_loaders/__pycache__/slack.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_loaders/__pycache__/telegram.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_loaders/__pycache__/telegram.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0fc03a5b6099aaa8dec624c48ab438468766fc2d Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_loaders/__pycache__/telegram.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_loaders/__pycache__/utils.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_loaders/__pycache__/utils.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0f531289cda0e421acfabf6594f135d7dd1f30bd Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_loaders/__pycache__/utils.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_loaders/__pycache__/whatsapp.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_loaders/__pycache__/whatsapp.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a4719e8f846860ab16591ae7a623d77864c72f80 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_loaders/__pycache__/whatsapp.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..93e55d670cbd4dda8fe03421377aa62b5d2f75ec Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/astradb.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/astradb.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..cecb643ac5cef9133bb0e422ee33fc1b6e675153 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/astradb.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/cassandra.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/cassandra.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4e157b4e40180abd444e691219e3c0108e3738a4 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/cassandra.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/cosmos_db.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/cosmos_db.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4fc2dcc390c5e9c04c2b39b5df4cb9552fb3b4f1 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/cosmos_db.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/dynamodb.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/dynamodb.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..222f10dda3145c524aa48eacac4a4bfd0f4963a3 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/dynamodb.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/elasticsearch.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/elasticsearch.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3f2ad9707631475d7c47014d11e6f77211ac4f10 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/elasticsearch.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/file.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/file.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e6e7950041ea2e23eb82ee6dc9061833e36db14f Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/file.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/firestore.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/firestore.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d9a3999a5104022e1ca924fbbcc3b30011eee2e4 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/firestore.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/in_memory.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/in_memory.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ce6135f139d83784c797f793c93833a1b9d23667 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/in_memory.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/kafka.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/kafka.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2b0fdaa42d98880939ecf974dff787e550e664b8 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/kafka.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/momento.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/momento.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4c800feb7696c32c141bbdfdf304343204c2e855 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/momento.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/mongodb.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/mongodb.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f98e1223d9ee4ecc53547dea9299b489e5486675 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/mongodb.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/neo4j.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/neo4j.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f58ddcde40879ae2e283012f26ee76cd77a88ad4 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/neo4j.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/postgres.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/postgres.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f6193bf1e4b7bbff7c04bad1139e07571eb51267 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/postgres.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/redis.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/redis.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..fd596ec69e15f35ca44f0bd68be88203b8376777 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/redis.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/rocksetdb.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/rocksetdb.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9371bfd781088ca3672b4184cee92bf015f0e145 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/rocksetdb.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/singlestoredb.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/singlestoredb.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..15e8cdc9a0afef5f921288f3d5ac58041c4efb1a Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/singlestoredb.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/sql.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/sql.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a951f0d897e169cc4657a8752f96555559bc0b9a Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/sql.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/streamlit.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/streamlit.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7024b59158ecdeb9a293edab8904ed4b8d11e8c1 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/streamlit.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/tidb.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/tidb.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b34c07bfe9b12307d2c01d3376e77551066bb1cb Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/tidb.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/upstash_redis.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/upstash_redis.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7dc64f417caf064e63fc4d336bd0629dcb1668ef Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/upstash_redis.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/xata.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/xata.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1490afaae47278b7ce7941ae7216bcd535dd9d12 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/xata.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/zep.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/zep.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a1d43da289750c09d10b55ec8202a46894d8b2fc Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/zep.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/zep_cloud.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/zep_cloud.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..15d1447f0241a82316e49f5bb19f4580c387a2bf Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_message_histories/__pycache__/zep_cloud.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0206712c83a8a0ee8f54f95dba3414e8985336c7 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/anthropic.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/anthropic.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..da33423d92bec477b3acc42fe9bc34e4e352909a Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/anthropic.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/anyscale.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/anyscale.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4f86bbd7f64c13d387964da97aac959fd9873b34 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/anyscale.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/azure_openai.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/azure_openai.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4193b82408b84e4c0f93c23ff4ecd2a11532c545 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/azure_openai.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/azureml_endpoint.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/azureml_endpoint.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d6e8e4962799afbed11f907b68a08411f2434c4b Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/azureml_endpoint.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/baichuan.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/baichuan.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7fedb986216882d0be03e68cb9aa19829cc1635d Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/baichuan.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/baidu_qianfan_endpoint.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/baidu_qianfan_endpoint.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..332393667353d941120393876a492df3f3976718 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/baidu_qianfan_endpoint.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/bedrock.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/bedrock.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a6968a171b86f7373ed69525ef7d39b4739c7f2d Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/bedrock.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/cloudflare_workersai.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/cloudflare_workersai.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c1c79f788fe845ee1bbeb4403bb8a43e68da7c55 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/cloudflare_workersai.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/cohere.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/cohere.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1f5a6355b5964a653cac7ca63c3e83c4acfe2e99 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/cohere.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/coze.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/coze.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..90a83014baffe5b1a06dad221107a343df4ef694 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/coze.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/dappier.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/dappier.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b8d8b8a4aeb8a7020a2b0794103e1a11a43dadbf Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/dappier.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/databricks.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/databricks.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6f8bf3c32765ccb08cb5f4c96d5178ad9bd13ce5 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/databricks.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/deepinfra.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/deepinfra.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..480835e6bf1f23e58220299089e67645fd796333 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/deepinfra.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/edenai.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/edenai.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..fcdba541d7a60c2c9a48b7cb929a581eaa13370f Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/edenai.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/ernie.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/ernie.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a9e1848c7aff9a5b1cf02aabd0555ae208f35a34 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/ernie.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/everlyai.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/everlyai.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ffd72d0a2caa04334c977fc7869915750ffeb738 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/everlyai.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/fake.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/fake.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..90eba5aa1d9fb3e8b9b1ea45335be117fbe12d62 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/fake.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/fireworks.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/fireworks.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..78bad13cf842ea75443630104b8c2275f64116b4 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/fireworks.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/friendli.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/friendli.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..62e1121204023a1821a635208d84bcedb677445c Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/friendli.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/gigachat.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/gigachat.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8afc80ba6cc09a3cfa32395995639fd6f66decca Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/gigachat.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/google_palm.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/google_palm.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..618b8d690c66797297ad9e13d1f4456ca3922bd5 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/google_palm.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/gpt_router.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/gpt_router.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5f604f7470ce5be666b09ca1479d47d20cd1ed41 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/gpt_router.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/huggingface.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/huggingface.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..028a908e97ba07320b7bde0ff470337ce813f29e Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/huggingface.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/human.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/human.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8a52a8d75a2cbaf6b1b361ab1e52294bbdf38b22 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/human.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/hunyuan.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/hunyuan.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..cae502d8545fd89cd4c87591a16d5f2d52069583 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/hunyuan.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/javelin_ai_gateway.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/javelin_ai_gateway.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6d85c5b1f8089cdf96415b1aac7a538a280ad232 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/javelin_ai_gateway.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/jinachat.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/jinachat.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..74311309c2023499cef9e493e7370abd4e30d852 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/jinachat.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/kinetica.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/kinetica.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ba4e99c22bfb292a312412247931826095459fac Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/kinetica.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/konko.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/konko.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4fab3ccb802417ae4249aa715d4a015b24cddbac Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/konko.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/litellm.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/litellm.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..125dda0b48c03c6df1ffe6640b8b7cd1c094dc42 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/litellm.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/litellm_router.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/litellm_router.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1a7cd5f1af0188e1b2da08ba23553f7d1fdabe05 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/litellm_router.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/llama_edge.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/llama_edge.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f6950f28a1f2c930fa94bde42204ae1cdc4ce7ac Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/llama_edge.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/llamacpp.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/llamacpp.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3d226eeb55d728f75004122554d87ba058d754bf Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/llamacpp.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/maritalk.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/maritalk.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c90fadc8817ff3a82c1b839645d411b9af68ce6e Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/maritalk.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/meta.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/meta.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..adfba584efbd0c4c333f1b7acc9e5a1b14f1cbaa Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/meta.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/minimax.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/minimax.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f85036b02920763c838dc5cfe422dfefc94eaa08 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/minimax.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/mlflow.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/mlflow.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0d5ff6792bcf922b3d9fbab46368c4210021e314 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/mlflow.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/mlflow_ai_gateway.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/mlflow_ai_gateway.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b3811ed23954231f4fc53835a9c5553949961556 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/mlflow_ai_gateway.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/mlx.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/mlx.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..39428c2975784ceaa5c352f5e30ca2e40524045c Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/mlx.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/moonshot.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/moonshot.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..212f5c8e0a6e8b5c6e9f53c18dc3931270738ea6 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/moonshot.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/naver.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/naver.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..50d95cf1230924b4fee0265383342e79e50b93cc Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/naver.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/oci_data_science.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/oci_data_science.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..cc45fb0d5eab7f075dae1daf634941115a0989cb Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/oci_data_science.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/oci_generative_ai.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/oci_generative_ai.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..33d5833e83259695b6315f8aea103ef92bd4d15e Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/oci_generative_ai.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/octoai.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/octoai.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a26a1f541ee95f3ab07e73edb3de2665db5e1e01 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/octoai.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/ollama.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/ollama.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9994051ec3a754145893f63e19bf5bc065cb36ef Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/ollama.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/openai.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/openai.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2eb886b3b61eeea14a416b05ec0836aa7d2332de Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/openai.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/outlines.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/outlines.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5c4066f3b1700a314aead231d212d6891daf2cae Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/outlines.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/pai_eas_endpoint.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/pai_eas_endpoint.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..470de1a32d08d6891c2f411d3a5de0ee1921ff02 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/pai_eas_endpoint.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/perplexity.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/perplexity.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..edbd15665e5229a42b4b4ecc6876689975770190 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/perplexity.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/premai.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/premai.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..494911dbf9f0f71bfd93ae19bd80807e84ab6e9d Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/premai.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/promptlayer_openai.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/promptlayer_openai.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e46a59e59b8d60b827eda363c6039f20c3e9590e Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/promptlayer_openai.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/reka.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/reka.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1191ba511e588e70ee73c75660477deda0530398 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/reka.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/sambanova.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/sambanova.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3669946a7c4bc27553329563ae5770cdcac4d685 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/sambanova.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/snowflake.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/snowflake.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..dc57d59f87212a551c353868de784ac167352987 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/snowflake.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/solar.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/solar.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..679bdaf54f71a40091f846d0a819cbedb4307760 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/solar.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/sparkllm.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/sparkllm.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f6f38867dab36e9d6abc837b7f8c51a8f09c5462 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/sparkllm.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/symblai_nebula.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/symblai_nebula.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..12afcd790907c17e2f3ab3928563aef2def9e25d Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/symblai_nebula.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/tongyi.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/tongyi.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0644e3013f380989a1920962e5ab424742c872c3 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/tongyi.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/vertexai.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/vertexai.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..bad8626088e7b7ffc297f326b9c38f09d593f659 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/vertexai.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/volcengine_maas.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/volcengine_maas.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6f44fe3448784a16f0168ea3110da0ff21eab75a Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/volcengine_maas.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/writer.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/writer.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ef7f9f859164e432f8a3c4859cbe332d53a6396e Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/writer.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/yandex.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/yandex.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2d48147177f776b582dc666e9316421c0d6e004b Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/yandex.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/yi.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/yi.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..cc9e427d81fa895ef8d7fd37f7c43f825998e15a Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/yi.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/yuan2.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/yuan2.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c6e7837f0a59d014754ba47f1dba60f8005f095c Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/yuan2.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/zhipuai.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/zhipuai.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..bff9bb9b8e8cc1ebd55af039e7384805ae70ef8d Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/chat_models/__pycache__/zhipuai.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/cross_encoders/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/cross_encoders/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..739fa0094b2187777841e5df502d60f3703d939a Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/cross_encoders/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/cross_encoders/__pycache__/base.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/cross_encoders/__pycache__/base.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0d671edeae2c0b45522bea95929c56d84d2b9e85 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/cross_encoders/__pycache__/base.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/cross_encoders/__pycache__/fake.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/cross_encoders/__pycache__/fake.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..df26def964c17e512f74999eddc02bcb2ce574ec Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/cross_encoders/__pycache__/fake.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/cross_encoders/__pycache__/huggingface.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/cross_encoders/__pycache__/huggingface.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..66405a416640590f623be781527738b96a085c2a Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/cross_encoders/__pycache__/huggingface.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/cross_encoders/__pycache__/sagemaker_endpoint.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/cross_encoders/__pycache__/sagemaker_endpoint.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..95f6623bf2238357fdee44bfc0cb9c26e800f915 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/cross_encoders/__pycache__/sagemaker_endpoint.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/docstore/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/docstore/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..06e88af1fa971b9c15908a22f4d33f2e3ca5f932 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/docstore/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/docstore/__pycache__/arbitrary_fn.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/docstore/__pycache__/arbitrary_fn.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..38790e92ba77f3296eb0a468d46d8535bd734dea Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/docstore/__pycache__/arbitrary_fn.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/docstore/__pycache__/base.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/docstore/__pycache__/base.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..107f0ae217a3f2504e0ce43c64dbb57f1a2d716e Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/docstore/__pycache__/base.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/docstore/__pycache__/document.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/docstore/__pycache__/document.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..80bec15010aae652a4584a6e23650b112cac5f44 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/docstore/__pycache__/document.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/docstore/__pycache__/in_memory.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/docstore/__pycache__/in_memory.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f6751a450b20f755eacb6ef510462182e726dfb7 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/docstore/__pycache__/in_memory.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/docstore/__pycache__/wikipedia.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/docstore/__pycache__/wikipedia.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8fcb3286499d635752aed6b7d0ef97a6689d1cde Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/docstore/__pycache__/wikipedia.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_compressors/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_compressors/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8281a2105021be8b467e44a55f2b7b82ee668f78 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_compressors/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_compressors/__pycache__/dashscope_rerank.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_compressors/__pycache__/dashscope_rerank.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0e900c8eacd0481efbd9a878972f46f187b290b2 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_compressors/__pycache__/dashscope_rerank.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_compressors/__pycache__/flashrank_rerank.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_compressors/__pycache__/flashrank_rerank.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..02d9c4a5079ab33bb64a80424292fe5c22d0dd9a Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_compressors/__pycache__/flashrank_rerank.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_compressors/__pycache__/infinity_rerank.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_compressors/__pycache__/infinity_rerank.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7682f7d1c7bd71b8c23737797fc50287f206b0e5 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_compressors/__pycache__/infinity_rerank.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_compressors/__pycache__/jina_rerank.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_compressors/__pycache__/jina_rerank.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1601d99e827a4096fbf166c8c1d4c8ba11dc0f8f Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_compressors/__pycache__/jina_rerank.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_compressors/__pycache__/llmlingua_filter.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_compressors/__pycache__/llmlingua_filter.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..581a14dca1b9d8c35b5f2f57164d9baff7a27fa1 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_compressors/__pycache__/llmlingua_filter.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_compressors/__pycache__/openvino_rerank.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_compressors/__pycache__/openvino_rerank.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6ced8ce89b4b63e708dac2e0a99939f5ace2e6d4 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_compressors/__pycache__/openvino_rerank.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_compressors/__pycache__/rankllm_rerank.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_compressors/__pycache__/rankllm_rerank.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..64101a302ce504699a0253b173c5ed50a8f30d3a Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_compressors/__pycache__/rankllm_rerank.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_compressors/__pycache__/volcengine_rerank.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_compressors/__pycache__/volcengine_rerank.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1adc3a262ff03ae5d0979a80614844d9f809e91c Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_compressors/__pycache__/volcengine_rerank.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..adfc1ba15c989e812bb7e44a944915d0a4e86c4a Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/acreom.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/acreom.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5b812776288ff089da17baccd82d85e2a05d3840 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/acreom.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/airbyte.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/airbyte.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..afdac6a3781e5c27663d53b3a107c5435dd04cf1 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/airbyte.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/airbyte_json.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/airbyte_json.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..475543d3a3b1e5f038f092a43df9d53fe522f7dc Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/airbyte_json.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/airtable.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/airtable.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ace61e95fa996b69a1b7fd30146ff93dca944f48 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/airtable.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/apify_dataset.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/apify_dataset.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4e86852ab04f21c49a0b7964975e6a209aad78c3 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/apify_dataset.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/arcgis_loader.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/arcgis_loader.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b1a435035af370f959dd053896f288990cefc2f9 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/arcgis_loader.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/arxiv.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/arxiv.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..49ceaea6110d52d5f5a8f94a8570be948a8b0be4 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/arxiv.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/assemblyai.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/assemblyai.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5e641834f0a96cc5e3faad88b9be132a77d8d98d Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/assemblyai.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/astradb.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/astradb.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..68653d24db22d24a7f5cfd5d58c422d6374a4fb3 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/astradb.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/async_html.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/async_html.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5451b4f04f468efd2018c6c53b8fd146b87d327e Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/async_html.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/athena.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/athena.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..bf77017d29571081e150c3c1957476c70d091e5e Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/athena.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/azlyrics.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/azlyrics.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0facfa529b63b4491007330f7c4c549de78d0d73 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/azlyrics.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/azure_ai_data.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/azure_ai_data.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1b5cc6cdfa16123e4fbaafa8584cf97ee076c6d9 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/azure_ai_data.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/azure_blob_storage_container.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/azure_blob_storage_container.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..02807f239ffeb1b3eff2d73e115a60c77187a6ef Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/azure_blob_storage_container.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/azure_blob_storage_file.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/azure_blob_storage_file.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c0380f40e78e76c9383a2393a48f252b57276011 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/azure_blob_storage_file.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/baiducloud_bos_directory.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/baiducloud_bos_directory.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d312787763f9c15b24000ea435e4d368d16ec297 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/baiducloud_bos_directory.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/baiducloud_bos_file.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/baiducloud_bos_file.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1e475d78a7d3a0bfbdc8a84fcd060e7e776e6188 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/baiducloud_bos_file.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/base.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/base.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..05df0a3614cd90a64205933cae58f0407cf6ed34 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/base.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/base_o365.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/base_o365.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f9f4d3ed1eac8d91e9d475601ec40cf528e94220 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/base_o365.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/bibtex.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/bibtex.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9a96d8f3b9784308ce0d65a2de3b1c45fa9ec97f Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/bibtex.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/bigquery.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/bigquery.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..eddad2dda6644637e0063305aec1143147fa3db8 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/bigquery.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/bilibili.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/bilibili.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6d8f7060c89b25f278b1697dfd6f049881603f7b Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/bilibili.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/blackboard.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/blackboard.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..388ceda5740ebac135804653033172cb73155485 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/blackboard.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/blockchain.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/blockchain.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..718258c9335fa2a4d2c0a1bb67f5aeeb5552398f Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/blockchain.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/brave_search.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/brave_search.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..90bdae4906a73aa9102a00764a2463b3abb3a8ba Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/brave_search.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/browserbase.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/browserbase.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d471b1607622c38faaaa799890d5a15d1ac54f9a Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/browserbase.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/browserless.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/browserless.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..89bc3bff5685776a50ddc58acc70945b5a98dc84 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/browserless.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/cassandra.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/cassandra.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a7c01b48d94783c428bf29c4069b38eb78249d99 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/cassandra.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/chatgpt.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/chatgpt.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..82ffc8517a6a25a472cd0bbc8718a6aa8811cd72 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/chatgpt.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/chm.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/chm.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4ef3843b69c77d7da46a4158728b496c4bdc6c2f Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/chm.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/chromium.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/chromium.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..cdeaaf9df2bec193d829870aa07727415e195307 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/chromium.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/college_confidential.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/college_confidential.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f7a5c1c000ffaa52cad7e100cc1b43a458eb509d Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/college_confidential.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/concurrent.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/concurrent.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9b02cbeaf10e3cfcc8b90382b22e57165702c6c1 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/concurrent.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/confluence.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/confluence.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e4ca5b44029beafc88af1ac6a5db104b8ff66067 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/confluence.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/conllu.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/conllu.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..24595d2a8fb0ddbe166fad4c7353f2bfd6c21742 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/conllu.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/couchbase.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/couchbase.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b97acc51644141ce72ff1cba5b5e96ca57743dc1 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/couchbase.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/csv_loader.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/csv_loader.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..be1329c96184f88217fddc7800863088ff3e8118 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/csv_loader.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/cube_semantic.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/cube_semantic.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9b5d826307ea41c68e06d27b03529377ac5c02e7 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/cube_semantic.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/datadog_logs.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/datadog_logs.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..436b099cae74a51672a7f348012dc5409c1d4bf4 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/datadog_logs.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/dataframe.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/dataframe.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..dea2652c5947a1873191d347cf90d95b342b49e6 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/dataframe.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/dedoc.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/dedoc.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..af792a86af521466efa532e966f4f5677f3ec102 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/dedoc.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/diffbot.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/diffbot.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e1fb268ace7ebd5db8915daaa9613c31eccdbf6f Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/diffbot.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/directory.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/directory.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a356e9dee6597adb5d9ead0f6dc159f54fd3789c Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/directory.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/discord.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/discord.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a580ae41c0fd5f2a90a99df7fd8a498e4df223b6 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/discord.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/doc_intelligence.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/doc_intelligence.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..56e884506dd872678aed31f506f6515a09789f73 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/doc_intelligence.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/docugami.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/docugami.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1b058eabe41ae88b2def185ea2dcb0b351da6972 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/docugami.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/docusaurus.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/docusaurus.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..12e43c4c6116823c04e3b0b0b0dcf0915e6d4b60 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/docusaurus.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/dropbox.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/dropbox.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7d7a908de86dff7d55f9f881f603ada9f9436226 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/dropbox.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/duckdb_loader.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/duckdb_loader.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6ce77e79716c90b9167e2e7d416c1deb43ed3fd0 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/duckdb_loader.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/email.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/email.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..22f4da48f03fe78b683baac4ae57dad3a03dc61b Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/email.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/epub.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/epub.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a7a1d8cde7c4380ef98609b5b7c2c309884978e6 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/epub.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/etherscan.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/etherscan.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4de19df72dc91d5b09b072f595d0f80bee451672 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/etherscan.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/evernote.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/evernote.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5fa08a82bdf8981c0d1b64f2aebbd0de928978b9 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/evernote.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/excel.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/excel.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..54257e987e73262cbf8377f398fe8cbf1bde666e Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/excel.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/facebook_chat.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/facebook_chat.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4950cf75cfc1a1a324e721486e529be3d7a7a74f Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/facebook_chat.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/fauna.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/fauna.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ed45fcb771df8bba2146cab1ec1ee7ebd2638a4f Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/fauna.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/figma.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/figma.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..64eb7a14089b3edb7ae094cf1b194455178351cb Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/figma.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/firecrawl.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/firecrawl.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c85eca8ab5cac8ccc780264c5c065fb3c3790e17 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/firecrawl.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/gcs_directory.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/gcs_directory.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7694f5d8e707e636b6fe87d4c306082827113df3 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/gcs_directory.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/gcs_file.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/gcs_file.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2be99f862a36b1a22feb464606fde86e1b9012a3 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/gcs_file.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/generic.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/generic.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c674ea63c31b9db5c0246d5889fb235a291b4b6b Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/generic.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/geodataframe.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/geodataframe.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8b1ea179afba93f5c7e8d5c92a10b9a68cbb6556 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/geodataframe.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/git.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/git.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..cc248d811b9a0f76388cad94212a2108c904218a Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/git.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/gitbook.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/gitbook.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e57edc3d587d608ca9a083e8ce815e223b0315e6 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/gitbook.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/github.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/github.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5ae52cbd3b60ad8952c8819cb79459abc8dc4b42 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/github.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/glue_catalog.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/glue_catalog.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8bf2d342c58ba5f833deb4bb00f6005e5724abcf Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/glue_catalog.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/google_speech_to_text.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/google_speech_to_text.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a8ce47380ad9462de2609dda82f25fffecf2a547 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/google_speech_to_text.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/googledrive.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/googledrive.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2a2aeb433368b1e9ad2c85f16a09235ed08ad600 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/googledrive.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/gutenberg.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/gutenberg.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..73e3ff1f23289d770a010a8a82702464466ecb44 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/gutenberg.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/helpers.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/helpers.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7d0939a9bfc6da0bfc6c4ab8570fa6ada4587ad0 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/helpers.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/hn.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/hn.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5a611ccd30e7f8d3ae52ccbcf4982d4d7442c3b4 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/hn.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/html.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/html.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..30e8d330b66a463b9d5d372934e1ad33358baa95 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/html.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/html_bs.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/html_bs.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b6c0dafe13f4cd7c32bca67b5c59b72dcac04098 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/html_bs.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/hugging_face_dataset.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/hugging_face_dataset.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..07d8ff6ce892caa6a989f461421633cf7a68dc17 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/hugging_face_dataset.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/hugging_face_model.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/hugging_face_model.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4a9a9d4b416786480aa0d9ee613f02ae18949888 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/hugging_face_model.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/ifixit.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/ifixit.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1cdaf960b4ac16369512a1e342696dd343c58d24 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/ifixit.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/image.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/image.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..dad497b4d3b1658fc40b4e2a25bdcfff7f8244b1 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/image.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/image_captions.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/image_captions.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ad7c52926b92033e4897434f5186a31e6a22c1c8 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/image_captions.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/imsdb.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/imsdb.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ec3b01451796b0464c5cebc5850ba485cb855024 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/imsdb.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/iugu.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/iugu.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..809a2f4a235e5907da00ef8e7c51aed2569f161b Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/iugu.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/joplin.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/joplin.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7903e1e8f6b94bace3ac47653c0dedd16e2f19e4 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/joplin.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/json_loader.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/json_loader.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b7071bdf382ad58edef8f5fe0fedc036b3fdfc15 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/json_loader.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/kinetica_loader.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/kinetica_loader.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c347913234dbe2ab7a91b5ef33453b31071c360a Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/kinetica_loader.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/lakefs.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/lakefs.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e3b532214707595db93c918ff8f1898a8937d7bd Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/lakefs.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/larksuite.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/larksuite.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..bf329ab0b2ecca09a34eb5d00f876724e957da16 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/larksuite.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/llmsherpa.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/llmsherpa.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1e2c2ffe4a5a8f3c34384165764e49b732f8d93e Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/llmsherpa.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/markdown.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/markdown.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4eb82e22f215f208cb73e74f58abf3360d76089b Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/markdown.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/mastodon.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/mastodon.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..49b90634bd6ab8bc9a90e75237a0a4204cd8a31a Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/mastodon.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/max_compute.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/max_compute.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d6cc1016ca964bc5cb290088d32809a0a303196b Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/max_compute.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/mediawikidump.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/mediawikidump.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ae4c7745a1b8595cbe0b4a3b65d563e30e1b944f Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/mediawikidump.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/merge.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/merge.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9e5fff5931ada2ddd2526bdd98021aab3de9ef76 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/merge.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/mhtml.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/mhtml.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d9785cebd74c00220b61f12ce21745c292635221 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/mhtml.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/mintbase.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/mintbase.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..874b6fc9d526506b6fd404d27c7070143ae7af0f Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/mintbase.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/modern_treasury.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/modern_treasury.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..fdfad03372470d938b6aa860189a06019fae80b5 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/modern_treasury.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/mongodb.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/mongodb.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..66707a08e8a223ea715e3e9c4016a24cd60ad871 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/mongodb.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/needle.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/needle.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3e3681cdaac5f3b165f4eb68efd4c4d45a451883 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/needle.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/news.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/news.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a2d597ef751efb506b4ca9662dad4c62b7dca097 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/news.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/notebook.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/notebook.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..cdff52f4bc5bfcd8a857fc38c38280aa7d14a788 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/notebook.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/notion.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/notion.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f5ed6c2d427307ab46426a40584fadd6ac237b3c Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/notion.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/notiondb.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/notiondb.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..af61c0cf0651e1dda863c1dddf2fa1767a1c506a Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/notiondb.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/nuclia.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/nuclia.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5d8583d63f1f4d6f7df9e9903487c13eec5d238a Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/nuclia.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/obs_directory.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/obs_directory.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5f3a2acda9481481e46647c7cf0b0fc80f85dbe6 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/obs_directory.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/obs_file.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/obs_file.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a63d3b274013ca1ac18a56429701754a688fb3e1 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/obs_file.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/obsidian.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/obsidian.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..149dda230733c7785cbc360b5a37b7a6b55b60f0 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/obsidian.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/odt.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/odt.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6d9ecfc88838b470ff4cea8494de17b0c64d085f Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/odt.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/onedrive.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/onedrive.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8e7c0865131caf42985ac144daf513c7031cb82d Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/onedrive.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/onedrive_file.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/onedrive_file.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..44d03d037c963beee6068354733c799cbbbb4969 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/onedrive_file.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/onenote.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/onenote.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7d4f1a5dd5fd7976c6c8b91760512c8ba82f7b55 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/onenote.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/open_city_data.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/open_city_data.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c2346ef8b96888500f24c4efa7961da0b0e7e96b Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/open_city_data.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/oracleadb_loader.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/oracleadb_loader.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e643d15f4dafcfddf6f3f194f5008de7231e8382 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/oracleadb_loader.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/oracleai.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/oracleai.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..44243ed6eac50d5b17e673c458c43fb5adab7dd0 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/oracleai.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/org_mode.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/org_mode.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f17d9a263fd98efa9a790ac5df7113f83dcb4332 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/org_mode.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/pdf.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/pdf.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3e0ce08b673a2b948b6de1274b8ddd52d975b749 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/pdf.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/pebblo.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/pebblo.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..cb708f61ef6ac4f8751cd2b5fd728e64980b5d09 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/pebblo.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/polars_dataframe.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/polars_dataframe.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9099a480a8c579d339a19f7aff3cb0a6ede90b25 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/polars_dataframe.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/powerpoint.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/powerpoint.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2bb868fdbac2896dec9b3034f1063dbbace03a1a Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/powerpoint.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/psychic.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/psychic.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5836b997ffe0ff21f698fc9665928f4777dd8112 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/psychic.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/pubmed.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/pubmed.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6fcf109a52f082b0323e88c36ebb832a3baffc47 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/pubmed.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/pyspark_dataframe.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/pyspark_dataframe.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..776a3c3be44579f427b5dec3d406ffea1c53336c Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/pyspark_dataframe.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/python.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/python.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e898bf9aa0ebb64eb239a8be8008163ce7bf4328 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/python.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/quip.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/quip.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..21bfe9e5e0113870a46e2bfa5f19ce140fa742c4 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/quip.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/readthedocs.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/readthedocs.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0e61cdd724a356a4a5cd205598b0680b8cfab3be Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/readthedocs.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/recursive_url_loader.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/recursive_url_loader.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..dcba37834d07d0e81e3b9a625e46879b680eeea6 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/recursive_url_loader.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/reddit.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/reddit.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6a60c5aad9fe2704a08fe420a3f5538db3007654 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/reddit.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/roam.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/roam.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..15e67be250d5f2575bf17252437091043ca33ab1 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/roam.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/rocksetdb.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/rocksetdb.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1e3a66ab471699e8b87541f304859f679649ec02 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/rocksetdb.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/rspace.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/rspace.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e44f4aa885ec82ec11da40442df3eef35c392254 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/rspace.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/rss.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/rss.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d210c54d8e818ec6dce6cfb82ef5d55486348f3b Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/rss.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/rst.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/rst.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..12ac49b953c41abad66d0c6f19e945bea9a5bbdb Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/rst.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/rtf.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/rtf.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..207734a20ad240d6d967a13f563fb67fe93cbbe4 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/rtf.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/s3_directory.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/s3_directory.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b0551d91a46bbf8ae0e352dbe60a65a4fd7daf03 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/s3_directory.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/s3_file.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/s3_file.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..dfb4cc3cb374ee072761dfc33e152023628eda30 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/s3_file.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/scrapfly.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/scrapfly.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b96259ed9b366a8fe52e2c7f2c7768385337416f Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/scrapfly.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/scrapingant.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/scrapingant.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6d26e8c49e8705f22755433d5290065f06d4d543 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/scrapingant.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/sharepoint.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/sharepoint.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8b8afd2ff98db8ab69643fcd66a0a8dd949eedd5 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/sharepoint.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/sitemap.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/sitemap.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5d53c830ce9c6fa6c56a1495e177ee9cdf01d104 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/sitemap.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/slack_directory.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/slack_directory.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d1ad96c10065728fc8650dc1195e06cce6f74284 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/slack_directory.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/snowflake_loader.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/snowflake_loader.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..78d93f4aa0c4d57f3a5b636642484f6d88f511ea Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/snowflake_loader.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/spider.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/spider.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..eb733712b78721fa982ee4751fb79a3a44f2b0cd Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/spider.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/spreedly.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/spreedly.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..fd57681ffe7e11568d11ccf37c7e91b2c23994f8 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/spreedly.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/sql_database.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/sql_database.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0835abcc5f30f6b07289baecdabb7c7a7e432d98 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/sql_database.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/srt.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/srt.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..28ed9335b4ed08ad6f114fc09b122dcc4553dbc7 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/srt.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/stripe.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/stripe.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..43d71a9a674ba5d5d955c385071b3f0557900d7d Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/stripe.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/surrealdb.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/surrealdb.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..af263ff4b464f92f1a773979c52cdae7df9d6ccd Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/surrealdb.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/telegram.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/telegram.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..af0fde2b3eb27c83cb3954c7af77c07d8f2c4cbd Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/telegram.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/tencent_cos_directory.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/tencent_cos_directory.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..05720c6d475f6dba67a3005d9a9dc9ca6857b3b8 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/tencent_cos_directory.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/tencent_cos_file.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/tencent_cos_file.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..853a4d80164ee54c050010a9e25dbf0659f3700b Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/tencent_cos_file.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/tensorflow_datasets.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/tensorflow_datasets.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0b17bdf1a26d737897b6bdab69a4165835e90e29 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/tensorflow_datasets.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/text.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/text.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3355ea7a2dcf46b483a11f382583ad2d1ae91816 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/text.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/tidb.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/tidb.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..713954d4027578cd7dda35e66350d29c3e7630e4 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/tidb.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/tomarkdown.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/tomarkdown.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7856868d0d89264ce0f78b37d8471673ebf312f8 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/tomarkdown.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/toml.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/toml.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..52d77b91637c1af7f6160563356bafef57f6ef1b Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/toml.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/trello.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/trello.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..eabc84b6be0bf00b0c510acebcf574b75f5adeeb Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/trello.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/tsv.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/tsv.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a0f1f0a4a54ad06c0e743ac4692f0ff568db85b4 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/tsv.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/twitter.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/twitter.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4433bcb8295fd7f605b144da03d35c930542bac5 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/twitter.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/unstructured.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/unstructured.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..bebbef29194c3033838735608c67732223b0c2cd Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/unstructured.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/url.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/url.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..bc603b8a154cd62d67ac6adfaf4a75aeda9c1aba Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/url.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/url_playwright.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/url_playwright.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..669cb94308a8c2ffaa76b4b3fbf7c810029454fc Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/url_playwright.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/url_selenium.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/url_selenium.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..959d64b6e6760499334f84ee03a31354115d508d Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/url_selenium.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/vsdx.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/vsdx.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b1ea8e07f5752adcdd045e389004925d9fb9212f Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/vsdx.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/weather.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/weather.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..81f87d7230230902a4ac314a1f8a6a0cd67308b3 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/weather.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/web_base.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/web_base.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ab8167cf4f573f2b3c7ef8b083fae8ba87186150 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/web_base.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/whatsapp_chat.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/whatsapp_chat.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5329e7a4073e0756b80e76dbc4ea4ea7647c1193 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/whatsapp_chat.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/wikipedia.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/wikipedia.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3facb0cba081f37774750b8275cbcae16f8d23c3 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/wikipedia.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/word_document.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/word_document.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..621efd07a182bb71f95696288f181247c28ebcba Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/word_document.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/xml.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/xml.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e25f7492efb4faa8c942ab4454417ba1918b70aa Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/xml.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/xorbits.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/xorbits.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..85dcbe6584518f1a6ce3c78856e7d14e28f480b1 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/xorbits.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/youtube.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/youtube.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..cc47275dfd38d793bed87d705e9358e98f294699 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/youtube.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/yuque.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/yuque.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d1cef3fe73faf3f3eb48f58291ce763f286e509e Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/__pycache__/yuque.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/blob_loaders/__init__.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/blob_loaders/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..95907e77ffc6af73c3e0f66f299fb33041169f89 --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/blob_loaders/__init__.py @@ -0,0 +1,44 @@ +import importlib +from typing import TYPE_CHECKING, Any + +from langchain_core.document_loaders import Blob, BlobLoader + +if TYPE_CHECKING: + from langchain_community.document_loaders.blob_loaders.cloud_blob_loader import ( + CloudBlobLoader, + ) + from langchain_community.document_loaders.blob_loaders.file_system import ( + FileSystemBlobLoader, + ) + from langchain_community.document_loaders.blob_loaders.youtube_audio import ( + YoutubeAudioLoader, + ) + + +_module_lookup = { + "CloudBlobLoader": ( + "langchain_community.document_loaders.blob_loaders.cloud_blob_loader" + ), + "FileSystemBlobLoader": ( + "langchain_community.document_loaders.blob_loaders.file_system" + ), + "YoutubeAudioLoader": ( + "langchain_community.document_loaders.blob_loaders.youtube_audio" + ), +} + + +def __getattr__(name: str) -> Any: + if name in _module_lookup: + module = importlib.import_module(_module_lookup[name]) + return getattr(module, name) + raise AttributeError(f"module {__name__} has no attribute {name}") + + +__all__ = [ + "BlobLoader", + "Blob", + "CloudBlobLoader", + "FileSystemBlobLoader", + "YoutubeAudioLoader", +] diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/blob_loaders/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/blob_loaders/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9da5532d42c231f7ff57ee806591d1e3937b221b Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/blob_loaders/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/blob_loaders/__pycache__/cloud_blob_loader.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/blob_loaders/__pycache__/cloud_blob_loader.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..60acaccd17cbae5bf21b8d8c3c62fecc06950537 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/blob_loaders/__pycache__/cloud_blob_loader.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/blob_loaders/__pycache__/file_system.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/blob_loaders/__pycache__/file_system.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e72901d5651e90cbd9fb7b7f96f12255d2293084 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/blob_loaders/__pycache__/file_system.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/blob_loaders/__pycache__/schema.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/blob_loaders/__pycache__/schema.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9b12d7d5fbba77217e69b637265bd32cc8944c45 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/blob_loaders/__pycache__/schema.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/blob_loaders/__pycache__/youtube_audio.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/blob_loaders/__pycache__/youtube_audio.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0947ad5bd6fd1abc06c00fb2b681e61f500b3af0 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/blob_loaders/__pycache__/youtube_audio.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/blob_loaders/cloud_blob_loader.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/blob_loaders/cloud_blob_loader.py new file mode 100644 index 0000000000000000000000000000000000000000..8413c3108cc3c9598dc5ab218f8079375d103edb --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/blob_loaders/cloud_blob_loader.py @@ -0,0 +1,296 @@ +"""Use to load blobs from the local file system.""" + +import contextlib +import mimetypes +import tempfile +from io import BufferedReader, BytesIO +from pathlib import Path +from typing import ( + TYPE_CHECKING, + Callable, + Generator, + Iterable, + Iterator, + Optional, + Sequence, + TypeVar, + Union, +) +from urllib.parse import urlparse + +if TYPE_CHECKING: + from cloudpathlib import AnyPath + +from langchain_community.document_loaders.blob_loaders.schema import ( + Blob, + BlobLoader, +) + +T = TypeVar("T") + + +class _CloudBlob(Blob): + def as_string(self) -> str: + """Read data as a string.""" + from cloudpathlib import AnyPath + + if self.data is None and self.path: + return AnyPath(self.path).read_text(encoding=self.encoding) + elif isinstance(self.data, bytes): + return self.data.decode(self.encoding) + elif isinstance(self.data, str): + return self.data + else: + raise ValueError(f"Unable to get string for blob {self}") + + def as_bytes(self) -> bytes: + """Read data as bytes.""" + from cloudpathlib import AnyPath + + if isinstance(self.data, bytes): + return self.data + elif isinstance(self.data, str): + return self.data.encode(self.encoding) + elif self.data is None and self.path: + return AnyPath(self.path).read_bytes() + else: + raise ValueError(f"Unable to get bytes for blob {self}") + + @contextlib.contextmanager + def as_bytes_io(self) -> Generator[Union[BytesIO, BufferedReader], None, None]: + """Read data as a byte stream.""" + from cloudpathlib import AnyPath + + if isinstance(self.data, bytes): + yield BytesIO(self.data) + elif self.data is None and self.path: + return AnyPath(self.path).read_bytes() + else: + raise NotImplementedError(f"Unable to convert blob {self}") + + +def _url_to_filename(url: str) -> str: + """ + Convert file:, s3:, az: or gs: url to localfile. + If the file is not here, download it in a temporary file. + """ + from cloudpathlib import AnyPath + + url_parsed = urlparse(url) + suffix = Path(url_parsed.path).suffix + if url_parsed.scheme in ["s3", "az", "gs"]: + with AnyPath(url).open("rb") as f: + temp_file = tempfile.NamedTemporaryFile(suffix=suffix, delete=False) + while True: + buf = f.read() + if not buf: + break + temp_file.write(buf) + temp_file.close() + file_path = temp_file.name + elif url_parsed.scheme in ["file", ""]: + file_path = url_parsed.path + else: + raise ValueError(f"Scheme {url_parsed.scheme} not supported") + return file_path + + +def _make_iterator( + length_func: Callable[[], int], show_progress: bool = False +) -> Callable[[Iterable[T]], Iterator[T]]: + """Create a function that optionally wraps an iterable in tqdm.""" + if show_progress: + try: + from tqdm.auto import tqdm + except ImportError: + raise ImportError( + "You must install tqdm to use show_progress=True." + "You can install tqdm with `pip install tqdm`." + ) + + # Make sure to provide `total` here so that tqdm can show + # a progress bar that takes into account the total number of files. + def _with_tqdm(iterable: Iterable[T]) -> Iterator[T]: + """Wrap an iterable in a tqdm progress bar.""" + return tqdm(iterable, total=length_func()) + + iterator = _with_tqdm + else: + iterator = iter # type: ignore[assignment] + + return iterator + + +# PUBLIC API + + +class CloudBlobLoader(BlobLoader): + """Load blobs from cloud URL or file:. + + Example: + + .. code-block:: python + + loader = CloudBlobLoader("s3://mybucket/id") + + for blob in loader.yield_blobs(): + print(blob) + """ # noqa: E501 + + def __init__( + self, + url: Union[str, "AnyPath"], + *, + glob: str = "**/[!.]*", + exclude: Sequence[str] = (), + suffixes: Optional[Sequence[str]] = None, + show_progress: bool = False, + ) -> None: + """Initialize with a url and how to glob over it. + + Use [CloudPathLib](https://cloudpathlib.drivendata.org/). + + Args: + url: Cloud URL to load from. + Supports s3://, az://, gs://, file:// schemes. + If no scheme is provided, it is assumed to be a local file. + If a path to a file is provided, glob/exclude/suffixes are ignored. + glob: Glob pattern relative to the specified path + by default set to pick up all non-hidden files + exclude: patterns to exclude from results, use glob syntax + suffixes: Provide to keep only files with these suffixes + Useful when wanting to keep files with different suffixes + Suffixes must include the dot, e.g. ".txt" + show_progress: If true, will show a progress bar as the files are loaded. + This forces an iteration through all matching files + to count them prior to loading them. + + Examples: + + .. code-block:: python + from langchain_community.document_loaders.blob_loaders import CloudBlobLoader + + # Load a single file. + loader = CloudBlobLoader("s3://mybucket/id") # az:// + + # Recursively load all text files in a directory. + loader = CloudBlobLoader("az://mybucket/id", glob="**/*.txt") + + # Recursively load all non-hidden files in a directory. + loader = CloudBlobLoader("gs://mybucket/id", glob="**/[!.]*") + + # Load all files in a directory without recursion. + loader = CloudBlobLoader("s3://mybucket/id", glob="*") + + # Recursively load all files in a directory, except for py or pyc files. + loader = CloudBlobLoader( + "s3://mybucket/id", + glob="**/*.txt", + exclude=["**/*.py", "**/*.pyc"] + ) + """ # noqa: E501 + from cloudpathlib import AnyPath + + url_parsed = urlparse(str(url)) + + if url_parsed.scheme == "file": + url = url_parsed.path + + if isinstance(url, str): + self.path = AnyPath(url) + else: + self.path = url + + self.glob = glob + self.suffixes = set(suffixes or []) + self.show_progress = show_progress + self.exclude = exclude + + def yield_blobs( + self, + ) -> Iterable[Blob]: + """Yield blobs that match the requested pattern.""" + iterator = _make_iterator( + length_func=self.count_matching_files, show_progress=self.show_progress + ) + + for path in iterator(self._yield_paths()): + # yield Blob.from_path(path) + yield self.from_path(path) + + def _yield_paths(self) -> Iterable["AnyPath"]: + """Yield paths that match the requested pattern.""" + if self.path.is_file(): + yield self.path + return + + paths = self.path.glob(self.glob) + for path in paths: + if self.exclude: + if any(path.match(glob) for glob in self.exclude): + continue + if path.is_file(): + if self.suffixes and path.suffix not in self.suffixes: + continue # FIXME + yield path + + def count_matching_files(self) -> int: + """Count files that match the pattern without loading them.""" + # Carry out a full iteration to count the files without + # materializing anything expensive in memory. + num = 0 + for _ in self._yield_paths(): + num += 1 + return num + + @classmethod + def from_path( + cls, + path: "AnyPath", + *, + encoding: str = "utf-8", + mime_type: Optional[str] = None, + guess_type: bool = True, + metadata: Optional[dict] = None, + ) -> Blob: + """Load the blob from a path like object. + + Args: + path: path like object to file to be read + Supports s3://, az://, gs://, file:// schemes. + If no scheme is provided, it is assumed to be a local file. + encoding: Encoding to use if decoding the bytes into a string + mime_type: if provided, will be set as the mime-type of the data + guess_type: If True, the mimetype will be guessed from the file extension, + if a mime-type was not provided + metadata: Metadata to associate with the blob + + Returns: + Blob instance + """ + if mime_type is None and guess_type: + _mimetype = mimetypes.guess_type(path)[0] if guess_type else None + else: + _mimetype = mime_type + + url_parsed = urlparse(str(path)) + if url_parsed.scheme in ["file", ""]: + if url_parsed.scheme == "file": + local_path = url_parsed.path + else: + local_path = str(path) + return Blob( + data=None, + mimetype=_mimetype, + encoding=encoding, + path=local_path, + metadata=metadata if metadata is not None else {}, + ) + + return _CloudBlob( + data=None, + mimetype=_mimetype, + encoding=encoding, + path=str(path), + metadata=metadata if metadata is not None else {}, + ) diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/blob_loaders/file_system.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/blob_loaders/file_system.py new file mode 100644 index 0000000000000000000000000000000000000000..ee756f32ed73e90c8f2700f8d451d53fdddabdb5 --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/blob_loaders/file_system.py @@ -0,0 +1,149 @@ +"""Use to load blobs from the local file system.""" + +from pathlib import Path +from typing import Callable, Iterable, Iterator, Optional, Sequence, TypeVar, Union + +from langchain_community.document_loaders.blob_loaders.schema import Blob, BlobLoader + +T = TypeVar("T") + + +def _make_iterator( + length_func: Callable[[], int], show_progress: bool = False +) -> Callable[[Iterable[T]], Iterator[T]]: + """Create a function that optionally wraps an iterable in tqdm.""" + iterator: Callable[[Iterable[T]], Iterator[T]] + if show_progress: + try: + from tqdm.auto import tqdm + except ImportError: + raise ImportError( + "You must install tqdm to use show_progress=True." + "You can install tqdm with `pip install tqdm`." + ) + + # Make sure to provide `total` here so that tqdm can show + # a progress bar that takes into account the total number of files. + def _with_tqdm(iterable: Iterable[T]) -> Iterator[T]: + """Wrap an iterable in a tqdm progress bar.""" + return tqdm(iterable, total=length_func()) + + iterator = _with_tqdm + else: + iterator = iter + + return iterator + + +# PUBLIC API + + +class FileSystemBlobLoader(BlobLoader): + """Load blobs in the local file system. + + Example: + + .. code-block:: python + + from langchain_community.document_loaders.blob_loaders import FileSystemBlobLoader + loader = FileSystemBlobLoader("/path/to/directory") + for blob in loader.yield_blobs(): + print(blob) # noqa: T201 + """ # noqa: E501 + + def __init__( + self, + path: Union[str, Path], + *, + glob: str = "**/[!.]*", + exclude: Sequence[str] = (), + suffixes: Optional[Sequence[str]] = None, + show_progress: bool = False, + ) -> None: + """Initialize with a path to directory and how to glob over it. + + Args: + path: Path to directory to load from or path to file to load. + If a path to a file is provided, glob/exclude/suffixes are ignored. + glob: Glob pattern relative to the specified path + by default set to pick up all non-hidden files + exclude: patterns to exclude from results, use glob syntax + suffixes: Provide to keep only files with these suffixes + Useful when wanting to keep files with different suffixes + Suffixes must include the dot, e.g. ".txt" + show_progress: If true, will show a progress bar as the files are loaded. + This forces an iteration through all matching files + to count them prior to loading them. + + Examples: + + .. code-block:: python + from langchain_community.document_loaders.blob_loaders import FileSystemBlobLoader + + # Load a single file. + loader = FileSystemBlobLoader("/path/to/file.txt") + + # Recursively load all text files in a directory. + loader = FileSystemBlobLoader("/path/to/directory", glob="**/*.txt") + + # Recursively load all non-hidden files in a directory. + loader = FileSystemBlobLoader("/path/to/directory", glob="**/[!.]*") + + # Load all files in a directory without recursion. + loader = FileSystemBlobLoader("/path/to/directory", glob="*") + + # Recursively load all files in a directory, except for py or pyc files. + loader = FileSystemBlobLoader( + "/path/to/directory", + glob="**/*.txt", + exclude=["**/*.py", "**/*.pyc"] + ) + """ # noqa: E501 + if isinstance(path, Path): + _path = path + elif isinstance(path, str): + _path = Path(path) + else: + raise TypeError(f"Expected str or Path, got {type(path)}") + + self.path = _path.expanduser() # Expand user to handle ~ + self.glob = glob + self.suffixes = set(suffixes or []) + self.show_progress = show_progress + self.exclude = exclude + + def yield_blobs( + self, + ) -> Iterable[Blob]: + """Yield blobs that match the requested pattern.""" + iterator = _make_iterator( + length_func=self.count_matching_files, show_progress=self.show_progress + ) + + for path in iterator(self._yield_paths()): + yield Blob.from_path(path) + + def _yield_paths(self) -> Iterable[Path]: + """Yield paths that match the requested pattern.""" + if self.path.is_file(): + yield self.path + return + + paths = self.path.glob(self.glob) + for path in paths: + if self.exclude: + if any(path.match(glob) for glob in self.exclude): + continue + if path.is_file(): + if self.suffixes and path.suffix not in self.suffixes: + continue + yield path + + def count_matching_files(self) -> int: + """Count files that match the pattern without loading them.""" + # Carry out a full iteration to count the files without + # materializing anything expensive in memory. + num = 0 + for _ in self._yield_paths(): + num += 1 + return num diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/blob_loaders/schema.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/blob_loaders/schema.py new file mode 100644 index 0000000000000000000000000000000000000000..208510eaeac507c0007b09aeee92f1d1d2ca4eaa --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/blob_loaders/schema.py @@ -0,0 +1,7 @@ +from langchain_core.document_loaders.blob_loaders import Blob, BlobLoader, PathLike + +__all__ = [ + "Blob", + "BlobLoader", + "PathLike", +] diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/blob_loaders/youtube_audio.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/blob_loaders/youtube_audio.py new file mode 100644 index 0000000000000000000000000000000000000000..b0b2dc6daa8f4e23a42d5ddab12b4c21d5b44896 --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/blob_loaders/youtube_audio.py @@ -0,0 +1,48 @@ +from typing import Iterable, List + +from langchain_community.document_loaders.blob_loaders import FileSystemBlobLoader +from langchain_community.document_loaders.blob_loaders.schema import Blob, BlobLoader + + +class YoutubeAudioLoader(BlobLoader): + """Load YouTube urls as audio file(s).""" + + def __init__(self, urls: List[str], save_dir: str): + if not isinstance(urls, list): + raise TypeError("urls must be a list") + + self.urls = urls + self.save_dir = save_dir + + def yield_blobs(self) -> Iterable[Blob]: + """Yield audio blobs for each url.""" + + try: + import yt_dlp + except ImportError: + raise ImportError( + "yt_dlp package not found, please install it with `pip install yt_dlp`" + ) + + # Use yt_dlp to download audio given a YouTube url + ydl_opts = { + "format": "m4a/bestaudio/best", + "noplaylist": True, + "outtmpl": self.save_dir + "/%(title)s.%(ext)s", + "postprocessors": [ + { + "key": "FFmpegExtractAudio", + "preferredcodec": "m4a", + } + ], + } + + for url in self.urls: + # Download file + with yt_dlp.YoutubeDL(ydl_opts) as ydl: + ydl.download(url) + + # Yield the written blobs + loader = FileSystemBlobLoader(self.save_dir, glob="*.m4a") + for blob in loader.yield_blobs(): + yield blob diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/__init__.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..9712718e19714985e211135afdea820a01110245 --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/__init__.py @@ -0,0 +1,85 @@ +import importlib +from typing import TYPE_CHECKING, Any + +if TYPE_CHECKING: + from langchain_community.document_loaders.parsers.audio import ( + OpenAIWhisperParser, + ) + from langchain_community.document_loaders.parsers.doc_intelligence import ( + AzureAIDocumentIntelligenceParser, + ) + from langchain_community.document_loaders.parsers.docai import ( + DocAIParser, + ) + from langchain_community.document_loaders.parsers.grobid import ( + GrobidParser, + ) + from langchain_community.document_loaders.parsers.html import ( + BS4HTMLParser, + ) + from langchain_community.document_loaders.parsers.images import ( + BaseImageBlobParser, + LLMImageBlobParser, + RapidOCRBlobParser, + TesseractBlobParser, + ) + from langchain_community.document_loaders.parsers.language import ( + LanguageParser, + ) + from langchain_community.document_loaders.parsers.pdf import ( + PDFMinerParser, + PDFPlumberParser, + PyMuPDFParser, + PyPDFium2Parser, + PyPDFParser, + ) + from langchain_community.document_loaders.parsers.vsdx import ( + VsdxParser, + ) + + +_module_lookup = { + "AzureAIDocumentIntelligenceParser": "langchain_community.document_loaders.parsers.doc_intelligence", # noqa: E501 + "BS4HTMLParser": "langchain_community.document_loaders.parsers.html", + "BaseImageBlobParser": "langchain_community.document_loaders.parsers.images", + "DocAIParser": "langchain_community.document_loaders.parsers.docai", + "GrobidParser": "langchain_community.document_loaders.parsers.grobid", + "LanguageParser": "langchain_community.document_loaders.parsers.language", + "LLMImageBlobParser": "langchain_community.document_loaders.parsers.images", + "OpenAIWhisperParser": "langchain_community.document_loaders.parsers.audio", + "PDFMinerParser": "langchain_community.document_loaders.parsers.pdf", + "PDFPlumberParser": "langchain_community.document_loaders.parsers.pdf", + "PyMuPDFParser": "langchain_community.document_loaders.parsers.pdf", + "PyPDFParser": "langchain_community.document_loaders.parsers.pdf", + "PyPDFium2Parser": "langchain_community.document_loaders.parsers.pdf", + "RapidOCRBlobParser": "langchain_community.document_loaders.parsers.images", + "TesseractBlobParser": "langchain_community.document_loaders.parsers.images", + "VsdxParser": "langchain_community.document_loaders.parsers.vsdx", +} + + +def __getattr__(name: str) -> Any: + if name in _module_lookup: + module = importlib.import_module(_module_lookup[name]) + return getattr(module, name) + raise AttributeError(f"module {__name__} has no attribute {name}") + + +__all__ = [ + "AzureAIDocumentIntelligenceParser", + "BaseImageBlobParser", + "BS4HTMLParser", + "DocAIParser", + "GrobidParser", + "LanguageParser", + "LLMImageBlobParser", + "OpenAIWhisperParser", + "PDFMinerParser", + "PDFPlumberParser", + "PyMuPDFParser", + "PyPDFParser", + "PyPDFium2Parser", + "RapidOCRBlobParser", + "TesseractBlobParser", + "VsdxParser", +] diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..fa76b48e0c8976ce656c3eb35b4735b8bab45b54 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/__pycache__/audio.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/__pycache__/audio.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..41e79524b01ad9a7126bae7bfc80b97b3e0a1ff8 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/__pycache__/audio.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/__pycache__/doc_intelligence.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/__pycache__/doc_intelligence.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5d45424dcdfffcddb356065ac09f66887a816874 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/__pycache__/doc_intelligence.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/__pycache__/docai.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/__pycache__/docai.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8e4bb1347c1d8e898980b14b2395f5bf670ff25e Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/__pycache__/docai.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/__pycache__/documentloader_adapter.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/__pycache__/documentloader_adapter.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..dfb46124481a4329be58618ebdbbab6c5db63963 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/__pycache__/documentloader_adapter.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/__pycache__/generic.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/__pycache__/generic.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..61d5d4699e3bbbcbb8dc32de0350e3bdf8ce0112 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/__pycache__/generic.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/__pycache__/grobid.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/__pycache__/grobid.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2fcfd98f2130aed13819aecc2909c50f6a05dbad Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/__pycache__/grobid.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/__pycache__/images.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/__pycache__/images.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ea48070ec26a8c6131723ccd3437d6288eb9c1de Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/__pycache__/images.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/__pycache__/msword.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/__pycache__/msword.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d7aca0ffdd426496a0d710de5fc1c532da1761b4 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/__pycache__/msword.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/__pycache__/pdf.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/__pycache__/pdf.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c4b59f7f665d25e29ea173989df69504d4162618 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/__pycache__/pdf.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/__pycache__/registry.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/__pycache__/registry.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e1865c67bca9f6bdca45c92ab2b99f893eb0f580 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/__pycache__/registry.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/__pycache__/txt.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/__pycache__/txt.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..60acbec9f34a21c3e04df59aacec2c472c38344d Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/__pycache__/txt.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/__pycache__/vsdx.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/__pycache__/vsdx.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..68601a31f0449f5d1dd6e27b31d60a05d8837391 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/__pycache__/vsdx.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/audio.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/audio.py new file mode 100644 index 0000000000000000000000000000000000000000..e03dec6e28cd588256420c618084c9dc21beb72b --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/audio.py @@ -0,0 +1,684 @@ +import io +import logging +import os +import time +from typing import Any, Callable, Dict, Iterator, Literal, Optional, Tuple, Union + +from langchain_core.documents import Document + +from langchain_community.document_loaders.base import BaseBlobParser +from langchain_community.document_loaders.blob_loaders import Blob +from langchain_community.utils.openai import is_openai_v1 + +logger = logging.getLogger(__name__) + + +class AzureOpenAIWhisperParser(BaseBlobParser): + """ + Transcribe and parse audio files using Azure OpenAI Whisper. + + This parser integrates with the Azure OpenAI Whisper model to transcribe + audio files. It differs from the standard OpenAI Whisper parser, requiring + an Azure endpoint and credentials. The parser is limited to files under 25 MB. + + **Note**: + This parser uses the Azure OpenAI API, providing integration with the Azure + ecosystem, and making it suitable for workflows involving other Azure services. + + For files larger than 25 MB, consider using Azure AI Speech batch transcription: + https://learn.microsoft.com/azure/ai-services/speech-service/batch-transcription-create?pivots=rest-api#use-a-whisper-model + + Setup: + 1. Follow the instructions here to deploy Azure Whisper: + https://learn.microsoft.com/azure/ai-services/openai/whisper-quickstart?tabs=command-line%2Cpython-new&pivots=programming-language-python + 2. Install ``langchain`` and set the following environment variables: + + .. code-block:: bash + + pip install -U langchain langchain-community + + export AZURE_OPENAI_API_KEY="your-api-key" + export AZURE_OPENAI_ENDPOINT="https://your-endpoint.openai.azure.com/" + export OPENAI_API_VERSION="your-api-version" + + Example Usage: + .. code-block:: python + + from langchain_classic.community import AzureOpenAIWhisperParser + + whisper_parser = AzureOpenAIWhisperParser( + deployment_name="your-whisper-deployment", + api_version="2024-06-01", + api_key="your-api-key", + # other params... + ) + + audio_blob = Blob(path="your-audio-file-path") + response = whisper_parser.lazy_parse(audio_blob) + + for document in response: + print(document.page_content) + + Integration with Other Loaders: + The AzureOpenAIWhisperParser can be used with video/audio loaders and + `GenericLoader` to automate retrieval and parsing. + + YoutubeAudioLoader Example: + .. code-block:: python + + from langchain_community.document_loaders.blob_loaders import ( + YoutubeAudioLoader + ) + from langchain_community.document_loaders.generic import GenericLoader + + # Must be a list + youtube_url = ["https://your-youtube-url"] + save_dir = "directory-to-download-videos" + + loader = GenericLoader( + YoutubeAudioLoader(youtube_url, save_dir), + AzureOpenAIWhisperParser(deployment_name="your-deployment-name") + ) + + docs = loader.load() + """ + + def __init__( + self, + *, + api_key: Optional[str] = None, + azure_endpoint: Optional[str] = None, + api_version: Optional[str] = None, + azure_ad_token_provider: Union[Callable[[], str], None] = None, + language: Optional[str] = None, + prompt: Optional[str] = None, + response_format: Union[ + Literal["json", "text", "srt", "verbose_json", "vtt"], None + ] = None, + temperature: Optional[float] = None, + deployment_name: str, + max_retries: int = 3, + ): + """ + Initialize the AzureOpenAIWhisperParser. + + Args: + api_key (Optional[str]): + Azure OpenAI API key. If not provided, defaults to the + `AZURE_OPENAI_API_KEY` environment variable. + azure_endpoint (Optional[str]): + Azure OpenAI service endpoint. Defaults to `AZURE_OPENAI_ENDPOINT` + environment variable if not set. + api_version (Optional[str]): + API version to use, + defaults to the `OPENAI_API_VERSION` environment variable. + azure_ad_token_provider (Union[Callable[[], str], None]): + Azure Active Directory token for authentication (if applicable). + language (Optional[str]): + Language in which the request should be processed. + prompt (Optional[str]): + Custom instructions or prompt for the Whisper model. + response_format (Union[str, None]): + The desired output format. Options: "json", "text", "srt", + "verbose_json", "vtt". + temperature (Optional[float]): + Controls the randomness of the model's output. + deployment_name (str): + The deployment name of the Whisper model. + max_retries (int): + Maximum number of retries for failed API requests. + Raises: + ImportError: + If the required package `openai` is not installed. + """ + self.api_key = api_key or os.environ.get("AZURE_OPENAI_API_KEY") + self.azure_endpoint = azure_endpoint or os.environ.get("AZURE_OPENAI_ENDPOINT") + self.api_version = api_version or os.environ.get("OPENAI_API_VERSION") + self.azure_ad_token_provider = azure_ad_token_provider + + self.language = language + self.prompt = prompt + self.response_format = response_format + self.temperature = temperature + + self.deployment_name = deployment_name + self.max_retries = max_retries + + try: + import openai + except ImportError: + raise ImportError( + "openai package not found, please install it with `pip install openai`" + ) + + if is_openai_v1(): + self._client = openai.AzureOpenAI( + api_key=self.api_key, + azure_endpoint=self.azure_endpoint, + api_version=self.api_version, + max_retries=self.max_retries, + azure_ad_token_provider=self.azure_ad_token_provider, + ) + else: + if self.api_key: + openai.api_key = self.api_key + if self.azure_endpoint: + openai.api_base = self.azure_endpoint + if self.api_version: + openai.api_version = self.api_version + openai.api_type = "azure" + self._client = openai + + @property + def _create_params(self) -> Dict[str, Any]: + params = { + "language": self.language, + "prompt": self.prompt, + "response_format": self.response_format, + "temperature": self.temperature, + } + return {k: v for k, v in params.items() if v is not None} + + def lazy_parse(self, blob: Blob) -> Iterator[Document]: + """ + Lazily parse the provided audio blob for transcription. + + Args: + blob (Blob): + The audio file in Blob format to be transcribed. + + Yields: + Document: + Parsed transcription from the audio file. + + Raises: + Exception: + If an error occurs during transcription. + """ + + file_obj = open(str(blob.path), "rb") + + # Transcribe + try: + if is_openai_v1(): + transcript = self._client.audio.transcriptions.create( + model=self.deployment_name, + file=file_obj, + **self._create_params, + ) + else: + transcript = self._client.Audio.transcribe( + model=self.deployment_name, + deployment_id=self.deployment_name, + file=file_obj, + **self._create_params, + ) + except Exception: + raise + + yield Document( + page_content=transcript.text + if not isinstance(transcript, str) + else transcript, + metadata={"source": blob.source}, + ) + + +class OpenAIWhisperParser(BaseBlobParser): + """Transcribe and parse audio files. + + Audio transcription is with OpenAI Whisper model. + + Args: + api_key: OpenAI API key + chunk_duration_threshold: Minimum duration of a chunk in seconds + NOTE: According to the OpenAI API, the chunk duration should be at least 0.1 + seconds. If the chunk duration is less or equal than the threshold, + it will be skipped. + """ + + def __init__( + self, + api_key: Optional[str] = None, + *, + chunk_duration_threshold: float = 0.1, + base_url: Optional[str] = None, + language: Union[str, None] = None, + prompt: Union[str, None] = None, + response_format: Union[ + Literal["json", "text", "srt", "verbose_json", "vtt"], None + ] = None, + temperature: Union[float, None] = None, + model: str = "whisper-1", + ): + self.api_key = api_key + self.chunk_duration_threshold = chunk_duration_threshold + self.base_url = ( + base_url if base_url is not None else os.environ.get("OPENAI_API_BASE") + ) + self.language = language + self.prompt = prompt + self.response_format = response_format + self.temperature = temperature + self.model = model + + @property + def _create_params(self) -> Dict[str, Any]: + params = { + "language": self.language, + "prompt": self.prompt, + "response_format": self.response_format, + "temperature": self.temperature, + } + return {k: v for k, v in params.items() if v is not None} + + def lazy_parse(self, blob: Blob) -> Iterator[Document]: + """Lazily parse the blob.""" + + try: + import openai + except ImportError: + raise ImportError( + "openai package not found, please install it with `pip install openai`" + ) + + audio = _get_audio_from_blob(blob) + + if is_openai_v1(): + # api_key optional, defaults to `os.environ['OPENAI_API_KEY']` + client = openai.OpenAI(api_key=self.api_key, base_url=self.base_url) + else: + # Set the API key if provided + if self.api_key: + openai.api_key = self.api_key + if self.base_url: + openai.api_base = self.base_url + + # Define the duration of each chunk in minutes + # Need to meet 25MB size limit for Whisper API + chunk_duration = 20 + chunk_duration_ms = chunk_duration * 60 * 1000 + + # Split the audio into chunk_duration_ms chunks + for split_number, i in enumerate(range(0, len(audio), chunk_duration_ms)): + # Audio chunk + chunk = audio[i : i + chunk_duration_ms] + # Skip chunks that are too short to transcribe + if chunk.duration_seconds <= self.chunk_duration_threshold: + continue + file_obj = io.BytesIO(chunk.export(format="mp3").read()) + if blob.source is not None: + file_obj.name = blob.source + f"_part_{split_number}.mp3" + else: + file_obj.name = f"part_{split_number}.mp3" + + # Transcribe + print(f"Transcribing part {split_number + 1}!") # noqa: T201 + attempts = 0 + while attempts < 3: + try: + if is_openai_v1(): + transcript = client.audio.transcriptions.create( + model=self.model, file=file_obj, **self._create_params + ) + else: + transcript = openai.Audio.transcribe(self.model, file_obj) + break + except Exception as e: + attempts += 1 + print(f"Attempt {attempts} failed. Exception: {str(e)}") # noqa: T201 + time.sleep(5) + else: + print("Failed to transcribe after 3 attempts.") # noqa: T201 + continue + + yield Document( + page_content=transcript.text + if not isinstance(transcript, str) + else transcript, + metadata={"source": blob.source, "chunk": split_number}, + ) + + +class OpenAIWhisperParserLocal(BaseBlobParser): + """Transcribe and parse audio files with OpenAI Whisper model. + + Audio transcription with OpenAI Whisper model locally from transformers. + + Parameters: + device - device to use + NOTE: By default uses the gpu if available, + if you want to use cpu, please set device = "cpu" + lang_model - whisper model to use, for example "openai/whisper-medium" + forced_decoder_ids - id states for decoder in multilanguage model, + usage example: + from transformers import WhisperProcessor + processor = WhisperProcessor.from_pretrained("openai/whisper-medium") + forced_decoder_ids = WhisperProcessor.get_decoder_prompt_ids(language="french", + task="transcribe") + forced_decoder_ids = WhisperProcessor.get_decoder_prompt_ids(language="french", + task="translate") + + + + """ + + def __init__( + self, + device: str = "0", + lang_model: Optional[str] = None, + batch_size: int = 8, + chunk_length: int = 30, + forced_decoder_ids: Optional[Tuple[Dict]] = None, + ): + """Initialize the parser. + + Args: + device: device to use. + lang_model: whisper model to use, for example "openai/whisper-medium". + Defaults to None. + forced_decoder_ids: id states for decoder in a multilanguage model. + Defaults to None. + batch_size: batch size used for decoding + Defaults to 8. + chunk_length: chunk length used during inference. + Defaults to 30s. + """ + try: + from transformers import pipeline + except ImportError: + raise ImportError( + "transformers package not found, please install it with " + "`pip install transformers`" + ) + try: + import torch + except ImportError: + raise ImportError( + "torch package not found, please install it with `pip install torch`" + ) + + # Determine the device to use + if device == "cpu": + self.device = "cpu" + else: + self.device = "cuda:0" if torch.cuda.is_available() else "cpu" + + if self.device == "cpu": + default_model = "openai/whisper-base" + self.lang_model = lang_model if lang_model else default_model + else: + # Set the language model based on the device and available memory + mem = torch.cuda.get_device_properties(self.device).total_memory / (1024**2) + if mem < 5000: + rec_model = "openai/whisper-base" + elif mem < 7000: + rec_model = "openai/whisper-small" + elif mem < 12000: + rec_model = "openai/whisper-medium" + else: + rec_model = "openai/whisper-large" + self.lang_model = lang_model if lang_model else rec_model + + print("Using the following model: ", self.lang_model) # noqa: T201 + + self.batch_size = batch_size + + # load model for inference + self.pipe = pipeline( + "automatic-speech-recognition", + model=self.lang_model, + chunk_length_s=chunk_length, + device=self.device, + ) + if forced_decoder_ids is not None: + try: + self.pipe.model.config.forced_decoder_ids = forced_decoder_ids + except Exception as exception_text: + logger.info( + "Unable to set forced_decoder_ids parameter for whisper model" + f"Text of exception: {exception_text}" + "Therefore whisper model will use default mode for decoder" + ) + + def lazy_parse(self, blob: Blob) -> Iterator[Document]: + """Lazily parse the blob.""" + + try: + import librosa + except ImportError: + raise ImportError( + "librosa package not found, please install it with " + "`pip install librosa`" + ) + + audio = _get_audio_from_blob(blob) + + file_obj = io.BytesIO(audio.export(format="mp3").read()) + + # Transcribe + print(f"Transcribing part {blob.path}!") # noqa: T201 + + y, sr = librosa.load(file_obj, sr=16000) + + prediction = self.pipe(y.copy(), batch_size=self.batch_size)["text"] + + yield Document( + page_content=prediction, + metadata={"source": blob.source}, + ) + + +class YandexSTTParser(BaseBlobParser): + """Transcribe and parse audio files. + Audio transcription is with OpenAI Whisper model.""" + + def __init__( + self, + *, + api_key: Optional[str] = None, + iam_token: Optional[str] = None, + model: str = "general", + language: str = "auto", + ): + """Initialize the parser. + + Args: + api_key: API key for a service account + with the `ai.speechkit-stt.user` role. + iam_token: IAM token for a service account + with the `ai.speechkit-stt.user` role. + model: Recognition model name. + Defaults to general. + language: The language in ISO 639-1 format. + Defaults to automatic language recognition. + Either `api_key` or `iam_token` must be provided, but not both. + """ + if (api_key is None) == (iam_token is None): + raise ValueError( + "Either 'api_key' or 'iam_token' must be provided, but not both." + ) + self.api_key = api_key + self.iam_token = iam_token + self.model = model + self.language = language + + def lazy_parse(self, blob: Blob) -> Iterator[Document]: + """Lazily parse the blob.""" + + try: + from speechkit import configure_credentials, creds, model_repository + from speechkit.stt import AudioProcessingType + except ImportError: + raise ImportError( + "yandex-speechkit package not found, please install it with " + "`pip install yandex-speechkit`" + ) + + audio = _get_audio_from_blob(blob) + + if self.api_key: + configure_credentials( + yandex_credentials=creds.YandexCredentials(api_key=self.api_key) + ) + else: + configure_credentials( + yandex_credentials=creds.YandexCredentials(iam_token=self.iam_token) + ) + + model = model_repository.recognition_model() + + model.model = self.model + model.language = self.language + model.audio_processing_type = AudioProcessingType.Full + + result = model.transcribe(audio) + + for res in result: + yield Document( + page_content=res.normalized_text, + metadata={"source": blob.source}, + ) + + +class FasterWhisperParser(BaseBlobParser): + """Transcribe and parse audio files with faster-whisper. + + faster-whisper is a reimplementation of OpenAI's Whisper model using CTranslate2, + which is up to 4 times faster than openai/whisper for the same accuracy while using + less memory. The efficiency can be further improved with 8-bit quantization on both + CPU and GPU. + + It can automatically detect the following 14 languages and transcribe the text + into their respective languages: en, zh, fr, de, ja, ko, ru, es, th, it, pt, vi, + ar, tr. + + The gitbub repository for faster-whisper is : + https://github.com/SYSTRAN/faster-whisper + + Example: Load a YouTube video and transcribe the video speech into a document. + .. code-block:: python + + from langchain_classic.document_loaders.generic import GenericLoader + from langchain_community.document_loaders.parsers.audio + import FasterWhisperParser + from langchain_classic.document_loaders.blob_loaders.youtube_audio + import YoutubeAudioLoader + + + url="https://www.youtube.com/watch?v=your_video" + save_dir="your_dir/" + loader = GenericLoader( + YoutubeAudioLoader([url],save_dir), + FasterWhisperParser() + ) + docs = loader.load() + + """ + + def __init__( + self, + *, + device: Optional[str] = "cuda", + model_size: Optional[str] = None, + ): + """Initialize the parser. + + Args: + device: It can be "cuda" or "cpu" based on the available device. + model_size: There are four model sizes to choose from: "base", "small", + "medium", and "large-v3", based on the available GPU memory. + """ + try: + import torch + except ImportError: + raise ImportError( + "torch package not found, please install it with `pip install torch`" + ) + + # Determine the device to use + if device == "cpu": + self.device = "cpu" + else: + self.device = "cuda" if torch.cuda.is_available() else "cpu" + + # Determine the model_size + if self.device == "cpu": + self.model_size = "base" + else: + # Set the model_size based on the available memory + mem = torch.cuda.get_device_properties(self.device).total_memory / (1024**2) + if mem < 1000: + self.model_size = "base" + elif mem < 3000: + self.model_size = "small" + elif mem < 5000: + self.model_size = "medium" + else: + self.model_size = "large-v3" + # If the user has assigned a model size, then use the assigned size + if model_size is not None: + if model_size in ["base", "small", "medium", "large-v3"]: + self.model_size = model_size + + def lazy_parse(self, blob: Blob) -> Iterator[Document]: + """Lazily parse the blob.""" + + try: + from faster_whisper import WhisperModel + except ImportError: + raise ImportError( + "faster_whisper package not found, please install it with " + "`pip install faster-whisper`" + ) + + audio = _get_audio_from_blob(blob) + + file_obj = io.BytesIO(audio.export(format="mp3").read()) + + # Transcribe + model = WhisperModel(self.model_size, device=self.device) + + segments, info = model.transcribe(file_obj, beam_size=5) + + for segment in segments: + yield Document( + page_content=segment.text, + metadata={ + "source": blob.source, + "timestamps": "[%.2fs -> %.2fs]" % (segment.start, segment.end), + "language": info.language, + "probability": "%d%%" % round(info.language_probability * 100), + **blob.metadata, + }, + ) + + +def _get_audio_from_blob(blob: Blob) -> Any: + """Get audio data from blob. + + Args: + blob: Blob object containing the audio data. + + Returns: + AudioSegment: Audio data from the blob. + + Raises: + ImportError: If the required package `pydub` is not installed. + ValueError: If the audio data is not found in the blob + """ + try: + from pydub import AudioSegment + except ImportError: + raise ImportError( + "pydub package not found, please install it with `pip install pydub`" + ) + + if isinstance(blob.data, bytes): + audio = AudioSegment.from_file(io.BytesIO(blob.data)) + elif blob.data is None and blob.path: + audio = AudioSegment.from_file(blob.path) + else: + raise ValueError("Unable to get audio from blob") + + return audio diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/doc_intelligence.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/doc_intelligence.py new file mode 100644 index 0000000000000000000000000000000000000000..f122f4dbabb5e3c99bf2e16ef2fdc31256d469c5 --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/doc_intelligence.py @@ -0,0 +1,136 @@ +from __future__ import annotations + +import logging +from typing import TYPE_CHECKING, Any, Iterator, List, Optional, Union + +from langchain_core.documents import Document + +from langchain_community.document_loaders.base import BaseBlobParser +from langchain_community.document_loaders.blob_loaders import Blob + +if TYPE_CHECKING: + from azure.core.credentials import TokenCredential + +logger = logging.getLogger(__name__) + + +class AzureAIDocumentIntelligenceParser(BaseBlobParser): + """Loads a PDF with Azure Document Intelligence + (formerly Forms Recognizer).""" + + def __init__( + self, + api_endpoint: str, + api_key: Optional[str] = None, + api_version: Optional[str] = None, + api_model: str = "prebuilt-layout", + mode: str = "markdown", + analysis_features: Optional[List[str]] = None, + azure_credential: Optional["TokenCredential"] = None, + ): + from azure.ai.documentintelligence import DocumentIntelligenceClient + from azure.ai.documentintelligence.models import DocumentAnalysisFeature + from azure.core.credentials import AzureKeyCredential + + kwargs = {} + + credential: Union[AzureKeyCredential, TokenCredential] + if azure_credential: + if api_key is not None: + raise ValueError( + "Only one of api_key or azure_credential should be provided." + ) + credential = azure_credential + elif api_key is not None: + credential = AzureKeyCredential(api_key) + else: + raise ValueError("Either api_key or azure_credential must be provided.") + + if api_version is not None: + kwargs["api_version"] = api_version + + self.client = DocumentIntelligenceClient( + endpoint=api_endpoint, + credential=credential, + headers={"x-ms-useragent": "langchain-parser/1.0.0"}, + **kwargs, + ) + self.api_model = api_model + self.mode = mode + self.features: Optional[List[DocumentAnalysisFeature]] = None + if analysis_features is not None: + self.features = [ + DocumentAnalysisFeature(feature) for feature in analysis_features + ] + assert self.mode in ["single", "page", "markdown"] + + def _generate_docs_page(self, result: Any) -> Iterator[Document]: + for p in result.pages: + content = " ".join([line.content for line in p.lines]) + + d = Document( + page_content=content, + metadata={ + "page": p.page_number, + }, + ) + yield d + + def _generate_docs_single(self, result: Any) -> Iterator[Document]: + yield Document(page_content=result.content, metadata=result.as_dict()) + + def lazy_parse(self, blob: Blob) -> Iterator[Document]: + """Lazily parse the blob.""" + + with blob.as_bytes_io() as file_obj: + poller = self.client.begin_analyze_document( + self.api_model, + body=file_obj, + content_type="application/octet-stream", + output_content_format="markdown" if self.mode == "markdown" else "text", + features=self.features, + ) + result = poller.result() + + if self.mode in ["single", "markdown"]: + yield from self._generate_docs_single(result) + elif self.mode in ["page"]: + yield from self._generate_docs_page(result) + else: + raise ValueError(f"Invalid mode: {self.mode}") + + def parse_url(self, url: str) -> Iterator[Document]: + from azure.ai.documentintelligence.models import AnalyzeDocumentRequest + + poller = self.client.begin_analyze_document( + self.api_model, + body=AnalyzeDocumentRequest(url_source=url), + output_content_format="markdown" if self.mode == "markdown" else "text", + features=self.features, + ) + result = poller.result() + + if self.mode in ["single", "markdown"]: + yield from self._generate_docs_single(result) + elif self.mode in ["page"]: + yield from self._generate_docs_page(result) + else: + raise ValueError(f"Invalid mode: {self.mode}") + + def parse_bytes(self, bytes_source: bytes) -> Iterator[Document]: + from azure.ai.documentintelligence.models import AnalyzeDocumentRequest + + poller = self.client.begin_analyze_document( + self.api_model, + body=AnalyzeDocumentRequest(bytes_source=bytes_source), + output_content_format="markdown" if self.mode == "markdown" else "text", + features=self.features, + ) + result = poller.result() + + if self.mode in ["single", "markdown"]: + yield from self._generate_docs_single(result) + elif self.mode in ["page"]: + yield from self._generate_docs_page(result) + else: + raise ValueError(f"Invalid mode: {self.mode}") diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/docai.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/docai.py new file mode 100644 index 0000000000000000000000000000000000000000..b17b52ebcb069929c838a6e15e637d2688897552 --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/docai.py @@ -0,0 +1,395 @@ +"""Module contains a PDF parser based on Document AI from Google Cloud. + +You need to install two libraries to use this parser: +pip install google-cloud-documentai +pip install google-cloud-documentai-toolbox +""" + +import logging +import re +import time +from dataclasses import dataclass +from typing import TYPE_CHECKING, Iterator, List, Optional, Sequence + +from langchain_core._api.deprecation import deprecated +from langchain_core.documents import Document +from langchain_core.utils.iter import batch_iterate + +from langchain_community.document_loaders.base import BaseBlobParser +from langchain_community.document_loaders.blob_loaders import Blob +from langchain_community.utilities.vertexai import get_client_info + +if TYPE_CHECKING: + from google.api_core.operation import Operation + from google.cloud.documentai import DocumentProcessorServiceClient + + +logger = logging.getLogger(__name__) + + +@dataclass +class DocAIParsingResults: + """Dataclass to store Document AI parsing results.""" + + source_path: str + parsed_path: str + + +@deprecated( + since="0.0.32", + removal="1.0", + alternative_import="langchain_google_community.DocAIParser", +) +class DocAIParser(BaseBlobParser): + """`Google Cloud Document AI` parser. + + For a detailed explanation of Document AI, refer to the product documentation. + https://cloud.google.com/document-ai/docs/overview + """ + + def __init__( + self, + *, + client: Optional["DocumentProcessorServiceClient"] = None, + location: Optional[str] = None, + gcs_output_path: Optional[str] = None, + processor_name: Optional[str] = None, + ): + """Initializes the parser. + + Args: + client: a DocumentProcessorServiceClient to use + location: a Google Cloud location where a Document AI processor is located + gcs_output_path: a path on Google Cloud Storage to store parsing results + processor_name: full resource name of a Document AI processor or processor + version + + You should provide either a client or location (and then a client + would be instantiated). + """ + + if bool(client) == bool(location): + raise ValueError( + "You must specify either a client or a location to instantiate " + "a client." + ) + + pattern = r"projects\/[0-9]+\/locations\/[a-z\-0-9]+\/processors\/[a-z0-9]+" + if processor_name and not re.fullmatch(pattern, processor_name): + raise ValueError( + f"Processor name {processor_name} has the wrong format. If your " + "prediction endpoint looks like https://us-documentai.googleapis.com" + "/v1/projects/PROJECT_ID/locations/us/processors/PROCESSOR_ID:process," + " use only projects/PROJECT_ID/locations/us/processors/PROCESSOR_ID " + "part." + ) + + self._gcs_output_path = gcs_output_path + self._processor_name = processor_name + if client: + self._client = client + else: + try: + from google.api_core.client_options import ClientOptions + from google.cloud.documentai import DocumentProcessorServiceClient + except ImportError as exc: + raise ImportError( + "documentai package not found, please install it with" + " `pip install google-cloud-documentai`" + ) from exc + options = ClientOptions( + api_endpoint=f"{location}-documentai.googleapis.com" + ) + self._client = DocumentProcessorServiceClient( + client_options=options, + client_info=get_client_info(module="document-ai"), + ) + + def lazy_parse(self, blob: Blob) -> Iterator[Document]: + """Parses a blob lazily. + + Args: + blobs: a Blob to parse + + This is a long-running operation. A recommended way is to batch + documents together and use the `batch_parse()` method. + """ + yield from self.batch_parse([blob], gcs_output_path=self._gcs_output_path) + + def online_process( + self, + blob: Blob, + enable_native_pdf_parsing: bool = True, + field_mask: Optional[str] = None, + page_range: Optional[List[int]] = None, + ) -> Iterator[Document]: + """Parses a blob lazily using online processing. + + Args: + blob: a blob to parse. + enable_native_pdf_parsing: enable pdf embedded text extraction + field_mask: a comma-separated list of which fields to include in the + Document AI response. + suggested: "text,pages.pageNumber,pages.layout" + page_range: list of page numbers to parse. If `None`, + entire document will be parsed. + """ + try: + from google.cloud import documentai + from google.cloud.documentai_v1.types import ( + IndividualPageSelector, + OcrConfig, + ProcessOptions, + ) + except ImportError as exc: + raise ImportError( + "documentai package not found, please install it with" + " `pip install google-cloud-documentai`" + ) from exc + try: + from google.cloud.documentai_toolbox.wrappers.page import _text_from_layout + except ImportError as exc: + raise ImportError( + "documentai_toolbox package not found, please install it with" + " `pip install google-cloud-documentai-toolbox`" + ) from exc + ocr_config = ( + OcrConfig(enable_native_pdf_parsing=enable_native_pdf_parsing) + if enable_native_pdf_parsing + else None + ) + individual_page_selector = ( + IndividualPageSelector(pages=page_range) if page_range else None + ) + + response = self._client.process_document( + documentai.ProcessRequest( + name=self._processor_name, + gcs_document=documentai.GcsDocument( + gcs_uri=blob.path, + mime_type=blob.mimetype or "application/pdf", + ), + process_options=ProcessOptions( + ocr_config=ocr_config, + individual_page_selector=individual_page_selector, + ), + skip_human_review=True, + field_mask=field_mask, + ) + ) + yield from ( + Document( + page_content=_text_from_layout(page.layout, response.document.text), + metadata={ + "page": page.page_number, + "source": blob.path, + }, + ) + for page in response.document.pages + ) + + def batch_parse( + self, + blobs: Sequence[Blob], + gcs_output_path: Optional[str] = None, + timeout_sec: int = 3600, + check_in_interval_sec: int = 60, + ) -> Iterator[Document]: + """Parses a list of blobs lazily. + + Args: + blobs: a list of blobs to parse. + gcs_output_path: a path on Google Cloud Storage to store parsing results. + timeout_sec: a timeout to wait for Document AI to complete, in seconds. + check_in_interval_sec: an interval to wait until next check + whether parsing operations have been completed, in seconds + This is a long-running operation. A recommended way is to decouple + parsing from creating LangChain Documents: + >>> operations = parser.docai_parse(blobs, gcs_path) + >>> parser.is_running(operations) + You can get operations names and save them: + >>> names = [op.operation.name for op in operations] + And when all operations are finished, you can use their results: + >>> operations = parser.operations_from_names(operation_names) + >>> results = parser.get_results(operations) + >>> docs = parser.parse_from_results(results) + """ + output_path = gcs_output_path or self._gcs_output_path + if not output_path: + raise ValueError( + "An output path on Google Cloud Storage should be provided." + ) + operations = self.docai_parse(blobs, gcs_output_path=output_path) + operation_names = [op.operation.name for op in operations] + logger.debug( + "Started parsing with Document AI, submitted operations %s", operation_names + ) + time_elapsed = 0 + while self.is_running(operations): + time.sleep(check_in_interval_sec) + time_elapsed += check_in_interval_sec + if time_elapsed > timeout_sec: + raise TimeoutError( + f"Timeout exceeded! Check operations {operation_names} later!" + ) + logger.debug(".") + + results = self.get_results(operations=operations) + yield from self.parse_from_results(results) + + def parse_from_results( + self, results: List[DocAIParsingResults] + ) -> Iterator[Document]: + try: + from google.cloud.documentai_toolbox.utilities.gcs_utilities import ( + split_gcs_uri, + ) + from google.cloud.documentai_toolbox.wrappers.document import _get_shards + from google.cloud.documentai_toolbox.wrappers.page import _text_from_layout + except ImportError as exc: + raise ImportError( + "documentai_toolbox package not found, please install it with" + " `pip install google-cloud-documentai-toolbox`" + ) from exc + for result in results: + gcs_bucket_name, gcs_prefix = split_gcs_uri(result.parsed_path) + shards = _get_shards(gcs_bucket_name, gcs_prefix) + yield from ( + Document( + page_content=_text_from_layout(page.layout, shard.text), + metadata={"page": page.page_number, "source": result.source_path}, + ) + for shard in shards + for page in shard.pages + ) + + def operations_from_names(self, operation_names: List[str]) -> List["Operation"]: + """Initializes Long-Running Operations from their names.""" + try: + from google.longrunning.operations_pb2 import ( + GetOperationRequest, + ) + except ImportError as exc: + raise ImportError( + "long running operations package not found, please install it with" + " `pip install gapic-google-longrunning`" + ) from exc + + return [ + self._client.get_operation(request=GetOperationRequest(name=name)) + for name in operation_names + ] + + def is_running(self, operations: List["Operation"]) -> bool: + return any(not op.done() for op in operations) + + def docai_parse( + self, + blobs: Sequence[Blob], + *, + gcs_output_path: Optional[str] = None, + processor_name: Optional[str] = None, + batch_size: int = 1000, + enable_native_pdf_parsing: bool = True, + field_mask: Optional[str] = None, + ) -> List["Operation"]: + """Runs Google Document AI PDF Batch Processing on a list of blobs. + + Args: + blobs: a list of blobs to be parsed + gcs_output_path: a path (folder) on GCS to store results + processor_name: name of a Document AI processor. + batch_size: amount of documents per batch + enable_native_pdf_parsing: a config option for the parser + field_mask: a comma-separated list of which fields to include in the + Document AI response. + suggested: "text,pages.pageNumber,pages.layout" + + Document AI has a 1000 file limit per batch, so batches larger than that need + to be split into multiple requests. + Batch processing is an async long-running operation + and results are stored in a output GCS bucket. + """ + try: + from google.cloud import documentai + from google.cloud.documentai_v1.types import OcrConfig, ProcessOptions + except ImportError as exc: + raise ImportError( + "documentai package not found, please install it with" + " `pip install google-cloud-documentai`" + ) from exc + + output_path = gcs_output_path or self._gcs_output_path + if output_path is None: + raise ValueError( + "An output path on Google Cloud Storage should be provided." + ) + processor_name = processor_name or self._processor_name + if processor_name is None: + raise ValueError("A Document AI processor name should be provided.") + + operations = [] + for batch in batch_iterate(size=batch_size, iterable=blobs): + input_config = documentai.BatchDocumentsInputConfig( + gcs_documents=documentai.GcsDocuments( + documents=[ + documentai.GcsDocument( + gcs_uri=blob.path, + mime_type=blob.mimetype or "application/pdf", + ) + for blob in batch + ] + ) + ) + + output_config = documentai.DocumentOutputConfig( + gcs_output_config=documentai.DocumentOutputConfig.GcsOutputConfig( + gcs_uri=output_path, field_mask=field_mask + ) + ) + + process_options = ( + ProcessOptions( + ocr_config=OcrConfig( + enable_native_pdf_parsing=enable_native_pdf_parsing + ) + ) + if enable_native_pdf_parsing + else None + ) + operations.append( + self._client.batch_process_documents( + documentai.BatchProcessRequest( + name=processor_name, + input_documents=input_config, + document_output_config=output_config, + process_options=process_options, + skip_human_review=True, + ) + ) + ) + return operations + + def get_results(self, operations: List["Operation"]) -> List[DocAIParsingResults]: + try: + from google.cloud.documentai_v1 import BatchProcessMetadata + except ImportError as exc: + raise ImportError( + "documentai package not found, please install it with" + " `pip install google-cloud-documentai`" + ) from exc + + return [ + DocAIParsingResults( + source_path=status.input_gcs_source, + parsed_path=status.output_gcs_destination, + ) + for op in operations + for status in ( + op.metadata.individual_process_statuses + if isinstance(op.metadata, BatchProcessMetadata) + else BatchProcessMetadata.deserialize( + op.metadata.value + ).individual_process_statuses + ) + ] diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/documentloader_adapter.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/documentloader_adapter.py new file mode 100644 index 0000000000000000000000000000000000000000..93f6bb9ea12d6f8ff198c7e0e8e58eb113c15a65 --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/documentloader_adapter.py @@ -0,0 +1,67 @@ +import inspect +from typing import Any, Dict, Iterator, Type + +from langchain_classic.document_loaders.base import BaseBlobParser, BaseLoader +from langchain_core._api import beta +from langchain_core.documents import Document +from langchain_core.documents.base import Blob + + +@beta() +class DocumentLoaderAsParser(BaseBlobParser): + """A wrapper class that adapts a document loader to function as a parser. + + This class is a work-around that adapts a document loader to function as a parser. + It is recommended to use a proper parser, if available. + + Requires the document loader to accept a `file_path` parameter. + """ + + DocumentLoaderType: Type[BaseLoader] + doc_loader_kwargs: Dict[str, Any] + + def __init__(self, document_loader_class: Type[BaseLoader], **kwargs: Any) -> None: + """ + Initializes the DocumentLoaderAsParser with a specific document loader class + and additional arguments. + + Args: + document_loader_class (Type[BaseLoader]): The document loader class to adapt + as a parser. + **kwargs: Additional arguments passed to the document loader's constructor. + + Raises: + TypeError: If the specified document loader does not accept a `file_path` parameter, + an exception is raised, as only loaders with this parameter can be adapted. + + Example: + ``` + from langchain_community.document_loaders.excel import UnstructuredExcelLoader + + # Initialize parser adapter with a document loader + excel_parser = DocumentLoaderAsParser(UnstructuredExcelLoader, mode="elements") + ``` + """ # noqa: E501 + super().__init__() + self.DocumentLoaderClass = document_loader_class + self.document_loader_kwargs = kwargs + + # Ensure the document loader class has a `file_path` parameter + init_signature = inspect.signature(document_loader_class.__init__) + if "file_path" not in init_signature.parameters: + raise TypeError( + f"{document_loader_class.__name__} does not accept `file_path`." + "Only document loaders with `file_path` parameter" + "can be morphed into a parser." + ) + + def lazy_parse(self, blob: Blob) -> Iterator[Document]: + """ + Use underlying DocumentLoader to lazily parse the blob. + """ + doc_loader = self.DocumentLoaderClass( # type: ignore[call-arg] + file_path=blob.path, **self.document_loader_kwargs + ) + for document in doc_loader.lazy_load(): + document.metadata.update(blob.metadata) + yield document diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/generic.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/generic.py new file mode 100644 index 0000000000000000000000000000000000000000..75861ab346d9653431c0cdcac5b02d029ca93703 --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/generic.py @@ -0,0 +1,71 @@ +"""Code for generic / auxiliary parsers. + +This module contains some logic to help assemble more sophisticated parsers. +""" + +from typing import Iterator, Mapping, Optional + +from langchain_core.documents import Document + +from langchain_community.document_loaders.base import BaseBlobParser +from langchain_community.document_loaders.blob_loaders.schema import Blob + + +class MimeTypeBasedParser(BaseBlobParser): + """Parser that uses `mime`-types to parse a blob. + + This parser is useful for simple pipelines where the mime-type is sufficient + to determine how to parse a blob. + + To use, configure handlers based on mime-types and pass them to the initializer. + + Example: + + .. code-block:: python + + from langchain_community.document_loaders.parsers.generic import MimeTypeBasedParser + + parser = MimeTypeBasedParser( + handlers={ + "application/pdf": ..., + }, + fallback_parser=..., + ) + """ # noqa: E501 + + def __init__( + self, + handlers: Mapping[str, BaseBlobParser], + *, + fallback_parser: Optional[BaseBlobParser] = None, + ) -> None: + """Define a parser that uses mime-types to determine how to parse a blob. + + Args: + handlers: A mapping from mime-types to functions that take a blob, parse it + and return a document. + fallback_parser: A fallback_parser parser to use if the mime-type is not + found in the handlers. If provided, this parser will be + used to parse blobs with all mime-types not found in + the handlers. + If not provided, a ValueError will be raised if the + mime-type is not found in the handlers. + """ + self.handlers = handlers + self.fallback_parser = fallback_parser + + def lazy_parse(self, blob: Blob) -> Iterator[Document]: + """Load documents from a blob.""" + mimetype = blob.mimetype + + if mimetype is None: + raise ValueError(f"{blob} does not have a mimetype.") + + if mimetype in self.handlers: + handler = self.handlers[mimetype] + yield from handler.lazy_parse(blob) + else: + if self.fallback_parser is not None: + yield from self.fallback_parser.lazy_parse(blob) + else: + raise ValueError(f"Unsupported mime type: {mimetype}") diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/grobid.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/grobid.py new file mode 100644 index 0000000000000000000000000000000000000000..4df05fe7b30f149416860e88af2c74f2cc70870a --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/grobid.py @@ -0,0 +1,153 @@ +import logging +from typing import Dict, Iterator, List, Union + +import requests +from langchain_core.documents import Document + +from langchain_community.document_loaders.base import BaseBlobParser +from langchain_community.document_loaders.blob_loaders import Blob + +logger = logging.getLogger(__name__) + + +class ServerUnavailableException(Exception): + """Exception raised when the Grobid server is unavailable.""" + + pass + + +class GrobidParser(BaseBlobParser): + """Load article `PDF` files using `Grobid`.""" + + def __init__( + self, + segment_sentences: bool, + grobid_server: str = "http://localhost:8070/api/processFulltextDocument", + ) -> None: + self.segment_sentences = segment_sentences + self.grobid_server = grobid_server + try: + requests.get(grobid_server) + except requests.exceptions.RequestException: + logger.error( + "GROBID server does not appear up and running, \ + please ensure Grobid is installed and the server is running" + ) + raise ServerUnavailableException + + def process_xml( + self, file_path: str, xml_data: str, segment_sentences: bool + ) -> Iterator[Document]: + """Process the XML file from Grobin.""" + + try: + from bs4 import BeautifulSoup + except ImportError: + raise ImportError( + "`bs4` package not found, please install it with `pip install bs4`" + ) + soup = BeautifulSoup(xml_data, "xml") + sections = soup.find_all("div") + titles = soup.find_all("title") + if titles: + title = titles[0].text + else: + title = "No title found" + chunks = [] + for section in sections: + sect = section.find("head") + if sect is not None: + for i, paragraph in enumerate(section.find_all("p")): + chunk_bboxes = [] + paragraph_text = [] + for i, sentence in enumerate(paragraph.find_all("s")): + paragraph_text.append(sentence.text) + sbboxes = [] + if sentence.get("coords") is not None: + for bbox in sentence.get("coords").split(";"): # type: ignore[union-attr] + box = bbox.split(",") + sbboxes.append( + { + "page": box[0], + "x": box[1], + "y": box[2], + "h": box[3], + "w": box[4], + } + ) + chunk_bboxes.append(sbboxes) + if (segment_sentences is True) and (len(sbboxes) > 0): + fpage, lpage = sbboxes[0]["page"], sbboxes[-1]["page"] + sentence_dict = { + "text": sentence.text, + "para": str(i), + "bboxes": [sbboxes], + "section_title": sect.text, + "section_number": sect.get("n"), + "pages": (fpage, lpage), + } + chunks.append(sentence_dict) + if segment_sentences is not True: + fpage, lpage = ( + chunk_bboxes[0][0]["page"], + chunk_bboxes[-1][-1]["page"], + ) + paragraph_dict = { + "text": "".join(paragraph_text), + "para": str(i), + "bboxes": chunk_bboxes, + "section_title": sect.text, + "section_number": sect.get("n"), + "pages": (fpage, lpage), + } + chunks.append(paragraph_dict) + + yield from [ + Document( + page_content=chunk["text"], + metadata=dict( + { + "text": str(chunk["text"]), + "para": str(chunk["para"]), + "bboxes": str(chunk["bboxes"]), + "pages": str(chunk["pages"]), + "section_title": str(chunk["section_title"]), + "section_number": str(chunk["section_number"]), + "paper_title": str(title), + "file_path": str(file_path), + } + ), + ) + for chunk in chunks + ] + + def lazy_parse(self, blob: Blob) -> Iterator[Document]: + file_path = blob.source + if file_path is None: + raise ValueError("blob.source cannot be None.") + pdf = open(file_path, "rb") + files = {"input": (file_path, pdf, "application/pdf", {"Expires": "0"})} + try: + data: Dict[str, Union[str, List[str]]] = {} + for param in ["generateIDs", "consolidateHeader", "segmentSentences"]: + data[param] = "1" + data["teiCoordinates"] = ["head", "s"] + files = files or {} + r = requests.request( + "POST", + self.grobid_server, + headers=None, + params=None, + files=files, + data=data, + timeout=60, + ) + xml_data = r.text + except requests.exceptions.ReadTimeout: + logger.error("GROBID server timed out. Return None.") + xml_data = None + + if xml_data is None: + return iter([]) + else: + return self.process_xml(file_path, xml_data, self.segment_sentences) diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/html/__init__.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/html/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..f59e804b30f7d66e8475dbd7576d0e3307786791 --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/html/__init__.py @@ -0,0 +1,3 @@ +from langchain_community.document_loaders.parsers.html.bs4 import BS4HTMLParser + +__all__ = ["BS4HTMLParser"] diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/html/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/html/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6ea603576aa0aed5320991479ab1073abf4126eb Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/html/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/html/__pycache__/bs4.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/html/__pycache__/bs4.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..35e9289d0471c1ce3c52fa97fb411a6f8835e23b Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/html/__pycache__/bs4.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/html/bs4.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/html/bs4.py new file mode 100644 index 0000000000000000000000000000000000000000..d00af499dcf05ebb68b7bc4e68e6c4387c8c9df4 --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/html/bs4.py @@ -0,0 +1,54 @@ +"""Loader that uses bs4 to load HTML files, enriching metadata with page title.""" + +import logging +from typing import Any, Dict, Iterator, Union + +from langchain_core.documents import Document + +from langchain_community.document_loaders.base import BaseBlobParser +from langchain_community.document_loaders.blob_loaders import Blob + +logger = logging.getLogger(__name__) + + +class BS4HTMLParser(BaseBlobParser): + """Parse HTML files using `Beautiful Soup`.""" + + def __init__( + self, + *, + features: str = "lxml", + get_text_separator: str = "", + **kwargs: Any, + ) -> None: + """Initialize a bs4 based HTML parser.""" + try: + import bs4 # noqa:F401 + except ImportError: + raise ImportError( + "beautifulsoup4 package not found, please install it with " + "`pip install beautifulsoup4`" + ) + + self.bs_kwargs = {"features": features, **kwargs} + self.get_text_separator = get_text_separator + + def lazy_parse(self, blob: Blob) -> Iterator[Document]: + """Load HTML document into document objects.""" + from bs4 import BeautifulSoup + + with blob.as_bytes_io() as f: + soup = BeautifulSoup(f, **self.bs_kwargs) + + text = soup.get_text(self.get_text_separator) + + if soup.title: + title = str(soup.title.string) + else: + title = "" + + metadata: Dict[str, Union[str, None]] = { + "source": blob.source, + "title": title, + } + yield Document(page_content=text, metadata=metadata) diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/images.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/images.py new file mode 100644 index 0000000000000000000000000000000000000000..1b4e1474af53c73aa306b10b899436aec60d91be --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/images.py @@ -0,0 +1,224 @@ +import base64 +import io +import logging +from abc import abstractmethod +from typing import TYPE_CHECKING, Iterable, Iterator + +import numpy +import numpy as np +from langchain_core.documents import Document +from langchain_core.language_models import BaseChatModel +from langchain_core.messages import HumanMessage + +from langchain_community.document_loaders.base import BaseBlobParser +from langchain_community.document_loaders.blob_loaders import Blob + +if TYPE_CHECKING: + from PIL.Image import Image + +logger = logging.getLogger(__name__) + + +class BaseImageBlobParser(BaseBlobParser): + """Abstract base class for parsing image blobs into text.""" + + @abstractmethod + def _analyze_image(self, img: "Image") -> str: + """Abstract method to analyze an image and extract textual content. + + Args: + img: The image to be analyzed. + + Returns: + The extracted text content. + """ + + def lazy_parse(self, blob: Blob) -> Iterator[Document]: + """Lazily parse a blob and yields Documents containing the parsed content. + + Args: + blob (Blob): The blob to be parsed. + + Yields: + Document: + A document containing the parsed content and metadata. + """ + try: + from PIL import Image as Img + except ImportError: + raise ImportError( + "`Pillow` package not found, please install it with " + "`pip install Pillow`" + ) + + with blob.as_bytes_io() as buf: + if blob.mimetype == "application/x-npy": + array = numpy.load(buf) + if array.ndim == 3 and array.shape[2] == 1: # Grayscale image + img = Img.fromarray(numpy.squeeze(array, axis=2), mode="L") + else: + img = Img.fromarray(array) + else: + img = Img.open(buf) + content = self._analyze_image(img) + logger.debug("Image text: %s", content.replace("\n", "\\n")) + yield Document( + page_content=content, + metadata={**blob.metadata, **{"source": blob.source}}, + ) + + +class RapidOCRBlobParser(BaseImageBlobParser): + """Parser for extracting text from images using the RapidOCR library. + + Attributes: + ocr: + The RapidOCR instance for performing OCR. + """ + + def __init__( + self, + ) -> None: + """ + Initializes the RapidOCRBlobParser. + """ + super().__init__() + self.ocr = None + + def _analyze_image(self, img: "Image") -> str: + """ + Analyzes an image and extracts text using RapidOCR. + + Args: + img (Image): + The image to be analyzed. + + Returns: + str: + The extracted text content. + """ + if not self.ocr: + try: + from rapidocr_onnxruntime import RapidOCR + + self.ocr = RapidOCR() + except ImportError: + raise ImportError( + "`rapidocr-onnxruntime` package not found, please install it with " + "`pip install rapidocr-onnxruntime`" + ) + ocr_result, _ = self.ocr(np.array(img)) # type: ignore[misc] + content = "" + if ocr_result: + content = ("\n".join([text[1] for text in ocr_result])).strip() + return content + + +class TesseractBlobParser(BaseImageBlobParser): + """Parse for extracting text from images using the Tesseract OCR library.""" + + def __init__( + self, + *, + langs: Iterable[str] = ("eng",), + ): + """Initialize the TesseractBlobParser. + + Args: + langs (list[str]): + The languages to use for OCR. + """ + super().__init__() + self.langs = list(langs) + + def _analyze_image(self, img: "Image") -> str: + """Analyze an image and extracts text using Tesseract OCR. + + Args: + img: The image to be analyzed. + + Returns: + str: The extracted text content. + """ + try: + import pytesseract + except ImportError: + raise ImportError( + "`pytesseract` package not found, please install it with " + "`pip install pytesseract`" + ) + return pytesseract.image_to_string(img, lang="+".join(self.langs)).strip() + + +_PROMPT_IMAGES_TO_DESCRIPTION: str = ( + "You are an assistant tasked with summarizing images for retrieval. " + "1. These summaries will be embedded and used to retrieve the raw image. " + "Give a concise summary of the image that is well optimized for retrieval\n" + "2. extract all the text from the image. " + "Do not exclude any content from the page.\n" + "Format answer in markdown without explanatory text " + "and without markdown delimiter ``` at the beginning. " +) + + +class LLMImageBlobParser(BaseImageBlobParser): + """Parser for analyzing images using a language model (LLM). + + Attributes: + model (BaseChatModel): + The language model to use for analysis. + prompt (str): + The prompt to provide to the language model. + """ + + def __init__( + self, + *, + model: BaseChatModel, + prompt: str = _PROMPT_IMAGES_TO_DESCRIPTION, + ): + """Initializes the LLMImageBlobParser. + + Args: + model (BaseChatModel): + The language model to use for analysis. + prompt (str): + The prompt to provide to the language model. + """ + super().__init__() + self.model = model + self.prompt = prompt + + def _analyze_image(self, img: "Image") -> str: + """Analyze an image using the provided language model. + + Args: + img: The image to be analyzed. + + Returns: + The extracted textual content. + """ + image_bytes = io.BytesIO() + img.save(image_bytes, format="PNG") + img_base64 = base64.b64encode(image_bytes.getvalue()).decode("utf-8") + msg = self.model.invoke( + [ + HumanMessage( + content=[ + { + "type": "text", + "text": self.prompt.format(format=format), + }, + { + "type": "image_url", + "image_url": { + "url": f"data:image/jpeg;base64,{img_base64}" + }, + }, + ] + ) + ] + ) + result = msg.content + assert isinstance(result, str) + return result diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__init__.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e56cc143cfda9cbe3f92b72608267a75e2668c3a --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__init__.py @@ -0,0 +1,5 @@ +from langchain_community.document_loaders.parsers.language.language_parser import ( + LanguageParser, +) + +__all__ = ["LanguageParser"] diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e3c6bffead61951d6edfe5e70cdb813bd0d2a4a5 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/c.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/c.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..61197238eb2fea3e77685e9cd1e17f2259321fbf Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/c.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/cobol.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/cobol.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f16d225140654b731767e58edd24c5765e6087cd Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/cobol.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/code_segmenter.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/code_segmenter.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9528b74ffc034e0cb2ff23505f68684848fddf37 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/code_segmenter.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/cpp.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/cpp.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a01e52dff1851f8c14cb193bf02e926e62dbd643 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/cpp.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/csharp.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/csharp.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..28ecd3587f05503318ed7cb729d8db08f0f0bfe1 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/csharp.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/elixir.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/elixir.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1ebcb86e1eb0b073b313032ad713ce1934911e5f Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/elixir.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/go.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/go.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..02ebeb0c368b95c0c5577650b2c168007d381ead Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/go.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/java.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/java.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..dc90b080e7f1b33eab55b6670096f4086e75bdfc Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/java.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/javascript.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/javascript.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..79ab3e3b0354eead06bcab656c5441c3b2cf0de6 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/javascript.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/kotlin.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/kotlin.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..00b718bb470a39874f251b5379bdbf28bc2d8432 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/kotlin.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/language_parser.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/language_parser.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1e3e1a258a6456daaca77df446a95f915d2ce420 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/language_parser.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/lua.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/lua.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..78f8699e402bc4a5cfa1a58ff17a0dcd3870d30b Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/lua.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/perl.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/perl.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9b388eb612204ecf1e3e3dea6c6d85823dd32850 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/perl.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/php.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/php.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d1b7db29988b9eb9e6a203e61a8c5fddb3e98c42 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/php.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/python.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/python.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..15a0c97d107a3bb7e8a45436285c1b88e2e44df3 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/python.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/ruby.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/ruby.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..daff0b8e277a998c3a39c6b88c9ce1c3f68f4ee0 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/ruby.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/rust.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/rust.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..051b1ffd1310ce4f6ba04b3d4ac64f581a6c067c Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/rust.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/scala.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/scala.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d9bec1bd0bac689c907654acde3035b7e0e463bf Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/scala.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/sql.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/sql.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..099517413e058ce3a51e364908df8672a72bb183 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/sql.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/tree_sitter_segmenter.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/tree_sitter_segmenter.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b758d638d86e6fd35921874b1f4ff77e8362b3a4 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/tree_sitter_segmenter.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/typescript.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/typescript.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..595bffe6c5e769e8c877a9d45c394a20870726ee Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/__pycache__/typescript.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/c.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/c.py new file mode 100644 index 0000000000000000000000000000000000000000..2db1ec99fca4a39ef07a3dcf7853a8fa0351c889 --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/c.py @@ -0,0 +1,36 @@ +from typing import TYPE_CHECKING + +from langchain_community.document_loaders.parsers.language.tree_sitter_segmenter import ( # noqa: E501 + TreeSitterSegmenter, +) + +if TYPE_CHECKING: + from tree_sitter import Language + + +CHUNK_QUERY = """ + [ + (struct_specifier + body: (field_declaration_list)) @struct + (enum_specifier + body: (enumerator_list)) @enum + (union_specifier + body: (field_declaration_list)) @union + (function_definition) @function + ] +""".strip() + + +class CSegmenter(TreeSitterSegmenter): + """Code segmenter for C.""" + + def get_language(self) -> "Language": + from tree_sitter_languages import get_language + + return get_language("c") + + def get_chunk_query(self) -> str: + return CHUNK_QUERY + + def make_line_comment(self, text: str) -> str: + return f"// {text}" diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/cobol.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/cobol.py new file mode 100644 index 0000000000000000000000000000000000000000..2b598ba27029737740438a584d5dfbb0a963b851 --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/cobol.py @@ -0,0 +1,98 @@ +import re +from typing import Callable, List, Pattern + +from langchain_community.document_loaders.parsers.language.code_segmenter import ( + CodeSegmenter, +) + + +class CobolSegmenter(CodeSegmenter): + """Code segmenter for `COBOL`.""" + + PARAGRAPH_PATTERN: Pattern = re.compile(r"^[A-Z0-9\-]+(\s+.*)?\.$", re.IGNORECASE) + DIVISION_PATTERN: Pattern = re.compile( + r"^\s*(IDENTIFICATION|DATA|PROCEDURE|ENVIRONMENT)\s+DIVISION.*$", re.IGNORECASE + ) + SECTION_PATTERN: Pattern = re.compile(r"^\s*[A-Z0-9\-]+\s+SECTION.$", re.IGNORECASE) + + def __init__(self, code: str): + super().__init__(code) + self.source_lines: List[str] = self.code.splitlines() + + def is_valid(self) -> bool: + # Identify presence of any division to validate COBOL code + return any(self.DIVISION_PATTERN.match(line) for line in self.source_lines) + + def _extract_code(self, start_idx: int, end_idx: int) -> str: + return "\n".join(self.source_lines[start_idx:end_idx]).rstrip("\n") + + def _is_relevant_code(self, line: str) -> bool: + """Check if a line is part of the procedure division or a relevant section.""" + if "PROCEDURE DIVISION" in line.upper(): + return True + # Add additional conditions for relevant sections if needed + return False + + def _process_lines(self, func: Callable) -> List[str]: + """A generic function to process COBOL lines based on provided func.""" + elements: List[str] = [] + start_idx = None + inside_relevant_section = False + + for i, line in enumerate(self.source_lines): + if self._is_relevant_code(line): + inside_relevant_section = True + + if inside_relevant_section and ( + self.PARAGRAPH_PATTERN.match(line.strip().split(" ")[0]) + or self.SECTION_PATTERN.match(line.strip()) + ): + if start_idx is not None: + func(elements, start_idx, i) + start_idx = i + + # Handle the last element if exists + if start_idx is not None: + func(elements, start_idx, len(self.source_lines)) + + return elements + + def extract_functions_classes(self) -> List[str]: + def extract_func(elements: List[str], start_idx: int, end_idx: int) -> None: + elements.append(self._extract_code(start_idx, end_idx)) + + return self._process_lines(extract_func) + + def simplify_code(self) -> str: + simplified_lines: List[str] = [] + inside_relevant_section = False + omitted_code_added = ( + False # To track if "* OMITTED CODE *" has been added after the last header + ) + + for line in self.source_lines: + is_header = ( + "PROCEDURE DIVISION" in line + or "DATA DIVISION" in line + or "IDENTIFICATION DIVISION" in line + or self.PARAGRAPH_PATTERN.match(line.strip().split(" ")[0]) + or self.SECTION_PATTERN.match(line.strip()) + ) + + if is_header: + inside_relevant_section = True + # Reset the flag since we're entering a new section/division or + # paragraph + omitted_code_added = False + + if inside_relevant_section: + if is_header: + # Add header and reset the omitted code added flag + simplified_lines.append(line) + elif not omitted_code_added: + # Add omitted code comment only if it hasn't been added directly + # after the last header + simplified_lines.append("* OMITTED CODE *") + omitted_code_added = True + + return "\n".join(simplified_lines) diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/code_segmenter.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/code_segmenter.py new file mode 100644 index 0000000000000000000000000000000000000000..2efb2add448e3d9d315a0cbc9c5926e431273450 --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/code_segmenter.py @@ -0,0 +1,20 @@ +from abc import ABC, abstractmethod +from typing import List + + +class CodeSegmenter(ABC): + """Abstract class for the code segmenter.""" + + def __init__(self, code: str): + self.code = code + + def is_valid(self) -> bool: + return True + + @abstractmethod + def simplify_code(self) -> str: + raise NotImplementedError() # pragma: no cover + + @abstractmethod + def extract_functions_classes(self) -> List[str]: + raise NotImplementedError() # pragma: no cover diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/cpp.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/cpp.py new file mode 100644 index 0000000000000000000000000000000000000000..9d09164a846e773631cd0d67ea8d53e507593cd6 --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/cpp.py @@ -0,0 +1,36 @@ +from typing import TYPE_CHECKING + +from langchain_community.document_loaders.parsers.language.tree_sitter_segmenter import ( # noqa: E501 + TreeSitterSegmenter, +) + +if TYPE_CHECKING: + from tree_sitter import Language + + +CHUNK_QUERY = """ + [ + (class_specifier + body: (field_declaration_list)) @class + (struct_specifier + body: (field_declaration_list)) @struct + (union_specifier + body: (field_declaration_list)) @union + (function_definition) @function + ] +""".strip() + + +class CPPSegmenter(TreeSitterSegmenter): + """Code segmenter for C++.""" + + def get_language(self) -> "Language": + from tree_sitter_languages import get_language + + return get_language("cpp") + + def get_chunk_query(self) -> str: + return CHUNK_QUERY + + def make_line_comment(self, text: str) -> str: + return f"// {text}" diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/csharp.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/csharp.py new file mode 100644 index 0000000000000000000000000000000000000000..a9f809fa00a84992d8b6fb627b71d229dfbc2bc1 --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/csharp.py @@ -0,0 +1,36 @@ +from typing import TYPE_CHECKING + +from langchain_community.document_loaders.parsers.language.tree_sitter_segmenter import ( # noqa: E501 + TreeSitterSegmenter, +) + +if TYPE_CHECKING: + from tree_sitter import Language + + +CHUNK_QUERY = """ + [ + (namespace_declaration) @namespace + (class_declaration) @class + (method_declaration) @method + (interface_declaration) @interface + (enum_declaration) @enum + (struct_declaration) @struct + (record_declaration) @record + ] +""".strip() + + +class CSharpSegmenter(TreeSitterSegmenter): + """Code segmenter for C#.""" + + def get_language(self) -> "Language": + from tree_sitter_languages import get_language + + return get_language("c_sharp") + + def get_chunk_query(self) -> str: + return CHUNK_QUERY + + def make_line_comment(self, text: str) -> str: + return f"// {text}" diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/elixir.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/elixir.py new file mode 100644 index 0000000000000000000000000000000000000000..780209767d89fadda03a80ff3e39c836baf9b0cc --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/elixir.py @@ -0,0 +1,35 @@ +from typing import TYPE_CHECKING + +from langchain_community.document_loaders.parsers.language.tree_sitter_segmenter import ( # noqa: E501 + TreeSitterSegmenter, +) + +if TYPE_CHECKING: + from tree_sitter import Language + + +CHUNK_QUERY = """ + [ + (call target: ((identifier) @_identifier + (#any-of? @_identifier "defmodule" "defprotocol" "defimpl"))) @module + (call target: ((identifier) @_identifier + (#any-of? @_identifier "def" "defmacro" "defmacrop" "defp"))) @function + (unary_operator operator: "@" operand: (call target: ((identifier) @_identifier + (#any-of? @_identifier "moduledoc" "typedoc""doc")))) @comment + ] +""".strip() + + +class ElixirSegmenter(TreeSitterSegmenter): + """Code segmenter for Elixir.""" + + def get_language(self) -> "Language": + from tree_sitter_languages import get_language + + return get_language("elixir") + + def get_chunk_query(self) -> str: + return CHUNK_QUERY + + def make_line_comment(self, text: str) -> str: + return f"# {text}" diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/go.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/go.py new file mode 100644 index 0000000000000000000000000000000000000000..f836ab3ad710c73e2629828a6cf0f9fdab4b3c7a --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/go.py @@ -0,0 +1,31 @@ +from typing import TYPE_CHECKING + +from langchain_community.document_loaders.parsers.language.tree_sitter_segmenter import ( # noqa: E501 + TreeSitterSegmenter, +) + +if TYPE_CHECKING: + from tree_sitter import Language + + +CHUNK_QUERY = """ + [ + (function_declaration) @function + (type_declaration) @type + ] +""".strip() + + +class GoSegmenter(TreeSitterSegmenter): + """Code segmenter for Go.""" + + def get_language(self) -> "Language": + from tree_sitter_languages import get_language + + return get_language("go") + + def get_chunk_query(self) -> str: + return CHUNK_QUERY + + def make_line_comment(self, text: str) -> str: + return f"// {text}" diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/java.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/java.py new file mode 100644 index 0000000000000000000000000000000000000000..c7293e1ed7f7845420a7a1907fffa3010da1f14d --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/java.py @@ -0,0 +1,32 @@ +from typing import TYPE_CHECKING + +from langchain_community.document_loaders.parsers.language.tree_sitter_segmenter import ( # noqa: E501 + TreeSitterSegmenter, +) + +if TYPE_CHECKING: + from tree_sitter import Language + + +CHUNK_QUERY = """ + [ + (class_declaration) @class + (interface_declaration) @interface + (enum_declaration) @enum + ] +""".strip() + + +class JavaSegmenter(TreeSitterSegmenter): + """Code segmenter for Java.""" + + def get_language(self) -> "Language": + from tree_sitter_languages import get_language + + return get_language("java") + + def get_chunk_query(self) -> str: + return CHUNK_QUERY + + def make_line_comment(self, text: str) -> str: + return f"// {text}" diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/javascript.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/javascript.py new file mode 100644 index 0000000000000000000000000000000000000000..27a360a2e6c6475890d2a7992c27fd35beac2e6a --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/javascript.py @@ -0,0 +1,72 @@ +from typing import Any, List, Tuple + +from langchain_community.document_loaders.parsers.language.code_segmenter import ( + CodeSegmenter, +) + + +class JavaScriptSegmenter(CodeSegmenter): + """Code segmenter for JavaScript.""" + + def __init__(self, code: str): + super().__init__(code) + self.source_lines = self.code.splitlines() + + try: + import esprima # noqa: F401 + except ImportError: + raise ImportError( + "Could not import esprima Python package. " + "Please install it with `pip install esprima`." + ) + + def is_valid(self) -> bool: + import esprima + + try: + esprima.parseScript(self.code) + return True + except esprima.Error: + return False + + def _extract_code(self, node: Any) -> str: + start = node.loc.start.line - 1 + end = node.loc.end.line + return "\n".join(self.source_lines[start:end]) + + def extract_functions_classes(self) -> List[str]: + import esprima + + tree = esprima.parseScript(self.code, loc=True) + functions_classes = [] + + for node in tree.body: + if isinstance( + node, + (esprima.nodes.FunctionDeclaration, esprima.nodes.ClassDeclaration), + ): + functions_classes.append(self._extract_code(node)) + + return functions_classes + + def simplify_code(self) -> str: + import esprima + + tree = esprima.parseScript(self.code, loc=True) + simplified_lines = self.source_lines[:] + + indices_to_del: List[Tuple[int, int]] = [] + for node in tree.body: + if isinstance( + node, + (esprima.nodes.FunctionDeclaration, esprima.nodes.ClassDeclaration), + ): + start, end = node.loc.start.line - 1, node.loc.end.line + simplified_lines[start] = f"// Code for: {simplified_lines[start]}" + + indices_to_del.append((start + 1, end)) + + for start, end in reversed(indices_to_del): + del simplified_lines[start + 0 : end] + + return "\n".join(line for line in simplified_lines) diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/kotlin.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/kotlin.py new file mode 100644 index 0000000000000000000000000000000000000000..6f946f7b4a622004526249709b1f98885752aadb --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/kotlin.py @@ -0,0 +1,31 @@ +from typing import TYPE_CHECKING + +from langchain_community.document_loaders.parsers.language.tree_sitter_segmenter import ( # noqa: E501 + TreeSitterSegmenter, +) + +if TYPE_CHECKING: + from tree_sitter import Language + + +CHUNK_QUERY = """ + [ + (function_declaration) @function + (class_declaration) @class + ] +""".strip() + + +class KotlinSegmenter(TreeSitterSegmenter): + """Code segmenter for Kotlin.""" + + def get_language(self) -> "Language": + from tree_sitter_languages import get_language + + return get_language("kotlin") + + def get_chunk_query(self) -> str: + return CHUNK_QUERY + + def make_line_comment(self, text: str) -> str: + return f"// {text}" diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/language_parser.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/language_parser.py new file mode 100644 index 0000000000000000000000000000000000000000..e1d4e5ec664b983efed7041c380e3a168927569b --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/language_parser.py @@ -0,0 +1,249 @@ +from __future__ import annotations + +from typing import Any, Dict, Iterator, Literal, Optional + +from langchain_core.documents import Document + +from langchain_community.document_loaders.base import BaseBlobParser +from langchain_community.document_loaders.blob_loaders import Blob +from langchain_community.document_loaders.parsers.language.c import CSegmenter +from langchain_community.document_loaders.parsers.language.cobol import CobolSegmenter +from langchain_community.document_loaders.parsers.language.cpp import CPPSegmenter +from langchain_community.document_loaders.parsers.language.csharp import CSharpSegmenter +from langchain_community.document_loaders.parsers.language.elixir import ElixirSegmenter +from langchain_community.document_loaders.parsers.language.go import GoSegmenter +from langchain_community.document_loaders.parsers.language.java import JavaSegmenter +from langchain_community.document_loaders.parsers.language.javascript import ( + JavaScriptSegmenter, +) +from langchain_community.document_loaders.parsers.language.kotlin import KotlinSegmenter +from langchain_community.document_loaders.parsers.language.lua import LuaSegmenter +from langchain_community.document_loaders.parsers.language.perl import PerlSegmenter +from langchain_community.document_loaders.parsers.language.php import PHPSegmenter +from langchain_community.document_loaders.parsers.language.python import PythonSegmenter +from langchain_community.document_loaders.parsers.language.ruby import RubySegmenter +from langchain_community.document_loaders.parsers.language.rust import RustSegmenter +from langchain_community.document_loaders.parsers.language.scala import ScalaSegmenter +from langchain_community.document_loaders.parsers.language.sql import SQLSegmenter +from langchain_community.document_loaders.parsers.language.typescript import ( + TypeScriptSegmenter, +) + +LANGUAGE_EXTENSIONS: Dict[str, str] = { + "py": "python", + "js": "js", + "cobol": "cobol", + "c": "c", + "cpp": "cpp", + "cs": "csharp", + "rb": "ruby", + "scala": "scala", + "rs": "rust", + "go": "go", + "kt": "kotlin", + "lua": "lua", + "pl": "perl", + "ts": "ts", + "java": "java", + "php": "php", + "ex": "elixir", + "exs": "elixir", + "sql": "sql", +} + +LANGUAGE_SEGMENTERS: Dict[str, Any] = { + "python": PythonSegmenter, + "js": JavaScriptSegmenter, + "cobol": CobolSegmenter, + "c": CSegmenter, + "cpp": CPPSegmenter, + "csharp": CSharpSegmenter, + "ruby": RubySegmenter, + "rust": RustSegmenter, + "scala": ScalaSegmenter, + "go": GoSegmenter, + "kotlin": KotlinSegmenter, + "lua": LuaSegmenter, + "perl": PerlSegmenter, + "ts": TypeScriptSegmenter, + "java": JavaSegmenter, + "php": PHPSegmenter, + "elixir": ElixirSegmenter, + "sql": SQLSegmenter, +} + +Language = Literal[ + "cpp", + "go", + "java", + "kotlin", + "js", + "ts", + "php", + "proto", + "python", + "rst", + "ruby", + "rust", + "scala", + "markdown", + "latex", + "html", + "sol", + "csharp", + "cobol", + "c", + "lua", + "perl", + "elixir", + "sql", +] + + +class LanguageParser(BaseBlobParser): + """Parse using the respective programming language syntax. + + Each top-level function and class in the code is loaded into separate documents. + Furthermore, an extra document is generated, containing the remaining top-level code + that excludes the already segmented functions and classes. + + This approach can potentially improve the accuracy of QA models over source code. + + The supported languages for code parsing are: + + - C: "c" (*) + - C++: "cpp" (*) + - C#: "csharp" (*) + - COBOL: "cobol" + - Elixir: "elixir" + - Go: "go" (*) + - Java: "java" (*) + - JavaScript: "js" (requires package `esprima`) + - Kotlin: "kotlin" (*) + - Lua: "lua" (*) + - Perl: "perl" (*) + - Python: "python" + - Ruby: "ruby" (*) + - Rust: "rust" (*) + - Scala: "scala" (*) + - SQL: "sql" (*) + - TypeScript: "ts" (*) + + Items marked with (*) require the packages `tree_sitter` and + `tree_sitter_languages`. It is straightforward to add support for additional + languages using `tree_sitter`, although this currently requires modifying LangChain. + + The language used for parsing can be configured, along with the minimum number of + lines required to activate the splitting based on syntax. + + If a language is not explicitly specified, `LanguageParser` will infer one from + filename extensions, if present. + + Examples: + + .. code-block:: python + + from langchain_community.document_loaders.generic import GenericLoader + from langchain_community.document_loaders.parsers import LanguageParser + + loader = GenericLoader.from_filesystem( + "./code", + glob="**/*", + suffixes=[".py", ".js"], + parser=LanguageParser() + ) + docs = loader.load() + + Example instantiations to manually select the language: + + .. code-block:: python + + + loader = GenericLoader.from_filesystem( + "./code", + glob="**/*", + suffixes=[".py"], + parser=LanguageParser(language="python") + ) + + Example instantiations to set number of lines threshold: + + .. code-block:: python + + loader = GenericLoader.from_filesystem( + "./code", + glob="**/*", + suffixes=[".py"], + parser=LanguageParser(parser_threshold=200) + ) + """ + + def __init__(self, language: Optional[Language] = None, parser_threshold: int = 0): + """ + Language parser that split code using the respective language syntax. + + Args: + language: If None (default), it will try to infer language from source. + parser_threshold: Minimum lines needed to activate parsing (0 by default). + """ + if language and language not in LANGUAGE_SEGMENTERS: + raise Exception(f"No parser available for {language}") + self.language = language + self.parser_threshold = parser_threshold + + def lazy_parse(self, blob: Blob) -> Iterator[Document]: + code = blob.as_string() + + language = self.language or ( + LANGUAGE_EXTENSIONS.get(blob.source.rsplit(".", 1)[-1]) + if isinstance(blob.source, str) + else None + ) + + if language is None: + yield Document( + page_content=code, + metadata={ + "source": blob.source, + }, + ) + return + + if self.parser_threshold >= len(code.splitlines()): + yield Document( + page_content=code, + metadata={ + "source": blob.source, + "language": language, + }, + ) + return + + self.Segmenter = LANGUAGE_SEGMENTERS[language] + segmenter = self.Segmenter(blob.as_string()) + if not segmenter.is_valid(): + yield Document( + page_content=code, + metadata={ + "source": blob.source, + }, + ) + return + + for functions_classes in segmenter.extract_functions_classes(): + yield Document( + page_content=functions_classes, + metadata={ + "source": blob.source, + "content_type": "functions_classes", + "language": language, + }, + ) + yield Document( + page_content=segmenter.simplify_code(), + metadata={ + "source": blob.source, + "content_type": "simplified_code", + "language": language, + }, + ) diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/lua.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/lua.py new file mode 100644 index 0000000000000000000000000000000000000000..3e0a762ba4b5ffd7911e28c1c83978b476e491e9 --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/lua.py @@ -0,0 +1,33 @@ +from typing import TYPE_CHECKING + +from langchain_community.document_loaders.parsers.language.tree_sitter_segmenter import ( # noqa: E501 + TreeSitterSegmenter, +) + +if TYPE_CHECKING: + from tree_sitter import Language + + +CHUNK_QUERY = """ + [ + (function_definition_statement + name: (identifier)) @function + (local_function_definition_statement + name: (identifier)) @function + ] +""".strip() + + +class LuaSegmenter(TreeSitterSegmenter): + """Code segmenter for Lua.""" + + def get_language(self) -> "Language": + from tree_sitter_languages import get_language + + return get_language("lua") + + def get_chunk_query(self) -> str: + return CHUNK_QUERY + + def make_line_comment(self, text: str) -> str: + return f"-- {text}" diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/perl.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/perl.py new file mode 100644 index 0000000000000000000000000000000000000000..b68d52cef2b04d61d7666d878185c3f84ef86c72 --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/perl.py @@ -0,0 +1,30 @@ +from typing import TYPE_CHECKING + +from langchain_community.document_loaders.parsers.language.tree_sitter_segmenter import ( # noqa: E501 + TreeSitterSegmenter, +) + +if TYPE_CHECKING: + from tree_sitter import Language + + +CHUNK_QUERY = """ + [ + (function_definition) @subroutine + ] +""".strip() + + +class PerlSegmenter(TreeSitterSegmenter): + """Code segmenter for Perl.""" + + def get_language(self) -> "Language": + from tree_sitter_languages import get_language + + return get_language("perl") + + def get_chunk_query(self) -> str: + return CHUNK_QUERY + + def make_line_comment(self, text: str) -> str: + return f"# {text}" diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/php.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/php.py new file mode 100644 index 0000000000000000000000000000000000000000..e7ec12a5ee8153ea18b78170f1963e3b4f3575ec --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/php.py @@ -0,0 +1,35 @@ +from typing import TYPE_CHECKING + +from langchain_community.document_loaders.parsers.language.tree_sitter_segmenter import ( # noqa: E501 + TreeSitterSegmenter, +) + +if TYPE_CHECKING: + from tree_sitter import Language + + +CHUNK_QUERY = """ + [ + (function_definition) @function + (class_declaration) @class + (interface_declaration) @interface + (trait_declaration) @trait + (enum_declaration) @enum + (namespace_definition) @namespace + ] +""".strip() + + +class PHPSegmenter(TreeSitterSegmenter): + """Code segmenter for PHP.""" + + def get_language(self) -> "Language": + from tree_sitter_languages import get_language + + return get_language("php") + + def get_chunk_query(self) -> str: + return CHUNK_QUERY + + def make_line_comment(self, text: str) -> str: + return f"// {text}" diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/python.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/python.py new file mode 100644 index 0000000000000000000000000000000000000000..52dbc68352a91962db6a34c71ee01c34f977b93a --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/python.py @@ -0,0 +1,53 @@ +import ast +from typing import Any, List, Tuple + +from langchain_community.document_loaders.parsers.language.code_segmenter import ( + CodeSegmenter, +) + + +class PythonSegmenter(CodeSegmenter): + """Code segmenter for `Python`.""" + + def __init__(self, code: str): + super().__init__(code) + self.source_lines = self.code.splitlines() + + def is_valid(self) -> bool: + try: + ast.parse(self.code) + return True + except SyntaxError: + return False + + def _extract_code(self, node: Any) -> str: + start = node.lineno - 1 + end = node.end_lineno + return "\n".join(self.source_lines[start:end]) + + def extract_functions_classes(self) -> List[str]: + tree = ast.parse(self.code) + functions_classes = [] + + for node in ast.iter_child_nodes(tree): + if isinstance(node, (ast.FunctionDef, ast.AsyncFunctionDef, ast.ClassDef)): + functions_classes.append(self._extract_code(node)) + + return functions_classes + + def simplify_code(self) -> str: + tree = ast.parse(self.code) + simplified_lines = self.source_lines[:] + + indices_to_del: List[Tuple[int, int]] = [] + for node in ast.iter_child_nodes(tree): + if isinstance(node, (ast.FunctionDef, ast.AsyncFunctionDef, ast.ClassDef)): + start, end = node.lineno - 1, node.end_lineno + simplified_lines[start] = f"# Code for: {simplified_lines[start]}" + assert isinstance(end, int) + indices_to_del.append((start + 1, end)) + + for start, end in reversed(indices_to_del): + del simplified_lines[start + 0 : end] + + return "\n".join(simplified_lines) diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/ruby.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/ruby.py new file mode 100644 index 0000000000000000000000000000000000000000..767a1f94a4d378d8917ea8afb8d695b4cb5576b9 --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/ruby.py @@ -0,0 +1,32 @@ +from typing import TYPE_CHECKING + +from langchain_community.document_loaders.parsers.language.tree_sitter_segmenter import ( # noqa: E501 + TreeSitterSegmenter, +) + +if TYPE_CHECKING: + from tree_sitter import Language + + +CHUNK_QUERY = """ + [ + (method) @method + (module) @module + (class) @class + ] +""".strip() + + +class RubySegmenter(TreeSitterSegmenter): + """Code segmenter for Ruby.""" + + def get_language(self) -> "Language": + from tree_sitter_languages import get_language + + return get_language("ruby") + + def get_chunk_query(self) -> str: + return CHUNK_QUERY + + def make_line_comment(self, text: str) -> str: + return f"# {text}" diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/rust.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/rust.py new file mode 100644 index 0000000000000000000000000000000000000000..bb73f96bf6d7cb4f7ea12d83f55576f656db017b --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/rust.py @@ -0,0 +1,34 @@ +from typing import TYPE_CHECKING + +from langchain_community.document_loaders.parsers.language.tree_sitter_segmenter import ( # noqa: E501 + TreeSitterSegmenter, +) + +if TYPE_CHECKING: + from tree_sitter import Language + + +CHUNK_QUERY = """ + [ + (function_item + name: (identifier) + body: (block)) @function + (struct_item) @struct + (trait_item) @trait + ] +""".strip() + + +class RustSegmenter(TreeSitterSegmenter): + """Code segmenter for Rust.""" + + def get_language(self) -> "Language": + from tree_sitter_languages import get_language + + return get_language("rust") + + def get_chunk_query(self) -> str: + return CHUNK_QUERY + + def make_line_comment(self, text: str) -> str: + return f"// {text}" diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/scala.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/scala.py new file mode 100644 index 0000000000000000000000000000000000000000..af62a4e748fedbe6b9ea86b77958d5e3a3ba81ad --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/scala.py @@ -0,0 +1,33 @@ +from typing import TYPE_CHECKING + +from langchain_community.document_loaders.parsers.language.tree_sitter_segmenter import ( # noqa: E501 + TreeSitterSegmenter, +) + +if TYPE_CHECKING: + from tree_sitter import Language + + +CHUNK_QUERY = """ + [ + (class_definition) @class + (function_definition) @function + (object_definition) @object + (trait_definition) @trait + ] +""".strip() + + +class ScalaSegmenter(TreeSitterSegmenter): + """Code segmenter for Scala.""" + + def get_language(self) -> "Language": + from tree_sitter_languages import get_language + + return get_language("scala") + + def get_chunk_query(self) -> str: + return CHUNK_QUERY + + def make_line_comment(self, text: str) -> str: + return f"// {text}" diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/sql.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/sql.py new file mode 100644 index 0000000000000000000000000000000000000000..1c11b7b36375869d3cf3d0a0a57295652d2d1079 --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/sql.py @@ -0,0 +1,65 @@ +from typing import TYPE_CHECKING + +from langchain_community.document_loaders.parsers.language.tree_sitter_segmenter import ( # noqa: E501 + TreeSitterSegmenter, +) + +if TYPE_CHECKING: + from tree_sitter import Language + +CHUNK_QUERY = """ + [ + (create_table_statement) @create + (select_statement) @select + (insert_statement) @insert + (update_statement) @update + (delete_statement) @delete + ] +""" + + +class SQLSegmenter(TreeSitterSegmenter): + """Code segmenter for SQL. + This class uses Tree-sitter to segment SQL code into its + constituent statements (e.g., SELECT, CREATE TABLE). + It also provides functionality to extract these + statements and simplify the code into commented descriptions. + """ + + def get_language(self) -> "Language": + """Return the SQL language grammar for Tree-sitter.""" + from tree_sitter_languages import get_language + + return get_language("sql") + + def get_chunk_query(self) -> str: + """Return the Tree-sitter query for SQL segmentation.""" + return CHUNK_QUERY + + def extract_functions_classes(self) -> list[str]: + """Extract SQL statements from the code. + Ensures that all SQL statements end with a semicolon + for consistency. + """ + extracted = super().extract_functions_classes() + # Ensure all statements end with a semicolon + return [ + stmt.strip() + ";" if not stmt.strip().endswith(";") else stmt.strip() + for stmt in extracted + ] + + def simplify_code(self) -> str: + """Simplify the extracted SQL code into comments. + Converts SQL statements into commented descriptions + for easy readability. + """ + return "\n".join( + [ + f"-- Code for: {stmt.strip()}" + for stmt in self.extract_functions_classes() + ] + ) + + def make_line_comment(self, text: str) -> str: + """Create a line comment in SQL style.""" + return f"-- {text}" diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/tree_sitter_segmenter.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/tree_sitter_segmenter.py new file mode 100644 index 0000000000000000000000000000000000000000..a467c269f6ed613cb1485cbe135a4bf7f5c65c71 --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/tree_sitter_segmenter.py @@ -0,0 +1,108 @@ +from abc import abstractmethod +from typing import TYPE_CHECKING, List + +from langchain_community.document_loaders.parsers.language.code_segmenter import ( + CodeSegmenter, +) + +if TYPE_CHECKING: + from tree_sitter import Language, Parser + + +class TreeSitterSegmenter(CodeSegmenter): + """Abstract class for `CodeSegmenter`s that use the tree-sitter library.""" + + def __init__(self, code: str): + super().__init__(code) + self.source_lines = self.code.splitlines() + + try: + import tree_sitter # noqa: F401 + import tree_sitter_languages # noqa: F401 + except ImportError: + raise ImportError( + "Could not import tree_sitter/tree_sitter_languages Python packages. " + "Please install them with " + "`pip install tree-sitter tree-sitter-languages`." + ) + + def is_valid(self) -> bool: + language = self.get_language() + error_query = language.query("(ERROR) @error") + + parser = self.get_parser() + tree = parser.parse(bytes(self.code, encoding="UTF-8")) + + return len(error_query.captures(tree.root_node)) == 0 + + def extract_functions_classes(self) -> List[str]: + language = self.get_language() + query = language.query(self.get_chunk_query()) + + parser = self.get_parser() + tree = parser.parse(bytes(self.code, encoding="UTF-8")) + captures = query.captures(tree.root_node) + + processed_lines = set() + chunks = [] + + for node, name in captures: + start_line = node.start_point[0] + end_line = node.end_point[0] + lines = list(range(start_line, end_line + 1)) + + if any(line in processed_lines for line in lines): + continue + + processed_lines.update(lines) + chunk_text = node.text.decode("UTF-8") + chunks.append(chunk_text) + + return chunks + + def simplify_code(self) -> str: + language = self.get_language() + query = language.query(self.get_chunk_query()) + + parser = self.get_parser() + tree = parser.parse(bytes(self.code, encoding="UTF-8")) + processed_lines = set() + + simplified_lines = self.source_lines[:] + for node, name in query.captures(tree.root_node): + start_line = node.start_point[0] + end_line = node.end_point[0] + + lines = list(range(start_line, end_line + 1)) + if any(line in processed_lines for line in lines): + continue + + simplified_lines[start_line] = self.make_line_comment( + f"Code for: {self.source_lines[start_line]}" + ) + + for line_num in range(start_line + 1, end_line + 1): + simplified_lines[line_num] = None # type: ignore[call-overload] + + processed_lines.update(lines) + + return "\n".join(line for line in simplified_lines if line is not None) + + def get_parser(self) -> "Parser": + from tree_sitter import Parser + + parser = Parser() + parser.set_language(self.get_language()) + return parser + + @abstractmethod + def get_language(self) -> "Language": + raise NotImplementedError() # pragma: no cover + + @abstractmethod + def get_chunk_query(self) -> str: + raise NotImplementedError() # pragma: no cover + + @abstractmethod + def make_line_comment(self, text: str) -> str: + raise NotImplementedError() # pragma: no cover diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/typescript.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/typescript.py new file mode 100644 index 0000000000000000000000000000000000000000..ab7158e2e821077c6a3b8ff243c6a95155250a4a --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/language/typescript.py @@ -0,0 +1,33 @@ +from typing import TYPE_CHECKING + +from langchain_community.document_loaders.parsers.language.tree_sitter_segmenter import ( # noqa: E501 + TreeSitterSegmenter, +) + +if TYPE_CHECKING: + from tree_sitter import Language + + +CHUNK_QUERY = """ + [ + (function_declaration) @function + (class_declaration) @class + (interface_declaration) @interface + (enum_declaration) @enum + ] +""".strip() + + +class TypeScriptSegmenter(TreeSitterSegmenter): + """Code segmenter for TypeScript.""" + + def get_language(self) -> "Language": + from tree_sitter_languages import get_language + + return get_language("typescript") + + def get_chunk_query(self) -> str: + return CHUNK_QUERY + + def make_line_comment(self, text: str) -> str: + return f"// {text}" diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/msword.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/msword.py new file mode 100644 index 0000000000000000000000000000000000000000..f2a03cc37da3cbcc4c0449409b6cc1cacbf7ad0c --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/msword.py @@ -0,0 +1,45 @@ +from typing import Iterator + +from langchain_core.documents import Document + +from langchain_community.document_loaders.base import BaseBlobParser +from langchain_community.document_loaders.blob_loaders import Blob + + +class MsWordParser(BaseBlobParser): + """Parse the Microsoft Word documents from a blob.""" + + def lazy_parse(self, blob: Blob) -> Iterator[Document]: + """Parse a Microsoft Word document into the Document iterator. + + Args: + blob: The blob to parse. + + Returns: An iterator of Documents. + + """ + try: + from unstructured.partition.doc import partition_doc + from unstructured.partition.docx import partition_docx + except ImportError as e: + raise ImportError( + "Could not import unstructured, please install with `pip install " + "unstructured`." + ) from e + + mime_type_parser = { + "application/msword": partition_doc, + "application/vnd.openxmlformats-officedocument.wordprocessingml.document": ( + partition_docx + ), + } + if blob.mimetype not in ( + "application/msword", + "application/vnd.openxmlformats-officedocument.wordprocessingml.document", + ): + raise ValueError("This blob type is not supported for this parser.") + with blob.as_bytes_io() as word_document: + elements = mime_type_parser[blob.mimetype](file=word_document) + text = "\n\n".join([str(el) for el in elements]) + metadata = {"source": blob.source} + yield Document(page_content=text, metadata=metadata) diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/pdf.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/pdf.py new file mode 100644 index 0000000000000000000000000000000000000000..4cdfa1b9fa8ba8d879f56039592f67976e95340f --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/pdf.py @@ -0,0 +1,1677 @@ +"""Module contains common parsers for PDFs.""" + +from __future__ import annotations + +import html +import io +import logging +import threading +import warnings +from datetime import datetime +from pathlib import Path +from tempfile import TemporaryDirectory +from typing import ( + TYPE_CHECKING, + Any, + BinaryIO, + Iterable, + Iterator, + Literal, + Mapping, + Optional, + Sequence, + Union, + cast, +) +from urllib.parse import urlparse + +import numpy +import numpy as np +from langchain_core.documents import Document + +from langchain_community.document_loaders.base import BaseBlobParser +from langchain_community.document_loaders.blob_loaders import Blob +from langchain_community.document_loaders.parsers.images import ( + BaseImageBlobParser, + RapidOCRBlobParser, +) + +if TYPE_CHECKING: + import pdfplumber + import pymupdf + import pypdf + import pypdfium2 + from textractor.data.text_linearization_config import TextLinearizationConfig + +_PDF_FILTER_WITH_LOSS = ["DCTDecode", "DCT", "JPXDecode"] +_PDF_FILTER_WITHOUT_LOSS = [ + "LZWDecode", + "LZW", + "FlateDecode", + "Fl", + "ASCII85Decode", + "A85", + "ASCIIHexDecode", + "AHx", + "RunLengthDecode", + "RL", + "CCITTFaxDecode", + "CCF", + "JBIG2Decode", +] + + +def extract_from_images_with_rapidocr( + images: Sequence[Union[Iterable[np.ndarray], bytes]], +) -> str: + """Extract text from images with RapidOCR. + + Args: + images: Images to extract text from. + + Returns: + Text extracted from images. + + Raises: + ImportError: If `rapidocr-onnxruntime` package is not installed. + """ + try: + from rapidocr_onnxruntime import RapidOCR + except ImportError: + raise ImportError( + "`rapidocr-onnxruntime` package not found, please install it with " + "`pip install rapidocr-onnxruntime`" + ) + ocr = RapidOCR() + text = "" + for img in images: + result, _ = ocr(img) + if result: + result = [text[1] for text in result] + text += "\n".join(result) + return text + + +logger = logging.getLogger(__name__) + +_FORMAT_IMAGE_STR = "\n\n{image_text}\n\n" +_JOIN_IMAGES = "\n" +_JOIN_TABLES = "\n" +_DEFAULT_PAGES_DELIMITER = "\n\f" + +_STD_METADATA_KEYS = {"source", "total_pages", "creationdate", "creator", "producer"} + + +def _format_inner_image(blob: Blob, content: str, format: str) -> str: + """Format the content of the image with the source of the blob. + + blob: The blob containing the image. + format:: + The format for the parsed output. + - "text" = return the content as is + - "markdown-img" = wrap the content into an image markdown link, w/ link + pointing to (`![body)(#)`] + - "html-img" = wrap the content as the `alt` text of an tag and link to + (`{body}`) + """ + if content: + source = blob.source or "#" + if format == "markdown-img": + content = content.replace("]", r"\\]") + content = f"![{content}]({source})" + elif format == "html-img": + content = f'{html.escape(content, quote=True)} src=' + return content + + +def _validate_metadata(metadata: dict[str, Any]) -> dict[str, Any]: + """Validate that the metadata has all the standard keys and the page is an integer. + + The standard keys are: + - source + - total_page + - creationdate + - creator + - producer + + Validate that page is an integer if it is present. + """ + if not _STD_METADATA_KEYS.issubset(metadata.keys()): + raise ValueError("The PDF parser must valorize the standard metadata.") + if not isinstance(metadata.get("page", 0), int): + raise ValueError("The PDF metadata page must be a integer.") + return metadata + + +def _purge_metadata(metadata: dict[str, Any]) -> dict[str, Any]: + """Purge metadata from unwanted keys and normalize key names. + + Args: + metadata: The original metadata dictionary. + + Returns: + The cleaned and normalized the key format of metadata dictionary. + """ + new_metadata: dict[str, Any] = {} + map_key = { + "page_count": "total_pages", + "file_path": "source", + } + for k, v in metadata.items(): + if type(v) not in [str, int]: + v = str(v) + if k.startswith("/"): + k = k[1:] + k = k.lower() + if k in ["creationdate", "moddate"]: + try: + new_metadata[k] = datetime.strptime( + v.replace("'", ""), "D:%Y%m%d%H%M%S%z" + ).isoformat("T") + except ValueError: + new_metadata[k] = v + elif k in map_key: + # Normalize key with others PDF parser + new_metadata[map_key[k]] = v + new_metadata[k] = v + elif isinstance(v, str): + new_metadata[k] = v.strip() + elif isinstance(v, int): + new_metadata[k] = v + return new_metadata + + +_PARAGRAPH_DELIMITER = [ + "\n\n\n", + "\n\n", +] # To insert images or table in the middle of the page. + + +def _merge_text_and_extras(extras: list[str], text_from_page: str) -> str: + """Insert extras such as image/table in a text between two paragraphs if possible, + else at the end of the text. + + Args: + extras: List of extra content (images/tables) to insert. + text_from_page: The text content from the page. + + Returns: + The merged text with extras inserted. + """ + + def _recurs_merge_text_and_extras( + extras: list[str], text_from_page: str, recurs: bool + ) -> Optional[str]: + if extras: + for delim in _PARAGRAPH_DELIMITER: + pos = text_from_page.rfind(delim) + if pos != -1: + # search penultimate, to bypass an error in footer + previous_text = None + if recurs: + previous_text = _recurs_merge_text_and_extras( + extras, text_from_page[:pos], False + ) + if previous_text: + all_text = previous_text + text_from_page[pos:] + else: + all_extras = "" + str_extras = "\n\n".join(filter(lambda x: x, extras)) + if str_extras: + all_extras = delim + str_extras + all_text = ( + text_from_page[:pos] + all_extras + text_from_page[pos:] + ) + break + else: + all_text = None + else: + all_text = text_from_page + return all_text + + all_text = _recurs_merge_text_and_extras(extras, text_from_page, True) + if not all_text: + all_extras = "" + str_extras = "\n\n".join(filter(lambda x: x, extras)) + if str_extras: + all_extras = _PARAGRAPH_DELIMITER[-1] + str_extras + all_text = text_from_page + all_extras + + return all_text + + +class PyPDFParser(BaseBlobParser): + """Parse a blob from a PDF using `pypdf` library. + + This class provides methods to parse a blob from a PDF document, supporting various + configurations such as handling password-protected PDFs, extracting images. + It integrates the 'pypdf' library for PDF processing and offers synchronous blob + parsing. + + Examples: + Setup: + + .. code-block:: bash + + pip install -U langchain-community pypdf + + Load a blob from a PDF file: + + .. code-block:: python + + from langchain_core.documents.base import Blob + + blob = Blob.from_path("./example_data/layout-parser-paper.pdf") + + Instantiate the parser: + + .. code-block:: python + + from langchain_community.document_loaders.parsers import PyPDFParser + + parser = PyPDFParser( + # password = None, + mode = "single", + pages_delimiter = "\n\f", + # images_parser = TesseractBlobParser(), + ) + + Lazily parse the blob: + + .. code-block:: python + + docs = [] + docs_lazy = parser.lazy_parse(blob) + + for doc in docs_lazy: + docs.append(doc) + print(docs[0].page_content[:100]) + print(docs[0].metadata) + """ + + def __init__( + self, + password: Optional[Union[str, bytes]] = None, + extract_images: bool = False, + *, + mode: Literal["single", "page"] = "page", + pages_delimiter: str = _DEFAULT_PAGES_DELIMITER, + images_parser: Optional[BaseImageBlobParser] = None, + images_inner_format: Literal["text", "markdown-img", "html-img"] = "text", + extraction_mode: Literal["plain", "layout"] = "plain", + extraction_kwargs: Optional[dict[str, Any]] = None, + ): + """Initialize a parser based on PyPDF. + + Args: + password: Optional password for opening encrypted PDFs. + extract_images: Whether to extract images from the PDF. + mode: The extraction mode, either "single" for the entire document or "page" + for page-wise extraction. + pages_delimiter: A string delimiter to separate pages in single-mode + extraction. + images_parser: Optional image blob parser. + images_inner_format: The format for the parsed output. + - "text" = return the content as is + - "markdown-img" = wrap the content into an image markdown link, w/ link + pointing to (`![body)(#)`] + - "html-img" = wrap the content as the `alt` text of an tag and link to + (`{body}`) + extraction_mode: “plain” for legacy functionality, “layout” extract text + in a fixed width format that closely adheres to the rendered layout in + the source pdf. + extraction_kwargs: Optional additional parameters for the extraction + process. + + Raises: + ValueError: If the `mode` is not "single" or "page". + """ + super().__init__() + if mode not in ["single", "page"]: + raise ValueError("mode must be single or page") + self.extract_images = extract_images + if extract_images and not images_parser: + images_parser = RapidOCRBlobParser() + self.images_parser = images_parser + self.images_inner_format = images_inner_format + self.password = password + self.mode = mode + self.pages_delimiter = pages_delimiter + self.extraction_mode = extraction_mode + self.extraction_kwargs = extraction_kwargs or {} + + def lazy_parse(self, blob: Blob) -> Iterator[Document]: + """ + Lazily parse the blob. + Insert image, if possible, between two paragraphs. + In this way, a paragraph can be continued on the next page. + + Args: + blob: The blob to parse. + + Raises: + ImportError: If the `pypdf` package is not found. + + Yield: + An iterator over the parsed documents. + """ + try: + import pypdf + except ImportError: + raise ImportError( + "`pypdf` package not found, please install it with `pip install pypdf`" + ) + + def _extract_text_from_page(page: pypdf.PageObject) -> str: + """ + Extract text from image given the version of pypdf. + + Args: + page: The page object to extract text from. + + Returns: + str: The extracted text. + """ + if pypdf.__version__.startswith("3"): + return page.extract_text() + else: + return page.extract_text( + extraction_mode=self.extraction_mode, + **self.extraction_kwargs, + ) + + with blob.as_bytes_io() as pdf_file_obj: + pdf_reader = pypdf.PdfReader(pdf_file_obj, password=self.password) + + doc_metadata = _purge_metadata( + {"producer": "PyPDF", "creator": "PyPDF", "creationdate": ""} + | cast(dict, pdf_reader.metadata or {}) + | { + "source": blob.source, + "total_pages": len(pdf_reader.pages), + } + ) + single_texts = [] + for page_number, page in enumerate(pdf_reader.pages): + text_from_page = _extract_text_from_page(page=page) + images_from_page = self.extract_images_from_page(page) + all_text = _merge_text_and_extras( + [images_from_page], text_from_page + ).strip() + if self.mode == "page": + yield Document( + page_content=all_text, + metadata=_validate_metadata( + doc_metadata + | { + "page": page_number, + "page_label": pdf_reader.page_labels[page_number], + } + ), + ) + else: + single_texts.append(all_text) + if self.mode == "single": + yield Document( + page_content=self.pages_delimiter.join(single_texts), + metadata=_validate_metadata(doc_metadata), + ) + + def extract_images_from_page(self, page: pypdf._page.PageObject) -> str: + """Extract images from a PDF page and get the text using images_to_text. + + Args: + page: The page object from which to extract images. + + Returns: + str: The extracted text from the images on the page. + """ + if not self.images_parser: + return "" + import pypdf + from PIL import Image + + if "/XObject" not in cast(dict, page["/Resources"]).keys(): + return "" + + xObject = page["/Resources"]["/XObject"].get_object() + images = [] + for obj in xObject: + np_image: Any = None + if xObject[obj]["/Subtype"] == "/Image": + img_filter = ( + xObject[obj]["/Filter"][1:] + if type(xObject[obj]["/Filter"]) is pypdf.generic._base.NameObject + else xObject[obj]["/Filter"][0][1:] + ) + if img_filter in _PDF_FILTER_WITHOUT_LOSS: + height, width = xObject[obj]["/Height"], xObject[obj]["/Width"] + + np_image = np.frombuffer( + xObject[obj].get_data(), dtype=np.uint8 + ).reshape(height, width, -1) + elif img_filter in _PDF_FILTER_WITH_LOSS: + np_image = np.array(Image.open(io.BytesIO(xObject[obj].get_data()))) + + else: + logger.warning("Unknown PDF Filter!") + if np_image is not None: + image_bytes = io.BytesIO() + + if image_bytes.getbuffer().nbytes == 0: + continue + + Image.fromarray(np_image).save(image_bytes, format="PNG") + blob = Blob.from_data(image_bytes.getvalue(), mime_type="image/png") + image_text = next(self.images_parser.lazy_parse(blob)).page_content + images.append( + _format_inner_image(blob, image_text, self.images_inner_format) + ) + return _FORMAT_IMAGE_STR.format( + image_text=_JOIN_IMAGES.join(filter(None, images)) + ) + + +class PDFMinerParser(BaseBlobParser): + """Parse a blob from a PDF using `pdfminer.six` library. + + This class provides methods to parse a blob from a PDF document, supporting various + configurations such as handling password-protected PDFs, extracting images, and + defining extraction mode. + It integrates the 'pdfminer.six' library for PDF processing and offers synchronous + blob parsing. + + Examples: + Setup: + + .. code-block:: bash + + pip install -U langchain-community pdfminer.six pillow + + Load a blob from a PDF file: + + .. code-block:: python + + from langchain_core.documents.base import Blob + + blob = Blob.from_path("./example_data/layout-parser-paper.pdf") + + Instantiate the parser: + + .. code-block:: python + + from langchain_community.document_loaders.parsers import PDFMinerParser + + parser = PDFMinerParser( + # password = None, + mode = "single", + pages_delimiter = "\n\f", + # extract_images = True, + # images_to_text = convert_images_to_text_with_tesseract(), + ) + + Lazily parse the blob: + + .. code-block:: python + + docs = [] + docs_lazy = parser.lazy_parse(blob) + + for doc in docs_lazy: + docs.append(doc) + print(docs[0].page_content[:100]) + print(docs[0].metadata) + """ + + _warn_concatenate_pages = False + + def __init__( + self, + extract_images: bool = False, + *, + password: Optional[str] = None, + mode: Literal["single", "page"] = "single", + pages_delimiter: str = _DEFAULT_PAGES_DELIMITER, + images_parser: Optional[BaseImageBlobParser] = None, + images_inner_format: Literal["text", "markdown-img", "html-img"] = "text", + concatenate_pages: Optional[bool] = None, + ): + """Initialize a parser based on PDFMiner. + + Args: + password: Optional password for opening encrypted PDFs. + mode: Extraction mode to use. Either "single" or "page" for page-wise + extraction. + pages_delimiter: A string delimiter to separate pages in single-mode + extraction. + extract_images: Whether to extract images from PDF. + images_inner_format: The format for the parsed output. + - "text" = return the content as is + - "markdown-img" = wrap the content into an image markdown link, w/ link + pointing to (`![body)(#)`] + - "html-img" = wrap the content as the `alt` text of an tag and link to + (`{body}`) + concatenate_pages: Deprecated. If True, concatenate all PDF pages + into one a single document. Otherwise, return one document per page. + + Returns: + This method does not directly return data. Use the `parse` or `lazy_parse` + methods to retrieve parsed documents with content and metadata. + + Raises: + ValueError: If the `mode` is not "single" or "page". + + Warnings: + `concatenate_pages` parameter is deprecated. Use `mode='single' or 'page' + instead. + """ + super().__init__() + if mode not in ["single", "page"]: + raise ValueError("mode must be single or page") + if extract_images and not images_parser: + images_parser = RapidOCRBlobParser() + self.extract_images = extract_images + self.images_parser = images_parser + self.images_inner_format = images_inner_format + self.password = password + self.mode = mode + self.pages_delimiter = pages_delimiter + if concatenate_pages is not None: + if not PDFMinerParser._warn_concatenate_pages: + PDFMinerParser._warn_concatenate_pages = True + logger.warning( + "`concatenate_pages` parameter is deprecated. " + "Use `mode='single' or 'page'` instead." + ) + self.mode = "single" if concatenate_pages else "page" + + @staticmethod + def decode_text(s: Union[bytes, str]) -> str: + """ + Decodes a PDFDocEncoding string to Unicode. + Adds py3 compatibility to pdfminer's version. + + Args: + s: The string to decode. + + Returns: + str: The decoded Unicode string. + """ + from pdfminer.utils import PDFDocEncoding + + if isinstance(s, bytes) and s.startswith(b"\xfe\xff"): + return str(s[2:], "utf-16be", "ignore") + try: + ords = (ord(c) if isinstance(c, str) else c for c in s) + return "".join(PDFDocEncoding[o] for o in ords) + except IndexError: + return str(s) + + @staticmethod + def resolve_and_decode(obj: Any) -> Any: + """ + Recursively resolve the metadata values. + + Args: + obj: The object to resolve and decode. It can be of any type. + + Returns: + The resolved and decoded object. + """ + from pdfminer.psparser import PSLiteral + + if hasattr(obj, "resolve"): + obj = obj.resolve() + if isinstance(obj, list): + return list(map(PDFMinerParser.resolve_and_decode, obj)) + elif isinstance(obj, PSLiteral): + return PDFMinerParser.decode_text(obj.name) + elif isinstance(obj, (str, bytes)): + return PDFMinerParser.decode_text(obj) + elif isinstance(obj, dict): + for k, v in obj.items(): + obj[k] = PDFMinerParser.resolve_and_decode(v) + return obj + + return obj + + def _get_metadata( + self, + fp: BinaryIO, + password: str = "", + caching: bool = True, + ) -> dict[str, Any]: + """ + Extract metadata from a PDF file. + + Args: + fp: The file pointer to the PDF file. + password: The password for the PDF file, if encrypted. Defaults to an empty + string. + caching: Whether to cache the PDF structure. Defaults to True. + + Returns: + Metadata of the PDF file. + """ + from pdfminer.pdfpage import PDFDocument, PDFPage, PDFParser + + # Create a PDF parser object associated with the file object. + parser = PDFParser(fp) + # Create a PDF document object that stores the document structure. + doc = PDFDocument(parser, password=password, caching=caching) + metadata = {} + + for info in doc.info: + metadata.update(info) + for k, v in metadata.items(): + try: + metadata[k] = PDFMinerParser.resolve_and_decode(v) + except Exception as e: # pragma: nocover + # This metadata value could not be parsed. Instead of failing the PDF + # read, treat it as a warning only if `strict_metadata=False`. + logger.warning( + '[WARNING] Metadata key "%s" could not be parsed due to ' + "exception: %s", + k, + str(e), + ) + + # Count number of pages. + metadata["total_pages"] = len(list(PDFPage.create_pages(doc))) + + return metadata + + def lazy_parse(self, blob: Blob) -> Iterator[Document]: + """ + Lazily parse the blob. + Insert image, if possible, between two paragraphs. + In this way, a paragraph can be continued on the next page. + + Args: + blob: The blob to parse. + + Raises: + ImportError: If the `pdfminer.six` or `pillow` package is not found. + + Yield: + An iterator over the parsed documents. + """ + try: + import pdfminer + from pdfminer.converter import PDFLayoutAnalyzer + from pdfminer.layout import ( + LAParams, + LTContainer, + LTImage, + LTItem, + LTPage, + LTText, + LTTextBox, + ) + from pdfminer.pdfinterp import PDFPageInterpreter, PDFResourceManager + from pdfminer.pdfpage import PDFPage + + if int(pdfminer.__version__) < 20201018: + raise ImportError( + "This parser is tested with pdfminer.six version 20201018 or " + "later. Remove pdfminer, and install pdfminer.six with " + "`pip uninstall pdfminer && pip install pdfminer.six`." + ) + except ImportError: + raise ImportError( + "pdfminer package not found, please install it " + "with `pip install pdfminer.six`" + ) + + with blob.as_bytes_io() as pdf_file_obj, TemporaryDirectory() as tempdir: + pages = PDFPage.get_pages(pdf_file_obj, password=self.password or "") + rsrcmgr = PDFResourceManager() + doc_metadata = _purge_metadata( + {"producer": "PDFMiner", "creator": "PDFMiner", "creationdate": ""} + | self._get_metadata(pdf_file_obj, password=self.password or "") + ) + doc_metadata["source"] = blob.source + + class Visitor(PDFLayoutAnalyzer): + def __init__( + self, + rsrcmgr: PDFResourceManager, + pageno: int = 1, + laparams: Optional[LAParams] = None, + ) -> None: + super().__init__(rsrcmgr, pageno=pageno, laparams=laparams) + + def receive_layout(me, ltpage: LTPage) -> None: + def render(item: LTItem) -> None: + if isinstance(item, LTContainer): + for child in item: + render(child) + elif isinstance(item, LTText): + text_io.write(item.get_text()) + if isinstance(item, LTTextBox): + text_io.write("\n") + elif isinstance(item, LTImage): + if self.images_parser: + from pdfminer.image import ImageWriter + + image_writer = ImageWriter(tempdir) + filename = image_writer.export_image(item) + blob = Blob.from_path(Path(tempdir) / filename) + blob.metadata["source"] = "#" + image_text = next( + self.images_parser.lazy_parse(blob) + ).page_content + + text_io.write( + _format_inner_image( + blob, image_text, self.images_inner_format + ) + ) + else: + pass + + render(ltpage) + + text_io = io.StringIO() + visitor_for_all = PDFPageInterpreter( + rsrcmgr, Visitor(rsrcmgr, laparams=LAParams()) + ) + all_content = [] + for i, page in enumerate(pages): + text_io.truncate(0) + text_io.seek(0) + visitor_for_all.process_page(page) + + all_text = text_io.getvalue() + # For legacy compatibility, net strip() + all_text = all_text.strip() + if self.mode == "page": + text_io.truncate(0) + text_io.seek(0) + yield Document( + page_content=all_text, + metadata=_validate_metadata(doc_metadata | {"page": i}), + ) + else: + if all_text.endswith("\f"): + all_text = all_text[:-1] + all_content.append(all_text) + if self.mode == "single": + # Add pages_delimiter between pages + document_content = self.pages_delimiter.join(all_content) + yield Document( + page_content=document_content, + metadata=_validate_metadata(doc_metadata), + ) + + +class PyMuPDFParser(BaseBlobParser): + """Parse a blob from a PDF using `PyMuPDF` library. + + This class provides methods to parse a blob from a PDF document, supporting various + configurations such as handling password-protected PDFs, extracting images, and + defining extraction mode. + It integrates the 'PyMuPDF' library for PDF processing and offers synchronous blob + parsing. + + Examples: + Setup: + + .. code-block:: bash + + pip install -U langchain-community pymupdf + + Load a blob from a PDF file: + + .. code-block:: python + + from langchain_core.documents.base import Blob + + blob = Blob.from_path("./example_data/layout-parser-paper.pdf") + + Instantiate the parser: + + .. code-block:: python + + from langchain_community.document_loaders.parsers import PyMuPDFParser + + parser = PyMuPDFParser( + # password = None, + mode = "single", + pages_delimiter = "\n\f", + # images_parser = TesseractBlobParser(), + # extract_tables="markdown", + # extract_tables_settings=None, + # text_kwargs=None, + ) + + Lazily parse the blob: + + .. code-block:: python + + docs = [] + docs_lazy = parser.lazy_parse(blob) + + for doc in docs_lazy: + docs.append(doc) + print(docs[0].page_content[:100]) + print(docs[0].metadata) + """ + + # PyMuPDF is not thread safe. + # See https://pymupdf.readthedocs.io/en/latest/recipes-multiprocessing.html + _lock = threading.Lock() + + def __init__( + self, + text_kwargs: Optional[dict[str, Any]] = None, + extract_images: bool = False, + *, + password: Optional[str] = None, + mode: Literal["single", "page"] = "page", + pages_delimiter: str = _DEFAULT_PAGES_DELIMITER, + images_parser: Optional[BaseImageBlobParser] = None, + images_inner_format: Literal["text", "markdown-img", "html-img"] = "text", + extract_tables: Union[Literal["csv", "markdown", "html"], None] = None, + extract_tables_settings: Optional[dict[str, Any]] = None, + ) -> None: + """Initialize a parser based on PyMuPDF. + + Args: + password: Optional password for opening encrypted PDFs. + mode: The extraction mode, either "single" for the entire document or "page" + for page-wise extraction. + pages_delimiter: A string delimiter to separate pages in single-mode + extraction. + extract_images: Whether to extract images from the PDF. + images_parser: Optional image blob parser. + images_inner_format: The format for the parsed output. + - "text" = return the content as is + - "markdown-img" = wrap the content into an image markdown link, w/ link + pointing to (`![body)(#)`] + - "html-img" = wrap the content as the `alt` text of an tag and link to + (`{body}`) + extract_tables: Whether to extract tables in a specific format, such as + "csv", "markdown", or "html". + extract_tables_settings: Optional dictionary of settings for customizing + table extraction. + + Returns: + This method does not directly return data. Use the `parse` or `lazy_parse` + methods to retrieve parsed documents with content and metadata. + + Raises: + ValueError: If the mode is not "single" or "page". + ValueError: If the extract_tables format is not "markdown", "html", + or "csv". + """ + super().__init__() + if mode not in ["single", "page"]: + raise ValueError("mode must be single or page") + if extract_tables and extract_tables not in ["markdown", "html", "csv"]: + raise ValueError("mode must be markdown") + + self.mode = mode + self.pages_delimiter = pages_delimiter + self.password = password + self.text_kwargs = text_kwargs or {} + if extract_images and not images_parser: + images_parser = RapidOCRBlobParser() + self.extract_images = extract_images + self.images_inner_format = images_inner_format + self.images_parser = images_parser + self.extract_tables = extract_tables + self.extract_tables_settings = extract_tables_settings + + def lazy_parse(self, blob: Blob) -> Iterator[Document]: + return self._lazy_parse( + blob, + ) + + def _lazy_parse( + self, + blob: Blob, + # text-kwargs is present for backwards compatibility. + # Users should not use it directly. + text_kwargs: Optional[dict[str, Any]] = None, + ) -> Iterator[Document]: + """Lazily parse the blob. + Insert image, if possible, between two paragraphs. + In this way, a paragraph can be continued on the next page. + + Args: + blob: The blob to parse. + text_kwargs: Optional keyword arguments to pass to the `get_text` method. + If provided at run time, it will override the default text_kwargs. + + Raises: + ImportError: If the `pypdf` package is not found. + + Yield: + An iterator over the parsed documents. + """ + try: + import pymupdf + + text_kwargs = text_kwargs or self.text_kwargs + if not self.extract_tables_settings: + from pymupdf.table import ( + DEFAULT_JOIN_TOLERANCE, + DEFAULT_MIN_WORDS_HORIZONTAL, + DEFAULT_MIN_WORDS_VERTICAL, + DEFAULT_SNAP_TOLERANCE, + ) + + self.extract_tables_settings = { + # See https://pymupdf.readthedocs.io/en/latest/page.html#Page.find_tables + "clip": None, + "vertical_strategy": "lines", + "horizontal_strategy": "lines", + "vertical_lines": None, + "horizontal_lines": None, + "snap_tolerance": DEFAULT_SNAP_TOLERANCE, + "snap_x_tolerance": None, + "snap_y_tolerance": None, + "join_tolerance": DEFAULT_JOIN_TOLERANCE, + "join_x_tolerance": None, + "join_y_tolerance": None, + "edge_min_length": 3, + "min_words_vertical": DEFAULT_MIN_WORDS_VERTICAL, + "min_words_horizontal": DEFAULT_MIN_WORDS_HORIZONTAL, + "intersection_tolerance": 3, + "intersection_x_tolerance": None, + "intersection_y_tolerance": None, + "text_tolerance": 3, + "text_x_tolerance": 3, + "text_y_tolerance": 3, + "strategy": None, # offer abbreviation + "add_lines": None, # optional user-specified lines + } + except ImportError: + raise ImportError( + "pymupdf package not found, please install it " + "with `pip install pymupdf`" + ) + + with PyMuPDFParser._lock: + with blob.as_bytes_io() as file_path: + if blob.data is None: + doc = pymupdf.open(file_path) + else: + doc = pymupdf.open(stream=file_path, filetype="pdf") + if doc.is_encrypted: + doc.authenticate(self.password) + doc_metadata = { + "producer": "PyMuPDF", + "creator": "PyMuPDF", + "creationdate": "", + } | self._extract_metadata(doc, blob) + full_content = [] + for page in doc: + all_text = self._get_page_content(doc, page, text_kwargs).strip() + if self.mode == "page": + yield Document( + page_content=all_text, + metadata=_validate_metadata( + doc_metadata | {"page": page.number} + ), + ) + else: + full_content.append(all_text) + + if self.mode == "single": + yield Document( + page_content=self.pages_delimiter.join(full_content), + metadata=_validate_metadata(doc_metadata), + ) + + def _get_page_content( + self, + doc: pymupdf.Document, + page: pymupdf.Page, + text_kwargs: dict[str, Any], + ) -> str: + """Get the text of the page using PyMuPDF and RapidOCR and issue a warning + if it is empty. + + Args: + doc: The PyMuPDF document object. + page: The PyMuPDF page object. + blob: The blob being parsed. + + Returns: + str: The text content of the page. + """ + text_from_page = page.get_text(**{**self.text_kwargs, **text_kwargs}) + images_from_page = self._extract_images_from_page(doc, page) + tables_from_page = self._extract_tables_from_page(page) + extras = [] + if images_from_page: + extras.append(images_from_page) + if tables_from_page: + extras.append(tables_from_page) + all_text = _merge_text_and_extras(extras, text_from_page) + + return all_text + + def _extract_metadata(self, doc: pymupdf.Document, blob: Blob) -> dict: + """Extract metadata from the document and page. + + Args: + doc: The PyMuPDF document object. + blob: The blob being parsed. + + Returns: + dict: The extracted metadata. + """ + metadata = _purge_metadata( + { + **{ + "producer": "PyMuPDF", + "creator": "PyMuPDF", + "creationdate": "", + "source": blob.source, + "file_path": blob.source, + "total_pages": len(doc), + }, + **{ + k: doc.metadata[k] + for k in doc.metadata + if isinstance(doc.metadata[k], (str, int)) + }, + } + ) + for k in ("modDate", "creationDate"): + if k in doc.metadata: + metadata[k] = doc.metadata[k] + return metadata + + def _extract_images_from_page( + self, doc: pymupdf.Document, page: pymupdf.Page + ) -> str: + """Extract images from a PDF page and get the text using images_to_text. + + Args: + doc: The PyMuPDF document object. + page: The PyMuPDF page object. + + Returns: + str: The extracted text from the images on the page. + """ + if not self.images_parser: + return "" + import pymupdf + + img_list = page.get_images() + images = [] + for img in img_list: + if self.images_parser: + xref = img[0] + pix = pymupdf.Pixmap(doc, xref) + image = np.frombuffer(pix.samples, dtype=np.uint8).reshape( + pix.height, pix.width, -1 + ) + image_bytes = io.BytesIO() + if image_bytes.getbuffer().nbytes == 0: + continue + + numpy.save(image_bytes, image) + blob = Blob.from_data( + image_bytes.getvalue(), mime_type="application/x-npy" + ) + image_text = next(self.images_parser.lazy_parse(blob)).page_content + + images.append( + _format_inner_image(blob, image_text, self.images_inner_format) + ) + return _FORMAT_IMAGE_STR.format( + image_text=_JOIN_IMAGES.join(filter(None, images)) + ) + + def _extract_tables_from_page(self, page: pymupdf.Page) -> str: + """Extract tables from a PDF page. + + Args: + page: The PyMuPDF page object. + + Returns: + str: The extracted tables in the specified format. + """ + if self.extract_tables is None: + return "" + import pymupdf + + tables_list = list( + pymupdf.table.find_tables(page, **self.extract_tables_settings) + ) + if tables_list: + if self.extract_tables == "markdown": + return _JOIN_TABLES.join([table.to_markdown() for table in tables_list]) + elif self.extract_tables == "html": + return _JOIN_TABLES.join( + [ + table.to_pandas().to_html( + header=False, + index=False, + bold_rows=False, + ) + for table in tables_list + ] + ) + elif self.extract_tables == "csv": + return _JOIN_TABLES.join( + [ + table.to_pandas().to_csv( + header=False, + index=False, + ) + for table in tables_list + ] + ) + else: + raise ValueError( + f"extract_tables {self.extract_tables} not implemented" + ) + return "" + + +class PyPDFium2Parser(BaseBlobParser): + """Parse a blob from a PDF using `PyPDFium2` library. + + This class provides methods to parse a blob from a PDF document, supporting various + configurations such as handling password-protected PDFs, extracting images, and + defining extraction mode. + It integrates the 'PyPDFium2' library for PDF processing and offers synchronous + blob parsing. + + Examples: + Setup: + + .. code-block:: bash + + pip install -U langchain-community pypdfium2 + + Load a blob from a PDF file: + + .. code-block:: python + + from langchain_core.documents.base import Blob + + blob = Blob.from_path("./example_data/layout-parser-paper.pdf") + + Instantiate the parser: + + .. code-block:: python + + from langchain_community.document_loaders.parsers import PyPDFium2Parser + + parser = PyPDFium2Parser( + # password=None, + mode="page", + pages_delimiter="\n\f", + # extract_images = True, + # images_to_text = convert_images_to_text_with_tesseract(), + ) + + Lazily parse the blob: + + .. code-block:: python + + docs = [] + docs_lazy = parser.lazy_parse(blob) + + for doc in docs_lazy: + docs.append(doc) + print(docs[0].page_content[:100]) + print(docs[0].metadata) + """ + + # PyPDFium2 is not thread safe. + # See https://pypdfium2.readthedocs.io/en/stable/python_api.html#thread-incompatibility + _lock = threading.Lock() + + def __init__( + self, + extract_images: bool = False, + *, + password: Optional[str] = None, + mode: Literal["single", "page"] = "page", + pages_delimiter: str = _DEFAULT_PAGES_DELIMITER, + images_parser: Optional[BaseImageBlobParser] = None, + images_inner_format: Literal["text", "markdown-img", "html-img"] = "text", + ) -> None: + """Initialize a parser based on PyPDFium2. + + Args: + password: Optional password for opening encrypted PDFs. + mode: The extraction mode, either "single" for the entire document or "page" + for page-wise extraction. + pages_delimiter: A string delimiter to separate pages in single-mode + extraction. + extract_images: Whether to extract images from the PDF. + images_parser: Optional image blob parser. + images_inner_format: The format for the parsed output. + - "text" = return the content as is + - "markdown-img" = wrap the content into an image markdown link, w/ link + pointing to (`![body)(#)`] + - "html-img" = wrap the content as the `alt` text of an tag and link to + (`{body}`) + extraction_mode: “plain” for legacy functionality, “layout” for experimental + layout mode functionality + extraction_kwargs: Optional additional parameters for the extraction + process. + + Returns: + This method does not directly return data. Use the `parse` or `lazy_parse` + methods to retrieve parsed documents with content and metadata. + + Raises: + ValueError: If the mode is not "single" or "page". + """ + super().__init__() + if mode not in ["single", "page"]: + raise ValueError("mode must be single or page") + self.extract_images = extract_images + if extract_images and not images_parser: + images_parser = RapidOCRBlobParser() + self.images_parser = images_parser + self.images_inner_format = images_inner_format + self.password = password + self.mode = mode + self.pages_delimiter = pages_delimiter + + def lazy_parse(self, blob: Blob) -> Iterator[Document]: + """ + Lazily parse the blob. + Insert image, if possible, between two paragraphs. + In this way, a paragraph can be continued on the next page. + + Args: + blob: The blob to parse. + + Raises: + ImportError: If the `pypdf` package is not found. + + Yield: + An iterator over the parsed documents. + """ + try: + import pypdfium2 + except ImportError: + raise ImportError( + "pypdfium2 package not found, please install it with" + " `pip install pypdfium2`" + ) + + # pypdfium2 is really finicky with respect to closing things, + # if done incorrectly creates seg faults. + with PyPDFium2Parser._lock: + with blob.as_bytes_io() as file_path: + pdf_reader = None + try: + pdf_reader = pypdfium2.PdfDocument( + file_path, password=self.password, autoclose=True + ) + full_content = [] + + doc_metadata = { + "producer": "PyPDFium2", + "creator": "PyPDFium2", + "creationdate": "", + } | _purge_metadata(pdf_reader.get_metadata_dict()) + doc_metadata["source"] = blob.source + doc_metadata["total_pages"] = len(pdf_reader) + + for page_number, page in enumerate(pdf_reader): + text_page = page.get_textpage() + text_from_page = "\n".join( + text_page.get_text_range().splitlines() + ) # Replace \r\n + text_page.close() + image_from_page = self._extract_images_from_page(page) + all_text = _merge_text_and_extras( + [image_from_page], text_from_page + ).strip() + page.close() + + if self.mode == "page": + # For legacy compatibility, add the last '\n' + if not all_text.endswith("\n"): + all_text += "\n" + yield Document( + page_content=all_text, + metadata=_validate_metadata( + { + **doc_metadata, + "page": page_number, + } + ), + ) + else: + full_content.append(all_text) + + if self.mode == "single": + yield Document( + page_content=self.pages_delimiter.join(full_content), + metadata=_validate_metadata(doc_metadata), + ) + finally: + if pdf_reader: + pdf_reader.close() + + def _extract_images_from_page(self, page: pypdfium2._helpers.page.PdfPage) -> str: + """Extract images from a PDF page and get the text using images_to_text. + + Args: + page: The page object from which to extract images. + + Returns: + str: The extracted text from the images on the page. + """ + if not self.images_parser: + return "" + + import pypdfium2.raw as pdfium_c + + images = list(page.get_objects(filter=(pdfium_c.FPDF_PAGEOBJ_IMAGE,))) + if not images: + return "" + str_images = [] + for image in images: + image_bytes = io.BytesIO() + np_image = image.get_bitmap().to_numpy() + if np_image.size < 3: + continue + numpy.save(image_bytes, image.get_bitmap().to_numpy()) + blob = Blob.from_data(image_bytes.getvalue(), mime_type="application/x-npy") + text_from_image = next(self.images_parser.lazy_parse(blob)).page_content + str_images.append( + _format_inner_image(blob, text_from_image, self.images_inner_format) + ) + image.close() + return _FORMAT_IMAGE_STR.format(image_text=_JOIN_IMAGES.join(str_images)) + + +class PDFPlumberParser(BaseBlobParser): + """Parse `PDF` with `PDFPlumber`.""" + + def __init__( + self, + text_kwargs: Optional[Mapping[str, Any]] = None, + dedupe: bool = False, + extract_images: bool = False, + ) -> None: + """Initialize the parser. + + Args: + text_kwargs: Keyword arguments to pass to ``pdfplumber.Page.extract_text()`` + dedupe: Avoiding the error of duplicate characters if `dedupe=True`. + """ + try: + import PIL # noqa:F401 + except ImportError: + raise ImportError( + "pillow package not found, please install it with `pip install pillow`" + ) + self.text_kwargs = text_kwargs or {} + self.dedupe = dedupe + self.extract_images = extract_images + + def lazy_parse(self, blob: Blob) -> Iterator[Document]: + """Lazily parse the blob.""" + import pdfplumber + + with blob.as_bytes_io() as file_path: + doc = pdfplumber.open(file_path) # open document + + yield from [ + Document( + page_content=self._process_page_content(page) + + "\n" + + self._extract_images_from_page(page), + metadata=dict( + { + "source": blob.source, + "file_path": blob.source, + "page": page.page_number - 1, + "total_pages": len(doc.pages), + }, + **{ + k: doc.metadata[k] + for k in doc.metadata + if type(doc.metadata[k]) in [str, int] + }, + ), + ) + for page in doc.pages + ] + + def _process_page_content(self, page: pdfplumber.page.Page) -> str: + """Process the page content based on dedupe.""" + if self.dedupe: + return page.dedupe_chars().extract_text(**self.text_kwargs) + return page.extract_text(**self.text_kwargs) + + def _extract_images_from_page(self, page: pdfplumber.page.Page) -> str: + """Extract images from page and get the text with RapidOCR.""" + from PIL import Image + + if not self.extract_images: + return "" + + images = [] + for img in page.images: + if img["stream"]["Filter"].name in _PDF_FILTER_WITHOUT_LOSS: + if img["stream"]["BitsPerComponent"] == 1: + images.append( + np.array( + Image.frombytes( + "1", + (img["stream"]["Width"], img["stream"]["Height"]), + img["stream"].get_data(), + ).convert("L") + ) + ) + else: + images.append( + np.frombuffer(img["stream"].get_data(), dtype=np.uint8).reshape( + img["stream"]["Height"], img["stream"]["Width"], -1 + ) + ) + elif img["stream"]["Filter"].name in _PDF_FILTER_WITH_LOSS: + images.append(img["stream"].get_data()) + else: + warnings.warn("Unknown PDF Filter!") + + return extract_from_images_with_rapidocr(images) + + +class AmazonTextractPDFParser(BaseBlobParser): + """Send `PDF` files to `Amazon Textract` and parse them. + + For parsing multi-page PDFs, they have to reside on S3. + + The AmazonTextractPDFLoader calls the + [Amazon Textract Service](https://aws.amazon.com/textract/) + to convert PDFs into a Document structure. + Single and multi-page documents are supported with up to 3000 pages + and 512 MB of size. + + For the call to be successful an AWS account is required, + similar to the + [AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html) + requirements. + + Besides the AWS configuration, it is very similar to the other PDF + loaders, while also supporting JPEG, PNG and TIFF and non-native + PDF formats. + + ```python + from langchain_community.document_loaders import AmazonTextractPDFLoader + loader=AmazonTextractPDFLoader("example_data/alejandro_rosalez_sample-small.jpeg") + documents = loader.load() + ``` + + One feature is the linearization of the output. + When using the features LAYOUT, FORMS or TABLES together with Textract + + ```python + from langchain_community.document_loaders import AmazonTextractPDFLoader + # you can mix and match each of the features + loader=AmazonTextractPDFLoader( + "example_data/alejandro_rosalez_sample-small.jpeg", + textract_features=["TABLES", "LAYOUT"]) + documents = loader.load() + ``` + + it will generate output that formats the text in reading order and + try to output the information in a tabular structure or + output the key/value pairs with a colon (key: value). + This helps most LLMs to achieve better accuracy when + processing these texts. + + ``Document`` objects are returned with metadata that includes the ``source`` and + a 1-based index of the page number in ``page``. Note that ``page`` represents + the index of the result returned from Textract, not necessarily the as-written + page number in the document. + + """ + + def __init__( + self, + textract_features: Optional[Sequence[int]] = None, + client: Optional[Any] = None, + *, + linearization_config: Optional[TextLinearizationConfig] = None, + ) -> None: + """Initializes the parser. + + Args: + textract_features: Features to be used for extraction, each feature + should be passed as an int that conforms to the enum + `Textract_Features`, see `amazon-textract-caller` pkg + client: boto3 textract client + linearization_config: Config to be used for linearization of the output + should be an instance of TextLinearizationConfig from + the `textractor` pkg + """ + + try: + import textractcaller as tc + import textractor.entities.document as textractor + + self.tc = tc + self.textractor = textractor + + if textract_features is not None: + self.textract_features = [ + tc.Textract_Features(f) for f in textract_features + ] + else: + self.textract_features = [] + + if linearization_config is not None: + self.linearization_config = linearization_config + else: + self.linearization_config = self.textractor.TextLinearizationConfig( + hide_figure_layout=True, + title_prefix="# ", + section_header_prefix="## ", + list_element_prefix="*", + ) + except ImportError: + raise ImportError( + "Could not import amazon-textract-caller or " + "amazon-textract-textractor python package. Please install it " + "with `pip install amazon-textract-caller` & " + "`pip install amazon-textract-textractor`." + ) + + if not client: + try: + import boto3 + + self.boto3_textract_client = boto3.client("textract") + except ImportError: + raise ImportError( + "Could not import boto3 python package. " + "Please install it with `pip install boto3`." + ) + else: + self.boto3_textract_client = client + + def lazy_parse(self, blob: Blob) -> Iterator[Document]: + """Iterates over the Blob pages and returns an Iterator with a Document + for each page, like the other parsers If multi-page document, blob.path + has to be set to the S3 URI and for single page docs + the blob.data is taken + """ + + url_parse_result = urlparse(str(blob.path)) if blob.path else None + # Either call with S3 path (multi-page) or with bytes (single-page) + if ( + url_parse_result + and url_parse_result.scheme == "s3" + and url_parse_result.netloc + ): + textract_response_json = self.tc.call_textract( + input_document=str(blob.path), + features=self.textract_features, + boto3_textract_client=self.boto3_textract_client, + ) + else: + textract_response_json = self.tc.call_textract( + input_document=blob.as_bytes(), + features=self.textract_features, + call_mode=self.tc.Textract_Call_Mode.FORCE_SYNC, + boto3_textract_client=self.boto3_textract_client, + ) + + document = self.textractor.Document.open(textract_response_json) + + for idx, page in enumerate(document.pages): + yield Document( + page_content=page.get_text(config=self.linearization_config), + metadata={"source": blob.source, "page": idx + 1}, + ) + + +class DocumentIntelligenceParser(BaseBlobParser): + """Loads a PDF with Azure Document Intelligence + (formerly Form Recognizer) and chunks at character level.""" + + def __init__(self, client: Any, model: str): + warnings.warn( + "langchain_community.document_loaders.parsers.pdf.DocumentIntelligenceParser" + "and langchain_community.document_loaders.pdf.DocumentIntelligenceLoader" + " are deprecated. Please upgrade to " + "langchain_community.document_loaders.DocumentIntelligenceLoader " + "for any file parsing purpose using Azure Document Intelligence " + "service." + ) + self.client = client + self.model = model + + def _generate_docs(self, blob: Blob, result: Any) -> Iterator[Document]: + for p in result.pages: + content = " ".join([line.content for line in p.lines]) + + d = Document( + page_content=content, + metadata={ + "source": blob.source, + "page": p.page_number, + }, + ) + yield d + + def lazy_parse(self, blob: Blob) -> Iterator[Document]: + """Lazily parse the blob.""" + + with blob.as_bytes_io() as file_obj: + poller = self.client.begin_analyze_document(self.model, file_obj) + result = poller.result() + + docs = self._generate_docs(blob, result) + + yield from docs diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/registry.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/registry.py new file mode 100644 index 0000000000000000000000000000000000000000..46074e5e698fdb0c4dfd944432a6c126de4edd73 --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/registry.py @@ -0,0 +1,36 @@ +"""Module includes a registry of default parser configurations.""" + +from langchain_community.document_loaders.base import BaseBlobParser +from langchain_community.document_loaders.parsers.generic import MimeTypeBasedParser +from langchain_community.document_loaders.parsers.msword import MsWordParser +from langchain_community.document_loaders.parsers.pdf import PyMuPDFParser +from langchain_community.document_loaders.parsers.txt import TextParser + + +def _get_default_parser() -> BaseBlobParser: + """Get default mime-type based parser.""" + return MimeTypeBasedParser( + handlers={ + "application/pdf": PyMuPDFParser(), + "text/plain": TextParser(), + "application/msword": MsWordParser(), + "application/vnd.openxmlformats-officedocument.wordprocessingml.document": ( + MsWordParser() + ), + }, + fallback_parser=None, + ) + + +_REGISTRY = { + "default": _get_default_parser, +} + +# PUBLIC API + + +def get_parser(parser_name: str) -> BaseBlobParser: + """Get a parser by parser name.""" + if parser_name not in _REGISTRY: + raise ValueError(f"Unknown parser combination: {parser_name}") + return _REGISTRY[parser_name]() diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/txt.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/txt.py new file mode 100644 index 0000000000000000000000000000000000000000..5b2da3074317d2865dd6393749d6988d88234c6f --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/txt.py @@ -0,0 +1,16 @@ +"""Module for parsing text files..""" + +from typing import Iterator + +from langchain_core.documents import Document + +from langchain_community.document_loaders.base import BaseBlobParser +from langchain_community.document_loaders.blob_loaders import Blob + + +class TextParser(BaseBlobParser): + """Parser for text blobs.""" + + def lazy_parse(self, blob: Blob) -> Iterator[Document]: + """Lazily parse the blob.""" + yield Document(page_content=blob.as_string(), metadata={"source": blob.source}) diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/vsdx.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/vsdx.py new file mode 100644 index 0000000000000000000000000000000000000000..aeb414453ad60c8a3ec79fe97739170f2f3ae4df --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_loaders/parsers/vsdx.py @@ -0,0 +1,207 @@ +import json +import re +import zipfile +from abc import ABC +from pathlib import Path +from typing import Iterator, List, Set, Tuple + +from langchain_community.docstore.document import Document +from langchain_community.document_loaders.base import BaseBlobParser +from langchain_community.document_loaders.blob_loaders import Blob + + +class VsdxParser(BaseBlobParser, ABC): + """Parser for vsdx files.""" + + def parse(self, blob: Blob) -> Iterator[Document]: # type: ignore[override] + """Parse a vsdx file.""" + return self.lazy_parse(blob) + + def lazy_parse(self, blob: Blob) -> Iterator[Document]: + """Retrieve the contents of pages from a .vsdx file + and insert them into documents, one document per page.""" + + with blob.as_bytes_io() as pdf_file_obj: + with zipfile.ZipFile(pdf_file_obj, "r") as zfile: + pages = self.get_pages_content(zfile, blob.source) # type: ignore[arg-type] + + yield from [ + Document( + page_content=page_content, + metadata={ + "source": blob.source, + "page": page_number, + "page_name": page_name, + }, + ) + for page_number, page_name, page_content in pages + ] + + def get_pages_content( + self, zfile: zipfile.ZipFile, source: str + ) -> List[Tuple[int, str, str]]: + """Get the content of the pages of a vsdx file. + + Attributes: + zfile (zipfile.ZipFile): The vsdx file under zip format. + source (str): The path of the vsdx file. + + Returns: + list[tuple[int, str, str]]: A list of tuples containing the page number, + the name of the page and the content of the page + for each page of the vsdx file. + """ + + try: + import xmltodict + except ImportError: + raise ImportError( + "The xmltodict library is required to parse vsdx files. " + "Please install it with `pip install xmltodict`." + ) + + if "visio/pages/pages.xml" not in zfile.namelist(): + print("WARNING - No pages.xml file found in {}".format(source)) # noqa: T201 + return # type: ignore[return-value] + if "visio/pages/_rels/pages.xml.rels" not in zfile.namelist(): + print("WARNING - No pages.xml.rels file found in {}".format(source)) # noqa: T201 + return # type: ignore[return-value] + if "docProps/app.xml" not in zfile.namelist(): + print("WARNING - No app.xml file found in {}".format(source)) # noqa: T201 + return # type: ignore[return-value] + + pagesxml_content: dict = xmltodict.parse(zfile.read("visio/pages/pages.xml")) + appxml_content: dict = xmltodict.parse(zfile.read("docProps/app.xml")) + pagesxmlrels_content: dict = xmltodict.parse( + zfile.read("visio/pages/_rels/pages.xml.rels") + ) + + if isinstance(pagesxml_content["Pages"]["Page"], list): + disordered_names: List[str] = [ + rel["@Name"].strip() for rel in pagesxml_content["Pages"]["Page"] + ] + else: + disordered_names: List[str] = [ # type: ignore[no-redef] + pagesxml_content["Pages"]["Page"]["@Name"].strip() + ] + if isinstance(pagesxmlrels_content["Relationships"]["Relationship"], list): + disordered_paths: List[str] = [ + "visio/pages/" + rel["@Target"] + for rel in pagesxmlrels_content["Relationships"]["Relationship"] + ] + else: + disordered_paths: List[str] = [ # type: ignore[no-redef] + "visio/pages/" + + pagesxmlrels_content["Relationships"]["Relationship"]["@Target"] + ] + ordered_names: List[str] = appxml_content["Properties"]["TitlesOfParts"][ + "vt:vector" + ]["vt:lpstr"][: len(disordered_names)] + ordered_names = [name.strip() for name in ordered_names] + ordered_paths = [ + disordered_paths[disordered_names.index(name.strip())] + for name in ordered_names + ] + + # Pages out of order and without content of their relationships + disordered_pages = [] + for path in ordered_paths: + content = zfile.read(path) + string_content = json.dumps(xmltodict.parse(content)) + + samples = re.findall( + r'"#text"\s*:\s*"([^\\"]*(?:\\.[^\\"]*)*)"', string_content + ) + if len(samples) > 0: + page_content = "\n".join(samples) + map_symboles = { + "\\n": "\n", + "\\t": "\t", + "\\u2013": "-", + "\\u2019": "'", + "\\u00e9r": "é", + "\\u00f4me": "ô", + } + for key, value in map_symboles.items(): + page_content = page_content.replace(key, value) + + disordered_pages.append({"page": path, "page_content": page_content}) + + # Direct relationships of each page in a dict format + pagexml_rels = [ + { + "path": page_path, + "content": xmltodict.parse( + zfile.read(f"visio/pages/_rels/{Path(page_path).stem}.xml.rels") + ), + } + for page_path in ordered_paths + if f"visio/pages/_rels/{Path(page_path).stem}.xml.rels" in zfile.namelist() + ] + + # Pages in order and with content of their relationships (direct and indirect) + ordered_pages: List[Tuple[int, str, str]] = [] + for page_number, (path, page_name) in enumerate( + zip(ordered_paths, ordered_names) + ): + relationships = self.get_relationships( + path, zfile, ordered_paths, pagexml_rels + ) + page_content = "\n".join( + [ + page_["page_content"] + for page_ in disordered_pages + if page_["page"] in relationships + ] + + [ + page_["page_content"] + for page_ in disordered_pages + if page_["page"] == path + ] + ) + ordered_pages.append((page_number, page_name, page_content)) + + return ordered_pages + + def get_relationships( + self, + page: str, + zfile: zipfile.ZipFile, + filelist: List[str], + pagexml_rels: List[dict], + ) -> Set[str]: + """Get the relationships of a page and the relationships of its relationships, + etc... recursively. + Pages are based on other pages (ex: background page), + so we need to get all the relationships to get all the content of a single page. + """ + + name_path = Path(page).name + parent_path = Path(page).parent + rels_path = parent_path / f"_rels/{name_path}.rels" + + if str(rels_path) not in zfile.namelist(): + return set() + + pagexml_rels_content = next( + page_["content"] for page_ in pagexml_rels if page_["path"] == page + ) + + if isinstance(pagexml_rels_content["Relationships"]["Relationship"], list): + targets = [ + rel["@Target"] + for rel in pagexml_rels_content["Relationships"]["Relationship"] + ] + else: + targets = [pagexml_rels_content["Relationships"]["Relationship"]["@Target"]] + + relationships = set( + [str(parent_path / target) for target in targets] + ).intersection(filelist) + + for rel in relationships: + relationships = relationships | self.get_relationships( + rel, zfile, filelist, pagexml_rels + ) + + return relationships diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_transformers/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_transformers/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..dd4ec91c8faa735f7170860ae59de5ea7fa37f21 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_transformers/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_transformers/__pycache__/beautiful_soup_transformer.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_transformers/__pycache__/beautiful_soup_transformer.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..fdc0bdd5f522015ca4add58cecc551f93d583f5b Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_transformers/__pycache__/beautiful_soup_transformer.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_transformers/__pycache__/doctran_text_extract.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_transformers/__pycache__/doctran_text_extract.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0ea51a91abb6681516a027ef70489ea6ea2a80e5 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_transformers/__pycache__/doctran_text_extract.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_transformers/__pycache__/doctran_text_qa.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_transformers/__pycache__/doctran_text_qa.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9f4909fb1e2aa2ddbde3c9fa2b24f5892f76f546 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_transformers/__pycache__/doctran_text_qa.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_transformers/__pycache__/doctran_text_translate.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_transformers/__pycache__/doctran_text_translate.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0406db54cdf8995f79399fa97494e9f926cd6d3b Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_transformers/__pycache__/doctran_text_translate.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_transformers/__pycache__/embeddings_redundant_filter.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_transformers/__pycache__/embeddings_redundant_filter.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0ca452289401a2ac3ccab82639bb2a70dc09bc53 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_transformers/__pycache__/embeddings_redundant_filter.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_transformers/__pycache__/google_translate.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_transformers/__pycache__/google_translate.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..37a7cee77fc3a9374bce6726ef5c70e55a320e24 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_transformers/__pycache__/google_translate.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_transformers/__pycache__/html2text.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_transformers/__pycache__/html2text.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7efad750144fba7c893fdfa8c31976f38d235fd3 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_transformers/__pycache__/html2text.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_transformers/__pycache__/long_context_reorder.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_transformers/__pycache__/long_context_reorder.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..654da84243961063d63a59f8de7af9f7cd9f16f2 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_transformers/__pycache__/long_context_reorder.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_transformers/__pycache__/markdownify.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_transformers/__pycache__/markdownify.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a0dca2d36e6469db17da2cbc631d9bda1df11c06 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_transformers/__pycache__/markdownify.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_transformers/__pycache__/nuclia_text_transform.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_transformers/__pycache__/nuclia_text_transform.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..15df82aa08a57d24c3a27c8f3fb226dfbcaf4253 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_transformers/__pycache__/nuclia_text_transform.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_transformers/__pycache__/openai_functions.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_transformers/__pycache__/openai_functions.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e114ac76585bc2d20490d2f479383c9c6110e189 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_transformers/__pycache__/openai_functions.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_transformers/xsl/html_chunks_with_headers.xslt b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_transformers/xsl/html_chunks_with_headers.xslt new file mode 100644 index 0000000000000000000000000000000000000000..285edfe892db95c6f27275aa9af0a0f94dd1271f --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/document_transformers/xsl/html_chunks_with_headers.xslt @@ -0,0 +1,199 @@ + + + + + div|p|blockquote|ol|ul + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + +

+ +

+
+ + +
+
+ + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + [ + + ]/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..cc10fef9ac53ed2bf0c97f2b7decf6420a00e693 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/aleph_alpha.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/aleph_alpha.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..412dc75643c3492749b66f818eb78a5286654315 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/aleph_alpha.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/anyscale.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/anyscale.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..97bccf7b603793dc774fe774cd06d5f79072a5a6 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/anyscale.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/ascend.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/ascend.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9b5fd9b6fe7a95a6d124ecd2a33d1811b3f19498 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/ascend.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/awa.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/awa.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0ad9d8dd63eb9454e022fa184f0a575b9af6bb5e Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/awa.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/azure_openai.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/azure_openai.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d3f22197c84a36a17e20551590c404dab7cb9707 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/azure_openai.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/baichuan.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/baichuan.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..70b6eb6ded25d5df3c13d6308dc343ab83de2b73 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/baichuan.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/baidu_qianfan_endpoint.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/baidu_qianfan_endpoint.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..aad4ec7adf206c497cd03bde2e29613348d0a068 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/baidu_qianfan_endpoint.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/bedrock.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/bedrock.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d68807c1317aedfce86aa2dcecfd7bde8319bd90 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/bedrock.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/bookend.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/bookend.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..81edb00deb7ceb217361c73e3ac06f0b3d332f93 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/bookend.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/clarifai.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/clarifai.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0406671499632b06ce50b702b144cd892498beb4 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/clarifai.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/cloudflare_workersai.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/cloudflare_workersai.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ba328c2373372a2651f230c4972b7d77485ec83a Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/cloudflare_workersai.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/clova.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/clova.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5095e7f928945abd250fe0aa134df1d8cc7e0d23 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/clova.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/cohere.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/cohere.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..bfdddb6affd871a273d544cf3127ea24f72b41be Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/cohere.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/dashscope.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/dashscope.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0738a1c12d3e9df875c75a41b61535f6174420d5 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/dashscope.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/databricks.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/databricks.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..22730501f8b17b1511b6bfdafa85ca3838cb9165 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/databricks.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/deepinfra.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/deepinfra.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e706d91675733b2044246dfeb667db70828ad298 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/deepinfra.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/edenai.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/edenai.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f26892191386063e13f2e600aa668549c547cb43 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/edenai.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/elasticsearch.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/elasticsearch.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4b5976fb8ea7ab0fc8e74022f5619814b98f3c50 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/elasticsearch.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/embaas.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/embaas.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c931aa4ae469b920c3d2e9b9bfa01339b5e3dc07 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/embaas.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/ernie.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/ernie.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1b3239402709a8e1b6c182ce9ee83896b1b07135 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/ernie.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/fake.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/fake.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7fe93a2df2eba3662328a621b375a647689ad57c Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/fake.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/fastembed.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/fastembed.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7c28f1c137603902ff0dbb31765bea1df575775d Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/fastembed.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/gigachat.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/gigachat.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7ed063ee58491d3a90c3059a7ae1ea993e8f859a Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/gigachat.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/google_palm.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/google_palm.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..df8c1bc74dd320e5a9aaed5d7dee015c838e40d6 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/google_palm.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/gpt4all.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/gpt4all.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3808458992cd4f6c38cbd1f37458337858f93043 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/gpt4all.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/gradient_ai.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/gradient_ai.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9143dfa09c7c89cd09f287f3f51ba02873103d1e Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/gradient_ai.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/huggingface.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/huggingface.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a724261c83579115d8c5db8e29f1608856f2f31a Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/huggingface.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/huggingface_hub.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/huggingface_hub.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0a8f8203e8039eeffcd4116f5f08e10eca64adb5 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/huggingface_hub.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/hunyuan.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/hunyuan.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c549acc583992e7144087e9b15affba81719f7fe Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/hunyuan.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/infinity.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/infinity.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8e5a5b83b55d66bf89890f52ec4f3360f637777e Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/infinity.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/infinity_local.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/infinity_local.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9cda1c1f6816acd522a9b77e9e5ecb98a59de15a Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/infinity_local.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/ipex_llm.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/ipex_llm.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..91b3307714e263a181addf50002dd2ce6aefcbcb Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/ipex_llm.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/itrex.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/itrex.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..657a01a4ecd5615123c7f111ab7a3cd195f65506 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/itrex.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/javelin_ai_gateway.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/javelin_ai_gateway.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2820c0cb55228efa9015854c0ac7826c14a66988 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/javelin_ai_gateway.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/jina.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/jina.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d377c4d88b4d42f48d38bf5f7c5df5b9e0c9ca46 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/jina.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/johnsnowlabs.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/johnsnowlabs.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ff13ddbbaf86d8f06918069ac4fb8e92195dbf48 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/johnsnowlabs.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/laser.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/laser.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f0cd4dae6c464308b37c427353fc9a466c6fee87 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/laser.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/llamacpp.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/llamacpp.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e018e8c5f7371f54502abdaa5916b4324ca87048 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/llamacpp.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/llamafile.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/llamafile.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9594c27526ee4edd8c5619cc0f6d04fb05f7ce3d Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/llamafile.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/llm_rails.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/llm_rails.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..667acee3c1e9d65052792c00a18ce27d2e644f57 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/llm_rails.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/localai.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/localai.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b273542c8cce25e0d104beb74fb41632f8e6c860 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/localai.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/minimax.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/minimax.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d8ed8e6d8f445d449596808cdb832ecf817af053 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/minimax.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/mlflow.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/mlflow.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..668ac3e2f0d0959598b17af07d7e3c98aa821853 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/mlflow.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/mlflow_gateway.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/mlflow_gateway.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8448c29535a095c556b34108de04a08556c1b620 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/mlflow_gateway.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/model2vec.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/model2vec.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..17fb19aa5165a5f7a2e0b3ad047de08c56c0a22c Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/model2vec.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/modelscope_hub.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/modelscope_hub.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9e09c7b8c80ad23f11c3cdf91f9d616ad90e1ea9 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/modelscope_hub.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/mosaicml.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/mosaicml.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..16c8dc13f62fdbeaf6684e279fe7595f0f7dd5a0 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/mosaicml.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/naver.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/naver.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..59e5df770ba9440c8dea4ad88ca06fb20026001c Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/naver.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/nemo.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/nemo.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f84bb64a4d8a1b3573495f02ae07d461c44754be Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/nemo.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/nlpcloud.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/nlpcloud.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b095e865a81ead968cf77a9c00987d196690a6a8 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/nlpcloud.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/oci_generative_ai.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/oci_generative_ai.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8eeb3224ee08601d9ce7831f43954ec77feedeb9 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/oci_generative_ai.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/octoai_embeddings.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/octoai_embeddings.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0960ebea5c57f657bbc89887aa5222dfee892acf Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/octoai_embeddings.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/ollama.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/ollama.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..55b19a51ebbfc1dd86ee03942f36dab50529eea9 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/ollama.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/openai.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/openai.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c44627fe70ac20fceeaaacb66fb2c8b4eebcaf59 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/openai.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/openvino.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/openvino.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b00afcd2792b8ba094d45cbd513a1dea8cd945c4 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/openvino.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/optimum_intel.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/optimum_intel.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a22fcfa0f39711f59a5f3b5f7cee9e12cbeca2cf Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/optimum_intel.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/oracleai.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/oracleai.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d646a6b797a6fc215884aa6ec9135cb43594395a Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/oracleai.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/ovhcloud.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/ovhcloud.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5c27cdb6bb50bdfdf3777cf61119ddecc7cfd030 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/ovhcloud.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/premai.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/premai.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b1946e542a7b6ee34449fa58fa98c0859dd751da Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/premai.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/sagemaker_endpoint.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/sagemaker_endpoint.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..93645870f888cdbe21656114655f80668240ddad Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/sagemaker_endpoint.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/sambanova.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/sambanova.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7e743f88e50c1cf98e44b6b5e90b50808d3f6dd5 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/sambanova.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/self_hosted.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/self_hosted.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..28dee4eb853ebfbbc9f98e13058062f2ee13f4f8 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/self_hosted.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/self_hosted_hugging_face.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/self_hosted_hugging_face.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..60e9b230ca35fb0b221922799d10d66e42faaf99 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/self_hosted_hugging_face.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/sentence_transformer.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/sentence_transformer.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7be0713fb66fce9714726effe41667e25195d882 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/sentence_transformer.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/solar.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/solar.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..432b2911884c4a0201d210b697c7c7b396a6f930 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/solar.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/spacy_embeddings.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/spacy_embeddings.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d3a989204e1e3d2c382da629847ff49facb10ba5 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/spacy_embeddings.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/sparkllm.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/sparkllm.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..45e3b75b64d42f6614034f6dfcfcf857e9193d9e Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/sparkllm.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/tensorflow_hub.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/tensorflow_hub.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..055ecd28381e46e347bc86c6d20bc3be5927cbde Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/tensorflow_hub.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/text2vec.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/text2vec.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..879538b27968b2f7d2459332e2d1c2e8630e88fc Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/text2vec.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/textembed.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/textembed.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ab7a9af790a851b0f657054e4e9535a3b9d55226 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/textembed.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/titan_takeoff.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/titan_takeoff.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..52361029e938ce4cbddbf3b1a1706758bb62412a Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/titan_takeoff.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/vertexai.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/vertexai.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d8d5f85fc9499a6b070b5b2ab2fadf0bedff8cd8 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/vertexai.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/volcengine.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/volcengine.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4c624116d4efd791e1d66da4ddaffbc661bb67c5 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/volcengine.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/voyageai.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/voyageai.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..229926de0dee014e0a5e57a03c18f7ecb0e708f0 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/voyageai.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/xinference.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/xinference.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..76df924d6ba9222ee59d6a9c474334ab7fce4fae Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/xinference.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/yandex.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/yandex.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..988d3d787b2a779ea56a9b883f650fe31efb0be5 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/yandex.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/zhipuai.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/zhipuai.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..56e853b216827c727f4391fe0359dcbf6d0ebdf6 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/embeddings/__pycache__/zhipuai.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/example_selectors/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/example_selectors/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f1da5a6f27a306d7d876565b4076e2257b788e24 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/example_selectors/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/example_selectors/__pycache__/ngram_overlap.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/example_selectors/__pycache__/ngram_overlap.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b82145f0b2b5db5281334f863e6d1d9467a6b407 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/example_selectors/__pycache__/ngram_overlap.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a33e8b9972ed5dd99871d6959392a45cfbc8be00 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/__pycache__/base.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/__pycache__/base.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3caea1b0e530df1c859c73b5a4a842ccdc4e9aec Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/__pycache__/base.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/__pycache__/cassandra.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/__pycache__/cassandra.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..cab3886d098dc0f39e7451412064728522327da9 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/__pycache__/cassandra.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/__pycache__/links.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/__pycache__/links.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..92f6ed2879193d58027c735c71e759c597ab92ca Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/__pycache__/links.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/__pycache__/mmr_helper.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/__pycache__/mmr_helper.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d7931f800856e69a94b610b66d737e6365c64c7b Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/__pycache__/mmr_helper.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/__pycache__/networkx.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/__pycache__/networkx.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8fa1bf979891d7e300f1a2e6a8c3484e074edf6c Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/__pycache__/networkx.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/__pycache__/visualize.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/__pycache__/visualize.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1d84c11b7b68e0a56d42bb550bf58ff77bab77dd Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/__pycache__/visualize.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/extractors/__init__.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/extractors/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..8d6a829ef61e8cb4d2b276d86e600eb0a2e3abf1 --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/extractors/__init__.py @@ -0,0 +1,41 @@ +from langchain_community.graph_vectorstores.extractors.gliner_link_extractor import ( + GLiNERInput, + GLiNERLinkExtractor, +) +from langchain_community.graph_vectorstores.extractors.hierarchy_link_extractor import ( + HierarchyInput, + HierarchyLinkExtractor, +) +from langchain_community.graph_vectorstores.extractors.html_link_extractor import ( + HtmlInput, + HtmlLinkExtractor, +) +from langchain_community.graph_vectorstores.extractors.keybert_link_extractor import ( + KeybertInput, + KeybertLinkExtractor, +) +from langchain_community.graph_vectorstores.extractors.link_extractor import ( + LinkExtractor, +) +from langchain_community.graph_vectorstores.extractors.link_extractor_adapter import ( + LinkExtractorAdapter, +) +from langchain_community.graph_vectorstores.extractors.link_extractor_transformer import ( # noqa: E501 + LinkExtractorTransformer, +) + +__all__ = [ + "GLiNERInput", + "GLiNERLinkExtractor", + "HierarchyInput", + "HierarchyLinkExtractor", + "HtmlInput", + "HtmlLinkExtractor", + "KeybertInput", + "KeybertLinkExtractor", + "LinkExtractor", + "LinkExtractor", + "LinkExtractorAdapter", + "LinkExtractorAdapter", + "LinkExtractorTransformer", +] diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/extractors/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/extractors/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2dad8f0f92f6799a50b1dab161fca00652eecb57 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/extractors/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/extractors/__pycache__/gliner_link_extractor.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/extractors/__pycache__/gliner_link_extractor.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..cc97e77bed07168181d387480904f17dfcece4a1 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/extractors/__pycache__/gliner_link_extractor.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/extractors/__pycache__/hierarchy_link_extractor.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/extractors/__pycache__/hierarchy_link_extractor.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6c7e63090aa904dd344f982a813e088820fa5f13 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/extractors/__pycache__/hierarchy_link_extractor.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/extractors/__pycache__/html_link_extractor.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/extractors/__pycache__/html_link_extractor.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2bb8dad9b0b428acd940ada3b9f4e8dc57b19cc0 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/extractors/__pycache__/html_link_extractor.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/extractors/__pycache__/keybert_link_extractor.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/extractors/__pycache__/keybert_link_extractor.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..734184cb786aad572e62119613bfd510bc197ca0 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/extractors/__pycache__/keybert_link_extractor.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/extractors/__pycache__/link_extractor.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/extractors/__pycache__/link_extractor.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4392c59e1baf5372e0b2c610014a23dedfb9dddf Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/extractors/__pycache__/link_extractor.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/extractors/__pycache__/link_extractor_adapter.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/extractors/__pycache__/link_extractor_adapter.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6e6b81a34584c0e3d3792eb3cf729aa5eaffff7d Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/extractors/__pycache__/link_extractor_adapter.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/extractors/__pycache__/link_extractor_transformer.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/extractors/__pycache__/link_extractor_transformer.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..33f99769bfd3a0f918881553ef2443fd77897f6b Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/extractors/__pycache__/link_extractor_transformer.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/extractors/gliner_link_extractor.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/extractors/gliner_link_extractor.py new file mode 100644 index 0000000000000000000000000000000000000000..f353ba4a1dc82bf07e2267472ce82934fe9d7154 --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/extractors/gliner_link_extractor.py @@ -0,0 +1,166 @@ +from typing import Any, Dict, Iterable, List, Optional, Set, Union + +from langchain_core._api import beta +from langchain_core.documents import Document + +from langchain_community.graph_vectorstores.extractors.link_extractor import ( + LinkExtractor, +) +from langchain_community.graph_vectorstores.links import Link + +# TypeAlias is not available in Python 3.9, we can't use that or the newer `type`. +GLiNERInput = Union[str, Document] + + +@beta() +class GLiNERLinkExtractor(LinkExtractor[GLiNERInput]): + """Link documents with common named entities using `GLiNER`_. + + `GLiNER`_ is a Named Entity Recognition (NER) model capable of identifying any + entity type using a bidirectional transformer encoder (BERT-like). + + The ``GLiNERLinkExtractor`` uses GLiNER to create links between documents that + have named entities in common. + + Example:: + + extractor = GLiNERLinkExtractor( + labels=["Person", "Award", "Date", "Competitions", "Teams"] + ) + results = extractor.extract_one("some long text...") + + .. _GLiNER: https://github.com/urchade/GLiNER + + .. seealso:: + + - :mod:`How to use a graph vector store ` + - :class:`How to create links between documents ` + + How to link Documents on common named entities + ============================================== + + Preliminaries + ------------- + + Install the ``gliner`` package: + + .. code-block:: bash + + pip install -q langchain_community gliner + + Usage + ----- + + We load the ``state_of_the_union.txt`` file, chunk it, then for each chunk we + extract named entity links and add them to the chunk. + + Using extract_one() + ^^^^^^^^^^^^^^^^^^^ + + We can use :meth:`extract_one` on a document to get the links and add the links + to the document metadata with + :meth:`~langchain_community.graph_vectorstores.links.add_links`:: + + from langchain_community.document_loaders import TextLoader + from langchain_community.graph_vectorstores import CassandraGraphVectorStore + from langchain_community.graph_vectorstores.extractors import GLiNERLinkExtractor + from langchain_community.graph_vectorstores.links import add_links + from langchain_text_splitters import CharacterTextSplitter + + loader = TextLoader("state_of_the_union.txt") + raw_documents = loader.load() + + text_splitter = CharacterTextSplitter(chunk_size=1000, chunk_overlap=0) + documents = text_splitter.split_documents(raw_documents) + + ner_extractor = GLiNERLinkExtractor(["Person", "Topic"]) + for document in documents: + links = ner_extractor.extract_one(document) + add_links(document, links) + + print(documents[0].metadata) + + .. code-block:: output + + {'source': 'state_of_the_union.txt', 'links': [Link(kind='entity:Person', direction='bidir', tag='President Zelenskyy'), Link(kind='entity:Person', direction='bidir', tag='Vladimir Putin')]} + + Using LinkExtractorTransformer + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + Using the :class:`~langchain_community.graph_vectorstores.extractors.link_extractor_transformer.LinkExtractorTransformer`, + we can simplify the link extraction:: + + from langchain_community.document_loaders import TextLoader + from langchain_community.graph_vectorstores.extractors import ( + GLiNERLinkExtractor, + LinkExtractorTransformer, + ) + from langchain_text_splitters import CharacterTextSplitter + + loader = TextLoader("state_of_the_union.txt") + raw_documents = loader.load() + + text_splitter = CharacterTextSplitter(chunk_size=1000, chunk_overlap=0) + documents = text_splitter.split_documents(raw_documents) + + ner_extractor = GLiNERLinkExtractor(["Person", "Topic"]) + transformer = LinkExtractorTransformer([ner_extractor]) + documents = transformer.transform_documents(documents) + + print(documents[0].metadata) + + .. code-block:: output + + {'source': 'state_of_the_union.txt', 'links': [Link(kind='entity:Person', direction='bidir', tag='President Zelenskyy'), Link(kind='entity:Person', direction='bidir', tag='Vladimir Putin')]} + + The documents with named entity links can then be added to a :class:`~langchain_community.graph_vectorstores.base.GraphVectorStore`:: + + from langchain_community.graph_vectorstores import CassandraGraphVectorStore + + store = CassandraGraphVectorStore.from_documents(documents=documents, embedding=...) + + Args: + labels: List of kinds of entities to extract. + kind: Kind of links to produce with this extractor. + model: GLiNER model to use. + extract_kwargs: Keyword arguments to pass to GLiNER. + """ # noqa: E501 + + def __init__( + self, + labels: List[str], + *, + kind: str = "entity", + model: str = "urchade/gliner_mediumv2.1", + extract_kwargs: Optional[Dict[str, Any]] = None, + ): + try: + from gliner import GLiNER + + self._model = GLiNER.from_pretrained(model) + + except ImportError: + raise ImportError( + "gliner is required for GLiNERLinkExtractor. " + "Please install it with `pip install gliner`." + ) from None + + self._labels = labels + self._kind = kind + self._extract_kwargs = extract_kwargs or {} + + def extract_one(self, input: GLiNERInput) -> Set[Link]: # noqa: A002 + return next(iter(self.extract_many([input]))) + + def extract_many( + self, + inputs: Iterable[GLiNERInput], + ) -> Iterable[Set[Link]]: + strs = [i if isinstance(i, str) else i.page_content for i in inputs] + for entities in self._model.batch_predict_entities( + strs, self._labels, **self._extract_kwargs + ): + yield { + Link.bidir(kind=f"{self._kind}:{e['label']}", tag=e["text"]) + for e in entities + } diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/extractors/hierarchy_link_extractor.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/extractors/hierarchy_link_extractor.py new file mode 100644 index 0000000000000000000000000000000000000000..d838210aded319e90b3cd7031feb6c50fee50c21 --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/extractors/hierarchy_link_extractor.py @@ -0,0 +1,110 @@ +from typing import Callable, List, Set + +from langchain_core._api import beta +from langchain_core.documents import Document + +from langchain_community.graph_vectorstores.extractors.link_extractor import ( + LinkExtractor, +) +from langchain_community.graph_vectorstores.extractors.link_extractor_adapter import ( + LinkExtractorAdapter, +) +from langchain_community.graph_vectorstores.links import Link + +# TypeAlias is not available in Python 3.9, we can't use that or the newer `type`. +HierarchyInput = List[str] + +_PARENT: str = "p:" +_CHILD: str = "c:" +_SIBLING: str = "s:" + + +@beta() +class HierarchyLinkExtractor(LinkExtractor[HierarchyInput]): + def __init__( + self, + *, + kind: str = "hierarchy", + parent_links: bool = True, + child_links: bool = False, + sibling_links: bool = False, + ): + """Extract links from a document hierarchy. + + Example: + + .. code-block:: python + + # Given three paths (in this case, within the "Root" document): + h1 = ["Root", "H1"] + h1a = ["Root", "H1", "a"] + h1b = ["Root", "H1", "b"] + + # Parent links `h1a` and `h1b` to `h1`. + # Child links `h1` to `h1a` and `h1b`. + # Sibling links `h1a` and `h1b` together (both directions). + + Example use with documents: + .. code_block: python + transformer = LinkExtractorTransformer([ + HierarchyLinkExtractor().as_document_extractor( + # Assumes the "path" to each document is in the metadata. + # Could split strings, etc. + lambda doc: doc.metadata.get("path", []) + ) + ]) + linked = transformer.transform_documents(docs) + + Args: + kind: Kind of links to produce with this extractor. + parent_links: Link from a section to its parent. + child_links: Link from a section to its children. + sibling_links: Link from a section to other sections with the same parent. + """ + self._kind = kind + self._parent_links = parent_links + self._child_links = child_links + self._sibling_links = sibling_links + + def as_document_extractor( + self, hierarchy: Callable[[Document], HierarchyInput] + ) -> LinkExtractor[Document]: + """Create a LinkExtractor from `Document`. + + Args: + hierarchy: Function that returns the path for the given document. + + Returns: + A `LinkExtractor[Document]` suitable for application to `Documents` directly + or with `LinkExtractorTransformer`. + """ + return LinkExtractorAdapter(underlying=self, transform=hierarchy) + + def extract_one( + self, + input: HierarchyInput, + ) -> Set[Link]: + this_path = "/".join(input) + parent_path = None + + links = set() + if self._parent_links: + # This is linked from everything with this parent path. + links.add(Link.incoming(kind=self._kind, tag=_PARENT + this_path)) + if self._child_links: + # This is linked to every child with this as it's "parent" path. + links.add(Link.outgoing(kind=self._kind, tag=_CHILD + this_path)) + + if len(input) >= 1: + parent_path = "/".join(input[0:-1]) + if self._parent_links and len(input) > 1: + # This is linked to the nodes with the given parent path. + links.add(Link.outgoing(kind=self._kind, tag=_PARENT + parent_path)) + if self._child_links and len(input) > 1: + # This is linked from every node with the given parent path. + links.add(Link.incoming(kind=self._kind, tag=_CHILD + parent_path)) + if self._sibling_links: + # This is a sibling of everything with the same parent. + links.add(Link.bidir(kind=self._kind, tag=_SIBLING + parent_path)) + + return links diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/extractors/html_link_extractor.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/extractors/html_link_extractor.py new file mode 100644 index 0000000000000000000000000000000000000000..fddb852d6ee057084a73d81c4f72a3637713c8ad --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/extractors/html_link_extractor.py @@ -0,0 +1,291 @@ +from __future__ import annotations + +from dataclasses import dataclass +from typing import TYPE_CHECKING, List, Optional, Set, Union +from urllib.parse import urldefrag, urljoin, urlparse + +from langchain_core._api import beta +from langchain_core.documents import Document + +from langchain_community.graph_vectorstores import Link +from langchain_community.graph_vectorstores.extractors.link_extractor import ( + LinkExtractor, +) +from langchain_community.graph_vectorstores.extractors.link_extractor_adapter import ( + LinkExtractorAdapter, +) + +if TYPE_CHECKING: + from bs4 import BeautifulSoup + from bs4.element import Tag + + +def _parse_url(link: Tag, page_url: str, drop_fragments: bool = True) -> Optional[str]: + href = link.get("href") + if href is None: + return None + url = urlparse(href) # type: ignore[arg-type] + if url.scheme not in ["http", "https", ""]: + return None + + # Join the HREF with the page_url to convert relative paths to absolute. + url = str(urljoin(page_url, href)) # type: ignore[type-var, assignment] + + # Fragments would be useful if we chunked a page based on section. + # Then, each chunk would have a different URL based on the fragment. + # Since we aren't doing that yet, they just "break" links. So, drop + # the fragment. + if drop_fragments: + return urldefrag(url).url # type: ignore[call-overload] + return url # type: ignore[return-value] + + +def _parse_hrefs( + soup: BeautifulSoup, url: str, drop_fragments: bool = True +) -> Set[str]: + soup_links: List[Tag] = soup.find_all("a") + links: Set[str] = set() + + for link in soup_links: + parse_url = _parse_url(link, page_url=url, drop_fragments=drop_fragments) + # Remove self links and entries for any 'a' tag that failed to parse + # (didn't have href, or invalid domain, etc.) + if parse_url and parse_url != url: + links.add(parse_url) + + return links + + +@dataclass +class HtmlInput: + content: Union[str, BeautifulSoup] + base_url: str + + +@beta() +class HtmlLinkExtractor(LinkExtractor[HtmlInput]): + def __init__(self, *, kind: str = "hyperlink", drop_fragments: bool = True): + """Extract hyperlinks from HTML content. + + Expects the input to be an HTML string or a `BeautifulSoup` object. + + Example:: + + extractor = HtmlLinkExtractor() + results = extractor.extract_one(HtmlInput(html, url)) + + .. seealso:: + + - :mod:`How to use a graph vector store ` + - :class:`How to create links between documents ` + + How to link Documents on hyperlinks in HTML + =========================================== + + Preliminaries + ------------- + + Install the ``beautifulsoup4`` package: + + .. code-block:: bash + + pip install -q langchain_community beautifulsoup4 + + Usage + ----- + + For this example, we'll scrape 2 HTML pages that have an hyperlink from one + page to the other using an ``AsyncHtmlLoader``. + Then we use the ``HtmlLinkExtractor`` to create the links in the documents. + + Using extract_one() + ^^^^^^^^^^^^^^^^^^^ + + We can use :meth:`extract_one` on a document to get the links and add the links + to the document metadata with + :meth:`~langchain_community.graph_vectorstores.links.add_links`:: + + from langchain_community.document_loaders import AsyncHtmlLoader + from langchain_community.graph_vectorstores.extractors import ( + HtmlInput, + HtmlLinkExtractor, + ) + from langchain_community.graph_vectorstores.links import add_links + from langchain_core.documents import Document + + loader = AsyncHtmlLoader( + [ + "https://python.langchain.com/docs/integrations/providers/astradb/", + "https://docs.datastax.com/en/astra/home/astra.html", + ] + ) + + documents = loader.load() + + html_extractor = HtmlLinkExtractor() + + for doc in documents: + links = html_extractor.extract_one(HtmlInput(doc.page_content, url)) + add_links(doc, links) + + documents[0].metadata["links"][:5] + + .. code-block:: output + + [Link(kind='hyperlink', direction='out', tag='https://python.langchain.com/docs/integrations/providers/spreedly/'), + Link(kind='hyperlink', direction='out', tag='https://python.langchain.com/docs/integrations/providers/nvidia/'), + Link(kind='hyperlink', direction='out', tag='https://python.langchain.com/docs/integrations/providers/ray_serve/'), + Link(kind='hyperlink', direction='out', tag='https://python.langchain.com/docs/integrations/providers/bageldb/'), + Link(kind='hyperlink', direction='out', tag='https://python.langchain.com/docs/introduction/')] + + Using as_document_extractor() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + If you use a document loader that returns the raw HTML and that sets the source + key in the document metadata such as ``AsyncHtmlLoader``, + you can simplify by using :meth:`as_document_extractor` that takes directly a + ``Document`` as input:: + + from langchain_community.document_loaders import AsyncHtmlLoader + from langchain_community.graph_vectorstores.extractors import HtmlLinkExtractor + from langchain_community.graph_vectorstores.links import add_links + + loader = AsyncHtmlLoader( + [ + "https://python.langchain.com/docs/integrations/providers/astradb/", + "https://docs.datastax.com/en/astra/home/astra.html", + ] + ) + documents = loader.load() + html_extractor = HtmlLinkExtractor().as_document_extractor() + + for document in documents: + links = html_extractor.extract_one(document) + add_links(document, links) + + documents[0].metadata["links"][:5] + + .. code-block:: output + + [Link(kind='hyperlink', direction='out', tag='https://python.langchain.com/docs/integrations/providers/spreedly/'), + Link(kind='hyperlink', direction='out', tag='https://python.langchain.com/docs/integrations/providers/nvidia/'), + Link(kind='hyperlink', direction='out', tag='https://python.langchain.com/docs/integrations/providers/ray_serve/'), + Link(kind='hyperlink', direction='out', tag='https://python.langchain.com/docs/integrations/providers/bageldb/'), + Link(kind='hyperlink', direction='out', tag='https://python.langchain.com/docs/introduction/')] + + Using LinkExtractorTransformer + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + Using the :class:`~langchain_community.graph_vectorstores.extractors.link_extractor_transformer.LinkExtractorTransformer`, + we can simplify the link extraction:: + + from langchain_community.document_loaders import AsyncHtmlLoader + from langchain_community.graph_vectorstores.extractors import ( + HtmlLinkExtractor, + LinkExtractorTransformer, + ) + from langchain_community.graph_vectorstores.links import add_links + + loader = AsyncHtmlLoader( + [ + "https://python.langchain.com/docs/integrations/providers/astradb/", + "https://docs.datastax.com/en/astra/home/astra.html", + ] + ) + + documents = loader.load() + transformer = LinkExtractorTransformer([HtmlLinkExtractor().as_document_extractor()]) + documents = transformer.transform_documents(documents) + + documents[0].metadata["links"][:5] + + .. code-block:: output + + [Link(kind='hyperlink', direction='out', tag='https://python.langchain.com/docs/integrations/providers/spreedly/'), + Link(kind='hyperlink', direction='out', tag='https://python.langchain.com/docs/integrations/providers/nvidia/'), + Link(kind='hyperlink', direction='out', tag='https://python.langchain.com/docs/integrations/providers/ray_serve/'), + Link(kind='hyperlink', direction='out', tag='https://python.langchain.com/docs/integrations/providers/bageldb/'), + Link(kind='hyperlink', direction='out', tag='https://python.langchain.com/docs/introduction/')] + + We can check that there is a link from the first document to the second:: + + for doc_to in documents: + for link_to in doc_to.metadata["links"]: + if link_to.direction == "in": + for doc_from in documents: + for link_from in doc_from.metadata["links"]: + if ( + link_to.direction == "in" + and link_from.direction == "out" + and link_to.tag == link_from.tag + ): + print( + f"Found link from {doc_from.metadata['source']} to {doc_to.metadata['source']}." + ) + + .. code-block:: output + + Found link from https://python.langchain.com/docs/integrations/providers/astradb/ to https://docs.datastax.com/en/astra/home/astra.html. + + The documents with URL links can then be added to a :class:`~langchain_community.graph_vectorstores.base.GraphVectorStore`:: + + from langchain_community.graph_vectorstores import CassandraGraphVectorStore + + store = CassandraGraphVectorStore.from_documents(documents=documents, embedding=...) + + Args: + kind: The kind of edge to extract. Defaults to ``hyperlink``. + drop_fragments: Whether fragments in URLs and links should be + dropped. Defaults to ``True``. + """ # noqa: E501 + try: + import bs4 # noqa:F401 + except ImportError as e: + raise ImportError( + "BeautifulSoup4 is required for HtmlLinkExtractor. " + "Please install it with `pip install beautifulsoup4`." + ) from e + + self._kind = kind + self.drop_fragments = drop_fragments + + def as_document_extractor( + self, url_metadata_key: str = "source" + ) -> LinkExtractor[Document]: + """Return a LinkExtractor that applies to documents. + + Note: + Since the HtmlLinkExtractor parses HTML, if you use with other similar + link extractors it may be more efficient to call the link extractors + directly on the parsed BeautifulSoup object. + + Args: + url_metadata_key: The name of the filed in document metadata with the URL of + the document. + """ + return LinkExtractorAdapter( + underlying=self, + transform=lambda doc: HtmlInput( + doc.page_content, doc.metadata[url_metadata_key] + ), + ) + + def extract_one( + self, + input: HtmlInput, # noqa: A002 + ) -> Set[Link]: + content = input.content + if isinstance(content, str): + from bs4 import BeautifulSoup + + content = BeautifulSoup(content, "html.parser") + + base_url = input.base_url + if self.drop_fragments: + base_url = urldefrag(base_url).url + + hrefs = _parse_hrefs(content, base_url, self.drop_fragments) + + links = {Link.outgoing(kind=self._kind, tag=url) for url in hrefs} + links.add(Link.incoming(kind=self._kind, tag=base_url)) + return links diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/extractors/keybert_link_extractor.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/extractors/keybert_link_extractor.py new file mode 100644 index 0000000000000000000000000000000000000000..3844df84f76ef4f696f7eec68fa77e3e6cf09abe --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/extractors/keybert_link_extractor.py @@ -0,0 +1,167 @@ +from typing import Any, Dict, Iterable, Optional, Set, Union + +from langchain_core._api import beta +from langchain_core.documents import Document + +from langchain_community.graph_vectorstores.extractors.link_extractor import ( + LinkExtractor, +) +from langchain_community.graph_vectorstores.links import Link + +KeybertInput = Union[str, Document] + + +@beta() +class KeybertLinkExtractor(LinkExtractor[KeybertInput]): + def __init__( + self, + *, + kind: str = "kw", + embedding_model: str = "all-MiniLM-L6-v2", + extract_keywords_kwargs: Optional[Dict[str, Any]] = None, + ): + """Extract keywords using `KeyBERT `_. + + KeyBERT is a minimal and easy-to-use keyword extraction technique that + leverages BERT embeddings to create keywords and keyphrases that are most + similar to a document. + + The KeybertLinkExtractor uses KeyBERT to create links between documents that + have keywords in common. + + Example:: + + extractor = KeybertLinkExtractor() + results = extractor.extract_one("lorem ipsum...") + + .. seealso:: + + - :mod:`How to use a graph vector store ` + - :class:`How to create links between documents ` + + How to link Documents on common keywords using Keybert + ====================================================== + + Preliminaries + ------------- + + Install the keybert package: + + .. code-block:: bash + + pip install -q langchain_community keybert + + Usage + ----- + + We load the ``state_of_the_union.txt`` file, chunk it, then for each chunk we + extract keyword links and add them to the chunk. + + Using extract_one() + ^^^^^^^^^^^^^^^^^^^ + + We can use :meth:`extract_one` on a document to get the links and add the links + to the document metadata with + :meth:`~langchain_community.graph_vectorstores.links.add_links`:: + + from langchain_community.document_loaders import TextLoader + from langchain_community.graph_vectorstores import CassandraGraphVectorStore + from langchain_community.graph_vectorstores.extractors import KeybertLinkExtractor + from langchain_community.graph_vectorstores.links import add_links + from langchain_text_splitters import CharacterTextSplitter + + loader = TextLoader("state_of_the_union.txt") + + raw_documents = loader.load() + text_splitter = CharacterTextSplitter(chunk_size=1000, chunk_overlap=0) + + documents = text_splitter.split_documents(raw_documents) + keyword_extractor = KeybertLinkExtractor() + + for document in documents: + links = keyword_extractor.extract_one(document) + add_links(document, links) + + print(documents[0].metadata) + + .. code-block:: output + + {'source': 'state_of_the_union.txt', 'links': [Link(kind='kw', direction='bidir', tag='ukraine'), Link(kind='kw', direction='bidir', tag='ukrainian'), Link(kind='kw', direction='bidir', tag='putin'), Link(kind='kw', direction='bidir', tag='vladimir'), Link(kind='kw', direction='bidir', tag='russia')]} + + Using LinkExtractorTransformer + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + Using the :class:`~langchain_community.graph_vectorstores.extractors.link_extractor_transformer.LinkExtractorTransformer`, + we can simplify the link extraction:: + + from langchain_community.document_loaders import TextLoader + from langchain_community.graph_vectorstores.extractors import ( + KeybertLinkExtractor, + LinkExtractorTransformer, + ) + from langchain_text_splitters import CharacterTextSplitter + + loader = TextLoader("state_of_the_union.txt") + raw_documents = loader.load() + + text_splitter = CharacterTextSplitter(chunk_size=1000, chunk_overlap=0) + documents = text_splitter.split_documents(raw_documents) + + transformer = LinkExtractorTransformer([KeybertLinkExtractor()]) + documents = transformer.transform_documents(documents) + + print(documents[0].metadata) + + .. code-block:: output + + {'source': 'state_of_the_union.txt', 'links': [Link(kind='kw', direction='bidir', tag='ukraine'), Link(kind='kw', direction='bidir', tag='ukrainian'), Link(kind='kw', direction='bidir', tag='putin'), Link(kind='kw', direction='bidir', tag='vladimir'), Link(kind='kw', direction='bidir', tag='russia')]} + + The documents with keyword links can then be added to a :class:`~langchain_community.graph_vectorstores.base.GraphVectorStore`:: + + from langchain_community.graph_vectorstores import CassandraGraphVectorStore + + store = CassandraGraphVectorStore.from_documents(documents=documents, embedding=...) + + Args: + kind: Kind of links to produce with this extractor. + embedding_model: Name of the embedding model to use with KeyBERT. + extract_keywords_kwargs: Keyword arguments to pass to KeyBERT's + ``extract_keywords`` method. + """ # noqa: E501 + try: + import keybert + + self._kw_model = keybert.KeyBERT(model=embedding_model) + except ImportError: + raise ImportError( + "keybert is required for KeybertLinkExtractor. " + "Please install it with `pip install keybert`." + ) from None + + self._kind = kind + self._extract_keywords_kwargs = extract_keywords_kwargs or {} + + def extract_one(self, input: KeybertInput) -> Set[Link]: # noqa: A002 + keywords = self._kw_model.extract_keywords( + input if isinstance(input, str) else input.page_content, + **self._extract_keywords_kwargs, + ) + return {Link.bidir(kind=self._kind, tag=kw[0]) for kw in keywords} + + def extract_many( + self, + inputs: Iterable[KeybertInput], + ) -> Iterable[Set[Link]]: + inputs = list(inputs) + if len(inputs) == 1: + # Even though we pass a list, if it contains one item, keybert will + # flatten it. This means it's easier to just call the special case + # for one item. + yield self.extract_one(inputs[0]) + elif len(inputs) > 1: + strs = [i if isinstance(i, str) else i.page_content for i in inputs] + extracted = self._kw_model.extract_keywords( + strs, **self._extract_keywords_kwargs + ) + for keywords in extracted: + yield {Link.bidir(kind=self._kind, tag=kw[0]) for kw in keywords} diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/extractors/link_extractor.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/extractors/link_extractor.py new file mode 100644 index 0000000000000000000000000000000000000000..bb141dccc53cddb754fd0082a1d9c9ca1f51cd4a --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/extractors/link_extractor.py @@ -0,0 +1,39 @@ +from __future__ import annotations + +from abc import ABC, abstractmethod +from typing import Generic, Iterable, Set, TypeVar + +from langchain_core._api import beta + +from langchain_community.graph_vectorstores import Link + +InputT = TypeVar("InputT") + +METADATA_LINKS_KEY = "links" + + +@beta() +class LinkExtractor(ABC, Generic[InputT]): + """Interface for extracting links (incoming, outgoing, bidirectional).""" + + @abstractmethod + def extract_one(self, input: InputT) -> Set[Link]: + """Add edges from each `input` to the corresponding documents. + + Args: + input: The input content to extract edges from. + + Returns: + Set of links extracted from the input. + """ + + def extract_many(self, inputs: Iterable[InputT]) -> Iterable[Set[Link]]: + """Add edges from each `input` to the corresponding documents. + + Args: + inputs: The input content to extract edges from. + + Returns: + Iterable over the set of links extracted from the input. + """ + return map(self.extract_one, inputs) diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/extractors/link_extractor_adapter.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/extractors/link_extractor_adapter.py new file mode 100644 index 0000000000000000000000000000000000000000..73b6761eff92a117e55259341f9c80e291bc4fc5 --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/extractors/link_extractor_adapter.py @@ -0,0 +1,29 @@ +from typing import Callable, Iterable, Set, TypeVar + +from langchain_core._api import beta + +from langchain_community.graph_vectorstores import Link +from langchain_community.graph_vectorstores.extractors.link_extractor import ( + LinkExtractor, +) + +InputT = TypeVar("InputT") +UnderlyingInputT = TypeVar("UnderlyingInputT") + + +@beta() +class LinkExtractorAdapter(LinkExtractor[InputT]): + def __init__( + self, + underlying: LinkExtractor[UnderlyingInputT], + transform: Callable[[InputT], UnderlyingInputT], + ) -> None: + self._underlying = underlying + self._transform = transform + + def extract_one(self, input: InputT) -> Set[Link]: # noqa: A002 + return self._underlying.extract_one(self._transform(input)) + + def extract_many(self, inputs: Iterable[InputT]) -> Iterable[Set[Link]]: + underlying_inputs = map(self._transform, inputs) + return self._underlying.extract_many(underlying_inputs) diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/extractors/link_extractor_transformer.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/extractors/link_extractor_transformer.py new file mode 100644 index 0000000000000000000000000000000000000000..ba78fa2100fb4bb4bb4ccaa1892b9f5f8bab42c2 --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graph_vectorstores/extractors/link_extractor_transformer.py @@ -0,0 +1,45 @@ +from typing import Any, Sequence + +from langchain_core._api import beta +from langchain_core.documents import Document +from langchain_core.documents.transformers import BaseDocumentTransformer + +from langchain_community.graph_vectorstores.extractors.link_extractor import ( + LinkExtractor, +) +from langchain_community.graph_vectorstores.links import copy_with_links + + +@beta() +class LinkExtractorTransformer(BaseDocumentTransformer): + """DocumentTransformer for applying one or more LinkExtractors. + + Example: + .. code-block:: python + + extract_links = LinkExtractorTransformer([ + HtmlLinkExtractor().as_document_extractor(), + ]) + extract_links.transform_documents(docs) + """ + + def __init__(self, link_extractors: Sequence[LinkExtractor[Document]]): + """Create a DocumentTransformer which adds extracted links to each document.""" + self.link_extractors = link_extractors + + def transform_documents( + self, documents: Sequence[Document], **kwargs: Any + ) -> Sequence[Document]: + # Implement `transform_docments` directly, so that LinkExtractors which operate + # better in batch (`extract_many`) get a chance to do so. + + # Run each extractor over all documents. + links_per_extractor = [e.extract_many(documents) for e in self.link_extractors] + + # Transpose the list of lists to pair each document with the tuple of links. + links_per_document = zip(*links_per_extractor) + + return [ + copy_with_links(document, *links) + for document, links in zip(documents, links_per_document) + ] diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1b3bfef72b6e6018148853c398d11d73fc5dd7ad Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/age_graph.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/age_graph.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2126b2c6293d0c729509dfe7f68b16bfb3df5990 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/age_graph.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/arangodb_graph.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/arangodb_graph.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c312ad9ca0f8a6fe388145338fc1eeed74988624 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/arangodb_graph.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/falkordb_graph.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/falkordb_graph.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4922f3b5910de7752319054688c9e64919d49a9f Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/falkordb_graph.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/graph_document.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/graph_document.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..818b14b763f2eef7d35c733fb079e4f1441a77f0 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/graph_document.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/graph_store.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/graph_store.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..390279af79123a08dcf0e84b9c6bf706b7200d86 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/graph_store.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/gremlin_graph.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/gremlin_graph.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a0c98658add228d90f27e20a3c4c449047517b40 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/gremlin_graph.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/hugegraph.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/hugegraph.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a526a6fe16111d1194ab880f505a19c07ce7011b Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/hugegraph.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/index_creator.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/index_creator.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..add9af8e5fc1170de2bdf8dd2548532c91600405 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/index_creator.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/kuzu_graph.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/kuzu_graph.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2e447e6ca5e7ebd4d64d9cfc3f9c51cc7454b82a Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/kuzu_graph.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/memgraph_graph.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/memgraph_graph.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..fd2f6ad15be91ee6895862f1f34c1a664d286434 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/memgraph_graph.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/nebula_graph.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/nebula_graph.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a61a6c4340db38be4bacca0c10e9075f770686bd Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/nebula_graph.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/neo4j_graph.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/neo4j_graph.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..dba9788793921e03296239ccecc508c4c9ec36a4 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/neo4j_graph.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/neptune_graph.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/neptune_graph.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5c5e453465865e9b9f0a6cc821ea8e05ea786f94 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/neptune_graph.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/neptune_rdf_graph.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/neptune_rdf_graph.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ae27070374dfd7ee964ff2c37806588867d998a3 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/neptune_rdf_graph.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/networkx_graph.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/networkx_graph.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..fe5fc645b93a0e29a2c36be0acb84177c17e5244 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/networkx_graph.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/ontotext_graphdb_graph.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/ontotext_graphdb_graph.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c051f40d45f124dd217848a8fd2ba742ea7e4aaf Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/ontotext_graphdb_graph.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/rdf_graph.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/rdf_graph.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..59dd867f5cc855e8c68046077c105f0481f48010 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/rdf_graph.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/tigergraph_graph.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/tigergraph_graph.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..cb54e333b3f4ea147c637085d77c5056f2ef18e9 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/graphs/__pycache__/tigergraph_graph.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/indexes/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/indexes/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ee42f8166b1e54a44f66616ff3cb7c2f5f62c8f0 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/indexes/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/indexes/__pycache__/_document_manager.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/indexes/__pycache__/_document_manager.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..38d9bc2d118dd37817aadffcbc370c7408e4776b Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/indexes/__pycache__/_document_manager.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/indexes/__pycache__/_sql_record_manager.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/indexes/__pycache__/_sql_record_manager.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c1d214a49e40f46e615090aa1a76764f9a1cade6 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/indexes/__pycache__/_sql_record_manager.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/indexes/__pycache__/base.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/indexes/__pycache__/base.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f91d944ff66efb92ccd20fefbbc94785d5593c5a Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/indexes/__pycache__/base.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f3a372401b37919447c97bfe166a355ce9c6672d Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/ai21.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/ai21.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..442f89cf106c2037b500ee9ea2b07b3869e8485d Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/ai21.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/aleph_alpha.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/aleph_alpha.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2c292a87751bf14a4892c3c3055813f895f37704 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/aleph_alpha.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/amazon_api_gateway.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/amazon_api_gateway.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3553bc686dc17942941d43e94f4cc64e92ec1fee Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/amazon_api_gateway.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/anthropic.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/anthropic.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..30a706551a7b93016e14552a52acf5f92f760e0f Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/anthropic.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/anyscale.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/anyscale.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..fc73b1cde1d317593412f08339b4cf58bd9a250e Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/anyscale.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/aphrodite.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/aphrodite.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..72531a79bb1e5fc723e50d20bb58524e2e6a2cb1 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/aphrodite.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/arcee.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/arcee.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d6090a8aeb800c3cfc06316417dad132a409fca4 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/arcee.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/aviary.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/aviary.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..36afe64386236553f7fb4f7a2dcebf3bc181c67b Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/aviary.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/azureml_endpoint.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/azureml_endpoint.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..169f32dc1abcad0be36d8c39e0950f2fad196598 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/azureml_endpoint.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/baichuan.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/baichuan.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..74f9fa77477ea933972bf00e225abf448166403f Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/baichuan.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/baidu_qianfan_endpoint.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/baidu_qianfan_endpoint.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..32a2ef2ffd8a1f12027f6f32b02f459941fd7e0c Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/baidu_qianfan_endpoint.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/bananadev.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/bananadev.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..37d5aee0347a2b1bab3a05dfece8adca3be5c57f Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/bananadev.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/baseten.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/baseten.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ea9d67873a2602502cc0fc1a7be1b867d1c58d70 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/baseten.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/beam.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/beam.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..df88bcee69aa8c8adadad07d6b67cfdb39cdf1d3 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/beam.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/bedrock.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/bedrock.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..182af64e055a781e473ac711d45a730b47da0261 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/bedrock.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/bigdl_llm.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/bigdl_llm.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..cf781d8362dea108e160793e1a8eea8bcec5eccd Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/bigdl_llm.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/bittensor.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/bittensor.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a3f679cd27583ba3b41cb9ae59f4aae9aa95ae8c Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/bittensor.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/cerebriumai.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/cerebriumai.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0ca037a1e39f1490f8353c0c1c4bb9b792e989b0 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/cerebriumai.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/chatglm.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/chatglm.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5b7a2a496b7693358770779708f34d54360d5fb8 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/chatglm.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/chatglm3.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/chatglm3.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b084774027e1334596c3c60e1b2fa62a58a4a3f9 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/chatglm3.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/clarifai.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/clarifai.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d9ddd36918e8a344574d74ff2c5c16d3b19a27b0 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/clarifai.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/cloudflare_workersai.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/cloudflare_workersai.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2179c71cc06e75e880375871d5665a2a47ea070f Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/cloudflare_workersai.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/cohere.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/cohere.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..26841709c2c257ebe3bac3828ce9a83a58066a45 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/cohere.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/ctransformers.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/ctransformers.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4c248d0c275029d16245107801b33d5358d0f9c6 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/ctransformers.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/ctranslate2.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/ctranslate2.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7a6fff7a6b1cb1f7b91afb866f6bb65d5ffc3c5f Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/ctranslate2.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/databricks.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/databricks.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c280e8295b72bc40fcd764cd0f78869f28719d2f Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/databricks.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/deepinfra.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/deepinfra.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2354ac6accfab413a5081e29fb5f9e8fa0289c16 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/deepinfra.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/deepsparse.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/deepsparse.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b06d501285632fdd666669c5aeacf591812f8345 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/deepsparse.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/edenai.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/edenai.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..de75cc25377959838a0b059aaca49e4d6eb64a07 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/edenai.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/exllamav2.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/exllamav2.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..61374f2e03c7f53b2c8a5362c3e237a39a4c6d3a Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/exllamav2.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/fake.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/fake.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..71c304b63f6ca329bad520143c49db725a4c0fb4 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/fake.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/fireworks.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/fireworks.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6e78f30efd422ebc7727cb07a0449097c77faae8 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/fireworks.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/forefrontai.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/forefrontai.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..36cc6562dde9df10f597d79e86bed0937a714a34 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/forefrontai.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/friendli.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/friendli.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..89c50b8cbaa21f7a661e85b6fceaee2e71b418cf Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/friendli.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/gigachat.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/gigachat.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..30f3cea372264024225b4b039c88f13843d5841e Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/gigachat.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/google_palm.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/google_palm.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3a9fa905b37d7603f06b6e1f60cb06dbeb20f9a1 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/google_palm.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/gooseai.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/gooseai.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b52386692540c7261fca5599e0eaa6b06acb5405 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/gooseai.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/gpt4all.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/gpt4all.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e01a8cf00e400163dc5034cab3e0274ae5856f4c Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/gpt4all.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/gradient_ai.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/gradient_ai.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..06abc404a1c171c171470228cb46c56f6a5a1ffa Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/gradient_ai.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/huggingface_endpoint.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/huggingface_endpoint.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e0c253abbaff863a8a425349799668957cc0e66c Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/huggingface_endpoint.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/huggingface_hub.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/huggingface_hub.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..be0d8a4c208376100c1c00cc56e0f9b9fcf150cc Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/huggingface_hub.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/huggingface_pipeline.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/huggingface_pipeline.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..53d92d79e57e35b490b35cbf564d42bcc16448ad Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/huggingface_pipeline.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/huggingface_text_gen_inference.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/huggingface_text_gen_inference.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b6f625511ed5182d118bcf72fa307892ae0e4d82 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/huggingface_text_gen_inference.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/human.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/human.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6611500ccd950dc3e054794d96d0fc8e359d0365 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/human.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/ipex_llm.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/ipex_llm.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1d6ffb38e1bb49471e8702054c966e991759a97a Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/ipex_llm.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/javelin_ai_gateway.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/javelin_ai_gateway.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1744934688c1557963364fa1a876fd618face80b Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/javelin_ai_gateway.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/koboldai.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/koboldai.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..af1ce78124231be8e48d86aec3dcb2918f239f8c Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/koboldai.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/konko.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/konko.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..559e638219078c6d13150998543a5dd7f93d9b43 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/konko.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/layerup_security.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/layerup_security.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8a8dc2c2292c00d1b91b79ab23d952380f10f1ca Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/layerup_security.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/llamacpp.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/llamacpp.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..76f2ee5dbc459c733b8daa45aea025e76e488c3a Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/llamacpp.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/llamafile.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/llamafile.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..64bb2edf10ae352b2e89dea6ed5b6f73d2f56330 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/llamafile.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/loading.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/loading.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3da9e75f31d3e1ec53f512ae887fa1cc55f861fd Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/loading.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/manifest.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/manifest.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4e9cae6e609e7746fbcaa0c2884dc6a8015a7958 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/manifest.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/minimax.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/minimax.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9be94d8ce0b251e18e1f384fe7a10c11bd520c17 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/minimax.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/mlflow.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/mlflow.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..fa8f07df181572ad361e3c92dd8c5d4db67f9dcf Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/mlflow.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/mlflow_ai_gateway.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/mlflow_ai_gateway.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b95c6ac457e8bcae83a3ca6ca797ffdbf56e8c73 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/mlflow_ai_gateway.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/mlx_pipeline.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/mlx_pipeline.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..78187ba1fa196f986d3edc2f1fbb7fccee7f4a52 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/mlx_pipeline.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/modal.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/modal.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..aaa2bf5e7a20706e943da337bda1f010369be998 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/modal.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/moonshot.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/moonshot.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0adba37480df746110cfae83e4c72adbb8ad25d1 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/moonshot.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/mosaicml.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/mosaicml.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..da6a7eb23e8fa87e445ed8dc5acf62d58039f5f8 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/mosaicml.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/nlpcloud.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/nlpcloud.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d00a2f2705a26fe94686d8b7ec520ab3698d3010 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/nlpcloud.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/oci_data_science_model_deployment_endpoint.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/oci_data_science_model_deployment_endpoint.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..fc3a6e18017e8cebcf84ae965f97e2b1a13339a5 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/oci_data_science_model_deployment_endpoint.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/oci_generative_ai.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/oci_generative_ai.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ce172e02cc51376a1fe6f8b60bc40fb4ee60eed9 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/oci_generative_ai.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/octoai_endpoint.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/octoai_endpoint.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b829e474a773b80274f1cdbb1a5b5b32275935ed Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/octoai_endpoint.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/ollama.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/ollama.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a53f94cbba03c06e177969857c090092d99c6b3f Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/ollama.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/opaqueprompts.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/opaqueprompts.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b244ca8a57bbcb82c469af36f2f321c56bb5892a Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/opaqueprompts.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/openai.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/openai.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3334cb2acdbf0ac1a5287e1881709338349d07fc Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/openai.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/openllm.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/openllm.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..75498757f16f47d8c9a42a9692a14b33b70dfd4d Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/openllm.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/openlm.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/openlm.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2546f5be70c888f7a6aa828cdc2e0d6c0bac87a0 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/openlm.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/outlines.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/outlines.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2bedcd45b78c481367e646f60090aaab47987f6b Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/outlines.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/pai_eas_endpoint.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/pai_eas_endpoint.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d6a8ad17adfb38d12ce9c668e3a934a5cc08180a Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/pai_eas_endpoint.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/petals.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/petals.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b39192dfa3ccfe3941a14965e9c34680c96fec9a Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/petals.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/pipelineai.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/pipelineai.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b7a26be6bec6d571faab86e2f6452d603560fd80 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/pipelineai.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/predibase.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/predibase.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..456564b948798a9fbe88ac187383b1695c553467 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/predibase.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/predictionguard.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/predictionguard.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4547ac190d8c385ea419954d5938d52469a0ee94 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/predictionguard.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/promptlayer_openai.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/promptlayer_openai.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..96f6dd10ada3a2a2aff872937c641bbd9f7048c4 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/promptlayer_openai.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/replicate.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/replicate.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..25bf00fb480502ada82c84e38e7a4633f884d1cf Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/replicate.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/rwkv.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/rwkv.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..bf8f7abf9c5303070410338429a922706c073775 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/rwkv.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/sagemaker_endpoint.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/sagemaker_endpoint.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..70455f72b9675efd160dfda27b75e75be83abcb5 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/sagemaker_endpoint.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/sambanova.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/sambanova.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..638228982a746f2c631bee65e5bb06f290c102e6 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/sambanova.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/self_hosted.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/self_hosted.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d4f951b8c152e4e8e05fa4b31c6e98130e59301d Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/self_hosted.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/self_hosted_hugging_face.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/self_hosted_hugging_face.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..972bd4b13c8aa5422485c846b0e09a653a4562bd Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/self_hosted_hugging_face.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/solar.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/solar.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0cfdf6c88209bc17deb94ba52efd099162e6b135 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/solar.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/sparkllm.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/sparkllm.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..cd88906a8a876e65068cf4b0f1c890a0cb3cae71 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/sparkllm.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/stochasticai.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/stochasticai.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..908b813d352be95147f08e5efc90abbd255b89e3 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/stochasticai.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/symblai_nebula.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/symblai_nebula.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..001f2ee2e49a404dd26f607fbc73269d247dc63b Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/symblai_nebula.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/textgen.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/textgen.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..cc9a8bf6ccd7bf91611fd301b2d09748431e69f7 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/textgen.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/titan_takeoff.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/titan_takeoff.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7d786ff6657282b1deac29d6f6c37a0fef2b00af Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/titan_takeoff.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/together.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/together.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3e415287b83d4aa7efbac9055bdd2d87fd50a011 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/together.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/tongyi.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/tongyi.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..28a9d9903e3f7822bef3ae4dcb23fa61516bfb5a Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/tongyi.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/utils.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/utils.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..33d9b67bb058146e33709fda99b8b51b6ee51d6d Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/utils.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/vertexai.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/vertexai.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..fa71ccace50cbddce5d88c5b7d767fc004fcec25 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/vertexai.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/vllm.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/vllm.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f39c959f636b2b3de29a1f861872305f39e352fe Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/vllm.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/volcengine_maas.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/volcengine_maas.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..83e33c9957e98b4a3e3b5acdd34f97e84a15433b Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/volcengine_maas.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/watsonxllm.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/watsonxllm.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b98f285bd388f728c66dc1b5d83e434e7bdcba0e Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/watsonxllm.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/weight_only_quantization.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/weight_only_quantization.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f2a5a04775c6939fee6052b7d853536d1c18d15b Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/weight_only_quantization.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/writer.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/writer.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..21ecc459de963c9470f2f7f7a80f229be894d91c Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/writer.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/xinference.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/xinference.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e07cb5e58f84ba1c6ab04bbcfc1ae799ac536451 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/xinference.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/yandex.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/yandex.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d6d5d255757439b9cceb8030509b02d7b488cb21 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/yandex.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/yi.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/yi.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b5aa262b639f21fb1d34c922f841df96b5006bd1 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/yi.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/you.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/you.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..28f5cd9a230794f35d053791ab97edf2d676b16e Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/you.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/yuan2.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/yuan2.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9939103fd24c51166b45dc72a79c583caacdf391 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/__pycache__/yuan2.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/grammars/json.gbnf b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/grammars/json.gbnf new file mode 100644 index 0000000000000000000000000000000000000000..61bd2b2e65bf9c2632dc7713a8bed5420bebef28 --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/grammars/json.gbnf @@ -0,0 +1,29 @@ +# Grammar for subset of JSON - doesn't support full string or number syntax + +root ::= object +value ::= object | array | string | number | boolean | "null" + +object ::= + "{" ws ( + string ":" ws value + ("," ws string ":" ws value)* + )? "}" + +array ::= + "[" ws ( + value + ("," ws value)* + )? "]" + +string ::= + "\"" ( + [^"\\] | + "\\" (["\\/bfnrt] | "u" [0-9a-fA-F] [0-9a-fA-F] [0-9a-fA-F] [0-9a-fA-F]) # escapes + )* "\"" ws + +# Only plain integers currently +number ::= "-"? [0-9]+ ws +boolean ::= ("true" | "false") ws + +# Optional space: by convention, applied in this grammar after literal chars when allowed +ws ::= ([ \t\n] ws)? \ No newline at end of file diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/grammars/list.gbnf b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/grammars/list.gbnf new file mode 100644 index 0000000000000000000000000000000000000000..30ea6e0c8499de5837b52dc55e9be9cbba158f5e --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/llms/grammars/list.gbnf @@ -0,0 +1,14 @@ +root ::= "[" items "]" EOF + +items ::= item ("," ws* item)* + +item ::= string + +string ::= + "\"" word (ws+ word)* "\"" ws* + +word ::= [a-zA-Z]+ + +ws ::= " " + +EOF ::= "\n" \ No newline at end of file diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/memory/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/memory/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..95fa8ea74cbb3422cb2d86e50ce9aa5ae5903ed0 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/memory/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/memory/__pycache__/kg.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/memory/__pycache__/kg.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ca5900879c8d9a91f84bc489f3f835a753608803 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/memory/__pycache__/kg.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/memory/__pycache__/motorhead_memory.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/memory/__pycache__/motorhead_memory.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3eb70ce66c2a63090a481b2412fab7260faa11a2 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/memory/__pycache__/motorhead_memory.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/memory/__pycache__/zep_cloud_memory.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/memory/__pycache__/zep_cloud_memory.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..702fcdf4ff313294b4fa0de1ff71ba5bdc0d7996 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/memory/__pycache__/zep_cloud_memory.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/memory/__pycache__/zep_memory.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/memory/__pycache__/zep_memory.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a2b5c5eb33565bcaf2ea6d7f61d9a2cb8234129d Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/memory/__pycache__/zep_memory.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/output_parsers/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/output_parsers/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..efd8ed702884b802ebe268a744afaab5f08d2182 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/output_parsers/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/output_parsers/__pycache__/ernie_functions.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/output_parsers/__pycache__/ernie_functions.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3a5f92d3bf0daf2b901c6eb712711aa9669b0686 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/output_parsers/__pycache__/ernie_functions.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/output_parsers/__pycache__/rail_parser.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/output_parsers/__pycache__/rail_parser.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5d59387bbb0919208d1d0dc844322bc5979164b9 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/output_parsers/__pycache__/rail_parser.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..aed1f7c34f917aa6838889b09dfc08117afebe3d Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/astradb.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/astradb.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b316311b690714e5dac4af8b05ea74e4ed8f0caf Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/astradb.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/chroma.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/chroma.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ef5802c713e3e5e632ee55dbb8d8c5b40506dc98 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/chroma.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/dashvector.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/dashvector.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3b777b11a62e361f86baf574d68078e4bff69528 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/dashvector.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/databricks_vector_search.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/databricks_vector_search.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7353d896db0850b6466e7890218bc1be69db0e13 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/databricks_vector_search.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/deeplake.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/deeplake.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..01f18386c60afaa41ee5fd53020b034f3b2f400d Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/deeplake.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/dingo.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/dingo.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7c554c9fc41c94b371616cd3ed0f96ce3144da5f Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/dingo.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/elasticsearch.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/elasticsearch.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7efdd841134279eae191416e04f8faa742e3133a Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/elasticsearch.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/hanavector.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/hanavector.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2decc6f0375aec5589bf58af93f1ef8758baa86f Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/hanavector.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/milvus.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/milvus.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a6208ed1c0f25c0aa4adccaeb8115c478c8eb5e5 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/milvus.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/mongodb_atlas.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/mongodb_atlas.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ae66d7c976201a22a8d6a8619a681ba8f10e0b05 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/mongodb_atlas.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/myscale.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/myscale.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9ee07f5d0fa64023c145dff893636f0d0f06a94e Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/myscale.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/neo4j.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/neo4j.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f9c9c94bdc54f5fec6a62913ccf0e64376965167 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/neo4j.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/opensearch.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/opensearch.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8934eea8355c40befbeb894cb63b6bce9cc294cc Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/opensearch.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/pgvector.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/pgvector.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2ae33c5c0c60fe6594b63c012ddedcd53524d462 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/pgvector.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/pinecone.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/pinecone.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..160f67ffc0eb98c8913c46e8d457b09a3ec96d8e Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/pinecone.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/qdrant.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/qdrant.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ed28ac8ab14eb093b4a622f52aa8a9ba18ffdbc2 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/qdrant.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/redis.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/redis.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..164a83ed50a1c05745f13cd13153279a01119046 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/redis.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/supabase.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/supabase.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e5105bbf596912e9270c925a0c84f6cdf2207415 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/supabase.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/tencentvectordb.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/tencentvectordb.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..426a40befe7a919b42cdceff1652e5223f283740 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/tencentvectordb.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/timescalevector.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/timescalevector.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c64714d229ec8e77feee7da444293bdef89343e6 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/timescalevector.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/vectara.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/vectara.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..fca88dd211e0d247b2b9b2b303c2146db31a0c63 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/vectara.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/weaviate.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/weaviate.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..869745d5a0372f06b0fa4d9d9535a29baefcec30 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/query_constructors/__pycache__/weaviate.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3745905dce3f0e1f505a2d628a192b3cce01eb9c Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/arcee.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/arcee.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..af3cafa219d32948cf2367fd25ed3981db046586 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/arcee.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/arxiv.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/arxiv.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b4416c545e77bfddf169ba2bfb810e2029664032 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/arxiv.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/asknews.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/asknews.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5cefd048eff2ed4e0d51949bc0c4efb14b3d2803 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/asknews.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/azure_ai_search.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/azure_ai_search.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b9fcfd9d0c37301228da2c1c0f8e688095cb1184 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/azure_ai_search.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/bedrock.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/bedrock.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..216d625a6305d32409c94808fda0b2d98d36487e Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/bedrock.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/bm25.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/bm25.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..27309aa11b53c23573e641534e4c0dba824a10cd Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/bm25.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/breebs.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/breebs.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..bcbf92fc2291f45061f84e12f000cb599fc0a453 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/breebs.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/chaindesk.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/chaindesk.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3f6c68cf2d45a121afb15609ef95f1a5f5cb23bd Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/chaindesk.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/chatgpt_plugin_retriever.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/chatgpt_plugin_retriever.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..711500627e837242d47c9a4c6e0fe3b69b28cf04 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/chatgpt_plugin_retriever.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/cohere_rag_retriever.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/cohere_rag_retriever.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3ef3059ba3dae9a7f908cf1ade0e6bfd19834f83 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/cohere_rag_retriever.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/databerry.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/databerry.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..572bb6d5053fe70f1481ba8921533c5f9f1d74bb Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/databerry.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/docarray.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/docarray.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b0ff496af6fcf729a1caf68f496287434656af7d Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/docarray.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/dria_index.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/dria_index.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..26c87a27c30efa79fe583ec3cd3054b75581ce82 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/dria_index.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/elastic_search_bm25.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/elastic_search_bm25.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8bd9615feb42d6f536ad7fdc22efd7e1d621996e Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/elastic_search_bm25.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/embedchain.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/embedchain.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6d02548d510aafee55348992eb1bcbf237fba9cd Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/embedchain.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/google_cloud_documentai_warehouse.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/google_cloud_documentai_warehouse.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c77c0f631bca1c74c16aeb846838cc3906e0db30 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/google_cloud_documentai_warehouse.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/google_vertex_ai_search.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/google_vertex_ai_search.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..53fb0a7369ef4060bdd5fba906b3a8724182c1d2 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/google_vertex_ai_search.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/kay.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/kay.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..cece57408a45739de4cd02343f60011613a83a20 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/kay.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/kendra.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/kendra.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2b77ad35b7df353556a93a41efe44dbddb69462e Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/kendra.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/knn.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/knn.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c31cb3e426f979445c666f01d550074f552f1c98 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/knn.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/llama_index.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/llama_index.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0525b4d031dd05cda652a63b27891a778eb72473 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/llama_index.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/metal.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/metal.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1053e1977c788bb8421cc4a152e6be918eecb11e Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/metal.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/milvus.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/milvus.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..dde231e98f396d4bd538b70edd0e26c382a62d0d Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/milvus.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/nanopq.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/nanopq.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..791c21570af3de46790c9c6ad000b998daf6a35e Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/nanopq.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/needle.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/needle.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4ec60e7bafb08e22ac839ab623593dbd4fa87501 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/needle.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/outline.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/outline.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7a6f8cf1c7b91a21042101622007e06bcfaa0d42 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/outline.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/pinecone_hybrid_search.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/pinecone_hybrid_search.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..bea8c0a16cb4966159db658acc889b946962ca87 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/pinecone_hybrid_search.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/pubmed.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/pubmed.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d239c00352d926834fbe5364498e56df1cf07633 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/pubmed.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/pupmed.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/pupmed.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d4d892a3e47a97360ec73db781424f97235f6840 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/pupmed.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/qdrant_sparse_vector_retriever.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/qdrant_sparse_vector_retriever.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ee9af7f4b11452a3bc28511213c296ff935c66f9 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/qdrant_sparse_vector_retriever.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/rememberizer.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/rememberizer.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1b1c16fe47285509f6a804269a7f6bc0dcbb3b33 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/rememberizer.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/remote_retriever.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/remote_retriever.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e4313b91489082e344795541be0c85213a6a46fa Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/remote_retriever.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/svm.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/svm.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7971daf88c9d796f05d7f78300b5e98ea4923264 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/svm.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/tavily_search_api.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/tavily_search_api.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2d9eeae1a1cdf524324a327a0d3a6802b921f99b Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/tavily_search_api.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/tfidf.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/tfidf.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a72fc9b4d254dc6195184269f6b9bd1fa12c838b Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/tfidf.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/thirdai_neuraldb.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/thirdai_neuraldb.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..67abaaba8cdf79434507bd33e831151cc293329b Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/thirdai_neuraldb.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/vespa_retriever.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/vespa_retriever.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..257e09f46688cb31506872c2b5d7a59108e4ba58 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/vespa_retriever.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/weaviate_hybrid_search.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/weaviate_hybrid_search.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2adaf5a85ee25d52299499d39ee61c97cf94e88b Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/weaviate_hybrid_search.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/web_research.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/web_research.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5c8087d76fabf3107584d6ffb497c88cbf8c513f Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/web_research.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/wikipedia.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/wikipedia.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9061fd388aba36cb5eaff6d766f1b748d2bdc465 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/wikipedia.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/you.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/you.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..38b0961c8cf6a5018ede818519ed7b286eb7645a Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/you.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/zep.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/zep.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..66bb46abe721348521c504a11926e11326947666 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/zep.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/zep_cloud.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/zep_cloud.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2986507aa7acca7b8facf7afcad240d4d8eb31e5 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/zep_cloud.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/zilliz.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/zilliz.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..15caf8d7060476e05ce7318778f7623f182bff93 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/retrievers/__pycache__/zilliz.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/storage/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/storage/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..677826d0d31d1834c717b552601d7119cd596996 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/storage/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/storage/__pycache__/astradb.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/storage/__pycache__/astradb.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6ccef0bb4fed0fe775ddef06e0d52f2d8e9aebe8 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/storage/__pycache__/astradb.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/storage/__pycache__/cassandra.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/storage/__pycache__/cassandra.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c501ee6c13b626af4fd7167f7db1155bfd34f118 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/storage/__pycache__/cassandra.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/storage/__pycache__/exceptions.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/storage/__pycache__/exceptions.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..005181aa8409ebb08807ed91b8d8f84eac205407 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/storage/__pycache__/exceptions.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/storage/__pycache__/mongodb.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/storage/__pycache__/mongodb.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..bcea7507cd11ac0cc9ca35e1e7f1d379528a871e Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/storage/__pycache__/mongodb.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/storage/__pycache__/redis.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/storage/__pycache__/redis.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ed7cbb84b991f3638ddb44162c1e999121c3c8fa Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/storage/__pycache__/redis.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/storage/__pycache__/sql.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/storage/__pycache__/sql.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..132dbe5a94b255fd416ec4aae295c2abd7ff19cd Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/storage/__pycache__/sql.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/storage/__pycache__/upstash_redis.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/storage/__pycache__/upstash_redis.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..52542d721f52713fa3e15a888199124e2ec4f50f Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/storage/__pycache__/upstash_redis.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..58687d43915d590c22da26f4373ba60a1062420d Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/__pycache__/convert_to_openai.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/__pycache__/convert_to_openai.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..127a20896d85380695157ec469efc563091c3983 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/__pycache__/convert_to_openai.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/__pycache__/google_books.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/__pycache__/google_books.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..aa67cb27f4e3ef37e09edc7cc60a131a6f0b8a2d Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/__pycache__/google_books.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/__pycache__/ifttt.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/__pycache__/ifttt.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c52aadaac53df43e2258e634375a01c741b8c3f1 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/__pycache__/ifttt.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/__pycache__/plugin.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/__pycache__/plugin.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..19a466645b4926a3c5246e27f7a85771262cfd01 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/__pycache__/plugin.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/__pycache__/render.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/__pycache__/render.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6fdda719cc2c177cbccd9af7f85f18c63f967de2 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/__pycache__/render.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/__pycache__/yahoo_finance_news.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/__pycache__/yahoo_finance_news.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..528ad765aafc1aa185904805aa02ddeafe9c70d8 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/__pycache__/yahoo_finance_news.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/ainetwork/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/ainetwork/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5fdc5642972eb1867131579847a323cfb34b9921 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/ainetwork/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/ainetwork/__pycache__/app.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/ainetwork/__pycache__/app.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..cf9f92a3c7e313614e636268eaf73d3205d28493 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/ainetwork/__pycache__/app.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/ainetwork/__pycache__/base.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/ainetwork/__pycache__/base.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3cddef55f03055ff8d16b845bba90c0e5584b9b4 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/ainetwork/__pycache__/base.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/ainetwork/__pycache__/owner.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/ainetwork/__pycache__/owner.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..358351dfbfd79557d066d349dd04ac15a9d5acd1 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/ainetwork/__pycache__/owner.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/ainetwork/__pycache__/rule.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/ainetwork/__pycache__/rule.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..62a0a2a0bec68dc9fd1aba54ced696cc33baec3c Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/ainetwork/__pycache__/rule.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/ainetwork/__pycache__/transfer.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/ainetwork/__pycache__/transfer.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2e4e28060a6a8383c0ce20b03de6b6f550f1c62a Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/ainetwork/__pycache__/transfer.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/ainetwork/__pycache__/utils.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/ainetwork/__pycache__/utils.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..52e297b822372c3fe4a7a5297f04a0cd1c4ab79e Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/ainetwork/__pycache__/utils.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/ainetwork/__pycache__/value.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/ainetwork/__pycache__/value.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9067ee11506587e6f053533dd8828cb20615850b Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/ainetwork/__pycache__/value.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/amadeus/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/amadeus/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3bcc462201b78629ffe1555797efb3d242ba038d Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/amadeus/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/amadeus/__pycache__/base.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/amadeus/__pycache__/base.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3952e5b226f1ccb90e72f38203a41a8fc1c25aa7 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/amadeus/__pycache__/base.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/amadeus/__pycache__/closest_airport.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/amadeus/__pycache__/closest_airport.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..198f9a76f57bb18cd355546f6a077ed5eb1edcc5 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/amadeus/__pycache__/closest_airport.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/amadeus/__pycache__/flight_search.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/amadeus/__pycache__/flight_search.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..777642408098cb8fdc0aaf2fcb947e3b8c8d9c2f Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/amadeus/__pycache__/flight_search.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/amadeus/__pycache__/utils.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/amadeus/__pycache__/utils.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9476cebe857ed15e501bedbffc37b3cf4edad045 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/amadeus/__pycache__/utils.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/arxiv/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/arxiv/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3c65d58b04e9bf7c3ee374886e419f4c832bbea1 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/arxiv/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/arxiv/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/arxiv/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a70a965116651bc1bcbc3d157994c8d83735b5e6 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/arxiv/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/asknews/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/asknews/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..bcff4e744b4e2e14fdfff73526f7b2ce25d83fc4 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/asknews/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/asknews/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/asknews/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..cdbdbaae79dfbdadfa3e25b1538d2d256e6ab801 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/asknews/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/audio/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/audio/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4bc8f33d13e16fd84193b51999a45bcd51d76cc7 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/audio/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/audio/__pycache__/huggingface_text_to_speech_inference.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/audio/__pycache__/huggingface_text_to_speech_inference.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f4a84aa3795d29a57c0f1f94276f139f0b7fbddc Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/audio/__pycache__/huggingface_text_to_speech_inference.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/azure_ai_services/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/azure_ai_services/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..84867c0c2c7959a96f5de4148a91f6cb35505394 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/azure_ai_services/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/azure_ai_services/__pycache__/document_intelligence.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/azure_ai_services/__pycache__/document_intelligence.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7a4bcf7db8aa63af16d9532b59e9e262077d6dc9 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/azure_ai_services/__pycache__/document_intelligence.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/azure_ai_services/__pycache__/image_analysis.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/azure_ai_services/__pycache__/image_analysis.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..659340cc5c93755a4975100256938ef722dee90b Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/azure_ai_services/__pycache__/image_analysis.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/azure_ai_services/__pycache__/speech_to_text.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/azure_ai_services/__pycache__/speech_to_text.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..58a42a89d7d7989704a1b6600fdd81f23e2e17a7 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/azure_ai_services/__pycache__/speech_to_text.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/azure_ai_services/__pycache__/text_analytics_for_health.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/azure_ai_services/__pycache__/text_analytics_for_health.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d5a81bb50f7152075331b0a0f881f8c88e6b76da Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/azure_ai_services/__pycache__/text_analytics_for_health.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/azure_ai_services/__pycache__/text_to_speech.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/azure_ai_services/__pycache__/text_to_speech.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1db316174075400e2a6f70548203a2ee387134e8 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/azure_ai_services/__pycache__/text_to_speech.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/azure_ai_services/__pycache__/utils.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/azure_ai_services/__pycache__/utils.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..860320059324ba6d37e89edcff6d9479073254f1 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/azure_ai_services/__pycache__/utils.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/azure_cognitive_services/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/azure_cognitive_services/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..02e8e102011bca80c857ffffb5bf20942b9a3c57 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/azure_cognitive_services/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/azure_cognitive_services/__pycache__/form_recognizer.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/azure_cognitive_services/__pycache__/form_recognizer.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7fef0af3caa8f0aec5cbc7617875eaadb653ce94 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/azure_cognitive_services/__pycache__/form_recognizer.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/azure_cognitive_services/__pycache__/image_analysis.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/azure_cognitive_services/__pycache__/image_analysis.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..73d60544406b405b3b9239d60d168f0308709fe6 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/azure_cognitive_services/__pycache__/image_analysis.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/azure_cognitive_services/__pycache__/speech2text.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/azure_cognitive_services/__pycache__/speech2text.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..219dc8cc75fd40a747b90913c26b8061dcacdc1e Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/azure_cognitive_services/__pycache__/speech2text.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/azure_cognitive_services/__pycache__/text2speech.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/azure_cognitive_services/__pycache__/text2speech.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..857c5cfaf6ce4498f3c9a082ebc3203391b8dc54 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/azure_cognitive_services/__pycache__/text2speech.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/azure_cognitive_services/__pycache__/text_analytics_health.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/azure_cognitive_services/__pycache__/text_analytics_health.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..258c75daa0313b31d202b81f2f606d939ff1eaf2 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/azure_cognitive_services/__pycache__/text_analytics_health.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/azure_cognitive_services/__pycache__/utils.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/azure_cognitive_services/__pycache__/utils.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4dd7c6dc346d774e429a8c8d0091fb05da200024 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/azure_cognitive_services/__pycache__/utils.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/bearly/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/bearly/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..dd7ecb0ea0b39ac57f134f3d5cac484b74a7045c Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/bearly/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/bearly/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/bearly/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..fe5d5430bc9c99fe85b2beba44212096e762c429 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/bearly/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/bing_search/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/bing_search/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..36a3f555ed6e2790057278bde2b444a34d46bfed Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/bing_search/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/bing_search/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/bing_search/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..045c9919d4b5186630b84093507d93cb51ea7f7d Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/bing_search/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/brave_search/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/brave_search/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..75707e3e995ea2efe1e4cddc43dade33c12754a8 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/brave_search/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/brave_search/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/brave_search/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ee8ce5711a7d3c16e3c64ecdbabf0d99c2c52e9a Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/brave_search/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/cassandra_database/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/cassandra_database/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c244bebd6e662e97b01802c5c2fd6e85bcff1bba Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/cassandra_database/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/cassandra_database/__pycache__/prompt.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/cassandra_database/__pycache__/prompt.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..74c476b80ab102612b4c90589de3f199a0e4f9db Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/cassandra_database/__pycache__/prompt.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/cassandra_database/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/cassandra_database/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..29fc67776b3ad9020fd2380c0c894ee6b245df0a Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/cassandra_database/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/clickup/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/clickup/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b74cb06102984719a6110c0a0f99f6765b8ee59a Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/clickup/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/clickup/__pycache__/prompt.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/clickup/__pycache__/prompt.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ec8349d1c6ac0ea2d5410bf84db2d012881ca489 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/clickup/__pycache__/prompt.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/clickup/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/clickup/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4ab34dd0154bf19b63339ad87ed5d676103b210e Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/clickup/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/cogniswitch/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/cogniswitch/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7477d2ae24002284a4b5c45159cce9c50df150cc Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/cogniswitch/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/cogniswitch/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/cogniswitch/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7dff34670a4fb9c9f692647f3824bf49cfe9a8e9 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/cogniswitch/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/connery/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/connery/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..22653e64f10a3e14df50929bb896e36a8c4bc12a Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/connery/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/connery/__pycache__/models.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/connery/__pycache__/models.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1790c0836013aeab25649e2f91209fbd3c4f0d49 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/connery/__pycache__/models.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/connery/__pycache__/service.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/connery/__pycache__/service.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..548721d32e9a71002b096feeab845303f61759f3 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/connery/__pycache__/service.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/connery/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/connery/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..67695e903b1d2d0b05a0c1ad43368ebab50afc29 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/connery/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/databricks/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/databricks/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1a6085adcdeb5a8ff049f75a940401cf49e48b8a Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/databricks/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/databricks/__pycache__/_execution.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/databricks/__pycache__/_execution.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..75f63b516a25d60a4acb908de0fc63a3c37725ed Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/databricks/__pycache__/_execution.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/databricks/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/databricks/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..57d604e1b9ad16c25d394f9473ff8c496216d0d0 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/databricks/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/dataforseo_api_search/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/dataforseo_api_search/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a101be3e802a13ad067b0a7cb028c5cec331ad92 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/dataforseo_api_search/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/dataforseo_api_search/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/dataforseo_api_search/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..83f84d271c9b4cb29ee54ffe2dd3c7b52757cd87 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/dataforseo_api_search/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/dataherald/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/dataherald/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5114eeb368c5615ac201def45d302b09c3349657 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/dataherald/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/dataherald/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/dataherald/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8264b001dedc0a7b407b78ef02c4ded53e58a9cd Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/dataherald/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/ddg_search/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/ddg_search/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..cac8759d44adcad1e6247eaa822c1956223f6147 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/ddg_search/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/ddg_search/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/ddg_search/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..bc6adbf94ea8e7983503fbf368da6c641c2fb1a2 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/ddg_search/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/e2b_data_analysis/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/e2b_data_analysis/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f5d047ebc508d8ac675c12730c6398cf5dc24bf7 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/e2b_data_analysis/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/e2b_data_analysis/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/e2b_data_analysis/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..fd0853919afd94ea538ec8a0e11b67fc53934081 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/e2b_data_analysis/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/e2b_data_analysis/__pycache__/unparse.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/e2b_data_analysis/__pycache__/unparse.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1162aa17321a2d90f38f13e17b8d31b8815e2646 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/e2b_data_analysis/__pycache__/unparse.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/edenai/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/edenai/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a2b3dcf0bd8b766ad12b6a48a909d472209c9f81 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/edenai/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/edenai/__pycache__/audio_speech_to_text.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/edenai/__pycache__/audio_speech_to_text.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..37d4429de1c81566f30e05cfef7abad9fbc90736 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/edenai/__pycache__/audio_speech_to_text.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/edenai/__pycache__/audio_text_to_speech.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/edenai/__pycache__/audio_text_to_speech.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f57eb1c97a424da88f9a6b601638006edf6584de Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/edenai/__pycache__/audio_text_to_speech.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/edenai/__pycache__/edenai_base_tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/edenai/__pycache__/edenai_base_tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..389e8149dd2d287e5c8d69e3116d0623b087f45d Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/edenai/__pycache__/edenai_base_tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/edenai/__pycache__/image_explicitcontent.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/edenai/__pycache__/image_explicitcontent.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3ea5eedd1cf6da266d458d85c6ca743d0ec4a956 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/edenai/__pycache__/image_explicitcontent.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/edenai/__pycache__/image_objectdetection.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/edenai/__pycache__/image_objectdetection.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..35871e03f07a3a0aa99aef5d4fed078567cc3cfc Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/edenai/__pycache__/image_objectdetection.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/edenai/__pycache__/ocr_identityparser.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/edenai/__pycache__/ocr_identityparser.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..83d15565c536301e40bd475de130fec68760a28e Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/edenai/__pycache__/ocr_identityparser.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/edenai/__pycache__/ocr_invoiceparser.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/edenai/__pycache__/ocr_invoiceparser.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..796d53897ac1615ea006ad360edd7dc4e57c3c6b Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/edenai/__pycache__/ocr_invoiceparser.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/edenai/__pycache__/text_moderation.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/edenai/__pycache__/text_moderation.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..db57266510a1ba8d8063e86141f2a5e9340b2468 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/edenai/__pycache__/text_moderation.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/eleven_labs/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/eleven_labs/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e296fa482eae9b0babb0855e2829f0554482cf36 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/eleven_labs/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/eleven_labs/__pycache__/models.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/eleven_labs/__pycache__/models.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..25042d1142448eec4418a6dcce1835d4bd5ad5dc Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/eleven_labs/__pycache__/models.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/eleven_labs/__pycache__/text2speech.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/eleven_labs/__pycache__/text2speech.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..eefedc42eea8c78c2b50854fad966ad9f6b4c52f Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/eleven_labs/__pycache__/text2speech.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/few_shot/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/few_shot/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..049ca46de23a1016f67a3800333d77040412cfb2 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/few_shot/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/few_shot/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/few_shot/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..449e9f26951326c7f4a4379b4b189a5ce99fcf26 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/few_shot/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/file_management/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/file_management/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5f78986f737621c6e83d4a378e29794ba0ea6983 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/file_management/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/file_management/__pycache__/copy.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/file_management/__pycache__/copy.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..74b7dfe1cd7a46b8d8c48f62a8119304e0ce6e4b Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/file_management/__pycache__/copy.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/file_management/__pycache__/delete.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/file_management/__pycache__/delete.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..43ac204b27d8fe9cc72f7e693ad682ea3ea083f0 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/file_management/__pycache__/delete.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/file_management/__pycache__/file_search.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/file_management/__pycache__/file_search.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..de39565a7c4e45639ef2960a22f641ac3cbbb832 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/file_management/__pycache__/file_search.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/file_management/__pycache__/list_dir.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/file_management/__pycache__/list_dir.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6487312beb0957d88ec7bf6fe9e1a750e9407c79 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/file_management/__pycache__/list_dir.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/file_management/__pycache__/move.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/file_management/__pycache__/move.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7339589f7fcf5fe8366c4dc71c78a53a257cf4e4 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/file_management/__pycache__/move.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/file_management/__pycache__/read.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/file_management/__pycache__/read.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..072494d66103753069f658d9c25884ca02df1ab7 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/file_management/__pycache__/read.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/file_management/__pycache__/utils.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/file_management/__pycache__/utils.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b35194b1df0d0156c495f67663514b53934a0823 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/file_management/__pycache__/utils.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/file_management/__pycache__/write.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/file_management/__pycache__/write.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d2505de3d32006aab773b9c858e9a780c9cdee8a Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/file_management/__pycache__/write.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/financial_datasets/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/financial_datasets/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4d4e38da45db08fd005afe4d36660618d762c1d4 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/financial_datasets/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/financial_datasets/__pycache__/balance_sheets.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/financial_datasets/__pycache__/balance_sheets.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c49c8c2fe4ea5fb786ee3b19e41383e3a07d7518 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/financial_datasets/__pycache__/balance_sheets.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/financial_datasets/__pycache__/cash_flow_statements.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/financial_datasets/__pycache__/cash_flow_statements.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..cdac49940f16799477667a8ad8bd048af73b502f Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/financial_datasets/__pycache__/cash_flow_statements.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/financial_datasets/__pycache__/income_statements.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/financial_datasets/__pycache__/income_statements.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..20e2eebfa543e3885eb277b9f312fa4e56eb312b Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/financial_datasets/__pycache__/income_statements.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/github/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/github/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b4d8c36b29aed6ddea7820cd0feef975e465fbf2 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/github/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/github/__pycache__/prompt.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/github/__pycache__/prompt.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b60778ad626c8ce321420b35865a25058b9c617a Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/github/__pycache__/prompt.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/github/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/github/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ed0dd79cd0251d4306c36b877a4ad94bd2dd282f Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/github/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/gitlab/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/gitlab/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..16c381731fb6c6302a9eff31c7fd6636ec8b701b Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/gitlab/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/gitlab/__pycache__/prompt.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/gitlab/__pycache__/prompt.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..bbf586d3c39a5b79f90ce26b38b18716dd5f5ce0 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/gitlab/__pycache__/prompt.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/gitlab/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/gitlab/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7cba0565ec7174b5002ca015acf9dd33f99241f9 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/gitlab/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/gmail/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/gmail/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..16c7b3e67c72598a30fcee44cceee042bf4df705 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/gmail/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/gmail/__pycache__/base.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/gmail/__pycache__/base.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..edf8f05ea359f8d902f4cd4445f2f571d1ee7b32 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/gmail/__pycache__/base.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/gmail/__pycache__/create_draft.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/gmail/__pycache__/create_draft.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ada427b4cc18b92497571d78420d581ef54d8d2f Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/gmail/__pycache__/create_draft.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/gmail/__pycache__/get_message.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/gmail/__pycache__/get_message.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..73ecf30c10ffd490f91a177aec24942fdca0b71c Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/gmail/__pycache__/get_message.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/gmail/__pycache__/get_thread.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/gmail/__pycache__/get_thread.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1505b4ff0c5c5434c97309c4b06f5c1049d8e027 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/gmail/__pycache__/get_thread.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/gmail/__pycache__/search.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/gmail/__pycache__/search.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5dcbaf35296fa33d465a5364e4f32ef1482a6968 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/gmail/__pycache__/search.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/gmail/__pycache__/send_message.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/gmail/__pycache__/send_message.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..762c1bb65e4ac02e76361b62a7475c013b20ec10 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/gmail/__pycache__/send_message.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/gmail/__pycache__/utils.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/gmail/__pycache__/utils.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e27a5c9cd5a44cd9afeb1bfb3cd4e192d01de513 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/gmail/__pycache__/utils.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/golden_query/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/golden_query/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..fbd4b479474041ec01be9d9228867c01c583a0c7 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/golden_query/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/golden_query/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/golden_query/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9b6cd65daa59683c2b53a9bbc64c5df9574ce360 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/golden_query/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/google_cloud/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/google_cloud/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..673b36bcf5cd8a91b8d014f69bedecd99ae7f1fe Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/google_cloud/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/google_cloud/__pycache__/texttospeech.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/google_cloud/__pycache__/texttospeech.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5a080bb7572329c550fdd45dc82770f2f32f7800 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/google_cloud/__pycache__/texttospeech.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/google_finance/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/google_finance/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ec4258ac6d1bff9ada3d5d33827530f65634fe13 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/google_finance/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/google_finance/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/google_finance/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e790267c80932e3648d9a8f62dd42edd59d01f29 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/google_finance/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/google_jobs/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/google_jobs/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..359352c87bd576f0be44c7c057da4b200319a60b Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/google_jobs/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/google_jobs/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/google_jobs/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f628cf8910d9b555240f59b1b946a68be58fb6fd Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/google_jobs/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/google_lens/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/google_lens/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0abfc64a61a8bb100ddec5b7b10d23028718133e Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/google_lens/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/google_lens/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/google_lens/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..656b2b7228c17292b89c6b3aeb66470a0409e037 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/google_lens/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/google_places/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/google_places/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..07fcda7a9b2ef89dc8cde0296953b8d60ba1bea8 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/google_places/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/google_places/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/google_places/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..739b1bd90db52ac723b23e8db1a7e390609d7774 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/google_places/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/google_scholar/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/google_scholar/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..95b199614d41bd4e456b8cd01ec6c97f3183895a Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/google_scholar/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/google_scholar/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/google_scholar/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c43c255fa8a4b73360b4feaa5d3c7db7ba1e33dd Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/google_scholar/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/google_search/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/google_search/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5a1176ae74b34510ffbb5ee7ec67f00ca59c3f7c Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/google_search/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/google_search/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/google_search/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7d04ecbea1d35d04c1cb0a998f0394c17a93e27b Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/google_search/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/google_serper/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/google_serper/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8782a6f0527b1fb401855b9310a78cf490914216 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/google_serper/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/google_serper/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/google_serper/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a951ddc7000b17ab6ef3962f0dd96b3d7f152243 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/google_serper/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/google_trends/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/google_trends/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d102abe673b89ffffe09f150a72c89a363335b53 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/google_trends/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/google_trends/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/google_trends/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6f5203668f78429f38960104b1e2a4a4cae0af54 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/google_trends/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/graphql/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/graphql/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..552e7057f0e41f6393dbe7aeeaca19977eb03698 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/graphql/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/graphql/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/graphql/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1915637328d5a6042a5e9f82972a38fb80cfebd2 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/graphql/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/human/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/human/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..107dd0019504762c5bab5f4eaa0837e237d2b7bf Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/human/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/human/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/human/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c3f1fe31ea8bc227873cd9bd52e25ed993613a69 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/human/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/interaction/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/interaction/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5e92c6e3e50a6e57b5010b7620623f6c1513ccb8 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/interaction/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/interaction/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/interaction/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..264094120fea3eb754c03a7d4e4c809f97e5533a Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/interaction/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/jina_search/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/jina_search/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..fe759c2e2bae4c8c5a4ede2f5e51c14f0eefb6b8 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/jina_search/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/jina_search/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/jina_search/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1c5fd6a43f4e66c93094abb8565359a50bb8c062 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/jina_search/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/jira/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/jira/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..14663f7e75e35c5dc8dc96b82aedda41df7071ad Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/jira/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/jira/__pycache__/prompt.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/jira/__pycache__/prompt.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..30bf1af317dc80dc0abc828c687af308c1e8d514 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/jira/__pycache__/prompt.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/jira/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/jira/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6917a56088b91194f7a4d0cafcc263f232f667a4 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/jira/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/json/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/json/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a7504942ff5c1ccc5eb9c06cf4cd371f390e932f Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/json/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/json/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/json/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3c15c496a4527a549edea6388c5947705b98d902 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/json/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/memorize/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/memorize/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f682133231c0c9e499dfd7125d7b832b5010c1ec Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/memorize/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/memorize/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/memorize/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..60555c57aa78e9d955c5e6a083d2b1606c1af128 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/memorize/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/merriam_webster/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/merriam_webster/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..eb7a0fc0d923708e958f4487f3329880a3454d78 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/merriam_webster/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/merriam_webster/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/merriam_webster/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c5ce01d771766a86391c1e29ec0d4239cd3a8d0b Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/merriam_webster/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/metaphor_search/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/metaphor_search/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c38a026ff4df93c465ff139dd99c7f121af59aa2 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/metaphor_search/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/metaphor_search/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/metaphor_search/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b2c80d23d4a7a4b7ffe16f3a8297a24a8b48e063 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/metaphor_search/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/mojeek_search/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/mojeek_search/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a244d75f9ac8321402e71f34ce53dbd020e806f2 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/mojeek_search/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/mojeek_search/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/mojeek_search/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b1eec36dee602d406814692789be8d810f9c8c9e Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/mojeek_search/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/multion/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/multion/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..91fa9d9b33b32e70254bef2e6f7663eaee41c712 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/multion/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/multion/__pycache__/close_session.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/multion/__pycache__/close_session.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a8aebbc2672e0f1551ff69c297bc6d4fad6ad2b5 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/multion/__pycache__/close_session.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/multion/__pycache__/create_session.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/multion/__pycache__/create_session.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f609d9131931aa9e18f3f22ecceb4e4b4a9a34cc Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/multion/__pycache__/create_session.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/multion/__pycache__/update_session.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/multion/__pycache__/update_session.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d5f9c61ad8927dbc38c63ac4e5f9fffc7a4638a0 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/multion/__pycache__/update_session.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/nasa/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/nasa/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..64a8a493a3a239284b374e53b3b271ebf3b526e7 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/nasa/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/nasa/__pycache__/prompt.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/nasa/__pycache__/prompt.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3129a7e57150f2970fd2f420c62756aef9f08a63 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/nasa/__pycache__/prompt.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/nasa/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/nasa/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..616fe303c2da36ffd4e9086c81b835a418bcc8d8 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/nasa/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/nuclia/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/nuclia/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3c26153974cd2d55e92812ad029fa67247fbe145 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/nuclia/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/nuclia/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/nuclia/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..20b4d7ae698cd11c893abe419dbd50e6f0a88bc9 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/nuclia/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/office365/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/office365/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..448019ae2a61bb02a07e146d43c76b331535caa7 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/office365/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/office365/__pycache__/base.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/office365/__pycache__/base.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..56adde246ff648ea2a4c082ee4502bd84a3c28e5 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/office365/__pycache__/base.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/office365/__pycache__/create_draft_message.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/office365/__pycache__/create_draft_message.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d9483e74e2999b5f4d8a81ee7873791b43b6e3ef Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/office365/__pycache__/create_draft_message.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/office365/__pycache__/events_search.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/office365/__pycache__/events_search.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..28a91d8dba9b99b7849ffa93832d6b48b8a1a188 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/office365/__pycache__/events_search.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/office365/__pycache__/messages_search.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/office365/__pycache__/messages_search.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a670a42749358a97fecba82107563e12ef500daa Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/office365/__pycache__/messages_search.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/office365/__pycache__/send_event.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/office365/__pycache__/send_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0508e8b8d49613e14d36183dd96e56544d883c02 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/office365/__pycache__/send_event.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/office365/__pycache__/send_message.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/office365/__pycache__/send_message.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0d18627f5009483276d2251a83d222e2c79547a2 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/office365/__pycache__/send_message.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/office365/__pycache__/utils.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/office365/__pycache__/utils.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6dde1526990636fb9d9800fd5d1755428ef36967 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/office365/__pycache__/utils.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/openai_dalle_image_generation/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/openai_dalle_image_generation/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c5e789397919057794f2d362c0890f0f21a2ab3f Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/openai_dalle_image_generation/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/openai_dalle_image_generation/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/openai_dalle_image_generation/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a5072fcb00e358bc077cc94669ba00053d8f82a6 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/openai_dalle_image_generation/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/openapi/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/openapi/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..822a92955d8ab91ac67fbb419271cd585f42b599 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/openapi/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/openapi/utils/__init__.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/openapi/utils/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/openapi/utils/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/openapi/utils/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..68ab24fe9cbb3b9cd44f59aff92eb2298b920b79 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/openapi/utils/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/openapi/utils/__pycache__/api_models.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/openapi/utils/__pycache__/api_models.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..caafcbdba6bd2157d1974db60f6801f6857e4fcc Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/openapi/utils/__pycache__/api_models.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/openapi/utils/__pycache__/openapi_utils.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/openapi/utils/__pycache__/openapi_utils.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..119e49f2c720f80d28e8475e865436c47cb1856a Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/openapi/utils/__pycache__/openapi_utils.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/openapi/utils/api_models.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/openapi/utils/api_models.py new file mode 100644 index 0000000000000000000000000000000000000000..8358305464d7f1fda659c3e022571bcf730202e6 --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/openapi/utils/api_models.py @@ -0,0 +1,632 @@ +"""Pydantic models for parsing an OpenAPI spec.""" + +from __future__ import annotations + +import logging +from enum import Enum +from typing import ( + TYPE_CHECKING, + Any, + Dict, + List, + Optional, + Sequence, + Tuple, + Type, + Union, +) + +from pydantic import BaseModel, Field + +from langchain_community.tools.openapi.utils.openapi_utils import HTTPVerb, OpenAPISpec + +logger = logging.getLogger(__name__) +PRIMITIVE_TYPES = { + "integer": int, + "number": float, + "string": str, + "boolean": bool, + "array": List, + "object": Dict, + "null": None, +} + + +# See https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#parameterIn +# for more info. +class APIPropertyLocation(Enum): + """The location of the property.""" + + QUERY = "query" + PATH = "path" + HEADER = "header" + COOKIE = "cookie" # Not yet supported + + @classmethod + def from_str(cls, location: str) -> "APIPropertyLocation": + """Parse an APIPropertyLocation.""" + try: + return cls(location) + except ValueError: + raise ValueError( + f"Invalid APIPropertyLocation. Valid values are {cls.__members__}" + ) + + +_SUPPORTED_MEDIA_TYPES = ("application/json",) + +SUPPORTED_LOCATIONS = { + APIPropertyLocation.HEADER, + APIPropertyLocation.QUERY, + APIPropertyLocation.PATH, +} +INVALID_LOCATION_TEMPL = ( + 'Unsupported APIPropertyLocation "{location}"' + " for parameter {name}. " + + f"Valid values are {[loc.value for loc in SUPPORTED_LOCATIONS]}" +) + +SCHEMA_TYPE = Union[str, Type, tuple, None, Enum] + + +class APIPropertyBase(BaseModel): + """Base model for an API property.""" + + # The name of the parameter is required and is case-sensitive. + # If "in" is "path", the "name" field must correspond to a template expression + # within the path field in the Paths Object. + # If "in" is "header" and the "name" field is "Accept", "Content-Type", + # or "Authorization", the parameter definition is ignored. + # For all other cases, the "name" corresponds to the parameter + # name used by the "in" property. + name: str = Field(alias="name") + """The name of the property.""" + + required: bool = Field(alias="required") + """Whether the property is required.""" + + type: SCHEMA_TYPE = Field(alias="type") + """The type of the property. + + Either a primitive type, a component/parameter type, + or an array or 'object' (dict) of the above.""" + + default: Optional[Any] = Field(alias="default", default=None) + """The default value of the property.""" + + description: Optional[str] = Field(alias="description", default=None) + """The description of the property.""" + + +if TYPE_CHECKING: + from openapi_pydantic import ( + MediaType, + Parameter, + RequestBody, + Schema, + ) + + +class APIProperty(APIPropertyBase): + """A model for a property in the query, path, header, or cookie params.""" + + location: APIPropertyLocation = Field(alias="location") + """The path/how it's being passed to the endpoint.""" + + @staticmethod + def _cast_schema_list_type( + schema: Schema, + ) -> Optional[Union[str, Tuple[str, ...]]]: + type_ = schema.type + if not isinstance(type_, list): + return type_ + else: + return tuple(type_) + + @staticmethod + def _get_schema_type_for_enum(parameter: Parameter, schema: Schema) -> Enum: + """Get the schema type when the parameter is an enum.""" + param_name = f"{parameter.name}Enum" + return Enum(param_name, {str(v): v for v in schema.enum}) + + @staticmethod + def _get_schema_type_for_array( + schema: Schema, + ) -> Optional[Union[str, Tuple[str, ...]]]: + from openapi_pydantic import ( + Reference, + Schema, + ) + + items = schema.items + if isinstance(items, Schema): + schema_type = APIProperty._cast_schema_list_type(items) + elif isinstance(items, Reference): + ref_name = items.ref.split("/")[-1] + schema_type = ref_name # TODO: Add ref definitions to make his valid + else: + raise ValueError(f"Unsupported array items: {items}") + + if isinstance(schema_type, str): + # TODO: recurse + schema_type = (schema_type,) + + return schema_type + + @staticmethod + def _get_schema_type(parameter: Parameter, schema: Optional[Schema]) -> SCHEMA_TYPE: + if schema is None: + return None + schema_type: SCHEMA_TYPE = APIProperty._cast_schema_list_type(schema) + if schema_type == "array": + schema_type = APIProperty._get_schema_type_for_array(schema) + elif schema_type == "object": + # TODO: Resolve array and object types to components. + raise NotImplementedError("Objects not yet supported") + elif schema_type in PRIMITIVE_TYPES: + if schema.enum: + schema_type = APIProperty._get_schema_type_for_enum(parameter, schema) + else: + # Directly use the primitive type + pass + else: + raise NotImplementedError(f"Unsupported type: {schema_type}") + + return schema_type + + @staticmethod + def _validate_location(location: APIPropertyLocation, name: str) -> None: + if location not in SUPPORTED_LOCATIONS: + raise NotImplementedError( + INVALID_LOCATION_TEMPL.format(location=location, name=name) + ) + + @staticmethod + def _validate_content(content: Optional[Dict[str, MediaType]]) -> None: + if content: + raise ValueError( + "API Properties with media content not supported. " + "Media content only supported within APIRequestBodyProperty's" + ) + + @staticmethod + def _get_schema(parameter: Parameter, spec: OpenAPISpec) -> Optional[Schema]: + from openapi_pydantic import ( + Reference, + Schema, + ) + + schema = parameter.param_schema + if isinstance(schema, Reference): + schema = spec.get_referenced_schema(schema) + elif schema is None: + return None + elif not isinstance(schema, Schema): + raise ValueError(f"Error dereferencing schema: {schema}") + + return schema + + @staticmethod + def is_supported_location(location: str) -> bool: + """Return whether the provided location is supported.""" + try: + return APIPropertyLocation.from_str(location) in SUPPORTED_LOCATIONS + except ValueError: + return False + + @classmethod + def from_parameter(cls, parameter: Parameter, spec: OpenAPISpec) -> "APIProperty": + """Instantiate from an OpenAPI Parameter.""" + location = APIPropertyLocation.from_str(parameter.param_in) + cls._validate_location( + location, + parameter.name, + ) + cls._validate_content(parameter.content) + schema = cls._get_schema(parameter, spec) + schema_type = cls._get_schema_type(parameter, schema) + default_val = schema.default if schema is not None else None + return cls( + name=parameter.name, + location=location, + default=default_val, + description=parameter.description, + required=parameter.required, + type=schema_type, + ) + + +class APIRequestBodyProperty(APIPropertyBase): + """A model for a request body property.""" + + properties: List["APIRequestBodyProperty"] = Field(alias="properties") + """The sub-properties of the property.""" + + # This is useful for handling nested property cycles. + # We can define separate types in that case. + references_used: List[str] = Field(alias="references_used") + """The references used by the property.""" + + @classmethod + def _process_object_schema( + cls, schema: Schema, spec: OpenAPISpec, references_used: List[str] + ) -> Tuple[Union[str, List[str], None], List["APIRequestBodyProperty"]]: + from openapi_pydantic import ( + Reference, + ) + + properties = [] + required_props = schema.required or [] + if schema.properties is None: + raise ValueError( + f"No properties found when processing object schema: {schema}" + ) + for prop_name, prop_schema in schema.properties.items(): + if isinstance(prop_schema, Reference): + ref_name = prop_schema.ref.split("/")[-1] + if ref_name not in references_used: + references_used.append(ref_name) + prop_schema = spec.get_referenced_schema(prop_schema) + else: + continue + + properties.append( + cls.from_schema( + schema=prop_schema, + name=prop_name, + required=prop_name in required_props, + spec=spec, + references_used=references_used, + ) + ) + return schema.type, properties + + @classmethod + def _process_array_schema( + cls, + schema: Schema, + name: str, + spec: OpenAPISpec, + references_used: List[str], + ) -> str: + from openapi_pydantic import Reference, Schema + + items = schema.items + if items is not None: + if isinstance(items, Reference): + ref_name = items.ref.split("/")[-1] + if ref_name not in references_used: + references_used.append(ref_name) + items = spec.get_referenced_schema(items) + else: + pass + return f"Array<{ref_name}>" + else: + pass + + if isinstance(items, Schema): + array_type = cls.from_schema( + schema=items, + name=f"{name}Item", + required=True, # TODO: Add required + spec=spec, + references_used=references_used, + ) + return f"Array<{array_type.type}>" + + return "array" + + @classmethod + def from_schema( + cls, + schema: Schema, + name: str, + required: bool, + spec: OpenAPISpec, + references_used: Optional[List[str]] = None, + ) -> "APIRequestBodyProperty": + """Recursively populate from an OpenAPI Schema.""" + if references_used is None: + references_used = [] + + schema_type = schema.type + properties: List[APIRequestBodyProperty] = [] + if schema_type == "object" and schema.properties: + schema_type, properties = cls._process_object_schema( + schema, spec, references_used + ) + elif schema_type == "array": + schema_type = cls._process_array_schema(schema, name, spec, references_used) + elif schema_type in PRIMITIVE_TYPES: + # Use the primitive type directly + pass + elif schema_type is None: + # No typing specified/parsed. WIll map to 'any' + pass + else: + raise ValueError(f"Unsupported type: {schema_type}") + + return cls( + name=name, + required=required, + type=schema_type, + default=schema.default, + description=schema.description, + properties=properties, + references_used=references_used, + ) + + +# class APIRequestBodyProperty(APIPropertyBase): +class APIRequestBody(BaseModel): + """A model for a request body.""" + + description: Optional[str] = Field(alias="description") + """The description of the request body.""" + + properties: List[APIRequestBodyProperty] = Field(alias="properties") + + # E.g., application/json - we only support JSON at the moment. + media_type: str = Field(alias="media_type") + """The media type of the request body.""" + + @classmethod + def _process_supported_media_type( + cls, + media_type_obj: MediaType, + spec: OpenAPISpec, + ) -> List[APIRequestBodyProperty]: + """Process the media type of the request body.""" + from openapi_pydantic import Reference + + references_used = [] + schema = media_type_obj.media_type_schema + if isinstance(schema, Reference): + references_used.append(schema.ref.split("/")[-1]) + schema = spec.get_referenced_schema(schema) + if schema is None: + raise ValueError( + f"Could not resolve schema for media type: {media_type_obj}" + ) + api_request_body_properties = [] + required_properties = schema.required or [] + if schema.type == "object" and schema.properties: + for prop_name, prop_schema in schema.properties.items(): + if isinstance(prop_schema, Reference): + prop_schema = spec.get_referenced_schema(prop_schema) + + api_request_body_properties.append( + APIRequestBodyProperty.from_schema( + schema=prop_schema, + name=prop_name, + required=prop_name in required_properties, + spec=spec, + ) + ) + else: + api_request_body_properties.append( + APIRequestBodyProperty( + name="body", + required=True, + type=schema.type, + default=schema.default, + description=schema.description, + properties=[], + references_used=references_used, + ) + ) + + return api_request_body_properties + + @classmethod + def from_request_body( + cls, request_body: RequestBody, spec: OpenAPISpec + ) -> "APIRequestBody": + """Instantiate from an OpenAPI RequestBody.""" + properties = [] + for media_type, media_type_obj in request_body.content.items(): + if media_type not in _SUPPORTED_MEDIA_TYPES: + continue + api_request_body_properties = cls._process_supported_media_type( + media_type_obj, + spec, + ) + properties.extend(api_request_body_properties) + + return cls( + description=request_body.description, + properties=properties, + media_type=media_type, + ) + + +# class APIRequestBodyProperty(APIPropertyBase): +# class APIRequestBody(BaseModel): +class APIOperation(BaseModel): + """A model for a single API operation.""" + + operation_id: str = Field(alias="operation_id") + """The unique identifier of the operation.""" + + description: Optional[str] = Field(alias="description") + """The description of the operation.""" + + base_url: str = Field(alias="base_url") + """The base URL of the operation.""" + + path: str = Field(alias="path") + """The path of the operation.""" + + method: HTTPVerb = Field(alias="method") + """The HTTP method of the operation.""" + + properties: Sequence[APIProperty] = Field(alias="properties") + + # TODO: Add parse in used components to be able to specify what type of + # referenced object it is. + # """The properties of the operation.""" + # components: Dict[str, BaseModel] = Field(alias="components") + + request_body: Optional[APIRequestBody] = Field(alias="request_body") + """The request body of the operation.""" + + @staticmethod + def _get_properties_from_parameters( + parameters: List[Parameter], spec: OpenAPISpec + ) -> List[APIProperty]: + """Get the properties of the operation.""" + properties = [] + for param in parameters: + if APIProperty.is_supported_location(param.param_in): + properties.append(APIProperty.from_parameter(param, spec)) + elif param.required: + raise ValueError( + INVALID_LOCATION_TEMPL.format( + location=param.param_in, name=param.name + ) + ) + else: + logger.warning( + INVALID_LOCATION_TEMPL.format( + location=param.param_in, name=param.name + ) + + " Ignoring optional parameter" + ) + pass + return properties + + @classmethod + def from_openapi_url( + cls, + spec_url: str, + path: str, + method: str, + ) -> "APIOperation": + """Create an APIOperation from an OpenAPI URL.""" + spec = OpenAPISpec.from_url(spec_url) + return cls.from_openapi_spec(spec, path, method) + + @classmethod + def from_openapi_spec( + cls, + spec: OpenAPISpec, + path: str, + method: str, + ) -> "APIOperation": + """Create an APIOperation from an OpenAPI spec.""" + operation = spec.get_operation(path, method) + parameters = spec.get_parameters_for_operation(operation) + properties = cls._get_properties_from_parameters(parameters, spec) + operation_id = OpenAPISpec.get_cleaned_operation_id(operation, path, method) + request_body = spec.get_request_body_for_operation(operation) + api_request_body = ( + APIRequestBody.from_request_body(request_body, spec) + if request_body is not None + else None + ) + description = operation.description or operation.summary + if not description and spec.paths is not None: + description = spec.paths[path].description or spec.paths[path].summary + return cls( + operation_id=operation_id, + description=description or "", + base_url=spec.base_url, + path=path, + method=method, # type: ignore[arg-type] + properties=properties, + request_body=api_request_body, + ) + + @staticmethod + def ts_type_from_python(type_: SCHEMA_TYPE) -> str: + if type_ is None: + # TODO: Handle Nones better. These often result when + # parsing specs that are < v3 + return "any" + elif isinstance(type_, str): + return { + "str": "string", + "integer": "number", + "float": "number", + "date-time": "string", + }.get(type_, type_) + elif isinstance(type_, tuple): + return f"Array<{APIOperation.ts_type_from_python(type_[0])}>" + elif isinstance(type_, type) and issubclass(type_, Enum): + return " | ".join([f"'{e.value}'" for e in type_]) + else: + return str(type_) + + def _format_nested_properties( + self, properties: List[APIRequestBodyProperty], indent: int = 2 + ) -> str: + """Format nested properties.""" + formatted_props = [] + + for prop in properties: + prop_name = prop.name + prop_type = self.ts_type_from_python(prop.type) + prop_required = "" if prop.required else "?" + prop_desc = f"/* {prop.description} */" if prop.description else "" + + if prop.properties: + nested_props = self._format_nested_properties( + prop.properties, indent + 2 + ) + prop_type = f"{{\n{nested_props}\n{' ' * indent}}}" + + formatted_props.append( + f"{prop_desc}\n{' ' * indent}{prop_name}{prop_required}: {prop_type}," + ) + + return "\n".join(formatted_props) + + def to_typescript(self) -> str: + """Get typescript string representation of the operation.""" + operation_name = self.operation_id + params = [] + + if self.request_body: + formatted_request_body_props = self._format_nested_properties( + self.request_body.properties + ) + params.append(formatted_request_body_props) + + for prop in self.properties: + prop_name = prop.name + prop_type = self.ts_type_from_python(prop.type) + prop_required = "" if prop.required else "?" + prop_desc = f"/* {prop.description} */" if prop.description else "" + params.append(f"{prop_desc}\n\t\t{prop_name}{prop_required}: {prop_type},") + + formatted_params = "\n".join(params).strip() + description_str = f"/* {self.description} */" if self.description else "" + typescript_definition = f""" +{description_str} +type {operation_name} = (_: {{ +{formatted_params} +}}) => any; +""" + return typescript_definition.strip() + + @property + def query_params(self) -> List[str]: + return [ + property.name + for property in self.properties + if property.location == APIPropertyLocation.QUERY + ] + + @property + def path_params(self) -> List[str]: + return [ + property.name + for property in self.properties + if property.location == APIPropertyLocation.PATH + ] + + @property + def body_params(self) -> List[str]: + if self.request_body is None: + return [] + return [prop.name for prop in self.request_body.properties] diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/openapi/utils/openapi_utils.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/openapi/utils/openapi_utils.py new file mode 100644 index 0000000000000000000000000000000000000000..7ed0ade18d09bb3bc55d2e7379fb4ba58445c319 --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/openapi/utils/openapi_utils.py @@ -0,0 +1,5 @@ +"""Utility functions for parsing an OpenAPI spec. Kept for backwards compat.""" + +from langchain_community.utilities.openapi import HTTPVerb, OpenAPISpec + +__all__ = ["HTTPVerb", "OpenAPISpec"] diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/openweathermap/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/openweathermap/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f88b8d5f8a257a1a03a7cdc152709ff2b8ead092 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/openweathermap/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/openweathermap/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/openweathermap/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3e916b123263f5466e3591e85506799eed71b19e Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/openweathermap/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/passio_nutrition_ai/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/passio_nutrition_ai/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9cf4c8cded184c1049d04eca8202dfa471153e29 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/passio_nutrition_ai/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/passio_nutrition_ai/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/passio_nutrition_ai/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f790e0fe8b4e09436691dabda3442804093466a5 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/passio_nutrition_ai/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/playwright/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/playwright/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..deb0c70268dcf32666bcabdf4943b6a215149b9a Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/playwright/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/playwright/__pycache__/base.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/playwright/__pycache__/base.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..987183d28f0bea9f407fa86c0437b7b33ef6b301 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/playwright/__pycache__/base.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/playwright/__pycache__/click.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/playwright/__pycache__/click.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9ac16eb2fcfc19a7d8e3f9a9b380a6f3639eaa27 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/playwright/__pycache__/click.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/playwright/__pycache__/current_page.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/playwright/__pycache__/current_page.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..886f9cc98774824504d43feac42b2a3baa1dc1a2 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/playwright/__pycache__/current_page.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/playwright/__pycache__/extract_hyperlinks.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/playwright/__pycache__/extract_hyperlinks.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3b977fb36b28e879172dc8fcbe6497a73fc6574a Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/playwright/__pycache__/extract_hyperlinks.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/playwright/__pycache__/extract_text.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/playwright/__pycache__/extract_text.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..bc755b19bf505dfcb8c18bec78ee9887072e53ff Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/playwright/__pycache__/extract_text.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/playwright/__pycache__/get_elements.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/playwright/__pycache__/get_elements.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2f4164003a315dea27a25440581cfbcb87c9f35e Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/playwright/__pycache__/get_elements.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/playwright/__pycache__/navigate.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/playwright/__pycache__/navigate.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b48e1046311965007df30c010007747ee95c6f79 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/playwright/__pycache__/navigate.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/playwright/__pycache__/navigate_back.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/playwright/__pycache__/navigate_back.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3dca7c1f52e417f8fa854def056324e06d9096cb Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/playwright/__pycache__/navigate_back.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/playwright/__pycache__/utils.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/playwright/__pycache__/utils.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f3b91f02e79ec9573a6a035928bba8d409d57f10 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/playwright/__pycache__/utils.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/polygon/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/polygon/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1f1a318d85eb54e6d0a30104ccafe3156f010e51 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/polygon/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/polygon/__pycache__/aggregates.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/polygon/__pycache__/aggregates.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4314fea50701324a5ca28f817949b7458f93abea Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/polygon/__pycache__/aggregates.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/polygon/__pycache__/financials.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/polygon/__pycache__/financials.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6fc92443dcac45e4dcd4fdaa19df3192acc62ccc Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/polygon/__pycache__/financials.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/polygon/__pycache__/last_quote.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/polygon/__pycache__/last_quote.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c25721bcadc5b600e1b5b0862805563db804c687 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/polygon/__pycache__/last_quote.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/polygon/__pycache__/ticker_news.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/polygon/__pycache__/ticker_news.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..376ddf7c05455d4a153ed4d7f473919dc7676fe6 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/polygon/__pycache__/ticker_news.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/powerbi/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/powerbi/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..fd211309424de6aa2b34ea8fa059437531fce026 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/powerbi/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/powerbi/__pycache__/prompt.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/powerbi/__pycache__/prompt.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e6b59fbdd5d84c4258c625fe1c591c3ad3afab9d Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/powerbi/__pycache__/prompt.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/powerbi/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/powerbi/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1d4c0349f488412ddc424038bfa95815e26dcdf9 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/powerbi/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/pubmed/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/pubmed/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..bb6138a5f0d01fa5dd5b435423d8fe7c629605e3 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/pubmed/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/pubmed/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/pubmed/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..826a81ad67ae7d51ee3f67680f1cc6765bcb6859 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/pubmed/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/reddit_search/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/reddit_search/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..fc10af75b471b58a566bdde5cc41534bbb769532 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/reddit_search/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/requests/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/requests/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2ba2c6c3c6c376f27b4782df32c5fb271dbfc31c Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/requests/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/requests/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/requests/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..817a249e7e6acbfa649e3ec36d9b0461edbd6ed9 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/requests/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/riza/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/riza/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a97e8d11b074853609e80bde3b0d2d130c967ae5 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/riza/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/riza/__pycache__/command.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/riza/__pycache__/command.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..04bf57374f5b204c8ce7b560111b817009264705 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/riza/__pycache__/command.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/scenexplain/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/scenexplain/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9c0d8facda1413892412c0863982180906458735 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/scenexplain/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/scenexplain/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/scenexplain/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a2fcfc468c68cde2235d0f551eb07c21cb9b4677 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/scenexplain/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/searchapi/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/searchapi/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c5a5586a75458318d7cb2d3105de072b3c82468b Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/searchapi/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/searchapi/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/searchapi/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4044f4e3ef7ba880f8f57415cf26b56d4d2fdeb7 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/searchapi/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/searx_search/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/searx_search/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1585a44ffba74703e4283d5c5e5258b1650f622b Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/searx_search/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/searx_search/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/searx_search/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c1d90ed58cadb872f586f4d3240ee2f94b30ad5f Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/searx_search/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/semanticscholar/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/semanticscholar/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..48343f50d2e756306b7c33fcc835e9101fdcc495 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/semanticscholar/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/semanticscholar/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/semanticscholar/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ee77a23ec99f6b9171ba59871887bfb24ed24b1d Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/semanticscholar/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/shell/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/shell/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8ed11c1764a1a47ecb52be9d27bf9030b85407fd Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/shell/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/shell/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/shell/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..cd49c36e4d223693935e212834372801a3430af6 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/shell/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/slack/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/slack/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a957706104a477f7522c8e1033052e49c975c05a Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/slack/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/slack/__pycache__/base.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/slack/__pycache__/base.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..97972fb5f1b50410c33f96f920f0b76a4ec4036a Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/slack/__pycache__/base.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/slack/__pycache__/get_channel.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/slack/__pycache__/get_channel.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..77e01c10f894832e1bf99eb31ae79d817e800127 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/slack/__pycache__/get_channel.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/slack/__pycache__/get_message.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/slack/__pycache__/get_message.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f5f78401052a167c519811a62c5aee4040aa6bdf Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/slack/__pycache__/get_message.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/slack/__pycache__/schedule_message.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/slack/__pycache__/schedule_message.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..71e9651a390187b1d1b3b25f3ef3204f35f07f3d Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/slack/__pycache__/schedule_message.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/slack/__pycache__/send_message.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/slack/__pycache__/send_message.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..fff70012da52bbb9ec54c762d8f565a1c4aab98d Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/slack/__pycache__/send_message.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/slack/__pycache__/utils.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/slack/__pycache__/utils.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9d8fbd1887f7cea8223cb97c3664360b5c131c45 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/slack/__pycache__/utils.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/sleep/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/sleep/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b9600a5ba290b9ef4f28b6a71afd027a8a21f046 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/sleep/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/sleep/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/sleep/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d1382ef4a8bb9f7c9c2659aec9d21c8a92138b27 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/sleep/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/spark_sql/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/spark_sql/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3270047ead11ff2302542d70bd8cd6f02a98cc91 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/spark_sql/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/spark_sql/__pycache__/prompt.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/spark_sql/__pycache__/prompt.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4a412413a5bb0f28d381c1f20479c428afac3860 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/spark_sql/__pycache__/prompt.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/spark_sql/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/spark_sql/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8eebb5e20d8797607f9b212384813da73880341d Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/spark_sql/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/sql_database/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/sql_database/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..39e1319ac346351dff0e958f744329c709f0f265 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/sql_database/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/sql_database/__pycache__/prompt.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/sql_database/__pycache__/prompt.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..34d2c8be31126c347ff1a625a0e3c0e413756b55 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/sql_database/__pycache__/prompt.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/sql_database/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/sql_database/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d524c56bf9a6d4f07f9ff1f393b18f0949239616 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/sql_database/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/stackexchange/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/stackexchange/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..498f2125af485537fd81ac02910898430a09400f Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/stackexchange/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/stackexchange/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/stackexchange/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5bf47a6f983596adcd8e9e21b5fc364a6f470a46 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/stackexchange/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/steam/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/steam/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e2e13799e54ca0fdb50edc89af32af2147145d5a Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/steam/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/steam/__pycache__/prompt.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/steam/__pycache__/prompt.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7f3775f5bc603f7a30f958491521bb74f229d547 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/steam/__pycache__/prompt.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/steam/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/steam/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..bfdd2d38656da71debc03c19138581bda5e8b043 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/steam/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/steamship_image_generation/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/steamship_image_generation/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ce5c1837f8ead829789909ec09cad9f457270159 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/steamship_image_generation/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/steamship_image_generation/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/steamship_image_generation/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7c76dfd0fdbf4581f80f0b18871272570b418bb4 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/steamship_image_generation/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/steamship_image_generation/__pycache__/utils.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/steamship_image_generation/__pycache__/utils.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3da2e2575bcbb3b8307cce40e046fd60044be589 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/steamship_image_generation/__pycache__/utils.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/tavily_search/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/tavily_search/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..19beec968d520478f4a1fe1530d0145ded946644 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/tavily_search/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/tavily_search/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/tavily_search/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..bed99e6d3cd6b30a65ad169bdb89b210dfe6a9a8 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/tavily_search/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/vectorstore/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/vectorstore/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..dfc5569993b6af474f950c50db233ba2bfdb6e8a Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/vectorstore/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/vectorstore/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/vectorstore/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6410ca21153c171f4c8854793710b1a3671e6569 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/vectorstore/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/wikidata/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/wikidata/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9f833702079b4c7f2358ef42e29b735b5cbd89d5 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/wikidata/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/wikidata/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/wikidata/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..559abbd51dedd6a6fd80628ad1c730ddfded644f Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/wikidata/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/wikipedia/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/wikipedia/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..133692524ac8cc0f133d4c5ea141e514fbdc1b97 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/wikipedia/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/wikipedia/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/wikipedia/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0c25bc8164f981a09607fbd05fc014535ce360a8 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/wikipedia/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/wolfram_alpha/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/wolfram_alpha/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1fd6d31cc1c91a5aa68aaeb9863d0fcb38d54939 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/wolfram_alpha/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/wolfram_alpha/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/wolfram_alpha/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3a3cfb376fd415bfc8451e3903e0c541e6e949ab Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/wolfram_alpha/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/you/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/you/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8f6497d508e6f1729ff24660d4f0277f5a9b20a8 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/you/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/you/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/you/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ec0e9ce7cbde4f29e769c4007d5a8bf5820e1843 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/you/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/youtube/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/youtube/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7aba01c776939042884a7b41a1ccf61659c68d3a Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/youtube/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/youtube/__pycache__/search.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/youtube/__pycache__/search.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..fd79bf70e0cdd20a92c21e9676ce6226db092dc0 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/youtube/__pycache__/search.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/zapier/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/zapier/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..553ec899e578eac5dfc43c76843c942e80958f16 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/zapier/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/zapier/__pycache__/prompt.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/zapier/__pycache__/prompt.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0c9cdc9b6a92518d3bae0592711756a773731bbd Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/zapier/__pycache__/prompt.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/zapier/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/zapier/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..62ddeb958755ca2f4115b1461cf5e8f16d1f5f23 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/zapier/__pycache__/tool.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/zenguard/__init__.py b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/zenguard/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..ac9ddbb11b12b9e327087ef7af1a7c85302fc353 --- /dev/null +++ b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/zenguard/__init__.py @@ -0,0 +1,11 @@ +from langchain_community.tools.zenguard.tool import ( + Detector, + ZenGuardInput, + ZenGuardTool, +) + +__all__ = [ + "ZenGuardTool", + "Detector", + "ZenGuardInput", +] diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/zenguard/__pycache__/__init__.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/zenguard/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9061fd0cc97a5788a087ba7c03b39410875b347c Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/zenguard/__pycache__/__init__.cpython-311.pyc differ diff --git a/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/zenguard/__pycache__/tool.cpython-311.pyc b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/zenguard/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f053dc16398729a18c5f9424592b46e938ca2cc1 Binary files /dev/null and b/micromamba_root/envs/pytorch_env/Lib/site-packages/langchain_community/tools/zenguard/__pycache__/tool.cpython-311.pyc differ