Commit Graph

60 Commits (7c8c4e57438344648ca0ce786c9f6e21ebc6d6df)

Author SHA1 Message Date
Eugene Yurtsev 8c71f92cb2
core: upgrade mypy to recent mypy (#18753)
Testing this works per package on CI
7 months ago
Erick Friis c09b520ce4
core[patch]: release 0.1.30 (#18706) 7 months ago
Christophe Bornet ea141511d8
core: Move document loader interfaces to core (#17723)
This is needed to be able to move document loaders to partner packages.

---------

Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com>
7 months ago
Erick Friis e1924b3e93
core[patch]: deprecate hwchase17/langchain-hub, address path traversal (#18600)
Deprecates the old langchain-hub repository. Does *not* deprecate the
new https://smith.langchain.com/hub

@PinkDraconian has correctly raised that in the event someone is loading
unsanitized user input into the `try_load_from_hub` function, they have
the ability to load files from other locations in github than the
hwchase17/langchain-hub repository.

This PR adds some more path checking to that function and deprecates the
functionality in favor of the hub built into LangSmith.
7 months ago
Bagatur dd07eddf24
core[patch]: Release 0.1.29 (#18530) 7 months ago
Bagatur 9e46535ebc
core[patch]: Release 0.1.28 (#18341) 7 months ago
Bagatur 7e66d964c6
core[patch]: Release 0.1.27 (#18159) 7 months ago
Bagatur e045655657
core[patch]: Release 0.1.26 (#17990) 7 months ago
Bagatur 4e28888d45
core[patch]: Release 0.1.25 (#17833) 7 months ago
Nuno Campos 07ee41d284
Cache calls to create_model for get_input_schema and get_output_schema (#17755)
Thank you for contributing to LangChain!

- [ ] **PR title**: "package: description"
- Where "package" is whichever of langchain, community, core,
experimental, etc. is being modified. Use "docs: ..." for purely docs
changes, "templates: ..." for template changes, "infra: ..." for CI
changes.
  - Example: "community: add foobar LLM"


- [ ] **PR message**: ***Delete this entire checklist*** and replace
with
    - **Description:** a description of the change
    - **Issue:** the issue # it fixes, if applicable
    - **Dependencies:** any dependencies required for this change
- **Twitter handle:** if your PR gets announced, and you'd like a
mention, we'll gladly shout you out!


- [ ] **Add tests and docs**: 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/docs/integrations` directory.


- [ ] **Lint and test**: Run `make format`, `make lint` and `make test`
from the root of the package(s) you've modified. See contribution
guidelines for more: https://python.langchain.com/docs/contributing/

Additional guidelines:
- Make sure optional dependencies are imported within a function.
- Please do not add dependencies to pyproject.toml files (even optional
ones) unless they are required for unit tests.
- Most PRs should not touch more than one package.
- Changes should be backwards compatible.
- If you are adding something to community, do not re-import it in
langchain.

If no one reviews your PR within a few days, please @-mention one of
baskaryan, efriis, eyurtsev, hwchase17.
7 months ago
Bagatur 8009be862e
core[patch]: Release 0.1.24 (#17744) 7 months ago
William FH 64743dea14
core[patch], community[patch], langchain[patch], experimental[patch], robocorp[patch]: bump LangSmith 0.1.* (#17567) 7 months ago
Bagatur 89b765ec27
core[patch]: Release 0.1.23 (#17479) 7 months ago
Erick Friis 3a2eb6e12b
infra: add print rule to ruff (#16221)
Added noqa for existing prints. Can slowly remove / will prevent more
being intro'd
7 months ago
Charlie Marsh 24c0bab57b
infra, multiple: Upgrade configuration for Ruff v0.2.0 (#16905)
## Summary

This PR upgrades LangChain's Ruff configuration in preparation for
Ruff's v0.2.0 release. (The changes are compatible with Ruff v0.1.5,
which LangChain uses today.) Specifically, we're now warning when
linter-only options are specified under `[tool.ruff]` instead of
`[tool.ruff.lint]`.

---------

Co-authored-by: Erick Friis <erick@langchain.dev>
Co-authored-by: Bagatur <baskaryan@gmail.com>
7 months ago
Bagatur 7fa4dc593f
core[patch]: Release 0.1.22 (#17274) 7 months ago
Bagatur 00757567ba
core[patch]: Release 0.1.21 (#17202) 7 months ago
Bagatur 78409634fe
core[patch]: Release 0.1.20 (#17194) 7 months ago
Nuno Campos 65798289a4
core[minor]: Use batched tracing in sdk (#16305)
Remove threadpool executor usage in langchain tracer, this is now
handled by sdk
7 months ago
Bagatur cd945e3a5b
core[patch]: Release 0.1.19 (#17117) 8 months ago
Bagatur bb73251146
core[patch]: Release 0.1.18 (#16870) 8 months ago
Bagatur 7237dc67d4
core[patch]: Release 0.1.17 (#16737) 8 months ago
Bagatur 1e3ce338ca
core[patch]: Release 0.1.16 (#16589) 8 months ago
Bagatur ef6a335570
core[patch]: Release 0.1.15 (#16473) 8 months ago
Erick Friis cfe95ab085
multiple: update langsmith dep (#16407) 8 months ago
Bagatur 9cf0f5eb78
core[patch]: Release 0.1.14 (#16382) 8 months ago
Bagatur e3828bee43
core[patch]: Release 0.1.13 (#16287) 8 months ago
SN f175bf7d7b
Use env for revision id if not passed in as param; use `git describe` as backup (#16227)
Co-authored-by: William Fu-Hinthorn <13333726+hinthornw@users.noreply.github.com>
8 months ago
Bagatur 7ad9eba8f4
core[patch]: Release 0.1.12 (#16161) 8 months ago
Bagatur 5c73fd5bba
core[patch]: support old core namespaces (#16155) 8 months ago
Bagatur 076593382a
core[patch]: Release 0.1.11 (#16100) 8 months ago
Erick Friis 437cebc955
core[patch]: release 0.1.10 (#15911) 8 months ago
Erick Friis 33dccf0f66
core[patch]: release 0.1.9 (#15794) 8 months ago
Bagatur 60f925d678
core[patch]: Release 0.1.8 (#15677) 9 months ago
Bagatur 96b47e18e0
core[patch]: Release 0.1.7 (#15610) 9 months ago
Bagatur 817b84de9e
core[patch]: Release 0.1.6 (#15547) 9 months ago
Bagatur b317ad2472
core[patch]: Release 0.1.5 (#15480) 9 months ago
Bagatur 80ceed6da5
core[patch]: Release 0.1.4 (#15319) 9 months ago
Nuno Campos 7d5800ee51
Add Runnable.get_graph() to get a graph representation of a Runnable (#15040)
It can be drawn in ascii with Runnable.get_graph().draw()
9 months ago
Bagatur 7eb1100925
core[patch]: Release 0.1.3 (#15022) 9 months ago
Bagatur a841f62791
core[patch]: 0.1.2 (#14959) 9 months ago
Bagatur b802dd96f2
core[patch]: Release 0.1.1 (#14738) 9 months ago
Bagatur 5d1deddbfb
core[minor]: Release 0.1.0 (#14607) 9 months ago
Bagatur 9cb128e6e2
core[patch]: Release 0.0.13 (#14558) 9 months ago
Bagatur ed58eeb9c5
community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#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
9 months ago
Bagatur eb209e7ee3
core[patch]: Release 0.0.12 (#14415) 10 months ago
Bagatur b2280fd874
core[patch], langchain[patch]: fix required deps (#14373) 10 months ago
Bagatur a7271cf5bd
core[patch]: Release 0.0.11 (#14367) 10 months ago
Bagatur 4a5a13aab3
core[patch]: Release 0.0.10 (#14303) 10 months ago
Bagatur 15c04a5670
core[patch]: Release 0.0.9 (#14182) 10 months ago