PR Merging Master with CogniSwitch Chains - #1
Open
CogniJT wants to merge 15 commits into
Open
Conversation
… Create langchain-community (langchain-ai#14463) Moved the following modules to new package langchain-community in a backwards compatible fashion: ``` mv langchain/langchain/adapters community/langchain_community mv langchain/langchain/callbacks community/langchain_community/callbacks mv langchain/langchain/chat_loaders community/langchain_community mv langchain/langchain/chat_models community/langchain_community mv langchain/langchain/document_loaders community/langchain_community mv langchain/langchain/docstore community/langchain_community mv langchain/langchain/document_transformers community/langchain_community mv langchain/langchain/embeddings community/langchain_community mv langchain/langchain/graphs community/langchain_community mv langchain/langchain/llms community/langchain_community mv langchain/langchain/memory/chat_message_histories community/langchain_community mv langchain/langchain/retrievers community/langchain_community mv langchain/langchain/storage community/langchain_community mv langchain/langchain/tools community/langchain_community mv langchain/langchain/utilities community/langchain_community mv langchain/langchain/vectorstores community/langchain_community mv langchain/langchain/agents/agent_toolkits community/langchain_community mv langchain/langchain/cache.py community/langchain_community mv langchain/langchain/adapters community/langchain_community mv langchain/langchain/callbacks community/langchain_community/callbacks mv langchain/langchain/chat_loaders community/langchain_community mv langchain/langchain/chat_models community/langchain_community mv langchain/langchain/document_loaders community/langchain_community mv langchain/langchain/docstore community/langchain_community mv langchain/langchain/document_transformers community/langchain_community mv langchain/langchain/embeddings community/langchain_community mv langchain/langchain/graphs community/langchain_community mv langchain/langchain/llms community/langchain_community mv langchain/langchain/memory/chat_message_histories community/langchain_community mv langchain/langchain/retrievers community/langchain_community mv langchain/langchain/storage community/langchain_community mv langchain/langchain/tools community/langchain_community mv langchain/langchain/utilities community/langchain_community mv langchain/langchain/vectorstores community/langchain_community mv langchain/langchain/agents/agent_toolkits community/langchain_community mv langchain/langchain/cache.py community/langchain_community ``` Moved the following to core ``` mv langchain/langchain/utils/json_schema.py core/langchain_core/utils mv langchain/langchain/utils/html.py core/langchain_core/utils mv langchain/langchain/utils/strings.py core/langchain_core/utils cat langchain/langchain/utils/env.py >> core/langchain_core/utils/env.py rm langchain/langchain/utils/env.py ``` See .scripts/community_split/script_integrations.sh for all changes
<!-- Thank you for contributing to LangChain! Replace this entire comment with: - **Description:** a description of the change, - **Issue:** the issue # it fixes (if applicable), - **Dependencies:** any dependencies required for this change, - **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below), - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md If you're adding a new integration, please include: 1. a test for the integration, preferably unit tests that do not rely on network access, 2. an example notebook showing its use. It lives in `docs/extras` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. -->
TIL `**` globstar doesn't work in make Makefile changes fix that. `__getattr__` changes allow import of all files, but raise error when accessing anything from the module. file deletions were corresponding libs change from langchain-ai#14559
Was taking 10 mins. Now a few seconds.
Update imports to use core for the low-hanging fruit changes. Ran
following
```bash
git grep -l 'langchain.schema.runnable' {docs,templates,cookbook} | xargs sed -i '' 's/langchain\.schema\.runnable/langchain_core.runnables/g'
git grep -l 'langchain.schema.output_parser' {docs,templates,cookbook} | xargs sed -i '' 's/langchain\.schema\.output_parser/langchain_core.output_parsers/g'
git grep -l 'langchain.schema.messages' {docs,templates,cookbook} | xargs sed -i '' 's/langchain\.schema\.messages/langchain_core.messages/g'
git grep -l 'langchain.schema.chat_histry' {docs,templates,cookbook} | xargs sed -i '' 's/langchain\.schema\.chat_history/langchain_core.chat_history/g'
git grep -l 'langchain.schema.prompt_template' {docs,templates,cookbook} | xargs sed -i '' 's/langchain\.schema\.prompt_template/langchain_core.prompts/g'
git grep -l 'from langchain.pydantic_v1' {docs,templates,cookbook} | xargs sed -i '' 's/from langchain\.pydantic_v1/from langchain_core.pydantic_v1/g'
git grep -l 'from langchain.tools.base' {docs,templates,cookbook} | xargs sed -i '' 's/from langchain\.tools\.base/from langchain_core.tools/g'
git grep -l 'from langchain.chat_models.base' {docs,templates,cookbook} | xargs sed -i '' 's/from langchain\.chat_models.base/from langchain_core.language_models.chat_models/g'
git grep -l 'from langchain.llms.base' {docs,templates,cookbook} | xargs sed -i '' 's/from langchain\.llms\.base\ /from langchain_core.language_models.llms\ /g'
git grep -l 'from langchain.embeddings.base' {docs,templates,cookbook} | xargs sed -i '' 's/from langchain\.embeddings\.base/from langchain_core.embeddings/g'
git grep -l 'from langchain.vectorstores.base' {docs,templates,cookbook} | xargs sed -i '' 's/from langchain\.vectorstores\.base/from langchain_core.vectorstores/g'
git grep -l 'from langchain.agents.tools' {docs,templates,cookbook} | xargs sed -i '' 's/from langchain\.agents\.tools/from langchain_core.tools/g'
git grep -l 'from langchain.schema.output' {docs,templates,cookbook} | xargs sed -i '' 's/from langchain\.schema\.output\ /from langchain_core.outputs\ /g'
git grep -l 'from langchain.schema.embeddings' {docs,templates,cookbook} | xargs sed -i '' 's/from langchain\.schema\.embeddings/from langchain_core.embeddings/g'
git grep -l 'from langchain.schema.document' {docs,templates,cookbook} | xargs sed -i '' 's/from langchain\.schema\.document/from langchain_core.documents/g'
git grep -l 'from langchain.schema.agent' {docs,templates,cookbook} | xargs sed -i '' 's/from langchain\.schema\.agent/from langchain_core.agents/g'
git grep -l 'from langchain.schema.prompt ' {docs,templates,cookbook} | xargs sed -i '' 's/from langchain\.schema\.prompt\ /from langchain_core.prompt_values /g'
git grep -l 'from langchain.schema.language_model' {docs,templates,cookbook} | xargs sed -i '' 's/from langchain\.schema\.language_model/from langchain_core.language_models/g'
```
<!-- Thank you for contributing to LangChain! Replace this entire comment with: - **Description:** a description of the change, - **Issue:** the issue # it fixes (if applicable), - **Dependencies:** any dependencies required for this change, - **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below), - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md If you're adding a new integration, please include: 1. a test for the integration, preferably unit tests that do not rely on network access, 2. an example notebook showing its use. It lives in `docs/extras` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. --> Fix `from langchain.llms import DatabricksEmbeddings` to `from langchain.embeddings import DatabricksEmbeddings`. Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>
This PR updates RunnableWithMessage history to support user specific configuration for the factory. It extends support to passing multiple named arguments into the factory if the factory takes more than a single argument.
CogniJT
had a problem deploying
to
Scheduled testing
December 12, 2023 13:08 — with
GitHub Actions
Failure
CogniJT
had a problem deploying
to
Scheduled testing
December 12, 2023 13:09 — with
GitHub Actions
Failure
CogniJT
had a problem deploying
to
Scheduled testing
December 12, 2023 13:09 — with
GitHub Actions
Failure
CogniJT
had a problem deploying
to
Scheduled testing
December 12, 2023 13:09 — with
GitHub Actions
Failure
CogniJT
had a problem deploying
to
Scheduled testing
December 13, 2023 13:09 — with
GitHub Actions
Failure
CogniJT
had a problem deploying
to
Scheduled testing
December 13, 2023 13:09 — with
GitHub Actions
Failure
CogniJT
had a problem deploying
to
Scheduled testing
December 13, 2023 13:09 — with
GitHub Actions
Failure
CogniJT
had a problem deploying
to
Scheduled testing
December 13, 2023 13:09 — with
GitHub Actions
Failure
CogniJT
had a problem deploying
to
Scheduled testing
December 14, 2023 13:09 — with
GitHub Actions
Error
CogniJT
had a problem deploying
to
Scheduled testing
December 14, 2023 13:09 — with
GitHub Actions
Error
CogniJT
had a problem deploying
to
Scheduled testing
December 14, 2023 13:09 — with
GitHub Actions
Failure
CogniJT
had a problem deploying
to
Scheduled testing
December 14, 2023 13:09 — with
GitHub Actions
Failure
CogniJT
had a problem deploying
to
Scheduled testing
December 15, 2023 13:08 — with
GitHub Actions
Failure
CogniJT
had a problem deploying
to
Scheduled testing
December 15, 2023 13:08 — with
GitHub Actions
Failure
CogniJT
had a problem deploying
to
Scheduled testing
December 15, 2023 13:08 — with
GitHub Actions
Failure
CogniJT
had a problem deploying
to
Scheduled testing
December 22, 2023 13:07 — with
GitHub Actions
Failure
CogniJT
had a problem deploying
to
Scheduled testing
December 22, 2023 13:07 — with
GitHub Actions
Failure
CogniJT
had a problem deploying
to
Scheduled testing
December 22, 2023 13:07 — with
GitHub Actions
Error
CogniJT
had a problem deploying
to
Scheduled testing
December 22, 2023 13:07 — with
GitHub Actions
Failure
CogniJT
had a problem deploying
to
Scheduled testing
December 23, 2023 13:04 — with
GitHub Actions
Error
CogniJT
had a problem deploying
to
Scheduled testing
December 23, 2023 13:04 — with
GitHub Actions
Error
CogniJT
had a problem deploying
to
Scheduled testing
December 23, 2023 13:04 — with
GitHub Actions
Failure
CogniJT
had a problem deploying
to
Scheduled testing
December 23, 2023 13:04 — with
GitHub Actions
Failure
CogniJT
had a problem deploying
to
Scheduled testing
December 24, 2023 13:05 — with
GitHub Actions
Failure
CogniJT
had a problem deploying
to
Scheduled testing
December 24, 2023 13:05 — with
GitHub Actions
Failure
CogniJT
had a problem deploying
to
Scheduled testing
December 24, 2023 13:05 — with
GitHub Actions
Failure
CogniJT
had a problem deploying
to
Scheduled testing
December 24, 2023 13:05 — with
GitHub Actions
Failure
CogniJT
had a problem deploying
to
Scheduled testing
December 25, 2023 13:07 — with
GitHub Actions
Failure
CogniJT
had a problem deploying
to
Scheduled testing
December 25, 2023 13:07 — with
GitHub Actions
Failure
CogniJT
had a problem deploying
to
Scheduled testing
December 25, 2023 13:07 — with
GitHub Actions
Failure
CogniJT
had a problem deploying
to
Scheduled testing
December 25, 2023 13:07 — with
GitHub Actions
Error
CogniJT
had a problem deploying
to
Scheduled testing
December 26, 2023 13:06 — with
GitHub Actions
Failure
CogniJT
had a problem deploying
to
Scheduled testing
December 26, 2023 13:06 — with
GitHub Actions
Failure
CogniJT
had a problem deploying
to
Scheduled testing
December 26, 2023 13:06 — with
GitHub Actions
Failure
CogniJT
had a problem deploying
to
Scheduled testing
December 26, 2023 13:06 — with
GitHub Actions
Failure
CogniJT
had a problem deploying
to
Scheduled testing
December 27, 2023 13:07 — with
GitHub Actions
Failure
CogniJT
had a problem deploying
to
Scheduled testing
December 27, 2023 13:07 — with
GitHub Actions
Failure
CogniJT
had a problem deploying
to
Scheduled testing
December 27, 2023 13:07 — with
GitHub Actions
Failure
CogniJT
had a problem deploying
to
Scheduled testing
December 27, 2023 13:07 — with
GitHub Actions
Error
CogniJT
had a problem deploying
to
Scheduled testing
December 28, 2023 13:07 — with
GitHub Actions
Failure
CogniJT
had a problem deploying
to
Scheduled testing
December 28, 2023 13:07 — with
GitHub Actions
Failure
CogniJT
had a problem deploying
to
Scheduled testing
December 28, 2023 13:07 — with
GitHub Actions
Failure
CogniJT
had a problem deploying
to
Scheduled testing
December 28, 2023 13:07 — with
GitHub Actions
Failure
CogniJT
had a problem deploying
to
Scheduled testing
December 29, 2023 13:07 — with
GitHub Actions
Failure
CogniJT
had a problem deploying
to
Scheduled testing
December 29, 2023 13:07 — with
GitHub Actions
Error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.