@langchain/classic 1.0.5 → 1.0.6-dev-1765431816670
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/rolldown_runtime.cjs +0 -4
- package/dist/_virtual/rolldown_runtime.js +1 -10
- package/dist/agents/agent.d.cts +3 -17
- package/dist/agents/agent.d.cts.map +1 -0
- package/dist/agents/agent.d.ts +3 -17
- package/dist/agents/agent.d.ts.map +1 -0
- package/dist/agents/chat/index.d.cts.map +1 -0
- package/dist/agents/chat/index.d.ts.map +1 -0
- package/dist/agents/chat/outputParser.d.cts.map +1 -0
- package/dist/agents/chat/outputParser.d.ts +2 -2
- package/dist/agents/chat/outputParser.d.ts.map +1 -0
- package/dist/agents/chat_convo/index.d.cts.map +1 -0
- package/dist/agents/chat_convo/index.d.ts.map +1 -0
- package/dist/agents/chat_convo/outputParser.d.cts.map +1 -0
- package/dist/agents/chat_convo/outputParser.d.ts.map +1 -0
- package/dist/agents/executor.d.cts +1 -5
- package/dist/agents/executor.d.cts.map +1 -0
- package/dist/agents/executor.d.ts +1 -5
- package/dist/agents/executor.d.ts.map +1 -0
- package/dist/agents/format_scratchpad/log.d.cts.map +1 -0
- package/dist/agents/format_scratchpad/log.d.ts.map +1 -0
- package/dist/agents/format_scratchpad/log_to_message.d.cts.map +1 -0
- package/dist/agents/format_scratchpad/log_to_message.d.ts.map +1 -0
- package/dist/agents/format_scratchpad/openai_functions.d.cts.map +1 -0
- package/dist/agents/format_scratchpad/openai_functions.d.ts.map +1 -0
- package/dist/agents/format_scratchpad/tool_calling.d.cts.map +1 -0
- package/dist/agents/format_scratchpad/tool_calling.d.ts.map +1 -0
- package/dist/agents/format_scratchpad/xml.d.cts.map +1 -0
- package/dist/agents/format_scratchpad/xml.d.ts.map +1 -0
- package/dist/agents/initialize.d.cts +1 -10
- package/dist/agents/initialize.d.cts.map +1 -0
- package/dist/agents/initialize.d.ts +1 -10
- package/dist/agents/initialize.d.ts.map +1 -0
- package/dist/agents/load.d.cts +2 -10
- package/dist/agents/load.d.cts.map +1 -0
- package/dist/agents/load.d.ts +2 -10
- package/dist/agents/load.d.ts.map +1 -0
- package/dist/agents/mrkl/index.d.cts.map +1 -0
- package/dist/agents/mrkl/index.d.ts.map +1 -0
- package/dist/agents/mrkl/outputParser.d.cts +1 -1
- package/dist/agents/mrkl/outputParser.d.cts.map +1 -0
- package/dist/agents/mrkl/outputParser.d.ts +1 -1
- package/dist/agents/mrkl/outputParser.d.ts.map +1 -0
- package/dist/agents/openai_functions/index.d.cts.map +1 -0
- package/dist/agents/openai_functions/index.d.ts.map +1 -0
- package/dist/agents/openai_functions/output_parser.d.cts.map +1 -0
- package/dist/agents/openai_functions/output_parser.d.ts.map +1 -0
- package/dist/agents/openai_tools/index.d.cts +3 -5
- package/dist/agents/openai_tools/index.d.cts.map +1 -0
- package/dist/agents/openai_tools/index.d.ts +3 -5
- package/dist/agents/openai_tools/index.d.ts.map +1 -0
- package/dist/agents/openai_tools/output_parser.d.cts.map +1 -0
- package/dist/agents/openai_tools/output_parser.d.ts.map +1 -0
- package/dist/agents/react/index.d.cts +2 -2
- package/dist/agents/react/index.d.cts.map +1 -0
- package/dist/agents/react/index.d.ts +2 -2
- package/dist/agents/react/index.d.ts.map +1 -0
- package/dist/agents/react/output_parser.d.cts.map +1 -0
- package/dist/agents/react/output_parser.d.ts.map +1 -0
- package/dist/agents/structured_chat/index.d.cts +2 -2
- package/dist/agents/structured_chat/index.d.cts.map +1 -0
- package/dist/agents/structured_chat/index.d.ts +2 -2
- package/dist/agents/structured_chat/index.d.ts.map +1 -0
- package/dist/agents/structured_chat/outputParser.d.cts.map +1 -0
- package/dist/agents/structured_chat/outputParser.d.ts.map +1 -0
- package/dist/agents/tool_calling/index.d.cts +2 -2
- package/dist/agents/tool_calling/index.d.cts.map +1 -0
- package/dist/agents/tool_calling/index.d.ts +2 -2
- package/dist/agents/tool_calling/index.d.ts.map +1 -0
- package/dist/agents/tool_calling/output_parser.d.cts.map +1 -0
- package/dist/agents/tool_calling/output_parser.d.ts.map +1 -0
- package/dist/agents/toolkits/conversational_retrieval/openai_functions.d.cts.map +1 -0
- package/dist/agents/toolkits/conversational_retrieval/openai_functions.d.ts.map +1 -0
- package/dist/agents/toolkits/conversational_retrieval/token_buffer_memory.d.cts.map +1 -0
- package/dist/agents/toolkits/conversational_retrieval/token_buffer_memory.d.ts +2 -2
- package/dist/agents/toolkits/conversational_retrieval/token_buffer_memory.d.ts.map +1 -0
- package/dist/agents/toolkits/conversational_retrieval/tool.d.cts.map +1 -0
- package/dist/agents/toolkits/conversational_retrieval/tool.d.ts.map +1 -0
- package/dist/agents/toolkits/json/json.d.cts.map +1 -0
- package/dist/agents/toolkits/json/json.d.ts.map +1 -0
- package/dist/agents/toolkits/openapi/openapi.d.cts.map +1 -0
- package/dist/agents/toolkits/openapi/openapi.d.ts.map +1 -0
- package/dist/agents/toolkits/sql/prompt.d.cts.map +1 -0
- package/dist/agents/toolkits/sql/prompt.d.ts.map +1 -0
- package/dist/agents/toolkits/sql/sql.d.cts.map +1 -0
- package/dist/agents/toolkits/sql/sql.d.ts.map +1 -0
- package/dist/agents/toolkits/vectorstore/vectorstore.d.cts.map +1 -0
- package/dist/agents/toolkits/vectorstore/vectorstore.d.ts.map +1 -0
- package/dist/agents/types.d.cts.map +1 -0
- package/dist/agents/types.d.ts.map +1 -0
- package/dist/agents/xml/index.d.cts.map +1 -0
- package/dist/agents/xml/index.d.ts.map +1 -0
- package/dist/agents/xml/output_parser.d.cts.map +1 -0
- package/dist/agents/xml/output_parser.d.ts.map +1 -0
- package/dist/cache/file_system.d.cts.map +1 -0
- package/dist/cache/file_system.d.ts.map +1 -0
- package/dist/callbacks/handlers/console.d.cts.map +1 -0
- package/dist/callbacks/handlers/console.d.ts.map +1 -0
- package/dist/callbacks/handlers/run_collector.d.cts.map +1 -0
- package/dist/callbacks/handlers/run_collector.d.ts.map +1 -0
- package/dist/callbacks/handlers/tracer.d.cts.map +1 -0
- package/dist/callbacks/handlers/tracer.d.ts.map +1 -0
- package/dist/callbacks/handlers/tracer_langchain.d.cts.map +1 -0
- package/dist/callbacks/handlers/tracer_langchain.d.ts.map +1 -0
- package/dist/callbacks/promises.d.cts.map +1 -0
- package/dist/callbacks/promises.d.ts.map +1 -0
- package/dist/chains/analyze_documents_chain.d.cts +0 -1
- package/dist/chains/analyze_documents_chain.d.cts.map +1 -0
- package/dist/chains/analyze_documents_chain.d.ts +0 -1
- package/dist/chains/analyze_documents_chain.d.ts.map +1 -0
- package/dist/chains/api/api_chain.d.cts.map +1 -0
- package/dist/chains/api/api_chain.d.ts.map +1 -0
- package/dist/chains/base.d.cts +1 -4
- package/dist/chains/base.d.cts.map +1 -0
- package/dist/chains/base.d.ts +1 -4
- package/dist/chains/base.d.ts.map +1 -0
- package/dist/chains/chat_vector_db_chain.d.cts +0 -1
- package/dist/chains/chat_vector_db_chain.d.cts.map +1 -0
- package/dist/chains/chat_vector_db_chain.d.ts +0 -1
- package/dist/chains/chat_vector_db_chain.d.ts.map +1 -0
- package/dist/chains/combine_docs_chain.d.cts +2 -2
- package/dist/chains/combine_docs_chain.d.cts.map +1 -0
- package/dist/chains/combine_docs_chain.d.ts +2 -2
- package/dist/chains/combine_docs_chain.d.ts.map +1 -0
- package/dist/chains/combine_documents/reduce.d.cts +1 -3
- package/dist/chains/combine_documents/reduce.d.cts.map +1 -0
- package/dist/chains/combine_documents/reduce.d.ts +1 -3
- package/dist/chains/combine_documents/reduce.d.ts.map +1 -0
- package/dist/chains/combine_documents/stuff.d.cts.map +1 -0
- package/dist/chains/combine_documents/stuff.d.ts.map +1 -0
- package/dist/chains/constitutional_ai/constitutional_chain.d.cts.map +1 -0
- package/dist/chains/constitutional_ai/constitutional_chain.d.ts.map +1 -0
- package/dist/chains/constitutional_ai/constitutional_principle.d.cts.map +1 -0
- package/dist/chains/constitutional_ai/constitutional_principle.d.ts.map +1 -0
- package/dist/chains/conversation.d.cts.map +1 -0
- package/dist/chains/conversation.d.ts.map +1 -0
- package/dist/chains/conversational_retrieval_chain.d.cts +1 -2
- package/dist/chains/conversational_retrieval_chain.d.cts.map +1 -0
- package/dist/chains/conversational_retrieval_chain.d.ts +1 -2
- package/dist/chains/conversational_retrieval_chain.d.ts.map +1 -0
- package/dist/chains/graph_qa/cypher.d.cts +0 -3
- package/dist/chains/graph_qa/cypher.d.cts.map +1 -0
- package/dist/chains/graph_qa/cypher.d.ts +0 -3
- package/dist/chains/graph_qa/cypher.d.ts.map +1 -0
- package/dist/chains/history_aware_retriever.d.cts.map +1 -0
- package/dist/chains/history_aware_retriever.d.ts.map +1 -0
- package/dist/chains/llm_chain.d.cts +0 -1
- package/dist/chains/llm_chain.d.cts.map +1 -0
- package/dist/chains/llm_chain.d.ts +0 -1
- package/dist/chains/llm_chain.d.ts.map +1 -0
- package/dist/chains/load.d.cts +2 -2
- package/dist/chains/load.d.cts.map +1 -0
- package/dist/chains/load.d.ts +2 -2
- package/dist/chains/load.d.ts.map +1 -0
- package/dist/chains/openai_functions/base.d.cts +4 -16
- package/dist/chains/openai_functions/base.d.cts.map +1 -0
- package/dist/chains/openai_functions/base.d.ts +4 -16
- package/dist/chains/openai_functions/base.d.ts.map +1 -0
- package/dist/chains/openai_functions/extraction.d.cts.map +1 -0
- package/dist/chains/openai_functions/extraction.d.ts.map +1 -0
- package/dist/chains/openai_functions/openapi.d.cts +1 -4
- package/dist/chains/openai_functions/openapi.d.cts.map +1 -0
- package/dist/chains/openai_functions/openapi.d.ts +1 -4
- package/dist/chains/openai_functions/openapi.d.ts.map +1 -0
- package/dist/chains/openai_functions/tagging.d.cts.map +1 -0
- package/dist/chains/openai_functions/tagging.d.ts.map +1 -0
- package/dist/chains/openai_moderation.d.cts.map +1 -0
- package/dist/chains/openai_moderation.d.ts.map +1 -0
- package/dist/chains/query_constructor/index.d.cts +1 -3
- package/dist/chains/query_constructor/index.d.cts.map +1 -0
- package/dist/chains/query_constructor/index.d.ts +1 -3
- package/dist/chains/query_constructor/index.d.ts.map +1 -0
- package/dist/chains/query_constructor/parser.d.cts.map +1 -0
- package/dist/chains/query_constructor/parser.d.ts.map +1 -0
- package/dist/chains/query_constructor/prompt.d.cts.map +1 -0
- package/dist/chains/query_constructor/prompt.d.ts.map +1 -0
- package/dist/chains/question_answering/load.d.cts +2 -2
- package/dist/chains/question_answering/load.d.cts.map +1 -0
- package/dist/chains/question_answering/load.d.ts +2 -2
- package/dist/chains/question_answering/load.d.ts.map +1 -0
- package/dist/chains/retrieval.d.cts +1 -4
- package/dist/chains/retrieval.d.cts.map +1 -0
- package/dist/chains/retrieval.d.ts +1 -4
- package/dist/chains/retrieval.d.ts.map +1 -0
- package/dist/chains/retrieval_qa.d.cts +0 -1
- package/dist/chains/retrieval_qa.d.cts.map +1 -0
- package/dist/chains/retrieval_qa.d.ts +0 -1
- package/dist/chains/retrieval_qa.d.ts.map +1 -0
- package/dist/chains/router/llm_router.d.cts.map +1 -0
- package/dist/chains/router/llm_router.d.ts.map +1 -0
- package/dist/chains/router/multi_prompt.d.cts.map +1 -0
- package/dist/chains/router/multi_prompt.d.ts.map +1 -0
- package/dist/chains/router/multi_retrieval_qa.d.cts.map +1 -0
- package/dist/chains/router/multi_retrieval_qa.d.ts.map +1 -0
- package/dist/chains/router/multi_route.d.cts.map +1 -0
- package/dist/chains/router/multi_route.d.ts.map +1 -0
- package/dist/chains/sequential_chain.d.cts.map +1 -0
- package/dist/chains/sequential_chain.d.ts.map +1 -0
- package/dist/chains/serde.d.cts.map +1 -0
- package/dist/chains/serde.d.ts.map +1 -0
- package/dist/chains/sql_db/sql_db_chain.d.cts +0 -5
- package/dist/chains/sql_db/sql_db_chain.d.cts.map +1 -0
- package/dist/chains/sql_db/sql_db_chain.d.ts +0 -5
- package/dist/chains/sql_db/sql_db_chain.d.ts.map +1 -0
- package/dist/chains/sql_db/sql_db_prompt.d.cts.map +1 -0
- package/dist/chains/sql_db/sql_db_prompt.d.ts.map +1 -0
- package/dist/chains/summarization/load.d.cts.map +1 -0
- package/dist/chains/summarization/load.d.ts +2 -2
- package/dist/chains/summarization/load.d.ts.map +1 -0
- package/dist/chains/transform.d.cts.map +1 -0
- package/dist/chains/transform.d.ts.map +1 -0
- package/dist/chains/vector_db_qa.d.cts +0 -1
- package/dist/chains/vector_db_qa.d.cts.map +1 -0
- package/dist/chains/vector_db_qa.d.ts +0 -1
- package/dist/chains/vector_db_qa.d.ts.map +1 -0
- package/dist/chat_models/universal.d.cts +4 -21
- package/dist/chat_models/universal.d.cts.map +1 -0
- package/dist/chat_models/universal.d.ts +4 -21
- package/dist/chat_models/universal.d.ts.map +1 -0
- package/dist/document_loaders/fs/buffer.d.cts.map +1 -0
- package/dist/document_loaders/fs/buffer.d.ts.map +1 -0
- package/dist/document_loaders/fs/directory.d.cts +0 -2
- package/dist/document_loaders/fs/directory.d.cts.map +1 -0
- package/dist/document_loaders/fs/directory.d.ts +0 -2
- package/dist/document_loaders/fs/directory.d.ts.map +1 -0
- package/dist/document_loaders/fs/json.d.cts.map +1 -0
- package/dist/document_loaders/fs/json.d.ts.map +1 -0
- package/dist/document_loaders/fs/multi_file.d.cts.map +1 -0
- package/dist/document_loaders/fs/multi_file.d.ts.map +1 -0
- package/dist/document_loaders/fs/text.d.cts.map +1 -0
- package/dist/document_loaders/fs/text.d.ts.map +1 -0
- package/dist/document_transformers/openai_functions.d.cts.map +1 -0
- package/dist/document_transformers/openai_functions.d.ts.map +1 -0
- package/dist/embeddings/cache_backed.d.cts.map +1 -0
- package/dist/embeddings/cache_backed.d.ts.map +1 -0
- package/dist/evaluation/agents/trajectory.d.cts +2 -2
- package/dist/evaluation/agents/trajectory.d.cts.map +1 -0
- package/dist/evaluation/agents/trajectory.d.ts +2 -2
- package/dist/evaluation/agents/trajectory.d.ts.map +1 -0
- package/dist/evaluation/base.d.cts +1 -3
- package/dist/evaluation/base.d.cts.map +1 -0
- package/dist/evaluation/base.d.ts +1 -3
- package/dist/evaluation/base.d.ts.map +1 -0
- package/dist/evaluation/comparison/pairwise.d.cts +3 -3
- package/dist/evaluation/comparison/pairwise.d.cts.map +1 -0
- package/dist/evaluation/comparison/pairwise.d.ts +3 -3
- package/dist/evaluation/comparison/pairwise.d.ts.map +1 -0
- package/dist/evaluation/criteria/criteria.d.cts +3 -5
- package/dist/evaluation/criteria/criteria.d.cts.map +1 -0
- package/dist/evaluation/criteria/criteria.d.ts +3 -5
- package/dist/evaluation/criteria/criteria.d.ts.map +1 -0
- package/dist/evaluation/embedding_distance/base.d.cts.map +1 -0
- package/dist/evaluation/embedding_distance/base.d.ts.map +1 -0
- package/dist/evaluation/loader.d.cts.map +1 -0
- package/dist/evaluation/loader.d.ts.map +1 -0
- package/dist/evaluation/qa/eval_chain.d.cts.map +1 -0
- package/dist/evaluation/qa/eval_chain.d.ts.map +1 -0
- package/dist/evaluation/types.d.cts.map +1 -0
- package/dist/evaluation/types.d.ts.map +1 -0
- package/dist/experimental/autogpt/agent.d.cts +0 -2
- package/dist/experimental/autogpt/agent.d.cts.map +1 -0
- package/dist/experimental/autogpt/agent.d.ts +0 -2
- package/dist/experimental/autogpt/agent.d.ts.map +1 -0
- package/dist/experimental/autogpt/output_parser.d.cts.map +1 -0
- package/dist/experimental/autogpt/output_parser.d.ts.map +1 -0
- package/dist/experimental/autogpt/prompt.d.cts.map +1 -0
- package/dist/experimental/autogpt/prompt.d.ts +2 -2
- package/dist/experimental/autogpt/prompt.d.ts.map +1 -0
- package/dist/experimental/autogpt/schema.d.cts +0 -1
- package/dist/experimental/autogpt/schema.d.cts.map +1 -0
- package/dist/experimental/autogpt/schema.d.ts +0 -1
- package/dist/experimental/autogpt/schema.d.ts.map +1 -0
- package/dist/experimental/babyagi/agent.d.cts.map +1 -0
- package/dist/experimental/babyagi/agent.d.ts.map +1 -0
- package/dist/experimental/babyagi/task_creation.d.cts.map +1 -0
- package/dist/experimental/babyagi/task_creation.d.ts.map +1 -0
- package/dist/experimental/babyagi/task_execution.d.cts.map +1 -0
- package/dist/experimental/babyagi/task_execution.d.ts.map +1 -0
- package/dist/experimental/babyagi/task_prioritization.d.cts.map +1 -0
- package/dist/experimental/babyagi/task_prioritization.d.ts.map +1 -0
- package/dist/experimental/chains/violation_of_expectations/types.d.cts.map +1 -0
- package/dist/experimental/chains/violation_of_expectations/types.d.ts.map +1 -0
- package/dist/experimental/chains/violation_of_expectations/violation_of_expectations_chain.d.cts.map +1 -0
- package/dist/experimental/chains/violation_of_expectations/violation_of_expectations_chain.d.ts.map +1 -0
- package/dist/experimental/generative_agents/generative_agent.d.cts +8 -16
- package/dist/experimental/generative_agents/generative_agent.d.cts.map +1 -0
- package/dist/experimental/generative_agents/generative_agent.d.ts +8 -16
- package/dist/experimental/generative_agents/generative_agent.d.ts.map +1 -0
- package/dist/experimental/generative_agents/generative_agent_memory.d.cts +0 -1
- package/dist/experimental/generative_agents/generative_agent_memory.d.cts.map +1 -0
- package/dist/experimental/generative_agents/generative_agent_memory.d.ts +0 -1
- package/dist/experimental/generative_agents/generative_agent_memory.d.ts.map +1 -0
- package/dist/experimental/masking/parser.d.cts.map +1 -0
- package/dist/experimental/masking/parser.d.ts.map +1 -0
- package/dist/experimental/masking/regex_masking_transformer.d.cts.map +1 -0
- package/dist/experimental/masking/regex_masking_transformer.d.ts.map +1 -0
- package/dist/experimental/masking/transformer.d.cts.map +1 -0
- package/dist/experimental/masking/transformer.d.ts.map +1 -0
- package/dist/experimental/masking/types.d.cts.map +1 -0
- package/dist/experimental/masking/types.d.ts.map +1 -0
- package/dist/experimental/openai_assistant/index.d.cts +1 -5
- package/dist/experimental/openai_assistant/index.d.cts.map +1 -0
- package/dist/experimental/openai_assistant/index.d.ts +1 -5
- package/dist/experimental/openai_assistant/index.d.ts.map +1 -0
- package/dist/experimental/openai_assistant/schema.d.cts +0 -1
- package/dist/experimental/openai_assistant/schema.d.cts.map +1 -0
- package/dist/experimental/openai_assistant/schema.d.ts +0 -1
- package/dist/experimental/openai_assistant/schema.d.ts.map +1 -0
- package/dist/experimental/openai_files/index.d.cts.map +1 -0
- package/dist/experimental/openai_files/index.d.ts.map +1 -0
- package/dist/experimental/plan_and_execute/agent_executor.d.cts.map +1 -0
- package/dist/experimental/plan_and_execute/agent_executor.d.ts.map +1 -0
- package/dist/experimental/plan_and_execute/base.d.cts.map +1 -0
- package/dist/experimental/plan_and_execute/base.d.ts.map +1 -0
- package/dist/experimental/plan_and_execute/outputParser.d.cts.map +1 -0
- package/dist/experimental/plan_and_execute/outputParser.d.ts.map +1 -0
- package/dist/experimental/prompts/custom_format.d.cts +2 -8
- package/dist/experimental/prompts/custom_format.d.cts.map +1 -0
- package/dist/experimental/prompts/custom_format.d.ts +2 -8
- package/dist/experimental/prompts/custom_format.d.ts.map +1 -0
- package/dist/experimental/prompts/handlebars.d.cts +2 -6
- package/dist/experimental/prompts/handlebars.d.cts.map +1 -0
- package/dist/experimental/prompts/handlebars.d.ts +2 -6
- package/dist/experimental/prompts/handlebars.d.ts.map +1 -0
- package/dist/hub/base.cjs +1 -1
- package/dist/hub/base.cjs.map +1 -1
- package/dist/hub/base.d.cts.map +1 -0
- package/dist/hub/base.d.ts.map +1 -0
- package/dist/hub/base.js +1 -1
- package/dist/hub/index.d.cts +0 -1
- package/dist/hub/index.d.cts.map +1 -0
- package/dist/hub/index.d.ts +0 -1
- package/dist/hub/index.d.ts.map +1 -0
- package/dist/hub/node.d.cts.map +1 -0
- package/dist/hub/node.d.ts.map +1 -0
- package/dist/load/import_map.cjs +2 -2
- package/dist/load/import_map.cjs.map +1 -1
- package/dist/load/import_map.js +2 -2
- package/dist/load/import_map.js.map +1 -1
- package/dist/load/import_type.d.cts +0 -1
- package/dist/load/import_type.d.cts.map +1 -0
- package/dist/load/import_type.d.ts +0 -1
- package/dist/load/import_type.d.ts.map +1 -0
- package/dist/load/index.d.cts +1 -7
- package/dist/load/index.d.cts.map +1 -0
- package/dist/load/index.d.ts +1 -7
- package/dist/load/index.d.ts.map +1 -0
- package/dist/load/map_keys.d.cts +0 -1
- package/dist/load/map_keys.d.cts.map +1 -0
- package/dist/load/map_keys.d.ts +0 -1
- package/dist/load/map_keys.d.ts.map +1 -0
- package/dist/load/serializable.d.cts +1 -8
- package/dist/load/serializable.d.ts +1 -8
- package/dist/memory/buffer_memory.d.cts.map +1 -0
- package/dist/memory/buffer_memory.d.ts.map +1 -0
- package/dist/memory/buffer_token_memory.d.cts +1 -6
- package/dist/memory/buffer_token_memory.d.cts.map +1 -0
- package/dist/memory/buffer_token_memory.d.ts +1 -6
- package/dist/memory/buffer_token_memory.d.ts.map +1 -0
- package/dist/memory/buffer_window_memory.d.cts.map +1 -0
- package/dist/memory/buffer_window_memory.d.ts.map +1 -0
- package/dist/memory/chat_memory.d.cts.map +1 -0
- package/dist/memory/chat_memory.d.ts.map +1 -0
- package/dist/memory/combined_memory.d.cts.map +1 -0
- package/dist/memory/combined_memory.d.ts.map +1 -0
- package/dist/memory/entity_memory.d.cts +0 -5
- package/dist/memory/entity_memory.d.cts.map +1 -0
- package/dist/memory/entity_memory.d.ts +0 -5
- package/dist/memory/entity_memory.d.ts.map +1 -0
- package/dist/memory/prompt.d.cts.map +1 -0
- package/dist/memory/prompt.d.ts.map +1 -0
- package/dist/memory/stores/entity/base.d.cts.map +1 -0
- package/dist/memory/stores/entity/base.d.ts.map +1 -0
- package/dist/memory/summary.d.cts.map +1 -0
- package/dist/memory/summary.d.ts.map +1 -0
- package/dist/memory/summary_buffer.d.cts.map +1 -0
- package/dist/memory/summary_buffer.d.ts.map +1 -0
- package/dist/memory/vector_store.d.cts.map +1 -0
- package/dist/memory/vector_store.d.ts.map +1 -0
- package/dist/output_parsers/combining.d.cts +0 -1
- package/dist/output_parsers/combining.d.cts.map +1 -0
- package/dist/output_parsers/combining.d.ts +0 -1
- package/dist/output_parsers/combining.d.ts.map +1 -0
- package/dist/output_parsers/datetime.d.cts.map +1 -0
- package/dist/output_parsers/datetime.d.ts.map +1 -0
- package/dist/output_parsers/expression.d.cts.map +1 -0
- package/dist/output_parsers/expression.d.ts.map +1 -0
- package/dist/output_parsers/expression_type_handlers/base.d.cts +0 -1
- package/dist/output_parsers/expression_type_handlers/base.d.cts.map +1 -0
- package/dist/output_parsers/expression_type_handlers/base.d.ts +0 -1
- package/dist/output_parsers/expression_type_handlers/base.d.ts.map +1 -0
- package/dist/output_parsers/expression_type_handlers/factory.d.cts.map +1 -0
- package/dist/output_parsers/expression_type_handlers/factory.d.ts.map +1 -0
- package/dist/output_parsers/expression_type_handlers/types.d.cts.map +1 -0
- package/dist/output_parsers/expression_type_handlers/types.d.ts.map +1 -0
- package/dist/output_parsers/fix.d.cts.map +1 -0
- package/dist/output_parsers/fix.d.ts.map +1 -0
- package/dist/output_parsers/http_response.d.cts.map +1 -0
- package/dist/output_parsers/http_response.d.ts.map +1 -0
- package/dist/output_parsers/openai_functions.d.cts.map +1 -0
- package/dist/output_parsers/openai_functions.d.ts.map +1 -0
- package/dist/output_parsers/openai_tools.d.cts +1 -4
- package/dist/output_parsers/openai_tools.d.cts.map +1 -0
- package/dist/output_parsers/openai_tools.d.ts +1 -4
- package/dist/output_parsers/openai_tools.d.ts.map +1 -0
- package/dist/output_parsers/regex.d.cts.map +1 -0
- package/dist/output_parsers/regex.d.ts.map +1 -0
- package/dist/output_parsers/router.d.cts.map +1 -0
- package/dist/output_parsers/router.d.ts.map +1 -0
- package/dist/output_parsers/structured.d.cts +2 -2
- package/dist/output_parsers/structured.d.cts.map +1 -0
- package/dist/output_parsers/structured.d.ts +2 -2
- package/dist/output_parsers/structured.d.ts.map +1 -0
- package/dist/retrievers/contextual_compression.d.cts.map +1 -0
- package/dist/retrievers/contextual_compression.d.ts.map +1 -0
- package/dist/retrievers/document_compressors/chain_extract.d.cts.map +1 -0
- package/dist/retrievers/document_compressors/chain_extract.d.ts.map +1 -0
- package/dist/retrievers/document_compressors/embeddings_filter.d.cts.map +1 -0
- package/dist/retrievers/document_compressors/embeddings_filter.d.ts.map +1 -0
- package/dist/retrievers/document_compressors/index.d.cts +0 -1
- package/dist/retrievers/document_compressors/index.d.cts.map +1 -0
- package/dist/retrievers/document_compressors/index.d.ts +0 -1
- package/dist/retrievers/document_compressors/index.d.ts.map +1 -0
- package/dist/retrievers/ensemble.d.cts.map +1 -0
- package/dist/retrievers/ensemble.d.ts.map +1 -0
- package/dist/retrievers/hyde.d.cts.map +1 -0
- package/dist/retrievers/hyde.d.ts.map +1 -0
- package/dist/retrievers/matryoshka_retriever.d.cts +0 -1
- package/dist/retrievers/matryoshka_retriever.d.cts.map +1 -0
- package/dist/retrievers/matryoshka_retriever.d.ts +0 -1
- package/dist/retrievers/matryoshka_retriever.d.ts.map +1 -0
- package/dist/retrievers/multi_query.d.cts +0 -2
- package/dist/retrievers/multi_query.d.cts.map +1 -0
- package/dist/retrievers/multi_query.d.ts +0 -2
- package/dist/retrievers/multi_query.d.ts.map +1 -0
- package/dist/retrievers/multi_vector.d.cts.map +1 -0
- package/dist/retrievers/multi_vector.d.ts.map +1 -0
- package/dist/retrievers/parent_document.d.cts +0 -1
- package/dist/retrievers/parent_document.d.cts.map +1 -0
- package/dist/retrievers/parent_document.d.ts +0 -1
- package/dist/retrievers/parent_document.d.ts.map +1 -0
- package/dist/retrievers/score_threshold.d.cts.map +1 -0
- package/dist/retrievers/score_threshold.d.ts.map +1 -0
- package/dist/retrievers/self_query/index.d.cts.map +1 -0
- package/dist/retrievers/self_query/index.d.ts.map +1 -0
- package/dist/retrievers/time_weighted.d.cts.map +1 -0
- package/dist/retrievers/time_weighted.d.ts.map +1 -0
- package/dist/schema/prompt_template.d.cts +2 -2
- package/dist/schema/prompt_template.d.cts.map +1 -0
- package/dist/schema/prompt_template.d.ts +2 -2
- package/dist/schema/prompt_template.d.ts.map +1 -0
- package/dist/schema/query_constructor.d.cts.map +1 -0
- package/dist/schema/query_constructor.d.ts.map +1 -0
- package/dist/smith/config.d.cts +1 -11
- package/dist/smith/config.d.cts.map +1 -0
- package/dist/smith/config.d.ts +1 -11
- package/dist/smith/config.d.ts.map +1 -0
- package/dist/smith/runner_utils.cjs +4 -6
- package/dist/smith/runner_utils.cjs.map +1 -1
- package/dist/smith/runner_utils.d.cts +2 -7
- package/dist/smith/runner_utils.d.cts.map +1 -0
- package/dist/smith/runner_utils.d.ts +2 -7
- package/dist/smith/runner_utils.d.ts.map +1 -0
- package/dist/smith/runner_utils.js +1 -3
- package/dist/smith/runner_utils.js.map +1 -1
- package/dist/sql_db.d.cts.map +1 -0
- package/dist/sql_db.d.ts.map +1 -0
- package/dist/storage/encoder_backed.d.cts +0 -1
- package/dist/storage/encoder_backed.d.cts.map +1 -0
- package/dist/storage/encoder_backed.d.ts +0 -1
- package/dist/storage/encoder_backed.d.ts.map +1 -0
- package/dist/storage/file_system.d.cts.map +1 -0
- package/dist/storage/file_system.d.ts.map +1 -0
- package/dist/stores/doc/base.d.cts.map +1 -0
- package/dist/stores/doc/base.d.ts.map +1 -0
- package/dist/stores/doc/in_memory.d.cts +0 -1
- package/dist/stores/doc/in_memory.d.cts.map +1 -0
- package/dist/stores/doc/in_memory.d.ts +0 -1
- package/dist/stores/doc/in_memory.d.ts.map +1 -0
- package/dist/stores/file/base.d.cts.map +1 -0
- package/dist/stores/file/base.d.ts.map +1 -0
- package/dist/stores/file/in_memory.d.cts.map +1 -0
- package/dist/stores/file/in_memory.d.ts.map +1 -0
- package/dist/stores/file/node.d.cts.map +1 -0
- package/dist/stores/file/node.d.ts.map +1 -0
- package/dist/text_splitter.d.cts.map +1 -0
- package/dist/text_splitter.d.ts.map +1 -0
- package/dist/tools/chain.d.cts.map +1 -0
- package/dist/tools/chain.d.ts.map +1 -0
- package/dist/tools/fs.d.cts.map +1 -0
- package/dist/tools/fs.d.ts.map +1 -0
- package/dist/tools/json.d.cts.map +1 -0
- package/dist/tools/json.d.ts.map +1 -0
- package/dist/tools/render.d.cts.map +1 -0
- package/dist/tools/render.d.ts.map +1 -0
- package/dist/tools/requests.d.cts.map +1 -0
- package/dist/tools/requests.d.ts.map +1 -0
- package/dist/tools/retriever.d.cts.map +1 -0
- package/dist/tools/retriever.d.ts.map +1 -0
- package/dist/tools/sql.d.cts.map +1 -0
- package/dist/tools/sql.d.ts.map +1 -0
- package/dist/tools/vectorstore.d.cts.map +1 -0
- package/dist/tools/vectorstore.d.ts.map +1 -0
- package/dist/tools/webbrowser.d.cts +0 -1
- package/dist/tools/webbrowser.d.cts.map +1 -0
- package/dist/tools/webbrowser.d.ts +0 -1
- package/dist/tools/webbrowser.d.ts.map +1 -0
- package/dist/types/expression-parser.d.cts +0 -3
- package/dist/types/expression-parser.d.cts.map +1 -0
- package/dist/types/expression-parser.d.ts +0 -3
- package/dist/types/expression-parser.d.ts.map +1 -0
- package/dist/types/type-utils.d.cts +0 -2
- package/dist/types/type-utils.d.cts.map +1 -0
- package/dist/types/type-utils.d.ts +0 -2
- package/dist/types/type-utils.d.ts.map +1 -0
- package/dist/util/document.d.cts.map +1 -0
- package/dist/util/document.d.ts.map +1 -0
- package/dist/util/hub.cjs +2 -2
- package/dist/util/hub.cjs.map +1 -1
- package/dist/util/hub.js +1 -1
- package/dist/util/hub.js.map +1 -1
- package/dist/util/is-network-error/index.cjs +27 -0
- package/dist/util/is-network-error/index.cjs.map +1 -0
- package/dist/util/is-network-error/index.js +26 -0
- package/dist/util/is-network-error/index.js.map +1 -0
- package/dist/util/load.d.cts +0 -1
- package/dist/util/load.d.cts.map +1 -0
- package/dist/util/load.d.ts +0 -1
- package/dist/util/load.d.ts.map +1 -0
- package/dist/util/ml-distance/similarities.d.cts.map +1 -0
- package/dist/util/ml-distance/similarities.d.ts.map +1 -0
- package/dist/util/openapi.d.cts +0 -2
- package/dist/util/openapi.d.cts.map +1 -0
- package/dist/util/openapi.d.ts +0 -2
- package/dist/util/openapi.d.ts.map +1 -0
- package/dist/util/p-retry/index.cjs +141 -0
- package/dist/util/p-retry/index.cjs.map +1 -0
- package/dist/util/p-retry/index.js +141 -0
- package/dist/util/p-retry/index.js.map +1 -0
- package/dist/util/sql_utils.d.cts.map +1 -0
- package/dist/util/sql_utils.d.ts.map +1 -0
- package/dist/util/time.d.cts.map +1 -0
- package/dist/util/time.d.ts.map +1 -0
- package/dist/vectorstores/memory.d.cts +0 -1
- package/dist/vectorstores/memory.d.cts.map +1 -0
- package/dist/vectorstores/memory.d.ts +0 -1
- package/dist/vectorstores/memory.d.ts.map +1 -0
- package/package.json +19 -19
- package/agents/format_scratchpad/log.cjs +0 -1
- package/agents/format_scratchpad/log.d.cts +0 -1
- package/agents/format_scratchpad/log.d.ts +0 -1
- package/agents/format_scratchpad/log.js +0 -1
- package/agents/format_scratchpad/log_to_message.cjs +0 -1
- package/agents/format_scratchpad/log_to_message.d.cts +0 -1
- package/agents/format_scratchpad/log_to_message.d.ts +0 -1
- package/agents/format_scratchpad/log_to_message.js +0 -1
- package/agents/format_scratchpad/openai_functions.cjs +0 -1
- package/agents/format_scratchpad/openai_functions.d.cts +0 -1
- package/agents/format_scratchpad/openai_functions.d.ts +0 -1
- package/agents/format_scratchpad/openai_functions.js +0 -1
- package/agents/format_scratchpad/openai_tools.cjs +0 -1
- package/agents/format_scratchpad/openai_tools.d.cts +0 -1
- package/agents/format_scratchpad/openai_tools.d.ts +0 -1
- package/agents/format_scratchpad/openai_tools.js +0 -1
- package/agents/format_scratchpad/xml.cjs +0 -1
- package/agents/format_scratchpad/xml.d.cts +0 -1
- package/agents/format_scratchpad/xml.d.ts +0 -1
- package/agents/format_scratchpad/xml.js +0 -1
- package/agents/load.cjs +0 -1
- package/agents/load.d.cts +0 -1
- package/agents/load.d.ts +0 -1
- package/agents/load.js +0 -1
- package/agents/openai/output_parser.cjs +0 -1
- package/agents/openai/output_parser.d.cts +0 -1
- package/agents/openai/output_parser.d.ts +0 -1
- package/agents/openai/output_parser.js +0 -1
- package/agents/react/output_parser.cjs +0 -1
- package/agents/react/output_parser.d.cts +0 -1
- package/agents/react/output_parser.d.ts +0 -1
- package/agents/react/output_parser.js +0 -1
- package/agents/toolkits/sql.cjs +0 -1
- package/agents/toolkits/sql.d.cts +0 -1
- package/agents/toolkits/sql.d.ts +0 -1
- package/agents/toolkits/sql.js +0 -1
- package/agents/toolkits.cjs +0 -1
- package/agents/toolkits.d.cts +0 -1
- package/agents/toolkits.d.ts +0 -1
- package/agents/toolkits.js +0 -1
- package/agents/xml/output_parser.cjs +0 -1
- package/agents/xml/output_parser.d.cts +0 -1
- package/agents/xml/output_parser.d.ts +0 -1
- package/agents/xml/output_parser.js +0 -1
- package/agents.cjs +0 -1
- package/agents.d.cts +0 -1
- package/agents.d.ts +0 -1
- package/agents.js +0 -1
- package/cache/file_system.cjs +0 -1
- package/cache/file_system.d.cts +0 -1
- package/cache/file_system.d.ts +0 -1
- package/cache/file_system.js +0 -1
- package/callbacks.cjs +0 -1
- package/callbacks.d.cts +0 -1
- package/callbacks.d.ts +0 -1
- package/callbacks.js +0 -1
- package/chains/combine_documents/reduce.cjs +0 -1
- package/chains/combine_documents/reduce.d.cts +0 -1
- package/chains/combine_documents/reduce.d.ts +0 -1
- package/chains/combine_documents/reduce.js +0 -1
- package/chains/combine_documents.cjs +0 -1
- package/chains/combine_documents.d.cts +0 -1
- package/chains/combine_documents.d.ts +0 -1
- package/chains/combine_documents.js +0 -1
- package/chains/graph_qa/cypher.cjs +0 -1
- package/chains/graph_qa/cypher.d.cts +0 -1
- package/chains/graph_qa/cypher.d.ts +0 -1
- package/chains/graph_qa/cypher.js +0 -1
- package/chains/history_aware_retriever.cjs +0 -1
- package/chains/history_aware_retriever.d.cts +0 -1
- package/chains/history_aware_retriever.d.ts +0 -1
- package/chains/history_aware_retriever.js +0 -1
- package/chains/load.cjs +0 -1
- package/chains/load.d.cts +0 -1
- package/chains/load.d.ts +0 -1
- package/chains/load.js +0 -1
- package/chains/openai_functions.cjs +0 -1
- package/chains/openai_functions.d.cts +0 -1
- package/chains/openai_functions.d.ts +0 -1
- package/chains/openai_functions.js +0 -1
- package/chains/query_constructor/ir.cjs +0 -1
- package/chains/query_constructor/ir.d.cts +0 -1
- package/chains/query_constructor/ir.d.ts +0 -1
- package/chains/query_constructor/ir.js +0 -1
- package/chains/query_constructor.cjs +0 -1
- package/chains/query_constructor.d.cts +0 -1
- package/chains/query_constructor.d.ts +0 -1
- package/chains/query_constructor.js +0 -1
- package/chains/retrieval.cjs +0 -1
- package/chains/retrieval.d.cts +0 -1
- package/chains/retrieval.d.ts +0 -1
- package/chains/retrieval.js +0 -1
- package/chains/sql_db.cjs +0 -1
- package/chains/sql_db.d.cts +0 -1
- package/chains/sql_db.d.ts +0 -1
- package/chains/sql_db.js +0 -1
- package/chains.cjs +0 -1
- package/chains.d.cts +0 -1
- package/chains.d.ts +0 -1
- package/chains.js +0 -1
- package/chat_models/universal.cjs +0 -1
- package/chat_models/universal.d.cts +0 -1
- package/chat_models/universal.d.ts +0 -1
- package/chat_models/universal.js +0 -1
- package/dist/langchain-core/dist/load/map_keys.d.cts +0 -10
- package/dist/langchain-core/dist/load/serializable.d.cts +0 -82
- package/dist/langchain-core/dist/messages/base.d.cts +0 -127
- package/dist/langchain-core/dist/messages/content/base.d.cts +0 -22
- package/dist/langchain-core/dist/messages/content/data.d.cts +0 -96
- package/dist/langchain-core/dist/messages/content/index.d.cts +0 -121
- package/dist/langchain-core/dist/messages/content/multimodal.d.cts +0 -110
- package/dist/langchain-core/dist/messages/content/tools.d.cts +0 -130
- package/dist/langchain-core/dist/messages/format.d.cts +0 -8
- package/dist/langchain-core/dist/messages/message.d.cts +0 -598
- package/dist/langchain-core/dist/messages/metadata.d.cts +0 -100
- package/dist/langchain-core/dist/messages/utils.d.cts +0 -75
- package/dist/langchain-core/dist/prompt_values.d.cts +0 -13
- package/dist/langchain-core/dist/tools/types.d.cts +0 -28
- package/dist/langchain-core/dist/utils/types/index.d.cts +0 -8
- package/dist/libs/langchain-core/dist/callbacks/base.d.ts +0 -1
- package/dist/libs/langchain-core/dist/callbacks/manager.d.ts +0 -2
- package/dist/libs/langchain-core/dist/language_models/base.d.ts +0 -8
- package/dist/libs/langchain-core/dist/load/map_keys.d.ts +0 -10
- package/dist/libs/langchain-core/dist/load/serializable.d.ts +0 -82
- package/dist/libs/langchain-core/dist/messages/base.d.ts +0 -127
- package/dist/libs/langchain-core/dist/messages/content/base.d.ts +0 -22
- package/dist/libs/langchain-core/dist/messages/content/data.d.ts +0 -96
- package/dist/libs/langchain-core/dist/messages/content/index.d.ts +0 -121
- package/dist/libs/langchain-core/dist/messages/content/multimodal.d.ts +0 -110
- package/dist/libs/langchain-core/dist/messages/content/tools.d.ts +0 -130
- package/dist/libs/langchain-core/dist/messages/format.d.ts +0 -8
- package/dist/libs/langchain-core/dist/messages/message.d.ts +0 -598
- package/dist/libs/langchain-core/dist/messages/metadata.d.ts +0 -100
- package/dist/libs/langchain-core/dist/messages/utils.d.ts +0 -75
- package/dist/libs/langchain-core/dist/prompt_values.d.ts +0 -13
- package/dist/libs/langchain-core/dist/runnables/base.d.ts +0 -8
- package/dist/libs/langchain-core/dist/runnables/config.d.ts +0 -2
- package/dist/libs/langchain-core/dist/runnables/graph.d.ts +0 -1
- package/dist/libs/langchain-core/dist/runnables/types.d.ts +0 -2
- package/dist/libs/langchain-core/dist/tools/types.d.ts +0 -36
- package/dist/libs/langchain-core/dist/tracers/base.d.ts +0 -2
- package/dist/libs/langchain-core/dist/tracers/event_stream.d.ts +0 -2
- package/dist/libs/langchain-core/dist/tracers/log_stream.d.ts +0 -3
- package/dist/libs/langchain-core/dist/utils/json_schema.d.ts +0 -8
- package/dist/libs/langchain-core/dist/utils/types/index.d.ts +0 -10
- package/dist/libs/langchain-core/dist/utils/types/zod.d.ts +0 -1
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/Options.d.ts +0 -3
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/Refs.d.ts +0 -3
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/errorMessages.d.ts +0 -2
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/index.d.ts +0 -13
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parseDef.d.ts +0 -3
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parseTypes.d.ts +0 -21
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/any.d.ts +0 -1
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/array.d.ts +0 -4
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/bigint.d.ts +0 -3
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/branded.d.ts +0 -3
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/catch.d.ts +0 -3
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/date.d.ts +0 -5
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/default.d.ts +0 -3
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/effects.d.ts +0 -3
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/enum.d.ts +0 -1
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/intersection.d.ts +0 -3
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/literal.d.ts +0 -2
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/map.d.ts +0 -4
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/nativeEnum.d.ts +0 -1
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/never.d.ts +0 -2
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/null.d.ts +0 -1
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/nullable.d.ts +0 -4
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/number.d.ts +0 -3
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/object.d.ts +0 -3
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/optional.d.ts +0 -3
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/pipeline.d.ts +0 -4
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/promise.d.ts +0 -3
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/readonly.d.ts +0 -3
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/record.d.ts +0 -5
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/set.d.ts +0 -4
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/string.d.ts +0 -3
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/tuple.d.ts +0 -3
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/undefined.d.ts +0 -2
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/union.d.ts +0 -3
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/unknown.d.ts +0 -2
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/selectParser.d.ts +0 -2
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/zodToJsonSchema.d.ts +0 -3
- package/dist/node_modules/.pnpm/eventemitter3@4.0.7/node_modules/eventemitter3/index.cjs +0 -248
- package/dist/node_modules/.pnpm/eventemitter3@4.0.7/node_modules/eventemitter3/index.cjs.map +0 -1
- package/dist/node_modules/.pnpm/eventemitter3@4.0.7/node_modules/eventemitter3/index.js +0 -244
- package/dist/node_modules/.pnpm/eventemitter3@4.0.7/node_modules/eventemitter3/index.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/client.cjs +0 -3096
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/client.cjs.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/client.js +0 -3095
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/client.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/env.cjs +0 -12
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/env.cjs.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/env.js +0 -12
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/env.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/experimental/otel/constants.cjs +0 -71
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/experimental/otel/constants.cjs.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/experimental/otel/constants.js +0 -38
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/experimental/otel/constants.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/experimental/otel/translator.cjs +0 -221
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/experimental/otel/translator.cjs.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/experimental/otel/translator.js +0 -221
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/experimental/otel/translator.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/index.cjs +0 -11
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/index.cjs.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/index.js +0 -11
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/index.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/run_trees.cjs +0 -703
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/run_trees.cjs.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/run_trees.js +0 -702
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/run_trees.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/constants.cjs +0 -7
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/constants.cjs.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/constants.js +0 -6
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/constants.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/fetch.cjs +0 -29
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/fetch.cjs.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/fetch.js +0 -28
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/fetch.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/otel.cjs +0 -115
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/otel.cjs.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/otel.js +0 -113
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/otel.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/_uuid.cjs +0 -14
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/_uuid.cjs.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/_uuid.js +0 -13
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/_uuid.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/async_caller.cjs +0 -94
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/async_caller.cjs.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/async_caller.js +0 -94
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/async_caller.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/env.cjs +0 -136
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/env.cjs.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/env.js +0 -131
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/env.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/error.cjs +0 -102
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/error.cjs.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/error.js +0 -99
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/error.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/fast-safe-stringify/index.cjs +0 -140
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/fast-safe-stringify/index.cjs.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/fast-safe-stringify/index.js +0 -140
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/fast-safe-stringify/index.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/messages.cjs +0 -18
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/messages.cjs.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/messages.js +0 -16
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/messages.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/project.cjs +0 -10
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/project.cjs.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/project.js +0 -10
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/project.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/prompts.cjs +0 -30
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/prompts.cjs.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/prompts.js +0 -30
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/prompts.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/warn.cjs +0 -13
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/warn.cjs.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/warn.js +0 -12
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/warn.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/index.cjs +0 -6
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/index.js +0 -6
- package/dist/node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.cjs +0 -27
- package/dist/node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.cjs.map +0 -1
- package/dist/node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.js +0 -23
- package/dist/node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.js.map +0 -1
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.cjs +0 -267
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.cjs.map +0 -1
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.js +0 -263
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.js.map +0 -1
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/lower-bound.cjs +0 -32
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/lower-bound.cjs.map +0 -1
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/lower-bound.js +0 -28
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/lower-bound.js.map +0 -1
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/priority-queue.cjs +0 -49
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/priority-queue.cjs.map +0 -1
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/priority-queue.js +0 -45
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/priority-queue.js.map +0 -1
- package/dist/node_modules/.pnpm/p-timeout@3.2.0/node_modules/p-timeout/index.cjs +0 -52
- package/dist/node_modules/.pnpm/p-timeout@3.2.0/node_modules/p-timeout/index.cjs.map +0 -1
- package/dist/node_modules/.pnpm/p-timeout@3.2.0/node_modules/p-timeout/index.js +0 -48
- package/dist/node_modules/.pnpm/p-timeout@3.2.0/node_modules/p-timeout/index.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/comparator.cjs +0 -90
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/comparator.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/comparator.js +0 -86
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/comparator.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/range.cjs +0 -294
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/range.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/range.js +0 -290
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/range.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/semver.cjs +0 -191
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/semver.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/semver.js +0 -187
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/semver.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/clean.cjs +0 -24
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/clean.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/clean.js +0 -20
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/clean.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/cmp.cjs +0 -51
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/cmp.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/cmp.js +0 -47
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/cmp.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/coerce.cjs +0 -48
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/coerce.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/coerce.js +0 -44
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/coerce.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-build.cjs +0 -25
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-build.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-build.js +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-build.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-loose.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-loose.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-loose.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-loose.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/diff.cjs +0 -43
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/diff.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/diff.js +0 -39
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/diff.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/eq.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/eq.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/eq.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/eq.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gt.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gt.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gt.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gt.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gte.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gte.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gte.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gte.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/inc.cjs +0 -32
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/inc.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/inc.js +0 -28
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/inc.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lt.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lt.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lt.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lt.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lte.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lte.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lte.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lte.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/major.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/major.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/major.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/major.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/minor.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/minor.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/minor.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/minor.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/neq.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/neq.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/neq.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/neq.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/parse.cjs +0 -29
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/parse.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/parse.js +0 -25
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/parse.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/patch.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/patch.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/patch.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/patch.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/prerelease.cjs +0 -24
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/prerelease.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/prerelease.js +0 -20
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/prerelease.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rcompare.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rcompare.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rcompare.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rcompare.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rsort.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rsort.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rsort.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rsort.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/satisfies.cjs +0 -28
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/satisfies.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/satisfies.js +0 -24
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/satisfies.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/sort.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/sort.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/sort.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/sort.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/valid.cjs +0 -24
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/valid.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/valid.js +0 -20
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/valid.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/index.cjs +0 -146
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/index.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/index.js +0 -142
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/index.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/constants.cjs +0 -41
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/constants.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/constants.js +0 -37
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/constants.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/debug.cjs +0 -19
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/debug.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/debug.js +0 -15
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/debug.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/identifiers.cjs +0 -32
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/identifiers.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/identifiers.js +0 -28
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/identifiers.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/lrucache.cjs +0 -47
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/lrucache.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/lrucache.js +0 -43
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/lrucache.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/parse-options.cjs +0 -25
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/parse-options.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/parse-options.js +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/parse-options.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/re.cjs +0 -94
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/re.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/re.js +0 -90
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/re.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/gtr.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/gtr.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/gtr.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/gtr.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/intersects.cjs +0 -25
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/intersects.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/intersects.js +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/intersects.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/ltr.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/ltr.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/ltr.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/ltr.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/max-satisfying.cjs +0 -41
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/max-satisfying.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/max-satisfying.js +0 -37
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/max-satisfying.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-satisfying.cjs +0 -41
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-satisfying.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-satisfying.js +0 -37
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-satisfying.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-version.cjs +0 -55
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-version.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-version.js +0 -51
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-version.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/outside.cjs +0 -74
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/outside.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/outside.js +0 -70
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/outside.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/simplify.cjs +0 -48
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/simplify.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/simplify.js +0 -44
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/simplify.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/subset.cjs +0 -112
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/subset.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/subset.js +0 -108
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/subset.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/to-comparators.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/to-comparators.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/to-comparators.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/to-comparators.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/valid.cjs +0 -27
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/valid.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/valid.js +0 -23
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/valid.js.map +0 -1
- package/document.cjs +0 -1
- package/document.d.cts +0 -1
- package/document.d.ts +0 -1
- package/document.js +0 -1
- package/document_loaders/base.cjs +0 -1
- package/document_loaders/base.d.cts +0 -1
- package/document_loaders/base.d.ts +0 -1
- package/document_loaders/base.js +0 -1
- package/document_loaders/fs/buffer.cjs +0 -1
- package/document_loaders/fs/buffer.d.cts +0 -1
- package/document_loaders/fs/buffer.d.ts +0 -1
- package/document_loaders/fs/buffer.js +0 -1
- package/document_loaders/fs/directory.cjs +0 -1
- package/document_loaders/fs/directory.d.cts +0 -1
- package/document_loaders/fs/directory.d.ts +0 -1
- package/document_loaders/fs/directory.js +0 -1
- package/document_loaders/fs/json.cjs +0 -1
- package/document_loaders/fs/json.d.cts +0 -1
- package/document_loaders/fs/json.d.ts +0 -1
- package/document_loaders/fs/json.js +0 -1
- package/document_loaders/fs/multi_file.cjs +0 -1
- package/document_loaders/fs/multi_file.d.cts +0 -1
- package/document_loaders/fs/multi_file.d.ts +0 -1
- package/document_loaders/fs/multi_file.js +0 -1
- package/document_loaders/fs/text.cjs +0 -1
- package/document_loaders/fs/text.d.cts +0 -1
- package/document_loaders/fs/text.d.ts +0 -1
- package/document_loaders/fs/text.js +0 -1
- package/document_transformers/openai_functions.cjs +0 -1
- package/document_transformers/openai_functions.d.cts +0 -1
- package/document_transformers/openai_functions.d.ts +0 -1
- package/document_transformers/openai_functions.js +0 -1
- package/embeddings/cache_backed.cjs +0 -1
- package/embeddings/cache_backed.d.cts +0 -1
- package/embeddings/cache_backed.d.ts +0 -1
- package/embeddings/cache_backed.js +0 -1
- package/embeddings/fake.cjs +0 -1
- package/embeddings/fake.d.cts +0 -1
- package/embeddings/fake.d.ts +0 -1
- package/embeddings/fake.js +0 -1
- package/evaluation.cjs +0 -1
- package/evaluation.d.cts +0 -1
- package/evaluation.d.ts +0 -1
- package/evaluation.js +0 -1
- package/experimental/autogpt.cjs +0 -1
- package/experimental/autogpt.d.cts +0 -1
- package/experimental/autogpt.d.ts +0 -1
- package/experimental/autogpt.js +0 -1
- package/experimental/babyagi.cjs +0 -1
- package/experimental/babyagi.d.cts +0 -1
- package/experimental/babyagi.d.ts +0 -1
- package/experimental/babyagi.js +0 -1
- package/experimental/chains/violation_of_expectations.cjs +0 -1
- package/experimental/chains/violation_of_expectations.d.cts +0 -1
- package/experimental/chains/violation_of_expectations.d.ts +0 -1
- package/experimental/chains/violation_of_expectations.js +0 -1
- package/experimental/generative_agents.cjs +0 -1
- package/experimental/generative_agents.d.cts +0 -1
- package/experimental/generative_agents.d.ts +0 -1
- package/experimental/generative_agents.js +0 -1
- package/experimental/masking.cjs +0 -1
- package/experimental/masking.d.cts +0 -1
- package/experimental/masking.d.ts +0 -1
- package/experimental/masking.js +0 -1
- package/experimental/openai_assistant.cjs +0 -1
- package/experimental/openai_assistant.d.cts +0 -1
- package/experimental/openai_assistant.d.ts +0 -1
- package/experimental/openai_assistant.js +0 -1
- package/experimental/openai_files.cjs +0 -1
- package/experimental/openai_files.d.cts +0 -1
- package/experimental/openai_files.d.ts +0 -1
- package/experimental/openai_files.js +0 -1
- package/experimental/plan_and_execute.cjs +0 -1
- package/experimental/plan_and_execute.d.cts +0 -1
- package/experimental/plan_and_execute.d.ts +0 -1
- package/experimental/plan_and_execute.js +0 -1
- package/experimental/prompts/custom_format.cjs +0 -1
- package/experimental/prompts/custom_format.d.cts +0 -1
- package/experimental/prompts/custom_format.d.ts +0 -1
- package/experimental/prompts/custom_format.js +0 -1
- package/experimental/prompts/handlebars.cjs +0 -1
- package/experimental/prompts/handlebars.d.cts +0 -1
- package/experimental/prompts/handlebars.d.ts +0 -1
- package/experimental/prompts/handlebars.js +0 -1
- package/hub/node.cjs +0 -1
- package/hub/node.d.cts +0 -1
- package/hub/node.d.ts +0 -1
- package/hub/node.js +0 -1
- package/hub.cjs +0 -1
- package/hub.d.cts +0 -1
- package/hub.d.ts +0 -1
- package/hub.js +0 -1
- package/indexes.cjs +0 -1
- package/indexes.d.cts +0 -1
- package/indexes.d.ts +0 -1
- package/indexes.js +0 -1
- package/load/serializable.cjs +0 -1
- package/load/serializable.d.cts +0 -1
- package/load/serializable.d.ts +0 -1
- package/load/serializable.js +0 -1
- package/load.cjs +0 -1
- package/load.d.cts +0 -1
- package/load.d.ts +0 -1
- package/load.js +0 -1
- package/memory/chat_memory.cjs +0 -1
- package/memory/chat_memory.d.cts +0 -1
- package/memory/chat_memory.d.ts +0 -1
- package/memory/chat_memory.js +0 -1
- package/memory.cjs +0 -1
- package/memory.d.cts +0 -1
- package/memory.d.ts +0 -1
- package/memory.js +0 -1
- package/output_parsers/expression.cjs +0 -1
- package/output_parsers/expression.d.cts +0 -1
- package/output_parsers/expression.d.ts +0 -1
- package/output_parsers/expression.js +0 -1
- package/output_parsers.cjs +0 -1
- package/output_parsers.d.cts +0 -1
- package/output_parsers.d.ts +0 -1
- package/output_parsers.js +0 -1
- package/retrievers/contextual_compression.cjs +0 -1
- package/retrievers/contextual_compression.d.cts +0 -1
- package/retrievers/contextual_compression.d.ts +0 -1
- package/retrievers/contextual_compression.js +0 -1
- package/retrievers/document_compressors/chain_extract.cjs +0 -1
- package/retrievers/document_compressors/chain_extract.d.cts +0 -1
- package/retrievers/document_compressors/chain_extract.d.ts +0 -1
- package/retrievers/document_compressors/chain_extract.js +0 -1
- package/retrievers/document_compressors/embeddings_filter.cjs +0 -1
- package/retrievers/document_compressors/embeddings_filter.d.cts +0 -1
- package/retrievers/document_compressors/embeddings_filter.d.ts +0 -1
- package/retrievers/document_compressors/embeddings_filter.js +0 -1
- package/retrievers/document_compressors.cjs +0 -1
- package/retrievers/document_compressors.d.cts +0 -1
- package/retrievers/document_compressors.d.ts +0 -1
- package/retrievers/document_compressors.js +0 -1
- package/retrievers/ensemble.cjs +0 -1
- package/retrievers/ensemble.d.cts +0 -1
- package/retrievers/ensemble.d.ts +0 -1
- package/retrievers/ensemble.js +0 -1
- package/retrievers/hyde.cjs +0 -1
- package/retrievers/hyde.d.cts +0 -1
- package/retrievers/hyde.d.ts +0 -1
- package/retrievers/hyde.js +0 -1
- package/retrievers/matryoshka_retriever.cjs +0 -1
- package/retrievers/matryoshka_retriever.d.cts +0 -1
- package/retrievers/matryoshka_retriever.d.ts +0 -1
- package/retrievers/matryoshka_retriever.js +0 -1
- package/retrievers/multi_query.cjs +0 -1
- package/retrievers/multi_query.d.cts +0 -1
- package/retrievers/multi_query.d.ts +0 -1
- package/retrievers/multi_query.js +0 -1
- package/retrievers/multi_vector.cjs +0 -1
- package/retrievers/multi_vector.d.cts +0 -1
- package/retrievers/multi_vector.d.ts +0 -1
- package/retrievers/multi_vector.js +0 -1
- package/retrievers/parent_document.cjs +0 -1
- package/retrievers/parent_document.d.cts +0 -1
- package/retrievers/parent_document.d.ts +0 -1
- package/retrievers/parent_document.js +0 -1
- package/retrievers/score_threshold.cjs +0 -1
- package/retrievers/score_threshold.d.cts +0 -1
- package/retrievers/score_threshold.d.ts +0 -1
- package/retrievers/score_threshold.js +0 -1
- package/retrievers/self_query/functional.cjs +0 -1
- package/retrievers/self_query/functional.d.cts +0 -1
- package/retrievers/self_query/functional.d.ts +0 -1
- package/retrievers/self_query/functional.js +0 -1
- package/retrievers/self_query.cjs +0 -1
- package/retrievers/self_query.d.cts +0 -1
- package/retrievers/self_query.d.ts +0 -1
- package/retrievers/self_query.js +0 -1
- package/retrievers/time_weighted.cjs +0 -1
- package/retrievers/time_weighted.d.cts +0 -1
- package/retrievers/time_weighted.d.ts +0 -1
- package/retrievers/time_weighted.js +0 -1
- package/schema/prompt_template.cjs +0 -1
- package/schema/prompt_template.d.cts +0 -1
- package/schema/prompt_template.d.ts +0 -1
- package/schema/prompt_template.js +0 -1
- package/schema/query_constructor.cjs +0 -1
- package/schema/query_constructor.d.cts +0 -1
- package/schema/query_constructor.d.ts +0 -1
- package/schema/query_constructor.js +0 -1
- package/smith.cjs +0 -1
- package/smith.d.cts +0 -1
- package/smith.d.ts +0 -1
- package/smith.js +0 -1
- package/sql_db.cjs +0 -1
- package/sql_db.d.cts +0 -1
- package/sql_db.d.ts +0 -1
- package/sql_db.js +0 -1
- package/storage/encoder_backed.cjs +0 -1
- package/storage/encoder_backed.d.cts +0 -1
- package/storage/encoder_backed.d.ts +0 -1
- package/storage/encoder_backed.js +0 -1
- package/storage/file_system.cjs +0 -1
- package/storage/file_system.d.cts +0 -1
- package/storage/file_system.d.ts +0 -1
- package/storage/file_system.js +0 -1
- package/storage/in_memory.cjs +0 -1
- package/storage/in_memory.d.cts +0 -1
- package/storage/in_memory.d.ts +0 -1
- package/storage/in_memory.js +0 -1
- package/stores/doc/base.cjs +0 -1
- package/stores/doc/base.d.cts +0 -1
- package/stores/doc/base.d.ts +0 -1
- package/stores/doc/base.js +0 -1
- package/stores/doc/in_memory.cjs +0 -1
- package/stores/doc/in_memory.d.cts +0 -1
- package/stores/doc/in_memory.d.ts +0 -1
- package/stores/doc/in_memory.js +0 -1
- package/stores/file/in_memory.cjs +0 -1
- package/stores/file/in_memory.d.cts +0 -1
- package/stores/file/in_memory.d.ts +0 -1
- package/stores/file/in_memory.js +0 -1
- package/stores/file/node.cjs +0 -1
- package/stores/file/node.d.cts +0 -1
- package/stores/file/node.d.ts +0 -1
- package/stores/file/node.js +0 -1
- package/stores/message/in_memory.cjs +0 -1
- package/stores/message/in_memory.d.cts +0 -1
- package/stores/message/in_memory.d.ts +0 -1
- package/stores/message/in_memory.js +0 -1
- package/text_splitter.cjs +0 -1
- package/text_splitter.d.cts +0 -1
- package/text_splitter.d.ts +0 -1
- package/text_splitter.js +0 -1
- package/tools/chain.cjs +0 -1
- package/tools/chain.d.cts +0 -1
- package/tools/chain.d.ts +0 -1
- package/tools/chain.js +0 -1
- package/tools/render.cjs +0 -1
- package/tools/render.d.cts +0 -1
- package/tools/render.d.ts +0 -1
- package/tools/render.js +0 -1
- package/tools/retriever.cjs +0 -1
- package/tools/retriever.d.cts +0 -1
- package/tools/retriever.d.ts +0 -1
- package/tools/retriever.js +0 -1
- package/tools/sql.cjs +0 -1
- package/tools/sql.d.cts +0 -1
- package/tools/sql.d.ts +0 -1
- package/tools/sql.js +0 -1
- package/tools/webbrowser.cjs +0 -1
- package/tools/webbrowser.d.cts +0 -1
- package/tools/webbrowser.d.ts +0 -1
- package/tools/webbrowser.js +0 -1
- package/tools.cjs +0 -1
- package/tools.d.cts +0 -1
- package/tools.d.ts +0 -1
- package/tools.js +0 -1
- package/util/document.cjs +0 -1
- package/util/document.d.cts +0 -1
- package/util/document.d.ts +0 -1
- package/util/document.js +0 -1
- package/util/math.cjs +0 -1
- package/util/math.d.cts +0 -1
- package/util/math.d.ts +0 -1
- package/util/math.js +0 -1
- package/util/time.cjs +0 -1
- package/util/time.d.cts +0 -1
- package/util/time.d.ts +0 -1
- package/util/time.js +0 -1
- package/vectorstores/memory.cjs +0 -1
- package/vectorstores/memory.d.cts +0 -1
- package/vectorstores/memory.d.ts +0 -1
- package/vectorstores/memory.js +0 -1
|
@@ -9,12 +9,11 @@ import { BaseLLMOutputParser } from "@langchain/core/output_parsers";
|
|
|
9
9
|
type ParsedToolCall = {
|
|
10
10
|
id?: string;
|
|
11
11
|
type: string;
|
|
12
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
13
12
|
args: Record<string, any>;
|
|
14
13
|
/** @deprecated Use `type` instead. Will be removed in 0.2.0. */
|
|
15
14
|
name: string;
|
|
16
15
|
/** @deprecated Use `args` instead. Will be removed in 0.2.0. */
|
|
17
|
-
arguments: Record<string, any>;
|
|
16
|
+
arguments: Record<string, any>;
|
|
18
17
|
};
|
|
19
18
|
/**
|
|
20
19
|
* @deprecated Import from "@langchain/core/output_parsers/openai_tools"
|
|
@@ -49,7 +48,6 @@ type JsonOutputKeyToolsParserParams = {
|
|
|
49
48
|
/**
|
|
50
49
|
* @deprecated Import from "@langchain/core/output_parsers/openai_tools"
|
|
51
50
|
*/
|
|
52
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
53
51
|
declare class JsonOutputKeyToolsParser extends BaseLLMOutputParser<any> {
|
|
54
52
|
static lc_name(): string;
|
|
55
53
|
lc_namespace: string[];
|
|
@@ -61,7 +59,6 @@ declare class JsonOutputKeyToolsParser extends BaseLLMOutputParser<any> {
|
|
|
61
59
|
returnSingle: boolean;
|
|
62
60
|
initialParser: JsonOutputToolsParser;
|
|
63
61
|
constructor(params: JsonOutputKeyToolsParserParams);
|
|
64
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
65
62
|
parseResult(generations: ChatGeneration[]): Promise<any>;
|
|
66
63
|
}
|
|
67
64
|
//#endregion
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"openai_tools.d.cts","names":["BaseLLMOutputParser","ChatGeneration","ParsedToolCall","Record","JsonOutputToolsParserParams","JsonOutputToolsParser","Promise","JsonOutputKeyToolsParserParams","JsonOutputKeyToolsParser"],"sources":["../../src/output_parsers/openai_tools.d.ts"],"sourcesContent":["import { BaseLLMOutputParser } from \"@langchain/core/output_parsers\";\nimport type { ChatGeneration } from \"@langchain/core/outputs\";\n/**\n * @deprecated Import from \"@langchain/core/output_parsers/openai_tools\"\n */\nexport type ParsedToolCall = {\n id?: string;\n type: string;\n args: Record<string, any>;\n /** @deprecated Use `type` instead. Will be removed in 0.2.0. */\n name: string;\n /** @deprecated Use `args` instead. Will be removed in 0.2.0. */\n arguments: Record<string, any>;\n};\n/**\n * @deprecated Import from \"@langchain/core/output_parsers/openai_tools\"\n */\nexport type JsonOutputToolsParserParams = {\n /** Whether to return the tool call id. */\n returnId?: boolean;\n};\n/**\n * @deprecated Import from \"@langchain/core/output_parsers/openai_tools\"\n */\nexport declare class JsonOutputToolsParser extends BaseLLMOutputParser<ParsedToolCall[]> {\n static lc_name(): string;\n returnId: boolean;\n lc_namespace: string[];\n lc_serializable: boolean;\n constructor(fields?: JsonOutputToolsParserParams);\n /**\n * Parses the output and returns a JSON object. If `argsOnly` is true,\n * only the arguments of the function call are returned.\n * @param generations The output of the LLM to parse.\n * @returns A JSON object representation of the function call or its arguments.\n */\n parseResult(generations: ChatGeneration[]): Promise<ParsedToolCall[]>;\n}\nexport type JsonOutputKeyToolsParserParams = {\n keyName: string;\n returnSingle?: boolean;\n /** Whether to return the tool call id. */\n returnId?: boolean;\n};\n/**\n * @deprecated Import from \"@langchain/core/output_parsers/openai_tools\"\n */\nexport declare class JsonOutputKeyToolsParser extends BaseLLMOutputParser<any> {\n static lc_name(): string;\n lc_namespace: string[];\n lc_serializable: boolean;\n returnId: boolean;\n /** The type of tool calls to return. */\n keyName: string;\n /** Whether to return only the first tool call. */\n returnSingle: boolean;\n initialParser: JsonOutputToolsParser;\n constructor(params: JsonOutputKeyToolsParserParams);\n parseResult(generations: ChatGeneration[]): Promise<any>;\n}\n//# sourceMappingURL=openai_tools.d.ts.map"],"mappings":";;;;;;;AAKA;AAYYI,KAZAF,cAAAA,GAYAE;EAOSC,EAAAA,CAAAA,EAAAA,MAAAA;EAAkDH,IAAAA,EAAAA,MAAAA;EAK9CE,IAAAA,EArBfD,MAqBeC,CAAAA,MAAAA,EAAAA,GAAAA,CAAAA;EAOIH;EAA2BC,IAAAA,EAAAA,MAAAA;EAARI;EAZGN,SAAAA,EAZpCG,MAYoCH,CAAAA,MAAAA,EAAAA,GAAAA,CAAAA;AAAmB,CAAA;AActE;AASA;;AAUwBO,KAxCZH,2BAAAA,GAwCYG;EACKN;EAAmBK,QAAAA,CAAAA,EAAAA,OAAAA;CAXMN;AAAmB;;;cAvBpDK,qBAAAA,SAA8BL,oBAAoBE;;;;;uBAK9CE;;;;;;;2BAOIH,mBAAmBK,QAAQJ;;KAE5CK,8BAAAA;;;;;;;;;cASSC,wBAAAA,SAAiCR;;;;;;;;;iBASnCK;sBACKE;2BACKN,mBAAmBK"}
|
|
@@ -9,12 +9,11 @@ import { BaseLLMOutputParser } from "@langchain/core/output_parsers";
|
|
|
9
9
|
type ParsedToolCall = {
|
|
10
10
|
id?: string;
|
|
11
11
|
type: string;
|
|
12
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
13
12
|
args: Record<string, any>;
|
|
14
13
|
/** @deprecated Use `type` instead. Will be removed in 0.2.0. */
|
|
15
14
|
name: string;
|
|
16
15
|
/** @deprecated Use `args` instead. Will be removed in 0.2.0. */
|
|
17
|
-
arguments: Record<string, any>;
|
|
16
|
+
arguments: Record<string, any>;
|
|
18
17
|
};
|
|
19
18
|
/**
|
|
20
19
|
* @deprecated Import from "@langchain/core/output_parsers/openai_tools"
|
|
@@ -49,7 +48,6 @@ type JsonOutputKeyToolsParserParams = {
|
|
|
49
48
|
/**
|
|
50
49
|
* @deprecated Import from "@langchain/core/output_parsers/openai_tools"
|
|
51
50
|
*/
|
|
52
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
53
51
|
declare class JsonOutputKeyToolsParser extends BaseLLMOutputParser<any> {
|
|
54
52
|
static lc_name(): string;
|
|
55
53
|
lc_namespace: string[];
|
|
@@ -61,7 +59,6 @@ declare class JsonOutputKeyToolsParser extends BaseLLMOutputParser<any> {
|
|
|
61
59
|
returnSingle: boolean;
|
|
62
60
|
initialParser: JsonOutputToolsParser;
|
|
63
61
|
constructor(params: JsonOutputKeyToolsParserParams);
|
|
64
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
65
62
|
parseResult(generations: ChatGeneration[]): Promise<any>;
|
|
66
63
|
}
|
|
67
64
|
//#endregion
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"openai_tools.d.ts","names":["BaseLLMOutputParser","ChatGeneration","ParsedToolCall","Record","JsonOutputToolsParserParams","JsonOutputToolsParser","Promise","JsonOutputKeyToolsParserParams","JsonOutputKeyToolsParser"],"sources":["../../src/output_parsers/openai_tools.d.ts"],"sourcesContent":["import { BaseLLMOutputParser } from \"@langchain/core/output_parsers\";\nimport type { ChatGeneration } from \"@langchain/core/outputs\";\n/**\n * @deprecated Import from \"@langchain/core/output_parsers/openai_tools\"\n */\nexport type ParsedToolCall = {\n id?: string;\n type: string;\n args: Record<string, any>;\n /** @deprecated Use `type` instead. Will be removed in 0.2.0. */\n name: string;\n /** @deprecated Use `args` instead. Will be removed in 0.2.0. */\n arguments: Record<string, any>;\n};\n/**\n * @deprecated Import from \"@langchain/core/output_parsers/openai_tools\"\n */\nexport type JsonOutputToolsParserParams = {\n /** Whether to return the tool call id. */\n returnId?: boolean;\n};\n/**\n * @deprecated Import from \"@langchain/core/output_parsers/openai_tools\"\n */\nexport declare class JsonOutputToolsParser extends BaseLLMOutputParser<ParsedToolCall[]> {\n static lc_name(): string;\n returnId: boolean;\n lc_namespace: string[];\n lc_serializable: boolean;\n constructor(fields?: JsonOutputToolsParserParams);\n /**\n * Parses the output and returns a JSON object. If `argsOnly` is true,\n * only the arguments of the function call are returned.\n * @param generations The output of the LLM to parse.\n * @returns A JSON object representation of the function call or its arguments.\n */\n parseResult(generations: ChatGeneration[]): Promise<ParsedToolCall[]>;\n}\nexport type JsonOutputKeyToolsParserParams = {\n keyName: string;\n returnSingle?: boolean;\n /** Whether to return the tool call id. */\n returnId?: boolean;\n};\n/**\n * @deprecated Import from \"@langchain/core/output_parsers/openai_tools\"\n */\nexport declare class JsonOutputKeyToolsParser extends BaseLLMOutputParser<any> {\n static lc_name(): string;\n lc_namespace: string[];\n lc_serializable: boolean;\n returnId: boolean;\n /** The type of tool calls to return. */\n keyName: string;\n /** Whether to return only the first tool call. */\n returnSingle: boolean;\n initialParser: JsonOutputToolsParser;\n constructor(params: JsonOutputKeyToolsParserParams);\n parseResult(generations: ChatGeneration[]): Promise<any>;\n}\n//# sourceMappingURL=openai_tools.d.ts.map"],"mappings":";;;;;;;AAKA;AAYYI,KAZAF,cAAAA,GAYAE;EAOSC,EAAAA,CAAAA,EAAAA,MAAAA;EAAkDH,IAAAA,EAAAA,MAAAA;EAK9CE,IAAAA,EArBfD,MAqBeC,CAAAA,MAAAA,EAAAA,GAAAA,CAAAA;EAOIH;EAA2BC,IAAAA,EAAAA,MAAAA;EAARI;EAZGN,SAAAA,EAZpCG,MAYoCH,CAAAA,MAAAA,EAAAA,GAAAA,CAAAA;AAAmB,CAAA;AActE;AASA;;AAUwBO,KAxCZH,2BAAAA,GAwCYG;EACKN;EAAmBK,QAAAA,CAAAA,EAAAA,OAAAA;CAXMN;AAAmB;;;cAvBpDK,qBAAAA,SAA8BL,oBAAoBE;;;;;uBAK9CE;;;;;;;2BAOIH,mBAAmBK,QAAQJ;;KAE5CK,8BAAAA;;;;;;;;;cASSC,wBAAAA,SAAiCR;;;;;;;;;iBASnCK;sBACKE;2BACKN,mBAAmBK"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"regex.d.cts","names":["BaseOutputParser","SerializedFields","RegExpFields","RegexParserFields","RegExp","RegexParser","Record","Promise"],"sources":["../../src/output_parsers/regex.d.ts"],"sourcesContent":["import { BaseOutputParser } from \"@langchain/core/output_parsers\";\nimport type { SerializedFields } from \"../load/map_keys.js\";\nexport interface RegExpFields {\n pattern: string;\n flags?: string;\n}\n/**\n * Interface for the fields required to create a RegexParser instance.\n */\nexport interface RegexParserFields {\n regex: string | RegExp | RegExpFields;\n outputKeys: string[];\n defaultOutputKey?: string;\n}\n/**\n * Class to parse the output of an LLM call into a dictionary.\n * @augments BaseOutputParser\n */\nexport declare class RegexParser extends BaseOutputParser<Record<string, string>> {\n static lc_name(): string;\n lc_namespace: string[];\n lc_serializable: boolean;\n get lc_attributes(): SerializedFields | undefined;\n regex: string | RegExp;\n outputKeys: string[];\n defaultOutputKey?: string;\n constructor(fields: RegexParserFields);\n constructor(regex: string | RegExp, outputKeys: string[], defaultOutputKey?: string);\n _type(): string;\n /**\n * Parses the given text using the regex pattern and returns a dictionary\n * with the parsed output. If the regex pattern does not match the text\n * and no defaultOutputKey is provided, throws an OutputParserException.\n * @param text The text to be parsed.\n * @returns A dictionary with the parsed output.\n */\n parse(text: string): Promise<Record<string, string>>;\n /**\n * Returns a string with instructions on how the LLM output should be\n * formatted to match the regex pattern.\n * @returns A string with formatting instructions.\n */\n getFormatInstructions(): string;\n}\n//# sourceMappingURL=regex.d.ts.map"],"mappings":";;;;UAEiBE,YAAAA;;EAAAA,KAAAA,CAAAA,EAAAA,MAAAA;AAOjB;AASA;;;AAKoBE,UAdHD,iBAAAA,CAcGC;EAGID,KAAAA,EAAAA,MAAAA,GAhBJC,MAgBID,GAhBKD,YAgBLC;EACQC,UAAAA,EAAAA,MAAAA,EAAAA;EASCE,gBAAAA,CAAAA,EAAAA,MAAAA;;;AAlBwB;;;cAApCD,WAAAA,SAAoBL,iBAAiBM;;;;uBAIjCL;kBACLG;;;sBAGID;8BACQC;;;;;;;;;uBASPG,QAAQD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"regex.d.ts","names":["BaseOutputParser","SerializedFields","RegExpFields","RegexParserFields","RegExp","RegexParser","Record","Promise"],"sources":["../../src/output_parsers/regex.d.ts"],"sourcesContent":["import { BaseOutputParser } from \"@langchain/core/output_parsers\";\nimport type { SerializedFields } from \"../load/map_keys.js\";\nexport interface RegExpFields {\n pattern: string;\n flags?: string;\n}\n/**\n * Interface for the fields required to create a RegexParser instance.\n */\nexport interface RegexParserFields {\n regex: string | RegExp | RegExpFields;\n outputKeys: string[];\n defaultOutputKey?: string;\n}\n/**\n * Class to parse the output of an LLM call into a dictionary.\n * @augments BaseOutputParser\n */\nexport declare class RegexParser extends BaseOutputParser<Record<string, string>> {\n static lc_name(): string;\n lc_namespace: string[];\n lc_serializable: boolean;\n get lc_attributes(): SerializedFields | undefined;\n regex: string | RegExp;\n outputKeys: string[];\n defaultOutputKey?: string;\n constructor(fields: RegexParserFields);\n constructor(regex: string | RegExp, outputKeys: string[], defaultOutputKey?: string);\n _type(): string;\n /**\n * Parses the given text using the regex pattern and returns a dictionary\n * with the parsed output. If the regex pattern does not match the text\n * and no defaultOutputKey is provided, throws an OutputParserException.\n * @param text The text to be parsed.\n * @returns A dictionary with the parsed output.\n */\n parse(text: string): Promise<Record<string, string>>;\n /**\n * Returns a string with instructions on how the LLM output should be\n * formatted to match the regex pattern.\n * @returns A string with formatting instructions.\n */\n getFormatInstructions(): string;\n}\n//# sourceMappingURL=regex.d.ts.map"],"mappings":";;;;UAEiBE,YAAAA;;EAAAA,KAAAA,CAAAA,EAAAA,MAAAA;AAOjB;AASA;;;AAKoBE,UAdHD,iBAAAA,CAcGC;EAGID,KAAAA,EAAAA,MAAAA,GAhBJC,MAgBID,GAhBKD,YAgBLC;EACQC,UAAAA,EAAAA,MAAAA,EAAAA;EASCE,gBAAAA,CAAAA,EAAAA,MAAAA;;;AAlBwB;;;cAApCD,WAAAA,SAAoBL,iBAAiBM;;;;uBAIjCL;kBACLG;;;sBAGID;8BACQC;;;;;;;;;uBASPG,QAAQD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"router.d.cts","names":["InferInteropZodOutput","InteropZodType","JsonMarkdownStructuredOutputParser","RouterOutputParserInput","RouterOutputParser","Y","Promise"],"sources":["../../src/output_parsers/router.d.ts"],"sourcesContent":["import { type InferInteropZodOutput, type InteropZodType } from \"@langchain/core/utils/types\";\nimport { JsonMarkdownStructuredOutputParser } from \"./structured.js\";\n/**\n * Defines the input parameters for the RouterOutputParser class. It can\n * include a default destination and an interpolation depth.\n */\nexport type RouterOutputParserInput = {\n defaultDestination?: string;\n interpolationDepth?: number;\n};\n/**\n * A type of output parser that extends the\n * JsonMarkdownStructuredOutputParser. It is used to parse the output of a\n * router in LangChain. The class takes a schema and an optional\n * RouterOutputParserInput object as parameters.\n */\nexport declare class RouterOutputParser<Y extends InteropZodType> extends JsonMarkdownStructuredOutputParser<Y> {\n defaultDestination: string;\n constructor(schema: Y, options?: RouterOutputParserInput);\n /**\n * Overrides the parse method from JsonMarkdownStructuredOutputParser.\n * This method takes a string as input, attempts to parse it, and returns\n * the parsed text. If the destination of the parsed text matches the\n * defaultDestination, the destination is set to null. If the parsing\n * fails, an OutputParserException is thrown.\n * @param text The text to be parsed.\n * @returns The parsed text as a Promise.\n */\n parse(text: string): Promise<InferInteropZodOutput<Y>>;\n}\n//# sourceMappingURL=router.d.ts.map"],"mappings":";;;;;;;AAMA;AAUA;AAAkDC,KAVtCE,uBAAAA,GAUsCF;EAA2DI,kBAAAA,CAAAA,EAAAA,MAAAA;EAErFA,kBAAAA,CAAAA,EAAAA,MAAAA;CAAaF;;;;;AAFuE;;cAAvFC,6BAA6BH,wBAAwBC,mCAAmCG;;sBAErFA,aAAaF;;;;;;;;;;uBAUZG,QAAQN,sBAAsBK"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"router.d.ts","names":["InferInteropZodOutput","InteropZodType","JsonMarkdownStructuredOutputParser","RouterOutputParserInput","RouterOutputParser","Y","Promise"],"sources":["../../src/output_parsers/router.d.ts"],"sourcesContent":["import { type InferInteropZodOutput, type InteropZodType } from \"@langchain/core/utils/types\";\nimport { JsonMarkdownStructuredOutputParser } from \"./structured.js\";\n/**\n * Defines the input parameters for the RouterOutputParser class. It can\n * include a default destination and an interpolation depth.\n */\nexport type RouterOutputParserInput = {\n defaultDestination?: string;\n interpolationDepth?: number;\n};\n/**\n * A type of output parser that extends the\n * JsonMarkdownStructuredOutputParser. It is used to parse the output of a\n * router in LangChain. The class takes a schema and an optional\n * RouterOutputParserInput object as parameters.\n */\nexport declare class RouterOutputParser<Y extends InteropZodType> extends JsonMarkdownStructuredOutputParser<Y> {\n defaultDestination: string;\n constructor(schema: Y, options?: RouterOutputParserInput);\n /**\n * Overrides the parse method from JsonMarkdownStructuredOutputParser.\n * This method takes a string as input, attempts to parse it, and returns\n * the parsed text. If the destination of the parsed text matches the\n * defaultDestination, the destination is set to null. If the parsing\n * fails, an OutputParserException is thrown.\n * @param text The text to be parsed.\n * @returns The parsed text as a Promise.\n */\n parse(text: string): Promise<InferInteropZodOutput<Y>>;\n}\n//# sourceMappingURL=router.d.ts.map"],"mappings":";;;;;;;AAMA;AAUA;AAAkDC,KAVtCE,uBAAAA,GAUsCF;EAA2DI,kBAAAA,CAAAA,EAAAA,MAAAA;EAErFA,kBAAAA,CAAAA,EAAAA,MAAAA;CAAaF;;;;;AAFuE;;cAAvFC,6BAA6BH,wBAAwBC,mCAAmCG;;sBAErFA,aAAaF;;;;;;;;;;uBAUZG,QAAQN,sBAAsBK"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { serializable_d_exports } from "../load/serializable.cjs";
|
|
2
1
|
import { BaseOutputParser, FormatInstructionsOptions } from "@langchain/core/output_parsers";
|
|
3
2
|
import { InferInteropZodOutput, InteropZodType } from "@langchain/core/utils/types";
|
|
3
|
+
import * as _langchain_core_load_serializable0 from "@langchain/core/load/serializable";
|
|
4
4
|
import { z } from "zod/v3";
|
|
5
5
|
|
|
6
6
|
//#region src/output_parsers/structured.d.ts
|
|
@@ -14,7 +14,7 @@ declare class StructuredOutputParser<T extends InteropZodType> extends BaseOutpu
|
|
|
14
14
|
schema: T;
|
|
15
15
|
static lc_name(): string;
|
|
16
16
|
lc_namespace: string[];
|
|
17
|
-
toJSON():
|
|
17
|
+
toJSON(): _langchain_core_load_serializable0.SerializedNotImplemented;
|
|
18
18
|
constructor(schema: T);
|
|
19
19
|
/**
|
|
20
20
|
* Creates a new StructuredOutputParser from a Zod schema.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"structured.d.cts","names":["z","BaseOutputParser","FormatInstructionsOptions","InferInteropZodOutput","InteropZodType","JsonMarkdownStructuredOutputParserInput","JsonMarkdownFormatInstructionsOptions","StructuredOutputParser","T","S","_langchain_core_load_serializable0","SerializedNotImplemented","ZodString","ZodTypeAny","ZodObject","Promise","JsonMarkdownStructuredOutputParser","AsymmetricStructuredOutputParserFields","AsymmetricStructuredOutputParser","Y","inputSchema"],"sources":["../../src/output_parsers/structured.d.ts"],"sourcesContent":["import { z } from \"zod/v3\";\nimport { BaseOutputParser, FormatInstructionsOptions } from \"@langchain/core/output_parsers\";\nimport { type InferInteropZodOutput, type InteropZodType } from \"@langchain/core/utils/types\";\nexport type JsonMarkdownStructuredOutputParserInput = {\n interpolationDepth?: number;\n};\nexport interface JsonMarkdownFormatInstructionsOptions extends FormatInstructionsOptions {\n interpolationDepth?: number;\n}\nexport declare class StructuredOutputParser<T extends InteropZodType> extends BaseOutputParser<InferInteropZodOutput<T>> {\n schema: T;\n static lc_name(): string;\n lc_namespace: string[];\n toJSON(): import(\"@langchain/core/load/serializable\").SerializedNotImplemented;\n constructor(schema: T);\n /**\n * Creates a new StructuredOutputParser from a Zod schema.\n * @param schema The Zod schema which the output should match\n * @returns A new instance of StructuredOutputParser.\n */\n static fromZodSchema<T extends InteropZodType>(schema: T): StructuredOutputParser<T>;\n /**\n * Creates a new StructuredOutputParser from a set of names and\n * descriptions.\n * @param schemas An object where each key is a name and each value is a description\n * @returns A new instance of StructuredOutputParser.\n */\n static fromNamesAndDescriptions<S extends {\n [key: string]: string;\n }>(schemas: S): StructuredOutputParser<z.ZodObject<{\n [k: string]: z.ZodString;\n }, \"strip\", z.ZodTypeAny, {\n [x: string]: string;\n }, {\n [x: string]: string;\n }>>;\n /**\n * Returns a markdown code snippet with a JSON object formatted according\n * to the schema.\n * @param options Optional. The options for formatting the instructions\n * @returns A markdown code snippet with a JSON object formatted according to the schema.\n */\n getFormatInstructions(): string;\n /**\n * Parses the given text according to the schema.\n * @param text The text to parse\n * @returns The parsed output.\n */\n parse(text: string): Promise<InferInteropZodOutput<T>>;\n}\n/**\n * A specific type of `StructuredOutputParser` that parses JSON data\n * formatted as a markdown code snippet.\n */\nexport declare class JsonMarkdownStructuredOutputParser<T extends InteropZodType> extends StructuredOutputParser<T> {\n static lc_name(): string;\n getFormatInstructions(options?: JsonMarkdownFormatInstructionsOptions): string;\n private _schemaToInstruction;\n static fromZodSchema<T extends InteropZodType>(schema: T): JsonMarkdownStructuredOutputParser<T>;\n static fromNamesAndDescriptions<S extends {\n [key: string]: string;\n }>(schemas: S): JsonMarkdownStructuredOutputParser<z.ZodObject<{\n [k: string]: z.ZodString;\n }, \"strip\", z.ZodTypeAny, {\n [x: string]: string;\n }, {\n [x: string]: string;\n }>>;\n}\nexport interface AsymmetricStructuredOutputParserFields<T extends InteropZodType> {\n inputSchema: T;\n}\n/**\n * A type of `StructuredOutputParser` that handles asymmetric input and\n * output schemas.\n */\nexport declare abstract class AsymmetricStructuredOutputParser<T extends InteropZodType, Y = unknown> extends BaseOutputParser<Y> {\n private structuredInputParser;\n constructor({ inputSchema }: AsymmetricStructuredOutputParserFields<T>);\n /**\n * Processes the parsed input into the desired output format. Must be\n * implemented by subclasses.\n * @param input The parsed input\n * @returns The processed output.\n */\n abstract outputProcessor(input: InferInteropZodOutput<T>): Promise<Y>;\n parse(text: string): Promise<Y>;\n getFormatInstructions(): string;\n}\n//# sourceMappingURL=structured.d.ts.map"],"mappings":";;;;;;KAGYK,uCAAAA;;;AAAAA,UAGKC,qCAAAA,SAA8CJ,yBAHZ,CAAA;EAGlCI,kBAAAA,CAAAA,EAAAA,MAAAA;AAGjB;AAAsDF,cAAjCG,sBAAiCH,CAAAA,UAAAA,cAAAA,CAAAA,SAAwBH,gBAAxBG,CAAyCD,qBAAzCC,CAA+DI,CAA/DJ,CAAAA,CAAAA,CAAAA;EAA+DI,MAAAA,EACzGA,CADyGA;EAAtBL,OAAAA,OAAAA,CAAAA,CAAAA,EAAAA,MAAAA;EACnFK,YAAAA,EAAAA,MAAAA,EAAAA;EAACE,MAAAA,CAAAA,CAAAA,EAAAA,kCAAAA,CAG6CC,wBAAAA;EAClCH,WAAAA,CAAAA,MAAAA,EAAAA,CAAAA;EAMWJ;;;;;EAUZQ,OAAAA,aAAAA,CAAAA,UAVYR,cAUZQ,CAAAA,CAAAA,MAAAA,EAVoCJ,CAUpCI,CAAAA,EAVwCL,sBAUxCK,CAV+DJ,CAU/DI,CAAAA;EACLC;;;;;;EAtB4DZ,OAAAA,wBAAAA,CAAAA,UAAAA;IAAgB,CAAA,GAAA,EAAA,MAAA,CAAA,EAAA,MAAA;EA6CzEe,CAAAA,CAAAA,CAAAA,OAAAA,EAzBLP,CAyBKO,CAAAA,EAzBDT,sBAyBmC,CAzBZP,CAAAA,CAAEc,SAyBUL,CAAAA;IAAWL,CAAAA,CAAAA,EAAAA,MAAAA,CAAAA,EAxB7CJ,CAAAA,CAAEY,SAwB2CR;EAA+CI,CAAAA,EAAAA,OAAAA,EAvBjGR,CAAAA,CAAEa,UAuB+FL,EAAAA;IAE7EF,CAAAA,CAAAA,EAAAA,MAAAA,CAAAA,EAAAA,MAAAA;EAEDF,CAAAA,EAAAA;IAAwBI,CAAAA,CAAAA,EAAAA,MAAAA,CAAAA,EAAAA,MAAAA;EAAuCA,CAAAA,CAAAA,CAAAA;EAAnCQ;;;;;;EAJ2BT,qBAAAA,CAAAA,CAAAA,EAAAA,MAAAA;EAAsB;AAehH;AAOA;;;EAEkBa,KAAAA,CAAAA,IAAAA,EAAAA,MAAAA,CAAAA,EA9BOL,OA8BPK,CA9BejB,qBA8BfiB,CA9BqCZ,CA8BrCY,CAAAA,CAAAA;;;;;;AAO6CL,cA/B1CC,kCA+B0CD,CAAAA,UA/BGX,cA+BHW,CAAAA,SA/B2BR,sBA+B3BQ,CA/BkDP,CA+BlDO,CAAAA,CAAAA;EAC9BI,OAAAA,OAAAA,CAAAA,CAAAA,EAAAA,MAAAA;EAARJ,qBAAAA,CAAAA,OAAAA,CAAAA,EA9BWT,qCA8BXS,CAAAA,EAAAA,MAAAA;EAVqFd,QAAAA,oBAAAA;EAAgB,OAAA,aAAA,CAAA,UAlB3FG,cAkB2F,CAAA,CAAA,MAAA,EAlBnEI,CAkBmE,CAAA,EAlB/DQ,kCAkB+D,CAlB5BR,CAkB4B,CAAA;;;cAf9GC,IAAIO,mCAAmChB,CAAAA,CAAEc;iBACpCd,CAAAA,CAAEY;cACPZ,CAAAA,CAAEa;;;;;;UAMDI,iDAAiDb;eACjDI;;;;;;uBAMaU,2CAA2Cd,qCAAqCH,iBAAiBkB;;;;KAE9FF,uCAAuCT;;;;;;;kCAOpCL,sBAAsBK,KAAKO,QAAQI;uBAC9CJ,QAAQI"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as _langchain_core_load_serializable0 from "@langchain/core/load/serializable";
|
|
2
2
|
import { BaseOutputParser, FormatInstructionsOptions } from "@langchain/core/output_parsers";
|
|
3
3
|
import { InferInteropZodOutput, InteropZodType } from "@langchain/core/utils/types";
|
|
4
4
|
import { z } from "zod/v3";
|
|
@@ -14,7 +14,7 @@ declare class StructuredOutputParser<T extends InteropZodType> extends BaseOutpu
|
|
|
14
14
|
schema: T;
|
|
15
15
|
static lc_name(): string;
|
|
16
16
|
lc_namespace: string[];
|
|
17
|
-
toJSON():
|
|
17
|
+
toJSON(): _langchain_core_load_serializable0.SerializedNotImplemented;
|
|
18
18
|
constructor(schema: T);
|
|
19
19
|
/**
|
|
20
20
|
* Creates a new StructuredOutputParser from a Zod schema.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"structured.d.ts","names":["z","BaseOutputParser","FormatInstructionsOptions","InferInteropZodOutput","InteropZodType","JsonMarkdownStructuredOutputParserInput","JsonMarkdownFormatInstructionsOptions","StructuredOutputParser","T","S","_langchain_core_load_serializable0","SerializedNotImplemented","ZodString","ZodTypeAny","ZodObject","Promise","JsonMarkdownStructuredOutputParser","AsymmetricStructuredOutputParserFields","AsymmetricStructuredOutputParser","Y","inputSchema"],"sources":["../../src/output_parsers/structured.d.ts"],"sourcesContent":["import { z } from \"zod/v3\";\nimport { BaseOutputParser, FormatInstructionsOptions } from \"@langchain/core/output_parsers\";\nimport { type InferInteropZodOutput, type InteropZodType } from \"@langchain/core/utils/types\";\nexport type JsonMarkdownStructuredOutputParserInput = {\n interpolationDepth?: number;\n};\nexport interface JsonMarkdownFormatInstructionsOptions extends FormatInstructionsOptions {\n interpolationDepth?: number;\n}\nexport declare class StructuredOutputParser<T extends InteropZodType> extends BaseOutputParser<InferInteropZodOutput<T>> {\n schema: T;\n static lc_name(): string;\n lc_namespace: string[];\n toJSON(): import(\"@langchain/core/load/serializable\").SerializedNotImplemented;\n constructor(schema: T);\n /**\n * Creates a new StructuredOutputParser from a Zod schema.\n * @param schema The Zod schema which the output should match\n * @returns A new instance of StructuredOutputParser.\n */\n static fromZodSchema<T extends InteropZodType>(schema: T): StructuredOutputParser<T>;\n /**\n * Creates a new StructuredOutputParser from a set of names and\n * descriptions.\n * @param schemas An object where each key is a name and each value is a description\n * @returns A new instance of StructuredOutputParser.\n */\n static fromNamesAndDescriptions<S extends {\n [key: string]: string;\n }>(schemas: S): StructuredOutputParser<z.ZodObject<{\n [k: string]: z.ZodString;\n }, \"strip\", z.ZodTypeAny, {\n [x: string]: string;\n }, {\n [x: string]: string;\n }>>;\n /**\n * Returns a markdown code snippet with a JSON object formatted according\n * to the schema.\n * @param options Optional. The options for formatting the instructions\n * @returns A markdown code snippet with a JSON object formatted according to the schema.\n */\n getFormatInstructions(): string;\n /**\n * Parses the given text according to the schema.\n * @param text The text to parse\n * @returns The parsed output.\n */\n parse(text: string): Promise<InferInteropZodOutput<T>>;\n}\n/**\n * A specific type of `StructuredOutputParser` that parses JSON data\n * formatted as a markdown code snippet.\n */\nexport declare class JsonMarkdownStructuredOutputParser<T extends InteropZodType> extends StructuredOutputParser<T> {\n static lc_name(): string;\n getFormatInstructions(options?: JsonMarkdownFormatInstructionsOptions): string;\n private _schemaToInstruction;\n static fromZodSchema<T extends InteropZodType>(schema: T): JsonMarkdownStructuredOutputParser<T>;\n static fromNamesAndDescriptions<S extends {\n [key: string]: string;\n }>(schemas: S): JsonMarkdownStructuredOutputParser<z.ZodObject<{\n [k: string]: z.ZodString;\n }, \"strip\", z.ZodTypeAny, {\n [x: string]: string;\n }, {\n [x: string]: string;\n }>>;\n}\nexport interface AsymmetricStructuredOutputParserFields<T extends InteropZodType> {\n inputSchema: T;\n}\n/**\n * A type of `StructuredOutputParser` that handles asymmetric input and\n * output schemas.\n */\nexport declare abstract class AsymmetricStructuredOutputParser<T extends InteropZodType, Y = unknown> extends BaseOutputParser<Y> {\n private structuredInputParser;\n constructor({ inputSchema }: AsymmetricStructuredOutputParserFields<T>);\n /**\n * Processes the parsed input into the desired output format. Must be\n * implemented by subclasses.\n * @param input The parsed input\n * @returns The processed output.\n */\n abstract outputProcessor(input: InferInteropZodOutput<T>): Promise<Y>;\n parse(text: string): Promise<Y>;\n getFormatInstructions(): string;\n}\n//# sourceMappingURL=structured.d.ts.map"],"mappings":";;;;;;KAGYK,uCAAAA;;;AAAAA,UAGKC,qCAAAA,SAA8CJ,yBAHZ,CAAA;EAGlCI,kBAAAA,CAAAA,EAAAA,MAAAA;AAGjB;AAAsDF,cAAjCG,sBAAiCH,CAAAA,UAAAA,cAAAA,CAAAA,SAAwBH,gBAAxBG,CAAyCD,qBAAzCC,CAA+DI,CAA/DJ,CAAAA,CAAAA,CAAAA;EAA+DI,MAAAA,EACzGA,CADyGA;EAAtBL,OAAAA,OAAAA,CAAAA,CAAAA,EAAAA,MAAAA;EACnFK,YAAAA,EAAAA,MAAAA,EAAAA;EAACE,MAAAA,CAAAA,CAAAA,EAAAA,kCAAAA,CAG6CC,wBAAAA;EAClCH,WAAAA,CAAAA,MAAAA,EAAAA,CAAAA;EAMWJ;;;;;EAUZQ,OAAAA,aAAAA,CAAAA,UAVYR,cAUZQ,CAAAA,CAAAA,MAAAA,EAVoCJ,CAUpCI,CAAAA,EAVwCL,sBAUxCK,CAV+DJ,CAU/DI,CAAAA;EACLC;;;;;;EAtB4DZ,OAAAA,wBAAAA,CAAAA,UAAAA;IAAgB,CAAA,GAAA,EAAA,MAAA,CAAA,EAAA,MAAA;EA6CzEe,CAAAA,CAAAA,CAAAA,OAAAA,EAzBLP,CAyBKO,CAAAA,EAzBDT,sBAyBmC,CAzBZP,CAAAA,CAAEc,SAyBUL,CAAAA;IAAWL,CAAAA,CAAAA,EAAAA,MAAAA,CAAAA,EAxB7CJ,CAAAA,CAAEY,SAwB2CR;EAA+CI,CAAAA,EAAAA,OAAAA,EAvBjGR,CAAAA,CAAEa,UAuB+FL,EAAAA;IAE7EF,CAAAA,CAAAA,EAAAA,MAAAA,CAAAA,EAAAA,MAAAA;EAEDF,CAAAA,EAAAA;IAAwBI,CAAAA,CAAAA,EAAAA,MAAAA,CAAAA,EAAAA,MAAAA;EAAuCA,CAAAA,CAAAA,CAAAA;EAAnCQ;;;;;;EAJ2BT,qBAAAA,CAAAA,CAAAA,EAAAA,MAAAA;EAAsB;AAehH;AAOA;;;EAEkBa,KAAAA,CAAAA,IAAAA,EAAAA,MAAAA,CAAAA,EA9BOL,OA8BPK,CA9BejB,qBA8BfiB,CA9BqCZ,CA8BrCY,CAAAA,CAAAA;;;;;;AAO6CL,cA/B1CC,kCA+B0CD,CAAAA,UA/BGX,cA+BHW,CAAAA,SA/B2BR,sBA+B3BQ,CA/BkDP,CA+BlDO,CAAAA,CAAAA;EAC9BI,OAAAA,OAAAA,CAAAA,CAAAA,EAAAA,MAAAA;EAARJ,qBAAAA,CAAAA,OAAAA,CAAAA,EA9BWT,qCA8BXS,CAAAA,EAAAA,MAAAA;EAVqFd,QAAAA,oBAAAA;EAAgB,OAAA,aAAA,CAAA,UAlB3FG,cAkB2F,CAAA,CAAA,MAAA,EAlBnEI,CAkBmE,CAAA,EAlB/DQ,kCAkB+D,CAlB5BR,CAkB4B,CAAA;;;cAf9GC,IAAIO,mCAAmChB,CAAAA,CAAEc;iBACpCd,CAAAA,CAAEY;cACPZ,CAAAA,CAAEa;;;;;;UAMDI,iDAAiDb;eACjDI;;;;;;uBAMaU,2CAA2Cd,qCAAqCH,iBAAiBkB;;;;KAE9FF,uCAAuCT;;;;;;;kCAOpCL,sBAAsBK,KAAKO,QAAQI;uBAC9CJ,QAAQI"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contextual_compression.d.cts","names":["BaseRetriever","BaseRetrieverInput","BaseRetrieverInterface","DocumentInterface","CallbackManagerForRetrieverRun","BaseDocumentCompressor","ContextualCompressionRetrieverArgs","ContextualCompressionRetriever","Promise"],"sources":["../../src/retrievers/contextual_compression.d.ts"],"sourcesContent":["import { BaseRetriever, type BaseRetrieverInput, type BaseRetrieverInterface } from \"@langchain/core/retrievers\";\nimport type { DocumentInterface } from \"@langchain/core/documents\";\nimport { CallbackManagerForRetrieverRun } from \"@langchain/core/callbacks/manager\";\nimport { BaseDocumentCompressor } from \"./document_compressors/index.js\";\n/**\n * Interface for the arguments required to construct a\n * ContextualCompressionRetriever. It extends the BaseRetrieverInput\n * interface with two additional fields: baseCompressor and baseRetriever.\n */\nexport interface ContextualCompressionRetrieverArgs extends BaseRetrieverInput {\n baseCompressor: BaseDocumentCompressor;\n baseRetriever: BaseRetrieverInterface;\n}\n/**\n * A retriever that wraps a base retriever and compresses the results. It\n * retrieves relevant documents based on a given query and then compresses\n * these documents using a specified document compressor.\n * @example\n * ```typescript\n * const retriever = new ContextualCompressionRetriever({\n * baseCompressor: new LLMChainExtractor(),\n * baseRetriever: new HNSWLib().asRetriever(),\n * });\n * const retrievedDocs = await retriever.invoke(\n * \"What did the speaker say about Justice Breyer?\",\n * );\n * ```\n */\nexport declare class ContextualCompressionRetriever extends BaseRetriever {\n static lc_name(): string;\n lc_namespace: string[];\n baseCompressor: BaseDocumentCompressor;\n baseRetriever: BaseRetrieverInterface;\n constructor(fields: ContextualCompressionRetrieverArgs);\n _getRelevantDocuments(query: string, runManager?: CallbackManagerForRetrieverRun): Promise<DocumentInterface[]>;\n}\n//# sourceMappingURL=contextual_compression.d.ts.map"],"mappings":";;;;;;;;;AASA;;;AAA4DC,UAA3CK,kCAAAA,SAA2CL,kBAAAA,CAAAA;EAAkB,cAAA,EAC1DI,sBAD0D;EAmBzDE,aAAAA,EAjBFL,sBAiBgC;;;;;;;;AAAsB;;;;;;;;;cAApDK,8BAAAA,SAAuCP,aAAAA;;;kBAGxCK;iBACDH;sBACKI;oDAC8BF,iCAAiCI,QAAQL"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contextual_compression.d.ts","names":["BaseRetriever","BaseRetrieverInput","BaseRetrieverInterface","DocumentInterface","CallbackManagerForRetrieverRun","BaseDocumentCompressor","ContextualCompressionRetrieverArgs","ContextualCompressionRetriever","Promise"],"sources":["../../src/retrievers/contextual_compression.d.ts"],"sourcesContent":["import { BaseRetriever, type BaseRetrieverInput, type BaseRetrieverInterface } from \"@langchain/core/retrievers\";\nimport type { DocumentInterface } from \"@langchain/core/documents\";\nimport { CallbackManagerForRetrieverRun } from \"@langchain/core/callbacks/manager\";\nimport { BaseDocumentCompressor } from \"./document_compressors/index.js\";\n/**\n * Interface for the arguments required to construct a\n * ContextualCompressionRetriever. It extends the BaseRetrieverInput\n * interface with two additional fields: baseCompressor and baseRetriever.\n */\nexport interface ContextualCompressionRetrieverArgs extends BaseRetrieverInput {\n baseCompressor: BaseDocumentCompressor;\n baseRetriever: BaseRetrieverInterface;\n}\n/**\n * A retriever that wraps a base retriever and compresses the results. It\n * retrieves relevant documents based on a given query and then compresses\n * these documents using a specified document compressor.\n * @example\n * ```typescript\n * const retriever = new ContextualCompressionRetriever({\n * baseCompressor: new LLMChainExtractor(),\n * baseRetriever: new HNSWLib().asRetriever(),\n * });\n * const retrievedDocs = await retriever.invoke(\n * \"What did the speaker say about Justice Breyer?\",\n * );\n * ```\n */\nexport declare class ContextualCompressionRetriever extends BaseRetriever {\n static lc_name(): string;\n lc_namespace: string[];\n baseCompressor: BaseDocumentCompressor;\n baseRetriever: BaseRetrieverInterface;\n constructor(fields: ContextualCompressionRetrieverArgs);\n _getRelevantDocuments(query: string, runManager?: CallbackManagerForRetrieverRun): Promise<DocumentInterface[]>;\n}\n//# sourceMappingURL=contextual_compression.d.ts.map"],"mappings":";;;;;;;;;AASA;;;AAA4DC,UAA3CK,kCAAAA,SAA2CL,kBAAAA,CAAAA;EAAkB,cAAA,EAC1DI,sBAD0D;EAmBzDE,aAAAA,EAjBFL,sBAiBgC;;;;;;;;AAAsB;;;;;;;;;cAApDK,8BAAAA,SAAuCP,aAAAA;;;kBAGxCK;iBACDH;sBACKI;oDAC8BF,iCAAiCI,QAAQL"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chain_extract.d.cts","names":["BaseLanguageModelInterface","DocumentInterface","PromptTemplate","LLMChain","BaseDocumentCompressor","LLMChainExtractorArgs","Record","LLMChainExtractor","llmChain","getInput","Promise"],"sources":["../../../src/retrievers/document_compressors/chain_extract.d.ts"],"sourcesContent":["import type { BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport { type DocumentInterface } from \"@langchain/core/documents\";\nimport { PromptTemplate } from \"@langchain/core/prompts\";\nimport { LLMChain } from \"../../chains/llm_chain.js\";\nimport { BaseDocumentCompressor } from \"./index.js\";\n/**\n * Interface for the arguments required to create an instance of\n * LLMChainExtractor.\n */\nexport interface LLMChainExtractorArgs {\n llmChain: LLMChain;\n getInput: (query: string, doc: DocumentInterface) => Record<string, unknown>;\n}\n/**\n * A class that uses an LLM chain to extract relevant parts of documents.\n * It extends the BaseDocumentCompressor class.\n */\nexport declare class LLMChainExtractor extends BaseDocumentCompressor {\n llmChain: LLMChain;\n getInput: (query: string, doc: DocumentInterface) => Record<string, unknown>;\n constructor({ llmChain, getInput }: LLMChainExtractorArgs);\n /**\n * Compresses a list of documents based on the output of an LLM chain.\n * @param documents The list of documents to be compressed.\n * @param query The query to be used for document compression.\n * @returns A list of compressed documents.\n */\n compressDocuments(documents: DocumentInterface[], query: string): Promise<DocumentInterface[]>;\n /**\n * Creates a new instance of LLMChainExtractor from a given LLM, prompt\n * template, and getInput function.\n * @param llm The BaseLanguageModel instance used for document extraction.\n * @param prompt The PromptTemplate instance used for document extraction.\n * @param getInput A function used for constructing the chain input from the query and a Document.\n * @returns A new instance of LLMChainExtractor.\n */\n static fromLLM(llm: BaseLanguageModelInterface, prompt?: PromptTemplate, getInput?: (query: string, doc: DocumentInterface) => Record<string, unknown>): LLMChainExtractor;\n}\n//# sourceMappingURL=chain_extract.d.ts.map"],"mappings":";;;;;;;;;;AASA;;AAEmCC,UAFlBI,qBAAAA,CAEkBJ;EAAsBK,QAAAA,EAD3CH,QAC2CG;EAAM,QAAA,EAAA,CAAA,KAAA,EAAA,MAAA,EAAA,GAAA,EAA5BL,iBAA4B,EAAA,GAANK,MAAM,CAAA,MAAA,EAAA,OAAA,CAAA;AAM/D;;;;;AAG4BG,cAHPF,iBAAAA,SAA0BH,sBAAAA,CAGnBK;EAAYJ,QAAAA,EAF1BF,QAE0BE;EAOPJ,QAAAA,EAAAA,CAAAA,KAAAA,EAAAA,MAAAA,EAAAA,GAAAA,EAREA,iBAQFA,EAAAA,GARwBK,MAQxBL,CAAAA,MAAAA,EAAAA,OAAAA,CAAAA;EAA6CA,WAAAA,CAAAA;IAAAA,QAAAA;IAAAA;EAAAA,CAAAA,EAPtCI,qBAOsCJ;EAARS;;;;;;EAVvBN,iBAAAA,CAAAA,SAAAA,EAUdH,iBAVcG,EAAAA,EAAAA,KAAAA,EAAAA,MAAAA,CAAAA,EAUuBM,OAVvBN,CAU+BH,iBAV/BG,EAAAA,CAAAA;EAAsB;;;;;;;;sBAmB7CJ,qCAAqCE,gDAAgDD,sBAAsBK,0BAA0BC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chain_extract.d.ts","names":["BaseLanguageModelInterface","DocumentInterface","PromptTemplate","LLMChain","BaseDocumentCompressor","LLMChainExtractorArgs","Record","LLMChainExtractor","llmChain","getInput","Promise"],"sources":["../../../src/retrievers/document_compressors/chain_extract.d.ts"],"sourcesContent":["import type { BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport { type DocumentInterface } from \"@langchain/core/documents\";\nimport { PromptTemplate } from \"@langchain/core/prompts\";\nimport { LLMChain } from \"../../chains/llm_chain.js\";\nimport { BaseDocumentCompressor } from \"./index.js\";\n/**\n * Interface for the arguments required to create an instance of\n * LLMChainExtractor.\n */\nexport interface LLMChainExtractorArgs {\n llmChain: LLMChain;\n getInput: (query: string, doc: DocumentInterface) => Record<string, unknown>;\n}\n/**\n * A class that uses an LLM chain to extract relevant parts of documents.\n * It extends the BaseDocumentCompressor class.\n */\nexport declare class LLMChainExtractor extends BaseDocumentCompressor {\n llmChain: LLMChain;\n getInput: (query: string, doc: DocumentInterface) => Record<string, unknown>;\n constructor({ llmChain, getInput }: LLMChainExtractorArgs);\n /**\n * Compresses a list of documents based on the output of an LLM chain.\n * @param documents The list of documents to be compressed.\n * @param query The query to be used for document compression.\n * @returns A list of compressed documents.\n */\n compressDocuments(documents: DocumentInterface[], query: string): Promise<DocumentInterface[]>;\n /**\n * Creates a new instance of LLMChainExtractor from a given LLM, prompt\n * template, and getInput function.\n * @param llm The BaseLanguageModel instance used for document extraction.\n * @param prompt The PromptTemplate instance used for document extraction.\n * @param getInput A function used for constructing the chain input from the query and a Document.\n * @returns A new instance of LLMChainExtractor.\n */\n static fromLLM(llm: BaseLanguageModelInterface, prompt?: PromptTemplate, getInput?: (query: string, doc: DocumentInterface) => Record<string, unknown>): LLMChainExtractor;\n}\n//# sourceMappingURL=chain_extract.d.ts.map"],"mappings":";;;;;;;;;;AASA;;AAEmCC,UAFlBI,qBAAAA,CAEkBJ;EAAsBK,QAAAA,EAD3CH,QAC2CG;EAAM,QAAA,EAAA,CAAA,KAAA,EAAA,MAAA,EAAA,GAAA,EAA5BL,iBAA4B,EAAA,GAANK,MAAM,CAAA,MAAA,EAAA,OAAA,CAAA;AAM/D;;;;;AAG4BG,cAHPF,iBAAAA,SAA0BH,sBAAAA,CAGnBK;EAAYJ,QAAAA,EAF1BF,QAE0BE;EAOPJ,QAAAA,EAAAA,CAAAA,KAAAA,EAAAA,MAAAA,EAAAA,GAAAA,EAREA,iBAQFA,EAAAA,GARwBK,MAQxBL,CAAAA,MAAAA,EAAAA,OAAAA,CAAAA;EAA6CA,WAAAA,CAAAA;IAAAA,QAAAA;IAAAA;EAAAA,CAAAA,EAPtCI,qBAOsCJ;EAARS;;;;;;EAVvBN,iBAAAA,CAAAA,SAAAA,EAUdH,iBAVcG,EAAAA,EAAAA,KAAAA,EAAAA,MAAAA,CAAAA,EAUuBM,OAVvBN,CAU+BH,iBAV/BG,EAAAA,CAAAA;EAAsB;;;;;;;;sBAmB7CJ,qCAAqCE,gDAAgDD,sBAAsBK,0BAA0BC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"embeddings_filter.d.cts","names":["EmbeddingsInterface","DocumentInterface","cosineSimilarity","BaseDocumentCompressor","EmbeddingsFilterParams","EmbeddingsFilter","Promise"],"sources":["../../../src/retrievers/document_compressors/embeddings_filter.d.ts"],"sourcesContent":["import type { EmbeddingsInterface } from \"@langchain/core/embeddings\";\nimport type { DocumentInterface } from \"@langchain/core/documents\";\nimport { cosineSimilarity } from \"@langchain/core/utils/math\";\nimport { BaseDocumentCompressor } from \"./index.js\";\n/**\n * Interface for the parameters of the `EmbeddingsFilter` class.\n */\nexport interface EmbeddingsFilterParams {\n embeddings: EmbeddingsInterface;\n similarityFn?: (x: number[][], y: number[][]) => number[][];\n similarityThreshold?: number;\n k?: number;\n}\n/**\n * Class that represents a document compressor that uses embeddings to\n * drop documents unrelated to the query.\n * @example\n * ```typescript\n * const embeddingsFilter = new EmbeddingsFilter({\n * embeddings: new OpenAIEmbeddings(),\n * similarityThreshold: 0.8,\n * k: 5,\n * });\n * const retrievedDocs = await embeddingsFilter.filterDocuments(\n * getDocuments(),\n * \"What did the speaker say about Justice Breyer in the 2022 State of the Union?\",\n * );\n * console.log({ retrievedDocs });\n * ```\n */\nexport declare class EmbeddingsFilter extends BaseDocumentCompressor {\n /**\n * Embeddings to use for embedding document contents and queries.\n */\n embeddings: EmbeddingsInterface;\n /**\n * Similarity function for comparing documents.\n */\n similarityFn: typeof cosineSimilarity;\n /**\n * Threshold for determining when two documents are similar enough\n * to be considered redundant. Must be specified if `k` is not set.\n */\n similarityThreshold?: number;\n /**\n * The number of relevant documents to return. Can be explicitly set to undefined, in which case\n * similarity_threshold` must be specified. Defaults to 20\n */\n k?: number | undefined;\n constructor(params: EmbeddingsFilterParams);\n compressDocuments(documents: DocumentInterface[], query: string): Promise<DocumentInterface[]>;\n}\n//# sourceMappingURL=embeddings_filter.d.ts.map"],"mappings":";;;;;;;;;AAOA;AAuBqBK,UAvBJD,sBAAAA,CAuBoB;EAIrBJ,UAAAA,EA1BAA,mBA0BAA;EAISE,YAAAA,CAAAA,EAAAA,CAAAA,CAAAA,EAAAA,MAAAA,EAAAA,EAAAA,EAAAA,CAAAA,EAAAA,MAAAA,EAAAA,EAAAA,EAAAA,GAAAA,MAAAA,EAAAA,EAAAA;EAWDE,mBAAAA,CAAAA,EAAAA,MAAAA;EACSH,CAAAA,CAAAA,EAAAA,MAAAA;;;;AApBmC;;;;;;;;;;;;;;;cAA/CI,gBAAAA,SAAyBF,sBAAAA;;;;cAI9BH;;;;uBAISE;;;;;;;;;;;sBAWDE;+BACSH,qCAAqCK,QAAQL"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"embeddings_filter.d.ts","names":["EmbeddingsInterface","DocumentInterface","cosineSimilarity","BaseDocumentCompressor","EmbeddingsFilterParams","EmbeddingsFilter","Promise"],"sources":["../../../src/retrievers/document_compressors/embeddings_filter.d.ts"],"sourcesContent":["import type { EmbeddingsInterface } from \"@langchain/core/embeddings\";\nimport type { DocumentInterface } from \"@langchain/core/documents\";\nimport { cosineSimilarity } from \"@langchain/core/utils/math\";\nimport { BaseDocumentCompressor } from \"./index.js\";\n/**\n * Interface for the parameters of the `EmbeddingsFilter` class.\n */\nexport interface EmbeddingsFilterParams {\n embeddings: EmbeddingsInterface;\n similarityFn?: (x: number[][], y: number[][]) => number[][];\n similarityThreshold?: number;\n k?: number;\n}\n/**\n * Class that represents a document compressor that uses embeddings to\n * drop documents unrelated to the query.\n * @example\n * ```typescript\n * const embeddingsFilter = new EmbeddingsFilter({\n * embeddings: new OpenAIEmbeddings(),\n * similarityThreshold: 0.8,\n * k: 5,\n * });\n * const retrievedDocs = await embeddingsFilter.filterDocuments(\n * getDocuments(),\n * \"What did the speaker say about Justice Breyer in the 2022 State of the Union?\",\n * );\n * console.log({ retrievedDocs });\n * ```\n */\nexport declare class EmbeddingsFilter extends BaseDocumentCompressor {\n /**\n * Embeddings to use for embedding document contents and queries.\n */\n embeddings: EmbeddingsInterface;\n /**\n * Similarity function for comparing documents.\n */\n similarityFn: typeof cosineSimilarity;\n /**\n * Threshold for determining when two documents are similar enough\n * to be considered redundant. Must be specified if `k` is not set.\n */\n similarityThreshold?: number;\n /**\n * The number of relevant documents to return. Can be explicitly set to undefined, in which case\n * similarity_threshold` must be specified. Defaults to 20\n */\n k?: number | undefined;\n constructor(params: EmbeddingsFilterParams);\n compressDocuments(documents: DocumentInterface[], query: string): Promise<DocumentInterface[]>;\n}\n//# sourceMappingURL=embeddings_filter.d.ts.map"],"mappings":";;;;;;;;;AAOA;AAuBqBK,UAvBJD,sBAAAA,CAuBoB;EAIrBJ,UAAAA,EA1BAA,mBA0BAA;EAISE,YAAAA,CAAAA,EAAAA,CAAAA,CAAAA,EAAAA,MAAAA,EAAAA,EAAAA,EAAAA,CAAAA,EAAAA,MAAAA,EAAAA,EAAAA,EAAAA,GAAAA,MAAAA,EAAAA,EAAAA;EAWDE,mBAAAA,CAAAA,EAAAA,MAAAA;EACSH,CAAAA,CAAAA,EAAAA,MAAAA;;;;AApBmC;;;;;;;;;;;;;;;cAA/CI,gBAAAA,SAAyBF,sBAAAA;;;;cAI9BH;;;;uBAISE;;;;;;;;;;;sBAWDE;+BACSH,qCAAqCK,QAAQL"}
|
|
@@ -17,7 +17,6 @@ declare abstract class BaseDocumentCompressor {
|
|
|
17
17
|
* @returns A Promise that resolves with an array of compressed `Document` objects.
|
|
18
18
|
*/
|
|
19
19
|
abstract compressDocuments(documents: DocumentInterface[], query: string, callbacks?: Callbacks): Promise<DocumentInterface[]>;
|
|
20
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
21
20
|
static isBaseDocumentCompressor(x: any): x is BaseDocumentCompressor;
|
|
22
21
|
}
|
|
23
22
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":["DocumentInterface","BaseDocumentTransformer","Callbacks","BaseDocumentCompressor","Promise","DocumentCompressorPipeline"],"sources":["../../../src/retrievers/document_compressors/index.d.ts"],"sourcesContent":["import type { DocumentInterface } from \"@langchain/core/documents\";\nimport { BaseDocumentTransformer } from \"@langchain/core/documents\";\nimport { Callbacks } from \"@langchain/core/callbacks/manager\";\n/**\n * Base Document Compression class. All compressors should extend this class.\n */\nexport declare abstract class BaseDocumentCompressor {\n /**\n * Abstract method that must be implemented by any class that extends\n * `BaseDocumentCompressor`. This method takes an array of `Document`\n * objects and a query string as parameters and returns a Promise that\n * resolves with an array of compressed `Document` objects.\n * @param documents An array of `Document` objects to be compressed.\n * @param query A query string.\n * @returns A Promise that resolves with an array of compressed `Document` objects.\n */\n abstract compressDocuments(documents: DocumentInterface[], query: string, callbacks?: Callbacks): Promise<DocumentInterface[]>;\n static isBaseDocumentCompressor(x: any): x is BaseDocumentCompressor;\n}\n/**\n * Document compressor that uses a pipeline of Transformers.\n * @example\n * ```typescript\n * const compressorPipeline = new DocumentCompressorPipeline({\n * transformers: [\n * new RecursiveCharacterTextSplitter({\n * chunkSize: 200,\n * chunkOverlap: 0,\n * }),\n * new EmbeddingsFilter({\n * embeddings: new OpenAIEmbeddings(),\n * similarityThreshold: 0.8,\n * k: 5,\n * }),\n * ],\n * });\n * const retriever = new ContextualCompressionRetriever({\n * baseCompressor: compressorPipeline,\n * baseRetriever: new TavilySearchAPIRetriever({\n * includeRawContent: true,\n * }),\n * });\n * const retrievedDocs = await retriever.invoke(\n * \"What did the speaker say about Justice Breyer in the 2022 State of the Union?\",\n * );\n * console.log({ retrievedDocs });\n * ```\n */\nexport declare class DocumentCompressorPipeline extends BaseDocumentCompressor {\n transformers: (BaseDocumentTransformer | BaseDocumentCompressor)[];\n constructor(fields: {\n transformers: (BaseDocumentTransformer | BaseDocumentCompressor)[];\n });\n compressDocuments(documents: DocumentInterface[], query: string, callbacks?: Callbacks): Promise<DocumentInterface[]>;\n}\n//# sourceMappingURL=index.d.ts.map"],"mappings":";;;;;;AAMA;;AAU0FE,uBAV5DC,sBAAAA,CAU4DD;EAAoBF;;;AACtC;AA+BxE;;;;;EAKiCA,SAAAA,iBAAAA,CAAAA,SAAAA,EArCSA,iBAqCTA,EAAAA,EAAAA,KAAAA,EAAAA,MAAAA,EAAAA,SAAAA,CAAAA,EArCyDE,SAqCzDF,CAAAA,EArCqEI,OAqCrEJ,CArC6EA,iBAqC7EA,EAAAA,CAAAA;EAAgDE,OAAAA,wBAAAA,CAAAA,CAAAA,EAAAA,GAAAA,CAAAA,EAAAA,CAAAA,IApC/BC,sBAoC+BD;;;;AALH;;;;;;;;;;;;;;;;;;;;;;;;;;;cAAzDG,0BAAAA,SAAmCF,sBAAAA;iBACrCF,0BAA0BE;;mBAEtBF,0BAA0BE;;+BAEhBH,gDAAgDE,YAAYE,QAAQJ"}
|
|
@@ -17,7 +17,6 @@ declare abstract class BaseDocumentCompressor {
|
|
|
17
17
|
* @returns A Promise that resolves with an array of compressed `Document` objects.
|
|
18
18
|
*/
|
|
19
19
|
abstract compressDocuments(documents: DocumentInterface[], query: string, callbacks?: Callbacks): Promise<DocumentInterface[]>;
|
|
20
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
21
20
|
static isBaseDocumentCompressor(x: any): x is BaseDocumentCompressor;
|
|
22
21
|
}
|
|
23
22
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":["DocumentInterface","BaseDocumentTransformer","Callbacks","BaseDocumentCompressor","Promise","DocumentCompressorPipeline"],"sources":["../../../src/retrievers/document_compressors/index.d.ts"],"sourcesContent":["import type { DocumentInterface } from \"@langchain/core/documents\";\nimport { BaseDocumentTransformer } from \"@langchain/core/documents\";\nimport { Callbacks } from \"@langchain/core/callbacks/manager\";\n/**\n * Base Document Compression class. All compressors should extend this class.\n */\nexport declare abstract class BaseDocumentCompressor {\n /**\n * Abstract method that must be implemented by any class that extends\n * `BaseDocumentCompressor`. This method takes an array of `Document`\n * objects and a query string as parameters and returns a Promise that\n * resolves with an array of compressed `Document` objects.\n * @param documents An array of `Document` objects to be compressed.\n * @param query A query string.\n * @returns A Promise that resolves with an array of compressed `Document` objects.\n */\n abstract compressDocuments(documents: DocumentInterface[], query: string, callbacks?: Callbacks): Promise<DocumentInterface[]>;\n static isBaseDocumentCompressor(x: any): x is BaseDocumentCompressor;\n}\n/**\n * Document compressor that uses a pipeline of Transformers.\n * @example\n * ```typescript\n * const compressorPipeline = new DocumentCompressorPipeline({\n * transformers: [\n * new RecursiveCharacterTextSplitter({\n * chunkSize: 200,\n * chunkOverlap: 0,\n * }),\n * new EmbeddingsFilter({\n * embeddings: new OpenAIEmbeddings(),\n * similarityThreshold: 0.8,\n * k: 5,\n * }),\n * ],\n * });\n * const retriever = new ContextualCompressionRetriever({\n * baseCompressor: compressorPipeline,\n * baseRetriever: new TavilySearchAPIRetriever({\n * includeRawContent: true,\n * }),\n * });\n * const retrievedDocs = await retriever.invoke(\n * \"What did the speaker say about Justice Breyer in the 2022 State of the Union?\",\n * );\n * console.log({ retrievedDocs });\n * ```\n */\nexport declare class DocumentCompressorPipeline extends BaseDocumentCompressor {\n transformers: (BaseDocumentTransformer | BaseDocumentCompressor)[];\n constructor(fields: {\n transformers: (BaseDocumentTransformer | BaseDocumentCompressor)[];\n });\n compressDocuments(documents: DocumentInterface[], query: string, callbacks?: Callbacks): Promise<DocumentInterface[]>;\n}\n//# sourceMappingURL=index.d.ts.map"],"mappings":";;;;;;AAMA;;AAU0FE,uBAV5DC,sBAAAA,CAU4DD;EAAoBF;;;AACtC;AA+BxE;;;;;EAKiCA,SAAAA,iBAAAA,CAAAA,SAAAA,EArCSA,iBAqCTA,EAAAA,EAAAA,KAAAA,EAAAA,MAAAA,EAAAA,SAAAA,CAAAA,EArCyDE,SAqCzDF,CAAAA,EArCqEI,OAqCrEJ,CArC6EA,iBAqC7EA,EAAAA,CAAAA;EAAgDE,OAAAA,wBAAAA,CAAAA,CAAAA,EAAAA,GAAAA,CAAAA,EAAAA,CAAAA,IApC/BC,sBAoC+BD;;;;AALH;;;;;;;;;;;;;;;;;;;;;;;;;;;cAAzDG,0BAAAA,SAAmCF,sBAAAA;iBACrCF,0BAA0BE;;mBAEtBF,0BAA0BE;;+BAEhBH,gDAAgDE,YAAYE,QAAQJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ensemble.d.cts","names":["BaseRetriever","BaseRetrieverInput","Document","DocumentInterface","CallbackManagerForRetrieverRun","EnsembleRetrieverInput","EnsembleRetriever","Record","Promise"],"sources":["../../src/retrievers/ensemble.d.ts"],"sourcesContent":["import { BaseRetriever, BaseRetrieverInput } from \"@langchain/core/retrievers\";\nimport { Document, DocumentInterface } from \"@langchain/core/documents\";\nimport { CallbackManagerForRetrieverRun } from \"@langchain/core/callbacks/manager\";\nexport interface EnsembleRetrieverInput extends BaseRetrieverInput {\n /** A list of retrievers to ensemble. */\n retrievers: BaseRetriever[];\n /**\n * A list of weights corresponding to the retrievers. Defaults to equal\n * weighting for all retrievers.\n */\n weights?: number[];\n /**\n * A constant added to the rank, controlling the balance between the importance\n * of high-ranked items and the consideration given to lower-ranked items.\n * Default is 60.\n */\n c?: number;\n}\n/**\n * Ensemble retriever that aggregates and orders the results of\n * multiple retrievers by using weighted Reciprocal Rank Fusion.\n */\nexport declare class EnsembleRetriever extends BaseRetriever {\n static lc_name(): string;\n lc_namespace: string[];\n retrievers: BaseRetriever[];\n weights: number[];\n c: number;\n constructor(args: EnsembleRetrieverInput);\n _getRelevantDocuments(query: string, runManager?: CallbackManagerForRetrieverRun): Promise<Document<Record<string, any>>[]>;\n _rankFusion(query: string, runManager?: CallbackManagerForRetrieverRun): Promise<Document<Record<string, any>>[]>;\n _weightedReciprocalRank(docList: DocumentInterface[][]): Promise<Document<Record<string, any>>[]>;\n private _uniqueUnion;\n}\n//# sourceMappingURL=ensemble.d.ts.map"],"mappings":";;;;;UAGiBK,sBAAAA,SAA+BJ;;EAA/BI,UAAAA,EAEDL,aAFuB,EAAA;EAmBlBM;;;;EAOmFC,OAAAA,CAAAA,EAAAA,MAAAA,EAAAA;EAATL;;;;;EAClBM,CAAAA,CAAAA,EAAAA,MAAAA;;;;;;AARjB,cAAvCF,iBAAAA,SAA0BN,aAAAA,CAAa;;;cAG5CA;;;oBAGMK;oDACgCD,iCAAiCI,QAAQN,SAASK;0CAC5DH,iCAAiCI,QAAQN,SAASK;mCACzDJ,wBAAwBK,QAAQN,SAASK"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ensemble.d.ts","names":["BaseRetriever","BaseRetrieverInput","Document","DocumentInterface","CallbackManagerForRetrieverRun","EnsembleRetrieverInput","EnsembleRetriever","Record","Promise"],"sources":["../../src/retrievers/ensemble.d.ts"],"sourcesContent":["import { BaseRetriever, BaseRetrieverInput } from \"@langchain/core/retrievers\";\nimport { Document, DocumentInterface } from \"@langchain/core/documents\";\nimport { CallbackManagerForRetrieverRun } from \"@langchain/core/callbacks/manager\";\nexport interface EnsembleRetrieverInput extends BaseRetrieverInput {\n /** A list of retrievers to ensemble. */\n retrievers: BaseRetriever[];\n /**\n * A list of weights corresponding to the retrievers. Defaults to equal\n * weighting for all retrievers.\n */\n weights?: number[];\n /**\n * A constant added to the rank, controlling the balance between the importance\n * of high-ranked items and the consideration given to lower-ranked items.\n * Default is 60.\n */\n c?: number;\n}\n/**\n * Ensemble retriever that aggregates and orders the results of\n * multiple retrievers by using weighted Reciprocal Rank Fusion.\n */\nexport declare class EnsembleRetriever extends BaseRetriever {\n static lc_name(): string;\n lc_namespace: string[];\n retrievers: BaseRetriever[];\n weights: number[];\n c: number;\n constructor(args: EnsembleRetrieverInput);\n _getRelevantDocuments(query: string, runManager?: CallbackManagerForRetrieverRun): Promise<Document<Record<string, any>>[]>;\n _rankFusion(query: string, runManager?: CallbackManagerForRetrieverRun): Promise<Document<Record<string, any>>[]>;\n _weightedReciprocalRank(docList: DocumentInterface[][]): Promise<Document<Record<string, any>>[]>;\n private _uniqueUnion;\n}\n//# sourceMappingURL=ensemble.d.ts.map"],"mappings":";;;;;UAGiBK,sBAAAA,SAA+BJ;;EAA/BI,UAAAA,EAEDL,aAFuB,EAAA;EAmBlBM;;;;EAOmFC,OAAAA,CAAAA,EAAAA,MAAAA,EAAAA;EAATL;;;;;EAClBM,CAAAA,CAAAA,EAAAA,MAAAA;;;;;;AARjB,cAAvCF,iBAAAA,SAA0BN,aAAAA,CAAa;;;cAG5CA;;;oBAGMK;oDACgCD,iCAAiCI,QAAQN,SAASK;0CAC5DH,iCAAiCI,QAAQN,SAASK;mCACzDJ,wBAAwBK,QAAQN,SAASK"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hyde.d.cts","names":["BaseLanguageModelInterface","Document","BasePromptTemplate","VectorStore","VectorStoreRetriever","VectorStoreRetrieverInput","CallbackManagerForRetrieverRun","PromptKey","HydeRetrieverOptions","V","HydeRetriever","Promise","getPromptTemplateFromKey"],"sources":["../../src/retrievers/hyde.d.ts"],"sourcesContent":["import type { BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport { Document } from \"@langchain/core/documents\";\nimport { BasePromptTemplate } from \"@langchain/core/prompts\";\nimport { VectorStore, VectorStoreRetriever, VectorStoreRetrieverInput } from \"@langchain/core/vectorstores\";\nimport { CallbackManagerForRetrieverRun } from \"@langchain/core/callbacks/manager\";\n/**\n * A string that corresponds to a specific prompt template.\n */\nexport type PromptKey = \"websearch\" | \"scifact\" | \"arguana\" | \"trec-covid\" | \"fiqa\" | \"dbpedia-entity\" | \"trec-news\" | \"mr-tydi\";\n/**\n * Options for the HydeRetriever class, which includes a BaseLanguageModel\n * instance, a VectorStore instance, and an optional promptTemplate which\n * can either be a BasePromptTemplate instance or a PromptKey.\n */\nexport type HydeRetrieverOptions<V extends VectorStore> = VectorStoreRetrieverInput<V> & {\n llm: BaseLanguageModelInterface;\n promptTemplate?: BasePromptTemplate | PromptKey;\n};\n/**\n * A class for retrieving relevant documents based on a given query. It\n * extends the VectorStoreRetriever class and uses a BaseLanguageModel to\n * generate a hypothetical answer to the query, which is then used to\n * retrieve relevant documents.\n * @example\n * ```typescript\n * const retriever = new HydeRetriever({\n * vectorStore: new MemoryVectorStore(new OpenAIEmbeddings()),\n * llm: new ChatOpenAI({ model: \"gpt-4o-mini\" }),\n * k: 1,\n * });\n * await vectorStore.addDocuments(\n * [\n * \"My name is John.\",\n * \"My name is Bob.\",\n * \"My favourite food is pizza.\",\n * \"My favourite food is pasta.\",\n * ].map((pageContent) => new Document({ pageContent })),\n * );\n * const results = await retriever.invoke(\n * \"What is my favourite food?\",\n * );\n * ```\n */\nexport declare class HydeRetriever<V extends VectorStore = VectorStore> extends VectorStoreRetriever<V> {\n static lc_name(): string;\n get lc_namespace(): string[];\n llm: BaseLanguageModelInterface;\n promptTemplate?: BasePromptTemplate;\n constructor(fields: HydeRetrieverOptions<V>);\n _getRelevantDocuments(query: string, runManager?: CallbackManagerForRetrieverRun): Promise<Document[]>;\n}\n/**\n * Returns a BasePromptTemplate instance based on a given PromptKey.\n */\nexport declare function getPromptTemplateFromKey(key: PromptKey): BasePromptTemplate;\n//# sourceMappingURL=hyde.d.ts.map"],"mappings":";;;;;;;;;;AAQA;AAMYQ,KANAD,SAAAA,GAMAC,WAAoBC,GAAAA,SAAA,GAAA,SAAA,GAAA,YAAA,GAAA,MAAA,GAAA,gBAAA,GAAA,WAAA,GAAA,SAAA;;;;;;AAEUF,KAF9BC,oBAE8BD,CAAAA,UAFCJ,WAEDI,CAAAA,GAFgBF,yBAEhBE,CAF0CE,CAE1CF,CAAAA,GAAAA;EAAS,GAAA,EAD1CP,0BAC0C;EA2B9BU,cAAAA,CAAAA,EA3BAR,kBA2Ba,GA3BQK,SA2BR;CAAWJ;;;;;;;;;;;AAAuD;AAWpG;;;;;;;;;;;;;;cAXqBO,wBAAwBP,cAAcA,qBAAqBC,qBAAqBK;;;OAG5FT;mBACYE;sBACGM,qBAAqBC;oDACSH,iCAAiCK,QAAQV;;;;;iBAKvEW,wBAAAA,MAA8BL,YAAYL"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hyde.d.ts","names":["BaseLanguageModelInterface","Document","BasePromptTemplate","VectorStore","VectorStoreRetriever","VectorStoreRetrieverInput","CallbackManagerForRetrieverRun","PromptKey","HydeRetrieverOptions","V","HydeRetriever","Promise","getPromptTemplateFromKey"],"sources":["../../src/retrievers/hyde.d.ts"],"sourcesContent":["import type { BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport { Document } from \"@langchain/core/documents\";\nimport { BasePromptTemplate } from \"@langchain/core/prompts\";\nimport { VectorStore, VectorStoreRetriever, VectorStoreRetrieverInput } from \"@langchain/core/vectorstores\";\nimport { CallbackManagerForRetrieverRun } from \"@langchain/core/callbacks/manager\";\n/**\n * A string that corresponds to a specific prompt template.\n */\nexport type PromptKey = \"websearch\" | \"scifact\" | \"arguana\" | \"trec-covid\" | \"fiqa\" | \"dbpedia-entity\" | \"trec-news\" | \"mr-tydi\";\n/**\n * Options for the HydeRetriever class, which includes a BaseLanguageModel\n * instance, a VectorStore instance, and an optional promptTemplate which\n * can either be a BasePromptTemplate instance or a PromptKey.\n */\nexport type HydeRetrieverOptions<V extends VectorStore> = VectorStoreRetrieverInput<V> & {\n llm: BaseLanguageModelInterface;\n promptTemplate?: BasePromptTemplate | PromptKey;\n};\n/**\n * A class for retrieving relevant documents based on a given query. It\n * extends the VectorStoreRetriever class and uses a BaseLanguageModel to\n * generate a hypothetical answer to the query, which is then used to\n * retrieve relevant documents.\n * @example\n * ```typescript\n * const retriever = new HydeRetriever({\n * vectorStore: new MemoryVectorStore(new OpenAIEmbeddings()),\n * llm: new ChatOpenAI({ model: \"gpt-4o-mini\" }),\n * k: 1,\n * });\n * await vectorStore.addDocuments(\n * [\n * \"My name is John.\",\n * \"My name is Bob.\",\n * \"My favourite food is pizza.\",\n * \"My favourite food is pasta.\",\n * ].map((pageContent) => new Document({ pageContent })),\n * );\n * const results = await retriever.invoke(\n * \"What is my favourite food?\",\n * );\n * ```\n */\nexport declare class HydeRetriever<V extends VectorStore = VectorStore> extends VectorStoreRetriever<V> {\n static lc_name(): string;\n get lc_namespace(): string[];\n llm: BaseLanguageModelInterface;\n promptTemplate?: BasePromptTemplate;\n constructor(fields: HydeRetrieverOptions<V>);\n _getRelevantDocuments(query: string, runManager?: CallbackManagerForRetrieverRun): Promise<Document[]>;\n}\n/**\n * Returns a BasePromptTemplate instance based on a given PromptKey.\n */\nexport declare function getPromptTemplateFromKey(key: PromptKey): BasePromptTemplate;\n//# sourceMappingURL=hyde.d.ts.map"],"mappings":";;;;;;;;;;AAQA;AAMYQ,KANAD,SAAAA,GAMAC,WAAoBC,GAAAA,SAAA,GAAA,SAAA,GAAA,YAAA,GAAA,MAAA,GAAA,gBAAA,GAAA,WAAA,GAAA,SAAA;;;;;;AAEUF,KAF9BC,oBAE8BD,CAAAA,UAFCJ,WAEDI,CAAAA,GAFgBF,yBAEhBE,CAF0CE,CAE1CF,CAAAA,GAAAA;EAAS,GAAA,EAD1CP,0BAC0C;EA2B9BU,cAAAA,CAAAA,EA3BAR,kBA2Ba,GA3BQK,SA2BR;CAAWJ;;;;;;;;;;;AAAuD;AAWpG;;;;;;;;;;;;;;cAXqBO,wBAAwBP,cAAcA,qBAAqBC,qBAAqBK;;;OAG5FT;mBACYE;sBACGM,qBAAqBC;oDACSH,iCAAiCK,QAAQV;;;;;iBAKvEW,wBAAAA,MAA8BL,YAAYL"}
|
|
@@ -7,7 +7,6 @@ import { Embeddings } from "@langchain/core/embeddings";
|
|
|
7
7
|
/**
|
|
8
8
|
* Type for options when adding a document to the VectorStore.
|
|
9
9
|
*/
|
|
10
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
11
10
|
type AddDocumentOptions = Record<string, any>;
|
|
12
11
|
interface MatryoshkaRetrieverFields {
|
|
13
12
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"matryoshka_retriever.d.cts","names":["DocumentInterface","Embeddings","VectorStore","VectorStoreRetriever","VectorStoreRetrieverInput","AddDocumentOptions","Record","MatryoshkaRetrieverFields","MatryoshkaRetriever","Store","Promise"],"sources":["../../src/retrievers/matryoshka_retriever.d.ts"],"sourcesContent":["import { DocumentInterface } from \"@langchain/core/documents\";\nimport { Embeddings } from \"@langchain/core/embeddings\";\nimport { VectorStore, VectorStoreRetriever, VectorStoreRetrieverInput } from \"@langchain/core/vectorstores\";\n/**\n * Type for options when adding a document to the VectorStore.\n */\ntype AddDocumentOptions = Record<string, any>;\nexport interface MatryoshkaRetrieverFields {\n /**\n * The number of documents to retrieve from the small store.\n * @default 50\n */\n smallK?: number;\n /**\n * The number of documents to retrieve from the large store.\n * @default 8\n */\n largeK?: number;\n /**\n * The metadata key to store the larger embeddings.\n * @default \"lc_large_embedding\"\n */\n largeEmbeddingKey?: string;\n /**\n * The embedding model to use when generating the large\n * embeddings.\n */\n largeEmbeddingModel: Embeddings;\n /**\n * The type of search to perform using the large embeddings.\n * @default \"cosine\"\n */\n searchType?: \"cosine\" | \"innerProduct\" | \"euclidean\";\n}\n/**\n * A retriever that uses two sets of embeddings to perform adaptive retrieval. Based\n * off of the \"Matryoshka embeddings: faster OpenAI vector search using Adaptive Retrieval\"\n * blog post {@link https://supabase.com/blog/matryoshka-embeddings}.\n *\n *\n * This class performs \"Adaptive Retrieval\" for searching text embeddings efficiently using the\n * Matryoshka Representation Learning (MRL) technique. It retrieves documents similar to a query\n * embedding in two steps:\n *\n * First-pass: Uses a lower dimensional sub-vector from the MRL embedding for an initial, fast,\n * but less accurate search.\n *\n * Second-pass: Re-ranks the top results from the first pass using the full, high-dimensional\n * embedding for higher accuracy.\n *\n *\n * This code implements MRL embeddings for efficient vector search by combining faster,\n * lower-dimensional initial search with accurate, high-dimensional re-ranking.\n */\nexport declare class MatryoshkaRetriever<Store extends VectorStore = VectorStore> extends VectorStoreRetriever<Store> {\n smallK: number;\n largeK: number;\n largeEmbeddingKey: string;\n largeEmbeddingModel: Embeddings;\n searchType: \"cosine\" | \"innerProduct\" | \"euclidean\";\n constructor(fields: MatryoshkaRetrieverFields & VectorStoreRetrieverInput<Store>);\n /**\n * Ranks documents based on their similarity to a query embedding using larger embeddings.\n *\n * This method takes a query embedding and a list of documents (smallResults) as input. Each document\n * in the smallResults array has previously been associated with a large embedding stored in its metadata.\n * Depending on the `searchType` (cosine, innerProduct, or euclidean), it calculates the similarity scores\n * between the query embedding and each document's large embedding. It then ranks the documents based on\n * these similarity scores, from the most similar to the least similar.\n *\n * The method returns a promise that resolves to an array of the top `largeK` documents, where `largeK`\n * is a class property defining the number of documents to return. This subset of documents is determined\n * by sorting the entire list of documents based on their similarity scores and then selecting the top\n * `largeK` documents.\n *\n * @param {number[]} embeddedQuery The embedding of the query, represented as an array of numbers.\n * @param {DocumentInterface[]} smallResults An array of documents, each with metadata that includes a large embedding for similarity comparison.\n * @returns {Promise<DocumentInterface[]>} A promise that resolves to an array of the top `largeK` ranked documents based on their similarity to the query embedding.\n */\n private _rankByLargeEmbeddings;\n _getRelevantDocuments(query: string): Promise<DocumentInterface[]>;\n /**\n * Override the default `addDocuments` method to embed the documents twice,\n * once using the larger embeddings model, and then again using the default\n * embedding model linked to the vector store.\n *\n * @param {DocumentInterface[]} documents - An array of documents to add to the vector store.\n * @param {AddDocumentOptions} options - An optional object containing additional options for adding documents.\n * @returns {Promise<string[] | void>} A promise that resolves to an array of the document IDs that were added to the vector store.\n */\n addDocuments: (documents: DocumentInterface<Record<string, any>>[], options?: AddDocumentOptions | undefined) => Promise<void | string[]>;\n}\nexport {};\n//# sourceMappingURL=matryoshka_retriever.d.ts.map"],"mappings":";;;;;;;;AAE4G;AAK5G,KADKK,kBAAAA,GAAqBC,MACgB,CAAA,MAAA,EAAA,GAoBjBL,CAAAA;AA2BJO,UA/CJD,yBAAAA,CA+CuB;EAAeL;;;;EAM/BK,MAAAA,CAAAA,EAAAA,MAAAA;EAAsDE;;;;EA8B9BH,MAAAA,CAAAA,EAAAA,MAAAA;EAAlBN;;;;EApCgF,iBAAA,CAAA,EAAA,MAAA;;;;;uBA3BrFC;;;;;;;;;;;;;;;;;;;;;;;;;;;cA2BJO,kCAAkCN,cAAcA,qBAAqBC,qBAAqBM;;;;uBAItFR;;sBAEDM,4BAA4BH,0BAA0BK;;;;;;;;;;;;;;;;;;;;wCAoBpCC,QAAQV;;;;;;;;;;4BAUpBA,kBAAkBM,kCAAkCD,mCAAmCK"}
|
|
@@ -7,7 +7,6 @@ import { VectorStore, VectorStoreRetriever, VectorStoreRetrieverInput } from "@l
|
|
|
7
7
|
/**
|
|
8
8
|
* Type for options when adding a document to the VectorStore.
|
|
9
9
|
*/
|
|
10
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
11
10
|
type AddDocumentOptions = Record<string, any>;
|
|
12
11
|
interface MatryoshkaRetrieverFields {
|
|
13
12
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"matryoshka_retriever.d.ts","names":["DocumentInterface","Embeddings","VectorStore","VectorStoreRetriever","VectorStoreRetrieverInput","AddDocumentOptions","Record","MatryoshkaRetrieverFields","MatryoshkaRetriever","Store","Promise"],"sources":["../../src/retrievers/matryoshka_retriever.d.ts"],"sourcesContent":["import { DocumentInterface } from \"@langchain/core/documents\";\nimport { Embeddings } from \"@langchain/core/embeddings\";\nimport { VectorStore, VectorStoreRetriever, VectorStoreRetrieverInput } from \"@langchain/core/vectorstores\";\n/**\n * Type for options when adding a document to the VectorStore.\n */\ntype AddDocumentOptions = Record<string, any>;\nexport interface MatryoshkaRetrieverFields {\n /**\n * The number of documents to retrieve from the small store.\n * @default 50\n */\n smallK?: number;\n /**\n * The number of documents to retrieve from the large store.\n * @default 8\n */\n largeK?: number;\n /**\n * The metadata key to store the larger embeddings.\n * @default \"lc_large_embedding\"\n */\n largeEmbeddingKey?: string;\n /**\n * The embedding model to use when generating the large\n * embeddings.\n */\n largeEmbeddingModel: Embeddings;\n /**\n * The type of search to perform using the large embeddings.\n * @default \"cosine\"\n */\n searchType?: \"cosine\" | \"innerProduct\" | \"euclidean\";\n}\n/**\n * A retriever that uses two sets of embeddings to perform adaptive retrieval. Based\n * off of the \"Matryoshka embeddings: faster OpenAI vector search using Adaptive Retrieval\"\n * blog post {@link https://supabase.com/blog/matryoshka-embeddings}.\n *\n *\n * This class performs \"Adaptive Retrieval\" for searching text embeddings efficiently using the\n * Matryoshka Representation Learning (MRL) technique. It retrieves documents similar to a query\n * embedding in two steps:\n *\n * First-pass: Uses a lower dimensional sub-vector from the MRL embedding for an initial, fast,\n * but less accurate search.\n *\n * Second-pass: Re-ranks the top results from the first pass using the full, high-dimensional\n * embedding for higher accuracy.\n *\n *\n * This code implements MRL embeddings for efficient vector search by combining faster,\n * lower-dimensional initial search with accurate, high-dimensional re-ranking.\n */\nexport declare class MatryoshkaRetriever<Store extends VectorStore = VectorStore> extends VectorStoreRetriever<Store> {\n smallK: number;\n largeK: number;\n largeEmbeddingKey: string;\n largeEmbeddingModel: Embeddings;\n searchType: \"cosine\" | \"innerProduct\" | \"euclidean\";\n constructor(fields: MatryoshkaRetrieverFields & VectorStoreRetrieverInput<Store>);\n /**\n * Ranks documents based on their similarity to a query embedding using larger embeddings.\n *\n * This method takes a query embedding and a list of documents (smallResults) as input. Each document\n * in the smallResults array has previously been associated with a large embedding stored in its metadata.\n * Depending on the `searchType` (cosine, innerProduct, or euclidean), it calculates the similarity scores\n * between the query embedding and each document's large embedding. It then ranks the documents based on\n * these similarity scores, from the most similar to the least similar.\n *\n * The method returns a promise that resolves to an array of the top `largeK` documents, where `largeK`\n * is a class property defining the number of documents to return. This subset of documents is determined\n * by sorting the entire list of documents based on their similarity scores and then selecting the top\n * `largeK` documents.\n *\n * @param {number[]} embeddedQuery The embedding of the query, represented as an array of numbers.\n * @param {DocumentInterface[]} smallResults An array of documents, each with metadata that includes a large embedding for similarity comparison.\n * @returns {Promise<DocumentInterface[]>} A promise that resolves to an array of the top `largeK` ranked documents based on their similarity to the query embedding.\n */\n private _rankByLargeEmbeddings;\n _getRelevantDocuments(query: string): Promise<DocumentInterface[]>;\n /**\n * Override the default `addDocuments` method to embed the documents twice,\n * once using the larger embeddings model, and then again using the default\n * embedding model linked to the vector store.\n *\n * @param {DocumentInterface[]} documents - An array of documents to add to the vector store.\n * @param {AddDocumentOptions} options - An optional object containing additional options for adding documents.\n * @returns {Promise<string[] | void>} A promise that resolves to an array of the document IDs that were added to the vector store.\n */\n addDocuments: (documents: DocumentInterface<Record<string, any>>[], options?: AddDocumentOptions | undefined) => Promise<void | string[]>;\n}\nexport {};\n//# sourceMappingURL=matryoshka_retriever.d.ts.map"],"mappings":";;;;;;;;AAE4G;AAK5G,KADKK,kBAAAA,GAAqBC,MACgB,CAAA,MAAA,EAAA,GAAA,CAoBjBL;AA2BJO,UA/CJD,yBAAAA,CA+CuB;EAAeL;;;;EAM/BK,MAAAA,CAAAA,EAAAA,MAAAA;EAAsDE;;;;EA8B9BH,MAAAA,CAAAA,EAAAA,MAAAA;EAAlBN;;;;EApCgF,iBAAA,CAAA,EAAA,MAAA;;;;;uBA3BrFC;;;;;;;;;;;;;;;;;;;;;;;;;;;cA2BJO,kCAAkCN,cAAcA,qBAAqBC,qBAAqBM;;;;uBAItFR;;sBAEDM,4BAA4BH,0BAA0BK;;;;;;;;;;;;;;;;;;;;wCAoBpCC,QAAQV;;;;;;;;;;4BAUpBA,kBAAkBM,kCAAkCD,mCAAmCK"}
|
|
@@ -10,7 +10,6 @@ import { Document } from "@langchain/core/documents";
|
|
|
10
10
|
interface LineList {
|
|
11
11
|
lines: string[];
|
|
12
12
|
}
|
|
13
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
14
13
|
type MultiDocs = Document<Record<string, any>>[];
|
|
15
14
|
interface MultiQueryRetrieverInput extends BaseRetrieverInput {
|
|
16
15
|
retriever: BaseRetrieverInterface;
|
|
@@ -50,7 +49,6 @@ declare class MultiQueryRetriever extends BaseRetriever {
|
|
|
50
49
|
}): MultiQueryRetriever;
|
|
51
50
|
private _generateQueries;
|
|
52
51
|
private _retrieveDocuments;
|
|
53
|
-
// Deduplicate the documents that were returned in multiple retrievals
|
|
54
52
|
private _uniqueUnion;
|
|
55
53
|
_getRelevantDocuments(question: string, runManager?: CallbackManagerForRetrieverRun): Promise<Document[]>;
|
|
56
54
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"multi_query.d.cts","names":["BaseLanguageModelInterface","BaseRetriever","BaseRetrieverInput","BaseRetrieverInterface","Document","BasePromptTemplate","CallbackManagerForRetrieverRun","LLMChain","BaseDocumentCompressor","LineList","MultiDocs","Record","MultiQueryRetrieverInput","MultiQueryRetriever","Omit","Promise"],"sources":["../../src/retrievers/multi_query.d.ts"],"sourcesContent":["import type { BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport { BaseRetriever, type BaseRetrieverInput, type BaseRetrieverInterface } from \"@langchain/core/retrievers\";\nimport { Document } from \"@langchain/core/documents\";\nimport { BasePromptTemplate } from \"@langchain/core/prompts\";\nimport { CallbackManagerForRetrieverRun } from \"@langchain/core/callbacks/manager\";\nimport { LLMChain } from \"../chains/llm_chain.js\";\nimport type { BaseDocumentCompressor } from \"./document_compressors/index.js\";\ninterface LineList {\n lines: string[];\n}\nexport type MultiDocs = Document<Record<string, any>>[];\nexport interface MultiQueryRetrieverInput extends BaseRetrieverInput {\n retriever: BaseRetrieverInterface;\n /** @deprecated Pass a custom prompt into `.fromLLM` instead. */\n llmChain: LLMChain<LineList>;\n queryCount?: number;\n parserKey?: string;\n documentCompressor?: BaseDocumentCompressor | undefined;\n documentCompressorFilteringFn?: (docs: MultiDocs) => MultiDocs;\n}\n/**\n * @example\n * ```typescript\n * const retriever = new MultiQueryRetriever.fromLLM({\n * llm: new ChatAnthropic({}),\n * retriever: new MemoryVectorStore().asRetriever(),\n * verbose: true,\n * });\n * const retrievedDocs = await retriever.invoke(\n * \"What are mitochondria made of?\",\n * );\n * ```\n */\nexport declare class MultiQueryRetriever extends BaseRetriever {\n static lc_name(): string;\n lc_namespace: string[];\n private retriever;\n private llmChain;\n private queryCount;\n private parserKey;\n documentCompressor: BaseDocumentCompressor | undefined;\n documentCompressorFilteringFn?: MultiQueryRetrieverInput[\"documentCompressorFilteringFn\"];\n constructor(fields: MultiQueryRetrieverInput);\n static fromLLM(fields: Omit<MultiQueryRetrieverInput, \"llmChain\"> & {\n llm: BaseLanguageModelInterface;\n prompt?: BasePromptTemplate;\n }): MultiQueryRetriever;\n private _generateQueries;\n private _retrieveDocuments;\n private _uniqueUnion;\n _getRelevantDocuments(question: string, runManager?: CallbackManagerForRetrieverRun): Promise<Document[]>;\n}\nexport {};\n//# sourceMappingURL=multi_query.d.ts.map"],"mappings":";;;;;;;;;UAOUS,QAAAA;;AADoE;AAIlEC,KAAAA,SAAAA,GAAYN,QAASO,CAAAA,MAATP,CAAAA,MAAQ,EAAA,GAAA,CAAA,CAAA,EAAA;AACfQ,UAAAA,wBAAAA,SAAiCV,kBAAT,CAAA;EAC1BC,SAAAA,EAAAA,sBAAAA;EAEQM;EAATF,QAAAA,EAAAA,QAAAA,CAASE,QAATF,CAAAA;EAGWC,UAAAA,CAAAA,EAAAA,MAAAA;EACkBE,SAAAA,CAAAA,EAAAA,MAAAA;EAAcA,kBAAAA,CAAAA,EADhCF,sBACgCE,GAAAA,SAAAA;EAPPR,6BAAAA,CAAAA,EAAAA,CAAAA,IAAAA,EAOPQ,SAPOR,EAAAA,GAOOQ,SAPPR;AAAkB;AAsBpE;;;;;;;;;;;;;AAA8D,cAAzCW,mBAAAA,SAA4BZ,aAAAA,CAAa;;;;;;;sBAOtCO;kCACYI;sBACZA;yBACGE,KAAKF;SACnBZ;aACIK;MACTQ;;;;uDAIiDP,iCAAiCS,QAAQX"}
|
|
@@ -10,7 +10,6 @@ import { BaseRetriever, BaseRetrieverInput, BaseRetrieverInterface } from "@lang
|
|
|
10
10
|
interface LineList {
|
|
11
11
|
lines: string[];
|
|
12
12
|
}
|
|
13
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
14
13
|
type MultiDocs = Document<Record<string, any>>[];
|
|
15
14
|
interface MultiQueryRetrieverInput extends BaseRetrieverInput {
|
|
16
15
|
retriever: BaseRetrieverInterface;
|
|
@@ -50,7 +49,6 @@ declare class MultiQueryRetriever extends BaseRetriever {
|
|
|
50
49
|
}): MultiQueryRetriever;
|
|
51
50
|
private _generateQueries;
|
|
52
51
|
private _retrieveDocuments;
|
|
53
|
-
// Deduplicate the documents that were returned in multiple retrievals
|
|
54
52
|
private _uniqueUnion;
|
|
55
53
|
_getRelevantDocuments(question: string, runManager?: CallbackManagerForRetrieverRun): Promise<Document[]>;
|
|
56
54
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"multi_query.d.ts","names":["BaseLanguageModelInterface","BaseRetriever","BaseRetrieverInput","BaseRetrieverInterface","Document","BasePromptTemplate","CallbackManagerForRetrieverRun","LLMChain","BaseDocumentCompressor","LineList","MultiDocs","Record","MultiQueryRetrieverInput","MultiQueryRetriever","Omit","Promise"],"sources":["../../src/retrievers/multi_query.d.ts"],"sourcesContent":["import type { BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport { BaseRetriever, type BaseRetrieverInput, type BaseRetrieverInterface } from \"@langchain/core/retrievers\";\nimport { Document } from \"@langchain/core/documents\";\nimport { BasePromptTemplate } from \"@langchain/core/prompts\";\nimport { CallbackManagerForRetrieverRun } from \"@langchain/core/callbacks/manager\";\nimport { LLMChain } from \"../chains/llm_chain.js\";\nimport type { BaseDocumentCompressor } from \"./document_compressors/index.js\";\ninterface LineList {\n lines: string[];\n}\nexport type MultiDocs = Document<Record<string, any>>[];\nexport interface MultiQueryRetrieverInput extends BaseRetrieverInput {\n retriever: BaseRetrieverInterface;\n /** @deprecated Pass a custom prompt into `.fromLLM` instead. */\n llmChain: LLMChain<LineList>;\n queryCount?: number;\n parserKey?: string;\n documentCompressor?: BaseDocumentCompressor | undefined;\n documentCompressorFilteringFn?: (docs: MultiDocs) => MultiDocs;\n}\n/**\n * @example\n * ```typescript\n * const retriever = new MultiQueryRetriever.fromLLM({\n * llm: new ChatAnthropic({}),\n * retriever: new MemoryVectorStore().asRetriever(),\n * verbose: true,\n * });\n * const retrievedDocs = await retriever.invoke(\n * \"What are mitochondria made of?\",\n * );\n * ```\n */\nexport declare class MultiQueryRetriever extends BaseRetriever {\n static lc_name(): string;\n lc_namespace: string[];\n private retriever;\n private llmChain;\n private queryCount;\n private parserKey;\n documentCompressor: BaseDocumentCompressor | undefined;\n documentCompressorFilteringFn?: MultiQueryRetrieverInput[\"documentCompressorFilteringFn\"];\n constructor(fields: MultiQueryRetrieverInput);\n static fromLLM(fields: Omit<MultiQueryRetrieverInput, \"llmChain\"> & {\n llm: BaseLanguageModelInterface;\n prompt?: BasePromptTemplate;\n }): MultiQueryRetriever;\n private _generateQueries;\n private _retrieveDocuments;\n private _uniqueUnion;\n _getRelevantDocuments(question: string, runManager?: CallbackManagerForRetrieverRun): Promise<Document[]>;\n}\nexport {};\n//# sourceMappingURL=multi_query.d.ts.map"],"mappings":";;;;;;;;;UAOUS,QAAAA;;AADoE;AAIlEC,KAAAA,SAAAA,GAAYN,QAASO,CAAAA,MAATP,CAAAA,MAAQ,EAAA,GAAA,CAAA,CAAA,EAAA;AACfQ,UAAAA,wBAAAA,SAAiCV,kBAAT,CAAA;EAC1BC,SAAAA,EAAAA,sBAAAA;EAEQM;EAATF,QAAAA,EAAAA,QAAAA,CAASE,QAATF,CAAAA;EAGWC,UAAAA,CAAAA,EAAAA,MAAAA;EACkBE,SAAAA,CAAAA,EAAAA,MAAAA;EAAcA,kBAAAA,CAAAA,EADhCF,sBACgCE,GAAAA,SAAAA;EAPPR,6BAAAA,CAAAA,EAAAA,CAAAA,IAAAA,EAOPQ,SAPOR,EAAAA,GAOOQ,SAPPR;AAAkB;AAsBpE;;;;;;;;;;;;;AAA8D,cAAzCW,mBAAAA,SAA4BZ,aAAAA,CAAa;;;;;;;sBAOtCO;kCACYI;sBACZA;yBACGE,KAAKF;SACnBZ;aACIK;MACTQ;;;;uDAIiDP,iCAAiCS,QAAQX"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"multi_vector.d.cts","names":["BaseRetriever","BaseRetrieverInput","VectorStoreInterface","Document","BaseStore","BaseStoreInterface","MultiVectorRetrieverInput","Uint8Array","MultiVectorRetriever","Promise"],"sources":["../../src/retrievers/multi_vector.d.ts"],"sourcesContent":["import { BaseRetriever, type BaseRetrieverInput } from \"@langchain/core/retrievers\";\nimport type { VectorStoreInterface } from \"@langchain/core/vectorstores\";\nimport { Document } from \"@langchain/core/documents\";\nimport { BaseStore, type BaseStoreInterface } from \"@langchain/core/stores\";\n/**\n * Arguments for the MultiVectorRetriever class.\n */\nexport interface MultiVectorRetrieverInput extends BaseRetrieverInput {\n vectorstore: VectorStoreInterface;\n /** @deprecated Prefer `byteStore`. */\n docstore?: BaseStoreInterface<string, Document>;\n byteStore?: BaseStore<string, Uint8Array>;\n idKey?: string;\n childK?: number;\n parentK?: number;\n}\n/**\n * A retriever that retrieves documents from a vector store and a document\n * store. It uses the vector store to find relevant documents based on a\n * query, and then retrieves the full documents from the document store.\n * @example\n * ```typescript\n * const retriever = new MultiVectorRetriever({\n * vectorstore: new FaissStore(),\n * byteStore: new InMemoryStore<Unit8Array>(),\n * idKey: \"doc_id\",\n * childK: 20,\n * parentK: 5,\n * });\n *\n * const retrieverResult = await retriever.invoke(\"justice breyer\");\n * console.log(retrieverResult[0].pageContent.length);\n * ```\n */\nexport declare class MultiVectorRetriever extends BaseRetriever {\n static lc_name(): string;\n lc_namespace: string[];\n vectorstore: VectorStoreInterface;\n docstore: BaseStoreInterface<string, Document>;\n protected idKey: string;\n protected childK?: number;\n protected parentK?: number;\n constructor(args: MultiVectorRetrieverInput);\n _getRelevantDocuments(query: string): Promise<Document[]>;\n}\n//# sourceMappingURL=multi_vector.d.ts.map"],"mappings":";;;;;;;;;AAOA;AACiBE,UADAI,yBAAAA,SAAkCL,kBAClCC,CAAAA;EAEyBC,WAAAA,EAFzBD,oBAEyBC;EAA3BE;EACmBE,QAAAA,CAAAA,EADnBF,kBACmBE,CAAAA,MAAAA,EADQJ,QACRI,CAAAA;EAAlBH,SAAAA,CAAAA,EAAAA,SAAAA,CAAAA,MAAAA,EAAkBG,UAAlBH,CAAAA;EAJmCH,KAAAA,CAAAA,EAAAA,MAAAA;EAAkB,MAAA,CAAA,EAAA,MAAA;EA2BhDO,OAAAA,CAAAA,EAAAA,MAAAA;;;;;;;;AAA0C;;;;;;;;;;;;cAA1CA,oBAAAA,SAA6BR,aAAAA;;;eAGjCE;YACHG,2BAA2BF;;;;oBAInBG;wCACoBG,QAAQN"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"multi_vector.d.ts","names":["BaseRetriever","BaseRetrieverInput","VectorStoreInterface","Document","BaseStore","BaseStoreInterface","MultiVectorRetrieverInput","Uint8Array","MultiVectorRetriever","Promise"],"sources":["../../src/retrievers/multi_vector.d.ts"],"sourcesContent":["import { BaseRetriever, type BaseRetrieverInput } from \"@langchain/core/retrievers\";\nimport type { VectorStoreInterface } from \"@langchain/core/vectorstores\";\nimport { Document } from \"@langchain/core/documents\";\nimport { BaseStore, type BaseStoreInterface } from \"@langchain/core/stores\";\n/**\n * Arguments for the MultiVectorRetriever class.\n */\nexport interface MultiVectorRetrieverInput extends BaseRetrieverInput {\n vectorstore: VectorStoreInterface;\n /** @deprecated Prefer `byteStore`. */\n docstore?: BaseStoreInterface<string, Document>;\n byteStore?: BaseStore<string, Uint8Array>;\n idKey?: string;\n childK?: number;\n parentK?: number;\n}\n/**\n * A retriever that retrieves documents from a vector store and a document\n * store. It uses the vector store to find relevant documents based on a\n * query, and then retrieves the full documents from the document store.\n * @example\n * ```typescript\n * const retriever = new MultiVectorRetriever({\n * vectorstore: new FaissStore(),\n * byteStore: new InMemoryStore<Unit8Array>(),\n * idKey: \"doc_id\",\n * childK: 20,\n * parentK: 5,\n * });\n *\n * const retrieverResult = await retriever.invoke(\"justice breyer\");\n * console.log(retrieverResult[0].pageContent.length);\n * ```\n */\nexport declare class MultiVectorRetriever extends BaseRetriever {\n static lc_name(): string;\n lc_namespace: string[];\n vectorstore: VectorStoreInterface;\n docstore: BaseStoreInterface<string, Document>;\n protected idKey: string;\n protected childK?: number;\n protected parentK?: number;\n constructor(args: MultiVectorRetrieverInput);\n _getRelevantDocuments(query: string): Promise<Document[]>;\n}\n//# sourceMappingURL=multi_vector.d.ts.map"],"mappings":";;;;;;;;;AAOA;AACiBE,UADAI,yBAAAA,SAAkCL,kBAClCC,CAAAA;EAEyBC,WAAAA,EAFzBD,oBAEyBC;EAA3BE;EACmBE,QAAAA,CAAAA,EADnBF,kBACmBE,CAAAA,MAAAA,EADQJ,QACRI,CAAAA;EAAlBH,SAAAA,CAAAA,EAAAA,SAAAA,CAAAA,MAAAA,EAAkBG,UAAlBH,CAAAA;EAJmCH,KAAAA,CAAAA,EAAAA,MAAAA;EAAkB,MAAA,CAAA,EAAA,MAAA;EA2BhDO,OAAAA,CAAAA,EAAAA,MAAAA;;;;;;;;AAA0C;;;;;;;;;;;;cAA1CA,oBAAAA,SAA6BR,aAAAA;;;eAGjCE;YACHG,2BAA2BF;;;;oBAInBG;wCACoBG,QAAQN"}
|
|
@@ -5,7 +5,6 @@ import { Document } from "@langchain/core/documents";
|
|
|
5
5
|
import { TextSplitter, TextSplitterChunkHeaderOptions } from "@langchain/textsplitters";
|
|
6
6
|
|
|
7
7
|
//#region src/retrievers/parent_document.d.ts
|
|
8
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
9
8
|
type SubDocs = Document<Record<string, any>>[];
|
|
10
9
|
/**
|
|
11
10
|
* Interface for the fields required to initialize a
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parent_document.d.cts","names":["VectorStoreInterface","VectorStoreRetrieverInterface","Document","TextSplitter","TextSplitterChunkHeaderOptions","BaseDocumentCompressor","MultiVectorRetriever","MultiVectorRetrieverInput","SubDocs","Record","ParentDocumentRetrieverFields","ParentDocumentRetriever","Promise"],"sources":["../../src/retrievers/parent_document.d.ts"],"sourcesContent":["import { type VectorStoreInterface, type VectorStoreRetrieverInterface } from \"@langchain/core/vectorstores\";\nimport { Document } from \"@langchain/core/documents\";\nimport { TextSplitter, TextSplitterChunkHeaderOptions } from \"@langchain/textsplitters\";\nimport type { BaseDocumentCompressor } from \"./document_compressors/index.js\";\nimport { MultiVectorRetriever, type MultiVectorRetrieverInput } from \"./multi_vector.js\";\nexport type SubDocs = Document<Record<string, any>>[];\n/**\n * Interface for the fields required to initialize a\n * ParentDocumentRetriever instance.\n */\nexport type ParentDocumentRetrieverFields = MultiVectorRetrieverInput & {\n childSplitter: TextSplitter;\n parentSplitter?: TextSplitter;\n /**\n * A custom retriever to use when retrieving instead of\n * the `.similaritySearch` method of the vectorstore.\n */\n childDocumentRetriever?: VectorStoreRetrieverInterface<VectorStoreInterface>;\n documentCompressor?: BaseDocumentCompressor | undefined;\n documentCompressorFilteringFn?: (docs: SubDocs) => SubDocs;\n};\n/**\n * A type of document retriever that splits input documents into smaller chunks\n * while separately storing and preserving the original documents.\n * The small chunks are embedded, then on retrieval, the original\n * \"parent\" documents are retrieved.\n *\n * This strikes a balance between better targeted retrieval with small documents\n * and the more context-rich larger documents.\n * @example\n * ```typescript\n * const retriever = new ParentDocumentRetriever({\n * vectorstore: new MemoryVectorStore(new OpenAIEmbeddings()),\n * byteStore: new InMemoryStore<Uint8Array>(),\n * parentSplitter: new RecursiveCharacterTextSplitter({\n * chunkOverlap: 0,\n * chunkSize: 500,\n * }),\n * childSplitter: new RecursiveCharacterTextSplitter({\n * chunkOverlap: 0,\n * chunkSize: 50,\n * }),\n * childK: 20,\n * parentK: 5,\n * });\n *\n * const parentDocuments = await getDocuments();\n * await retriever.addDocuments(parentDocuments);\n * const retrievedDocs = await retriever.invoke(\"justice breyer\");\n * ```\n */\nexport declare class ParentDocumentRetriever extends MultiVectorRetriever {\n static lc_name(): string;\n lc_namespace: string[];\n vectorstore: VectorStoreInterface;\n protected childSplitter: TextSplitter;\n protected parentSplitter?: TextSplitter;\n protected idKey: string;\n protected childK?: number;\n protected parentK?: number;\n childDocumentRetriever: VectorStoreRetrieverInterface<VectorStoreInterface> | undefined;\n documentCompressor: BaseDocumentCompressor | undefined;\n documentCompressorFilteringFn?: ParentDocumentRetrieverFields[\"documentCompressorFilteringFn\"];\n constructor(fields: ParentDocumentRetrieverFields);\n _getRelevantDocuments(query: string): Promise<Document[]>;\n _storeDocuments(parentDoc: Record<string, Document>, childDocs: Document[], addToDocstore: boolean): Promise<void>;\n /**\n * Adds documents to the docstore and vectorstores.\n * If a retriever is provided, it will be used to add documents instead of the vectorstore.\n * @param docs The documents to add\n * @param config.ids Optional list of ids for documents. If provided should be the same\n * length as the list of documents. Can provided if parent documents\n * are already in the document store and you don't want to re-add\n * to the docstore. If not provided, random UUIDs will be used as ids.\n * @param config.addToDocstore Boolean of whether to add documents to docstore.\n * This can be false if and only if `ids` are provided. You may want\n * to set this to False if the documents are already in the docstore\n * and you don't want to re-add them.\n * @param config.chunkHeaderOptions Object with options for adding Contextual chunk headers\n */\n addDocuments(docs: Document[], config?: {\n ids?: string[];\n addToDocstore?: boolean;\n childDocChunkHeaderOptions?: TextSplitterChunkHeaderOptions;\n }): Promise<void>;\n}\n//# sourceMappingURL=parent_document.d.ts.map"],"mappings":";;;;;;;KAKYQ,OAAAA,GAAUN,SAASO;;AAA/B;AAKA;;AACmBN,KADPO,6BAAAA,GAAgCH,yBACzBJ,GAAAA;EACEA,aAAAA,EADFA,YACEA;EAKsCH,cAAAA,CAAAA,EALtCG,YAKsCH;EAA9BC;;;;EAEiC,sBAAA,CAAA,EAFjCA,6BAEiC,CAFHD,oBAEG,CAAA;EAgCzCW,kBAAAA,CAAAA,EAjCIN,sBAiCmB,GAAA,SAAA;EAG3BL,6BAAAA,CAAAA,EAAAA,CAAAA,IAAAA,EAnC0BQ,OAmC1BR,EAAAA,GAnCsCQ,OAmCtCR;CACYG;;;;;;;;;;;;;;;;;AAJ4C;;;;;;;;;;;;;;cAApDQ,uBAAAA,SAAgCL,oBAAAA;;;eAGpCN;2BACYG;6BACEA;;;;0BAIHF,8BAA8BD;sBAClCK;kCACYK;sBACZA;wCACkBE,QAAQV;6BACnBO,eAAeP,sBAAsBA,qCAAqCU;;;;;;;;;;;;;;;qBAelFV;;;iCAGcE;MAC7BQ"}
|
|
@@ -5,7 +5,6 @@ import { TextSplitter, TextSplitterChunkHeaderOptions } from "@langchain/textspl
|
|
|
5
5
|
import { VectorStoreInterface, VectorStoreRetrieverInterface } from "@langchain/core/vectorstores";
|
|
6
6
|
|
|
7
7
|
//#region src/retrievers/parent_document.d.ts
|
|
8
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
9
8
|
type SubDocs = Document<Record<string, any>>[];
|
|
10
9
|
/**
|
|
11
10
|
* Interface for the fields required to initialize a
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parent_document.d.ts","names":["VectorStoreInterface","VectorStoreRetrieverInterface","Document","TextSplitter","TextSplitterChunkHeaderOptions","BaseDocumentCompressor","MultiVectorRetriever","MultiVectorRetrieverInput","SubDocs","Record","ParentDocumentRetrieverFields","ParentDocumentRetriever","Promise"],"sources":["../../src/retrievers/parent_document.d.ts"],"sourcesContent":["import { type VectorStoreInterface, type VectorStoreRetrieverInterface } from \"@langchain/core/vectorstores\";\nimport { Document } from \"@langchain/core/documents\";\nimport { TextSplitter, TextSplitterChunkHeaderOptions } from \"@langchain/textsplitters\";\nimport type { BaseDocumentCompressor } from \"./document_compressors/index.js\";\nimport { MultiVectorRetriever, type MultiVectorRetrieverInput } from \"./multi_vector.js\";\nexport type SubDocs = Document<Record<string, any>>[];\n/**\n * Interface for the fields required to initialize a\n * ParentDocumentRetriever instance.\n */\nexport type ParentDocumentRetrieverFields = MultiVectorRetrieverInput & {\n childSplitter: TextSplitter;\n parentSplitter?: TextSplitter;\n /**\n * A custom retriever to use when retrieving instead of\n * the `.similaritySearch` method of the vectorstore.\n */\n childDocumentRetriever?: VectorStoreRetrieverInterface<VectorStoreInterface>;\n documentCompressor?: BaseDocumentCompressor | undefined;\n documentCompressorFilteringFn?: (docs: SubDocs) => SubDocs;\n};\n/**\n * A type of document retriever that splits input documents into smaller chunks\n * while separately storing and preserving the original documents.\n * The small chunks are embedded, then on retrieval, the original\n * \"parent\" documents are retrieved.\n *\n * This strikes a balance between better targeted retrieval with small documents\n * and the more context-rich larger documents.\n * @example\n * ```typescript\n * const retriever = new ParentDocumentRetriever({\n * vectorstore: new MemoryVectorStore(new OpenAIEmbeddings()),\n * byteStore: new InMemoryStore<Uint8Array>(),\n * parentSplitter: new RecursiveCharacterTextSplitter({\n * chunkOverlap: 0,\n * chunkSize: 500,\n * }),\n * childSplitter: new RecursiveCharacterTextSplitter({\n * chunkOverlap: 0,\n * chunkSize: 50,\n * }),\n * childK: 20,\n * parentK: 5,\n * });\n *\n * const parentDocuments = await getDocuments();\n * await retriever.addDocuments(parentDocuments);\n * const retrievedDocs = await retriever.invoke(\"justice breyer\");\n * ```\n */\nexport declare class ParentDocumentRetriever extends MultiVectorRetriever {\n static lc_name(): string;\n lc_namespace: string[];\n vectorstore: VectorStoreInterface;\n protected childSplitter: TextSplitter;\n protected parentSplitter?: TextSplitter;\n protected idKey: string;\n protected childK?: number;\n protected parentK?: number;\n childDocumentRetriever: VectorStoreRetrieverInterface<VectorStoreInterface> | undefined;\n documentCompressor: BaseDocumentCompressor | undefined;\n documentCompressorFilteringFn?: ParentDocumentRetrieverFields[\"documentCompressorFilteringFn\"];\n constructor(fields: ParentDocumentRetrieverFields);\n _getRelevantDocuments(query: string): Promise<Document[]>;\n _storeDocuments(parentDoc: Record<string, Document>, childDocs: Document[], addToDocstore: boolean): Promise<void>;\n /**\n * Adds documents to the docstore and vectorstores.\n * If a retriever is provided, it will be used to add documents instead of the vectorstore.\n * @param docs The documents to add\n * @param config.ids Optional list of ids for documents. If provided should be the same\n * length as the list of documents. Can provided if parent documents\n * are already in the document store and you don't want to re-add\n * to the docstore. If not provided, random UUIDs will be used as ids.\n * @param config.addToDocstore Boolean of whether to add documents to docstore.\n * This can be false if and only if `ids` are provided. You may want\n * to set this to False if the documents are already in the docstore\n * and you don't want to re-add them.\n * @param config.chunkHeaderOptions Object with options for adding Contextual chunk headers\n */\n addDocuments(docs: Document[], config?: {\n ids?: string[];\n addToDocstore?: boolean;\n childDocChunkHeaderOptions?: TextSplitterChunkHeaderOptions;\n }): Promise<void>;\n}\n//# sourceMappingURL=parent_document.d.ts.map"],"mappings":";;;;;;;KAKYQ,OAAAA,GAAUN,SAASO;;AAA/B;AAKA;;AACmBN,KADPO,6BAAAA,GAAgCH,yBACzBJ,GAAAA;EACEA,aAAAA,EADFA,YACEA;EAKsCH,cAAAA,CAAAA,EALtCG,YAKsCH;EAA9BC;;;;EAEiC,sBAAA,CAAA,EAFjCA,6BAEiC,CAFHD,oBAEG,CAAA;EAgCzCW,kBAAAA,CAAAA,EAjCIN,sBAiCmB,GAAA,SAAA;EAG3BL,6BAAAA,CAAAA,EAAAA,CAAAA,IAAAA,EAnC0BQ,OAmC1BR,EAAAA,GAnCsCQ,OAmCtCR;CACYG;;;;;;;;;;;;;;;;;AAJ4C;;;;;;;;;;;;;;cAApDQ,uBAAAA,SAAgCL,oBAAAA;;;eAGpCN;2BACYG;6BACEA;;;;0BAIHF,8BAA8BD;sBAClCK;kCACYK;sBACZA;wCACkBE,QAAQV;6BACnBO,eAAeP,sBAAsBA,qCAAqCU;;;;;;;;;;;;;;;qBAelFV;;;iCAGcE;MAC7BQ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"score_threshold.d.cts","names":["Document","VectorStore","VectorStoreRetriever","VectorStoreRetrieverInput","ScoreThresholdRetrieverInput","V","Omit","ScoreThresholdRetriever","Promise"],"sources":["../../src/retrievers/score_threshold.d.ts"],"sourcesContent":["import { Document } from \"@langchain/core/documents\";\nimport { VectorStore, VectorStoreRetriever, VectorStoreRetrieverInput } from \"@langchain/core/vectorstores\";\nexport type ScoreThresholdRetrieverInput<V extends VectorStore> = Omit<VectorStoreRetrieverInput<V>, \"k\"> & {\n maxK?: number;\n kIncrement?: number;\n minSimilarityScore: number;\n};\nexport declare class ScoreThresholdRetriever<V extends VectorStore> extends VectorStoreRetriever<V> {\n minSimilarityScore: number;\n kIncrement: number;\n maxK: number;\n constructor(input: ScoreThresholdRetrieverInput<V>);\n invoke(query: string): Promise<Document[]>;\n static fromVectorStore<V extends VectorStore>(vectorStore: V, options: Omit<ScoreThresholdRetrieverInput<V>, \"vectorStore\">): ScoreThresholdRetriever<V>;\n}\n//# sourceMappingURL=score_threshold.d.ts.map"],"mappings":";;;;KAEYI,uCAAuCH,eAAeK,KAAKH,0BAA0BE;;EAArFD,UAAAA,CAAAA,EAAAA,MAAAA;EAAuCH,kBAAAA,EAAAA,MAAAA;CAA8CI;AAA1BF,cAKlDI,uBALkDJ,CAAAA,UAKhBF,WALgBE,CAAAA,SAKKD,oBALLC,CAK0BE,CAL1BF,CAAAA,CAAAA;EAALG,kBAAAA,EAAAA,MAAAA;EAAI,UAAA,EAAA,MAAA;EAKjDC,IAAAA,EAAAA,MAAAA;EAAkCN,WAAAA,CAAAA,KAAAA,EAIhCG,4BAJgCH,CAIHI,CAJGJ,CAAAA;EAA0CI,MAAAA,CAAAA,KAAAA,EAAAA,MAAAA,CAAAA,EAKtEG,OALsEH,CAK9DL,QAL8DK,EAAAA,CAAAA;EAI7CA,OAAAA,eAAAA,CAAAA,UAEfJ,WAFeI,CAAAA,CAAAA,WAAAA,EAEWA,CAFXA,EAAAA,OAAAA,EAEuBC,IAFvBD,CAE4BD,4BAF5BC,CAEyDA,CAFzDA,CAAAA,EAAAA,aAAAA,CAAAA,CAAAA,EAE8EE,uBAF9EF,CAEsGA,CAFtGA,CAAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"score_threshold.d.ts","names":["Document","VectorStore","VectorStoreRetriever","VectorStoreRetrieverInput","ScoreThresholdRetrieverInput","V","Omit","ScoreThresholdRetriever","Promise"],"sources":["../../src/retrievers/score_threshold.d.ts"],"sourcesContent":["import { Document } from \"@langchain/core/documents\";\nimport { VectorStore, VectorStoreRetriever, VectorStoreRetrieverInput } from \"@langchain/core/vectorstores\";\nexport type ScoreThresholdRetrieverInput<V extends VectorStore> = Omit<VectorStoreRetrieverInput<V>, \"k\"> & {\n maxK?: number;\n kIncrement?: number;\n minSimilarityScore: number;\n};\nexport declare class ScoreThresholdRetriever<V extends VectorStore> extends VectorStoreRetriever<V> {\n minSimilarityScore: number;\n kIncrement: number;\n maxK: number;\n constructor(input: ScoreThresholdRetrieverInput<V>);\n invoke(query: string): Promise<Document[]>;\n static fromVectorStore<V extends VectorStore>(vectorStore: V, options: Omit<ScoreThresholdRetrieverInput<V>, \"vectorStore\">): ScoreThresholdRetriever<V>;\n}\n//# sourceMappingURL=score_threshold.d.ts.map"],"mappings":";;;;KAEYI,uCAAuCH,eAAeK,KAAKH,0BAA0BE;;EAArFD,UAAAA,CAAAA,EAAAA,MAAAA;EAAuCH,kBAAAA,EAAAA,MAAAA;CAA8CI;AAA1BF,cAKlDI,uBALkDJ,CAAAA,UAKhBF,WALgBE,CAAAA,SAKKD,oBALLC,CAK0BE,CAL1BF,CAAAA,CAAAA;EAALG,kBAAAA,EAAAA,MAAAA;EAAI,UAAA,EAAA,MAAA;EAKjDC,IAAAA,EAAAA,MAAAA;EAAkCN,WAAAA,CAAAA,KAAAA,EAIhCG,4BAJgCH,CAIHI,CAJGJ,CAAAA;EAA0CI,MAAAA,CAAAA,KAAAA,EAAAA,MAAAA,CAAAA,EAKtEG,OALsEH,CAK9DL,QAL8DK,EAAAA,CAAAA;EAI7CA,OAAAA,eAAAA,CAAAA,UAEfJ,WAFeI,CAAAA,CAAAA,WAAAA,EAEWA,CAFXA,EAAAA,OAAAA,EAEuBC,IAFvBD,CAE4BD,4BAF5BC,CAEyDA,CAFzDA,CAAAA,EAAAA,aAAAA,CAAAA,CAAAA,EAE8EE,uBAF9EF,CAEsGA,CAFtGA,CAAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":["RunnableInterface","BaseRetriever","BaseRetrieverInput","Document","VectorStore","BaseTranslator","StructuredQuery","CallbackManagerForRetrieverRun","QueryConstructorRunnableOptions","BasicTranslator","FunctionalTranslator","SelfQueryRetrieverArgs","T","SelfQueryRetriever","Record","Promise","Omit"],"sources":["../../../src/retrievers/self_query/index.d.ts"],"sourcesContent":["import { RunnableInterface } from \"@langchain/core/runnables\";\nimport { BaseRetriever, type BaseRetrieverInput } from \"@langchain/core/retrievers\";\nimport { Document } from \"@langchain/core/documents\";\nimport { VectorStore } from \"@langchain/core/vectorstores\";\nimport { BaseTranslator, StructuredQuery } from \"@langchain/core/structured_query\";\nimport { CallbackManagerForRetrieverRun } from \"@langchain/core/callbacks/manager\";\nimport { QueryConstructorRunnableOptions } from \"../../chains/query_constructor/index.js\";\nexport { BaseTranslator } from \"@langchain/core/structured_query\";\nexport { BasicTranslator, FunctionalTranslator, } from \"@langchain/core/structured_query\";\n/**\n * Interface for the arguments required to create a SelfQueryRetriever\n * instance. It extends the BaseRetrieverInput interface.\n */\nexport interface SelfQueryRetrieverArgs<T extends VectorStore> extends BaseRetrieverInput {\n vectorStore: T;\n structuredQueryTranslator: BaseTranslator<T>;\n queryConstructor: RunnableInterface<{\n query: string;\n }, StructuredQuery>;\n verbose?: boolean;\n useOriginalQuery?: boolean;\n searchParams?: {\n k?: number;\n filter?: T[\"FilterType\"];\n mergeFiltersOperator?: \"or\" | \"and\" | \"replace\";\n forceDefaultFilter?: boolean;\n };\n}\n/**\n * Class for question answering over an index. It retrieves relevant\n * documents based on a query. It extends the BaseRetriever class and\n * implements the SelfQueryRetrieverArgs interface.\n * @example\n * ```typescript\n * const selfQueryRetriever = SelfQueryRetriever.fromLLM({\n * llm: new ChatOpenAI({ model: \"gpt-4o-mini\" }),\n * vectorStore: await HNSWLib.fromDocuments(docs, new OpenAIEmbeddings()),\n * documentContents: \"Brief summary of a movie\",\n * attributeInfo: attributeInfo,\n * structuredQueryTranslator: new FunctionalTranslator(),\n * });\n * const relevantDocuments = await selfQueryRetriever.invoke(\n * \"Which movies are directed by Greta Gerwig?\",\n * );\n * ```\n */\nexport declare class SelfQueryRetriever<T extends VectorStore> extends BaseRetriever implements SelfQueryRetrieverArgs<T> {\n static lc_name(): string;\n get lc_namespace(): string[];\n vectorStore: T;\n queryConstructor: RunnableInterface<{\n query: string;\n }, StructuredQuery>;\n verbose?: boolean;\n structuredQueryTranslator: BaseTranslator<T>;\n useOriginalQuery: boolean;\n searchParams?: {\n k?: number;\n filter?: T[\"FilterType\"];\n mergeFiltersOperator?: \"or\" | \"and\" | \"replace\";\n forceDefaultFilter?: boolean;\n };\n constructor(options: SelfQueryRetrieverArgs<T>);\n _getRelevantDocuments(query: string, runManager?: CallbackManagerForRetrieverRun): Promise<Document<Record<string, unknown>>[]>;\n /**\n * Static method to create a new SelfQueryRetriever instance from a\n * BaseLanguageModel and a VectorStore. It first loads a query constructor\n * chain using the loadQueryConstructorChain function, then creates a new\n * SelfQueryRetriever instance with the loaded chain and the provided\n * options.\n * @param options The options used to create the SelfQueryRetriever instance. It includes the QueryConstructorChainOptions and all the SelfQueryRetrieverArgs except 'llmChain'.\n * @returns A new instance of SelfQueryRetriever.\n */\n static fromLLM<T extends VectorStore>(options: QueryConstructorRunnableOptions & Omit<SelfQueryRetrieverArgs<T>, \"queryConstructor\">): SelfQueryRetriever<T>;\n}\n//# sourceMappingURL=index.d.ts.map"],"mappings":";;;;;;;;;;AAaA;;;;AAE+BK,UAFdM,sBAEcN,CAAAA,UAFmBD,WAEnBC,CAAAA,SAFwCH,kBAExCG,CAAAA;EAGxBC,WAAAA,EAJUM,CAIVN;EAFeN,yBAAAA,EADSK,gBACTL,CADwBY,CACxBZ,CAAAA;EAOLY,gBAAAA,EAPKZ,iBAOLY,CAAAA;IAVsDV,KAAAA,EAAAA,MAAAA;EAAkB,CAAA,EAKlFI,eALkF,CAAA;EAiCpEO,OAAAA,CAAAA,EAAAA,OAAAA;EAA6BT,gBAAAA,CAAAA,EAAAA,OAAAA;EAAqEQ,YAAAA,CAAAA,EAAAA;IAGtGA,CAAAA,CAAAA,EAAAA,MAAAA;IAGVN,MAAAA,CAAAA,EA7BUM,CA6BVN,CAAAA,YAAAA,CAAAA;IAFeN,oBAAAA,CAAAA,EAAAA,IAAAA,GAAAA,KAAAA,GAAAA,SAAAA;IAIwBY,kBAAAA,CAAAA,EAAAA,OAAAA;EAAfP,CAAAA;;;;;;;;;;;;;;;;;AARuF;;;cAAjGQ,6BAA6BT,qBAAqBH,aAAAA,YAAyBU,uBAAuBC;;;eAGtGA;oBACKZ;;KAEfM;;6BAEwBD,iBAAeO;;;;aAI7BA;;;;uBAIQD,uBAAuBC;oDACML,iCAAiCQ,QAAQZ,SAASW;;;;;;;;;;2BAU3EV,sBAAsBI,kCAAkCQ,KAAKL,uBAAuBC,0BAA0BC,mBAAmBD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":["RunnableInterface","BaseRetriever","BaseRetrieverInput","Document","VectorStore","BaseTranslator","StructuredQuery","CallbackManagerForRetrieverRun","QueryConstructorRunnableOptions","BasicTranslator","FunctionalTranslator","SelfQueryRetrieverArgs","T","SelfQueryRetriever","Record","Promise","Omit"],"sources":["../../../src/retrievers/self_query/index.d.ts"],"sourcesContent":["import { RunnableInterface } from \"@langchain/core/runnables\";\nimport { BaseRetriever, type BaseRetrieverInput } from \"@langchain/core/retrievers\";\nimport { Document } from \"@langchain/core/documents\";\nimport { VectorStore } from \"@langchain/core/vectorstores\";\nimport { BaseTranslator, StructuredQuery } from \"@langchain/core/structured_query\";\nimport { CallbackManagerForRetrieverRun } from \"@langchain/core/callbacks/manager\";\nimport { QueryConstructorRunnableOptions } from \"../../chains/query_constructor/index.js\";\nexport { BaseTranslator } from \"@langchain/core/structured_query\";\nexport { BasicTranslator, FunctionalTranslator, } from \"@langchain/core/structured_query\";\n/**\n * Interface for the arguments required to create a SelfQueryRetriever\n * instance. It extends the BaseRetrieverInput interface.\n */\nexport interface SelfQueryRetrieverArgs<T extends VectorStore> extends BaseRetrieverInput {\n vectorStore: T;\n structuredQueryTranslator: BaseTranslator<T>;\n queryConstructor: RunnableInterface<{\n query: string;\n }, StructuredQuery>;\n verbose?: boolean;\n useOriginalQuery?: boolean;\n searchParams?: {\n k?: number;\n filter?: T[\"FilterType\"];\n mergeFiltersOperator?: \"or\" | \"and\" | \"replace\";\n forceDefaultFilter?: boolean;\n };\n}\n/**\n * Class for question answering over an index. It retrieves relevant\n * documents based on a query. It extends the BaseRetriever class and\n * implements the SelfQueryRetrieverArgs interface.\n * @example\n * ```typescript\n * const selfQueryRetriever = SelfQueryRetriever.fromLLM({\n * llm: new ChatOpenAI({ model: \"gpt-4o-mini\" }),\n * vectorStore: await HNSWLib.fromDocuments(docs, new OpenAIEmbeddings()),\n * documentContents: \"Brief summary of a movie\",\n * attributeInfo: attributeInfo,\n * structuredQueryTranslator: new FunctionalTranslator(),\n * });\n * const relevantDocuments = await selfQueryRetriever.invoke(\n * \"Which movies are directed by Greta Gerwig?\",\n * );\n * ```\n */\nexport declare class SelfQueryRetriever<T extends VectorStore> extends BaseRetriever implements SelfQueryRetrieverArgs<T> {\n static lc_name(): string;\n get lc_namespace(): string[];\n vectorStore: T;\n queryConstructor: RunnableInterface<{\n query: string;\n }, StructuredQuery>;\n verbose?: boolean;\n structuredQueryTranslator: BaseTranslator<T>;\n useOriginalQuery: boolean;\n searchParams?: {\n k?: number;\n filter?: T[\"FilterType\"];\n mergeFiltersOperator?: \"or\" | \"and\" | \"replace\";\n forceDefaultFilter?: boolean;\n };\n constructor(options: SelfQueryRetrieverArgs<T>);\n _getRelevantDocuments(query: string, runManager?: CallbackManagerForRetrieverRun): Promise<Document<Record<string, unknown>>[]>;\n /**\n * Static method to create a new SelfQueryRetriever instance from a\n * BaseLanguageModel and a VectorStore. It first loads a query constructor\n * chain using the loadQueryConstructorChain function, then creates a new\n * SelfQueryRetriever instance with the loaded chain and the provided\n * options.\n * @param options The options used to create the SelfQueryRetriever instance. It includes the QueryConstructorChainOptions and all the SelfQueryRetrieverArgs except 'llmChain'.\n * @returns A new instance of SelfQueryRetriever.\n */\n static fromLLM<T extends VectorStore>(options: QueryConstructorRunnableOptions & Omit<SelfQueryRetrieverArgs<T>, \"queryConstructor\">): SelfQueryRetriever<T>;\n}\n//# sourceMappingURL=index.d.ts.map"],"mappings":";;;;;;;;;;AAaA;;;;AAE+BK,UAFdM,sBAEcN,CAAAA,UAFmBD,WAEnBC,CAAAA,SAFwCH,kBAExCG,CAAAA;EAGxBC,WAAAA,EAJUM,CAIVN;EAFeN,yBAAAA,EADSK,gBACTL,CADwBY,CACxBZ,CAAAA;EAOLY,gBAAAA,EAPKZ,iBAOLY,CAAAA;IAVsDV,KAAAA,EAAAA,MAAAA;EAAkB,CAAA,EAKlFI,eALkF,CAAA;EAiCpEO,OAAAA,CAAAA,EAAAA,OAAAA;EAA6BT,gBAAAA,CAAAA,EAAAA,OAAAA;EAAqEQ,YAAAA,CAAAA,EAAAA;IAGtGA,CAAAA,CAAAA,EAAAA,MAAAA;IAGVN,MAAAA,CAAAA,EA7BUM,CA6BVN,CAAAA,YAAAA,CAAAA;IAFeN,oBAAAA,CAAAA,EAAAA,IAAAA,GAAAA,KAAAA,GAAAA,SAAAA;IAIwBY,kBAAAA,CAAAA,EAAAA,OAAAA;EAAfP,CAAAA;;;;;;;;;;;;;;;;;AARuF;;;cAAjGQ,6BAA6BT,qBAAqBH,aAAAA,YAAyBU,uBAAuBC;;;eAGtGA;oBACKZ;;KAEfM;;6BAEwBD,iBAAeO;;;;aAI7BA;;;;uBAIQD,uBAAuBC;oDACML,iCAAiCQ,QAAQZ,SAASW;;;;;;;;;;2BAU3EV,sBAAsBI,kCAAkCQ,KAAKL,uBAAuBC,0BAA0BC,mBAAmBD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time_weighted.d.cts","names":["BaseRetriever","BaseRetrieverInput","VectorStoreInterface","DocumentInterface","CallbackManagerForRetrieverRun","TimeWeightedVectorStoreRetrieverFields","LAST_ACCESSED_AT_KEY","BUFFER_IDX","TimeWeightedVectorStoreRetriever","Promise"],"sources":["../../src/retrievers/time_weighted.d.ts"],"sourcesContent":["import { BaseRetriever, BaseRetrieverInput } from \"@langchain/core/retrievers\";\nimport type { VectorStoreInterface } from \"@langchain/core/vectorstores\";\nimport type { DocumentInterface } from \"@langchain/core/documents\";\nimport { CallbackManagerForRetrieverRun } from \"@langchain/core/callbacks/manager\";\n/**\n * Interface for the fields required to initialize a\n * TimeWeightedVectorStoreRetriever instance.\n */\nexport interface TimeWeightedVectorStoreRetrieverFields extends BaseRetrieverInput {\n vectorStore: VectorStoreInterface;\n searchKwargs?: number;\n memoryStream?: DocumentInterface[];\n decayRate?: number;\n k?: number;\n otherScoreKeys?: string[];\n defaultSalience?: number;\n}\nexport declare const LAST_ACCESSED_AT_KEY = \"last_accessed_at\";\nexport declare const BUFFER_IDX = \"buffer_idx\";\n/**\n * TimeWeightedVectorStoreRetriever retrieves documents based on their time-weighted relevance.\n * ref: https://github.com/langchain-ai/langchain/blob/master/libs/langchain/langchain/retrievers/time_weighted_retriever.py\n * @example\n * ```typescript\n * const retriever = new TimeWeightedVectorStoreRetriever({\n * vectorStore: new MemoryVectorStore(new OpenAIEmbeddings()),\n * memoryStream: [],\n * searchKwargs: 2,\n * });\n * await retriever.addDocuments([\n * { pageContent: \"My name is John.\", metadata: {} },\n * { pageContent: \"My favourite food is pizza.\", metadata: {} },\n *\n * ]);\n * const results = await retriever.invoke(\n * \"What is my favourite food?\",\n * );\n * ```\n */\nexport declare class TimeWeightedVectorStoreRetriever extends BaseRetriever {\n static lc_name(): string;\n get lc_namespace(): string[];\n /**\n * The vectorstore to store documents and determine salience.\n */\n private vectorStore;\n /**\n * The number of top K most relevant documents to consider when searching.\n */\n private searchKwargs;\n /**\n * The memory_stream of documents to search through.\n */\n private memoryStream;\n /**\n * The exponential decay factor used as (1.0-decay_rate)**(hrs_passed).\n */\n private decayRate;\n /**\n * The maximum number of documents to retrieve in a given call.\n */\n private k;\n /**\n * Other keys in the metadata to factor into the score, e.g. 'importance'.\n */\n private otherScoreKeys;\n /**\n * The salience to assign memories not retrieved from the vector store.\n */\n private defaultSalience;\n /**\n * Constructor to initialize the required fields\n * @param fields - The fields required for initializing the TimeWeightedVectorStoreRetriever\n */\n constructor(fields: TimeWeightedVectorStoreRetrieverFields);\n /**\n * Get the memory stream of documents.\n * @returns The memory stream of documents.\n */\n getMemoryStream(): DocumentInterface[];\n /**\n * Set the memory stream of documents.\n * @param memoryStream The new memory stream of documents.\n */\n setMemoryStream(memoryStream: DocumentInterface[]): void;\n /**\n * Get relevant documents based on time-weighted relevance\n * @param query - The query to search for\n * @returns The relevant documents\n */\n _getRelevantDocuments(query: string, runManager?: CallbackManagerForRetrieverRun): Promise<DocumentInterface[]>;\n /**\n * NOTE: When adding documents to a vector store, use addDocuments\n * via retriever instead of directly to the vector store.\n * This is because it is necessary to process the document\n * in prepareDocuments.\n *\n * @param docs - The documents to add to vector store in the retriever\n */\n addDocuments(docs: DocumentInterface[]): Promise<void>;\n /**\n * Get memory documents and their scores\n * @returns An object containing memory documents and their scores\n */\n private getMemoryDocsAndScores;\n private getSalientDocuments;\n /**\n * Compute the final result set of documents based on the combined scores\n * @param docsAndScores - An object containing documents and their scores\n * @param now - The current timestamp\n * @returns The final set of documents\n */\n private computeResults;\n /**\n * Prepare documents with necessary metadata before saving\n * @param docs - The documents to prepare\n * @param now - The current timestamp\n * @returns The prepared documents\n */\n private prepareDocuments;\n /**\n * Calculate the combined score based on vector relevance and other factors\n * @param doc - The document to calculate the score for\n * @param vectorRelevance - The relevance score from the vector store\n * @param nowMsec - The current timestamp in milliseconds\n * @returns The combined score for the document\n */\n private getCombinedScore;\n /**\n * Calculate the hours passed between two time points\n * @param time - The current time in seconds\n * @param refTime - The reference time in seconds\n * @returns The number of hours passed between the two time points\n */\n private getHoursPassed;\n}\n//# sourceMappingURL=time_weighted.d.ts.map"],"mappings":";;;;;;;;;AAQA;;AAGmBG,UAHFE,sCAAAA,SAA+CJ,kBAG7CE,CAAAA;EAH6CF,WAAAA,EAC/CC,oBAD+CD;EAAkB,YAAA,CAAA,EAAA,MAAA;EAS7DK,YAAAA,CAAAA,EANFH,iBAMsB,EAAA;EACpBI,SAAAA,CAAAA,EAAAA,MAAU;EAqBVC,CAAAA,CAAAA,EAAAA,MAAAA;EAmCGH,cAAAA,CAAAA,EAAAA,MAAAA,EAAAA;EAKDF,eAAAA,CAAAA,EAAAA,MAAAA;;AAW+BC,cAzEjCE,oBAAAA,GAyEiCF,kBAAAA;AAAyCD,cAxE1EI,UAAAA,GAwE0EJ,YAAAA;;;;;AAnDpB;;;;;;;;;;;;;;;;cAAtDK,gCAAAA,SAAyCR,aAAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAmCtCK;;;;;qBAKDF;;;;;gCAKWA;;;;;;oDAMoBC,iCAAiCK,QAAQN;;;;;;;;;qBASxEA,sBAAsBM"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time_weighted.d.ts","names":["BaseRetriever","BaseRetrieverInput","VectorStoreInterface","DocumentInterface","CallbackManagerForRetrieverRun","TimeWeightedVectorStoreRetrieverFields","LAST_ACCESSED_AT_KEY","BUFFER_IDX","TimeWeightedVectorStoreRetriever","Promise"],"sources":["../../src/retrievers/time_weighted.d.ts"],"sourcesContent":["import { BaseRetriever, BaseRetrieverInput } from \"@langchain/core/retrievers\";\nimport type { VectorStoreInterface } from \"@langchain/core/vectorstores\";\nimport type { DocumentInterface } from \"@langchain/core/documents\";\nimport { CallbackManagerForRetrieverRun } from \"@langchain/core/callbacks/manager\";\n/**\n * Interface for the fields required to initialize a\n * TimeWeightedVectorStoreRetriever instance.\n */\nexport interface TimeWeightedVectorStoreRetrieverFields extends BaseRetrieverInput {\n vectorStore: VectorStoreInterface;\n searchKwargs?: number;\n memoryStream?: DocumentInterface[];\n decayRate?: number;\n k?: number;\n otherScoreKeys?: string[];\n defaultSalience?: number;\n}\nexport declare const LAST_ACCESSED_AT_KEY = \"last_accessed_at\";\nexport declare const BUFFER_IDX = \"buffer_idx\";\n/**\n * TimeWeightedVectorStoreRetriever retrieves documents based on their time-weighted relevance.\n * ref: https://github.com/langchain-ai/langchain/blob/master/libs/langchain/langchain/retrievers/time_weighted_retriever.py\n * @example\n * ```typescript\n * const retriever = new TimeWeightedVectorStoreRetriever({\n * vectorStore: new MemoryVectorStore(new OpenAIEmbeddings()),\n * memoryStream: [],\n * searchKwargs: 2,\n * });\n * await retriever.addDocuments([\n * { pageContent: \"My name is John.\", metadata: {} },\n * { pageContent: \"My favourite food is pizza.\", metadata: {} },\n *\n * ]);\n * const results = await retriever.invoke(\n * \"What is my favourite food?\",\n * );\n * ```\n */\nexport declare class TimeWeightedVectorStoreRetriever extends BaseRetriever {\n static lc_name(): string;\n get lc_namespace(): string[];\n /**\n * The vectorstore to store documents and determine salience.\n */\n private vectorStore;\n /**\n * The number of top K most relevant documents to consider when searching.\n */\n private searchKwargs;\n /**\n * The memory_stream of documents to search through.\n */\n private memoryStream;\n /**\n * The exponential decay factor used as (1.0-decay_rate)**(hrs_passed).\n */\n private decayRate;\n /**\n * The maximum number of documents to retrieve in a given call.\n */\n private k;\n /**\n * Other keys in the metadata to factor into the score, e.g. 'importance'.\n */\n private otherScoreKeys;\n /**\n * The salience to assign memories not retrieved from the vector store.\n */\n private defaultSalience;\n /**\n * Constructor to initialize the required fields\n * @param fields - The fields required for initializing the TimeWeightedVectorStoreRetriever\n */\n constructor(fields: TimeWeightedVectorStoreRetrieverFields);\n /**\n * Get the memory stream of documents.\n * @returns The memory stream of documents.\n */\n getMemoryStream(): DocumentInterface[];\n /**\n * Set the memory stream of documents.\n * @param memoryStream The new memory stream of documents.\n */\n setMemoryStream(memoryStream: DocumentInterface[]): void;\n /**\n * Get relevant documents based on time-weighted relevance\n * @param query - The query to search for\n * @returns The relevant documents\n */\n _getRelevantDocuments(query: string, runManager?: CallbackManagerForRetrieverRun): Promise<DocumentInterface[]>;\n /**\n * NOTE: When adding documents to a vector store, use addDocuments\n * via retriever instead of directly to the vector store.\n * This is because it is necessary to process the document\n * in prepareDocuments.\n *\n * @param docs - The documents to add to vector store in the retriever\n */\n addDocuments(docs: DocumentInterface[]): Promise<void>;\n /**\n * Get memory documents and their scores\n * @returns An object containing memory documents and their scores\n */\n private getMemoryDocsAndScores;\n private getSalientDocuments;\n /**\n * Compute the final result set of documents based on the combined scores\n * @param docsAndScores - An object containing documents and their scores\n * @param now - The current timestamp\n * @returns The final set of documents\n */\n private computeResults;\n /**\n * Prepare documents with necessary metadata before saving\n * @param docs - The documents to prepare\n * @param now - The current timestamp\n * @returns The prepared documents\n */\n private prepareDocuments;\n /**\n * Calculate the combined score based on vector relevance and other factors\n * @param doc - The document to calculate the score for\n * @param vectorRelevance - The relevance score from the vector store\n * @param nowMsec - The current timestamp in milliseconds\n * @returns The combined score for the document\n */\n private getCombinedScore;\n /**\n * Calculate the hours passed between two time points\n * @param time - The current time in seconds\n * @param refTime - The reference time in seconds\n * @returns The number of hours passed between the two time points\n */\n private getHoursPassed;\n}\n//# sourceMappingURL=time_weighted.d.ts.map"],"mappings":";;;;;;;;;AAQA;;AAGmBG,UAHFE,sCAAAA,SAA+CJ,kBAG7CE,CAAAA;EAH6CF,WAAAA,EAC/CC,oBAD+CD;EAAkB,YAAA,CAAA,EAAA,MAAA;EAS7DK,YAAAA,CAAAA,EANFH,iBAMsB,EAAA;EACpBI,SAAAA,CAAAA,EAAAA,MAAU;EAqBVC,CAAAA,CAAAA,EAAAA,MAAAA;EAmCGH,cAAAA,CAAAA,EAAAA,MAAAA,EAAAA;EAKDF,eAAAA,CAAAA,EAAAA,MAAAA;;AAW+BC,cAzEjCE,oBAAAA,GAyEiCF,kBAAAA;AAAyCD,cAxE1EI,UAAAA,GAwE0EJ,YAAAA;;;;;AAnDpB;;;;;;;;;;;;;;;;cAAtDK,gCAAAA,SAAyCR,aAAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAmCtCK;;;;;qBAKDF;;;;;gCAKWA;;;;;;oDAMoBC,iCAAiCK,QAAQN;;;;;;;;;qBASxEA,sBAAsBM"}
|