Erick Friis
0541e06e21
infra: 0.2 docs 404 page ( #21634 )
2024-05-13 22:11:28 +00:00
Erick Friis
e861b5bcb7
infra: fix api ref link generation ( #21631 )
2024-05-13 14:52:26 -07:00
Erick Friis
9b51ca08bc
huggingface: fix community dep checking ( #21628 )
2024-05-13 21:52:18 +00:00
Erick Friis
91a2ea5cd6
chroma, mongodb: fix docstrings ( #21629 )
2024-05-13 21:27:43 +00:00
Jofthomas
afd85b60fc
huggingface: init package ( #21097 )
...
First Pr for the langchain_huggingface partner Package
- Moved some of the hugging face related class from `community` to the
new `partner package`
Still needed :
- Documentation
- Tests
- Support for the new apply_chat_template in `ChatHuggingFace`
- Confirm choice of class to support for embeddings witht he
sentence-transformer team.
cc : @efriis
---------
Co-authored-by: Cyril Kondratenko <kkn1993@gmail.com>
Co-authored-by: Erick Friis <erick@langchain.dev>
2024-05-13 20:53:15 +00:00
Tomaz Bratanic
9fce03e7db
community[patch]: Fix neo4j enhanced schema ( #21582 )
2024-05-13 15:26:06 -04:00
Christophe Bornet
66a4da8ad0
community[patch]: Improve Cassandra VectorStore docsctrings ( #21620 )
2024-05-13 15:24:26 -04:00
adreo00
40aff1eacc
core[major]: AsyncCallbackManagerForToolRun no longer casts return object to string ( #20374 )
...
- **Description:** Stops `AsyncCallbackManagerForToolRun` from
converting the output to str
- **Issue:** #20372
- **Dependencies:** None
2024-05-13 15:09:12 -04:00
Eugene Yurtsev
25fbe356b4
community[patch]: upgrade to recent version of mypy ( #21616 )
...
This PR upgrades community to a recent version of mypy. It inserts type:
ignore on all existing failures.
2024-05-13 14:55:07 -04:00
Eugene Yurtsev
b923951062
langchain[patch]: CI add lint rule for community imports ( #21618 )
...
Add a rule to check for imports from community in global scope
2024-05-13 14:51:25 -04:00
Jorge Piedrahita Ortiz
4378fbbef0
community[patch]: Fix typos in Sambanova integration doc-strings ( #21617 )
...
- **Description:** Sambanova integration docstrings updated, bad
formated
---------
Co-authored-by: Eugene Yurtsev <eugene@langchain.dev>
2024-05-13 18:35:16 +00:00
Erick Friis
0f5bf94f9f
infra: remove ai21 docs scan features ( #21614 )
...
ai21 depends on ai21-tokenizer which depends on too restrictive/old
version of `tokenizers`
2024-05-13 18:05:53 +00:00
ccurme
fe08421207
docs: add hybrid retrieval how-to guide ( #21613 )
...
Updating v0.2 docs with
https://github.com/langchain-ai/langchain/pull/21245
2024-05-13 14:03:55 -04:00
Christophe Bornet
bcf53f93e1
[community]: Add missing docstring param to CassandraLoader ( #21611 )
2024-05-13 16:03:18 +00:00
Christophe Bornet
e6fa4547b1
community[minor]: Add alazy_load to AsyncHtmlLoader ( #21536 )
...
Also fixes a bug that `_scrape` was called and was doing a second HTTP
request synchronously.
**Twitter handle:** cbornet_
2024-05-13 12:01:03 -04:00
Leonid Ganeline
4c48732f94
docs: providers
updates 1 ( #20256 )
...
- Proviers pages: added missed integrations; fixed format
- `mistralai` converted from notebook to .mdx format
2024-05-13 11:54:51 -04:00
ccurme
15cb1133e7
docs: fix path for state_of_the_union sample file ( #21609 )
2024-05-13 11:46:02 -04:00
Bagatur
83a8fdcfd1
infra: fix local doc make command ( #21608 )
2024-05-13 08:30:30 -07:00
Eugene Yurtsev
4dc625057e
README: Update downloads to show downloads of langchain-core ( #21387 )
...
Update downloads to keep track of langchain-core
2024-05-13 11:26:50 -04:00
Wang Guan
b53548dcda
langchain[minor]: allow CacheBackedEmbeddings to cache queries ( #20073 )
...
Add optional caching of queries to cache backed embeddings
2024-05-13 15:18:04 +00:00
Guangdong Liu
a156aace2b
core[patch]:Fix Incorrect listeners parameters for Runnable.with_listeners() and .map() ( #20661 )
...
- **Issue:** fix #20509
- @baskaryan, @eyurtsev

2024-05-13 11:16:17 -04:00
ccurme
b0f5a47f25
docs: update some retrievers how-to guides ( #21607 )
2024-05-13 11:03:33 -04:00
junkeon
480c02bf55
upstage[minor]: add merge_and_split function for document loader ( #21603 )
...
- Introduce the `merge_and_split` function in the
`UpstageLayoutAnalysisLoader`.
- The `merge_and_split` function takes a list of documents and a
splitter as inputs.
- This function merges all documents and then divides them using the
`split_documents` method, which is a proprietary function of the
splitter.
- If the provided splitter is `None` (which is the default setting), the
function will simply merge the documents without splitting them.
2024-05-13 10:55:19 -04:00
Leonid Ganeline
500569da48
community[patch]: vectorstores
import update ( #21169 )
...
Issue: we have several helper functions to import third-party libraries
like lancedb.import_lancedb in
[community.vectorstores](https://api.python.langchain.com/en/latest/vectorstores/langchain_community.vectorstores.lancedb.import_lancedb.html#langchain_community.vectorstores.lancedb.import_lancedb ).
And we have core.utils.utils.guard_import that works exactly for this
purpose.
The import_<package> functions work inconsistently and rather be private
functions.
Change: replaced these functions with the guard_import function.
Related to #21133
2024-05-13 10:45:31 -04:00
ccurme
3003363605
langchain, community: remove cap on sqlalchemy and bump duckdb ( #21509 )
2024-05-13 10:16:09 -04:00
ccurme
01a3228d8e
standard tests: add test for few-shot examples ( #21019 )
2024-05-13 10:06:12 -04:00
David Duong
db22fcb58b
docs: style fixes for api reference docs ( #21602 )
...
- Make sure the left nav bar is horizontally scrollable
- Make sure the navigation dropdown is vertically scrollable and height
capped at 80% of viewport height
---------
Co-authored-by: Bagatur <baskaryan@gmail.com>
2024-05-13 06:49:50 -07:00
Chuyuan Qu
af875cff57
prompty: adding Microsoft langchain_prompty package ( #21346 )
...
Co-authored-by: Micky Liu <wayliu@microsoft.com>
Co-authored-by: wayliums <wayliums@users.noreply.github.com>
Co-authored-by: Erick Friis <erick@langchain.dev>
2024-05-11 04:03:44 +00:00
Erick Friis
56c6b5868b
infra: run codespell on v0.1 prs ( #21545 )
2024-05-10 12:51:42 -07:00
Matt Florence
d3ca2cc8c3
langchain: Fix broken OpenAIModerationChain
and implement async ( #18537 )
...
Thank you for contributing to LangChain!
## PR title
lancghain[patch]: fix `OpenAIModerationChain` and implement async
## PR message
Description: fix `OpenAIModerationChain` and implement async
Issues:
- https://github.com/langchain-ai/langchain/issues/18533
- https://github.com/langchain-ai/langchain/issues/13685
Dependencies: none
Twitter handle: mattflo
## Add tests and docs
Existing documentation is broken:
https://python.langchain.com/docs/guides/safety/moderation
- [ x] **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/
---------
Co-authored-by: Emilia Katari <emilia@outpace.com>
Co-authored-by: ccurme <chester.curme@gmail.com>
Co-authored-by: Erick Friis <erickfriis@gmail.com>
2024-05-10 19:04:13 +00:00
ccurme
4170e72a42
openai: fix loads unit test ( #21542 )
...
following changes to tests in core here:
https://github.com/langchain-ai/langchain/pull/21342/files
2024-05-10 18:46:34 +00:00
ccurme
d3ff9c5d6a
infra: turn off fail-fast for standard tests ( #21541 )
2024-05-10 18:28:57 +00:00
Erick Friis
e8efe8384d
docs: announcement bar dark mode 0.2 ( #21540 )
2024-05-10 10:13:02 -07:00
Erick Friis
64c47224a0
docs: baseUrl for ganalytics, throw on broken links ( #21455 )
2024-05-10 13:49:59 +00:00
Usama Jamil
913792f5e6
docs: myscale code typo ( #21522 )
...
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.
2024-05-10 13:33:22 +00:00
Sevin F. Varoglu
85cbc55f86
docs: update OctoAI LLM doc ( #21528 )
...
This PR updates OctoAI doc to remove warnings when running the example
code.
2024-05-10 09:31:16 -04:00
Daniel Glogowski
70a79f45d7
docs: update nvidia nbs ( #21498 )
2024-05-10 04:38:35 -04:00
Eugene Yurtsev
39e9b644b9
docs: Add langchain over time ( #21434 )
...
Co-authored-by: Erick Friis <erick@langchain.dev>
2024-05-10 00:34:35 +00:00
Erick Friis
3db85cbb5b
community: deps ( #21508 )
2024-05-09 15:12:34 -07:00
ccurme
9c2828aaa8
docs: add local LLMs page to v0.2 docs ( #21493 )
...
Adding this page from v0.1 docs:
https://python.langchain.com/v0.1/docs/guides/development/local_llms/
2024-05-09 17:57:56 -04:00
Erick Friis
8580e350be
cli: release 0.0.22 ( #21507 )
2024-05-09 21:45:20 +00:00
Anthony Chu
c735849e76
azure-dynamic-sessions: add Python REPL tool ( #21264 )
...
Adds a Python REPL that executes code in a code interpreter session
using Azure Container Apps dynamic sessions.
---------
Co-authored-by: Erick Friis <erick@langchain.dev>
2024-05-09 21:39:04 +00:00
Erick Friis
02701c277f
langchain: core min version ( #21506 )
2024-05-09 13:45:44 -07:00
ccurme
81ae184cc9
docs: add response metadata page to v0.2 docs ( #21489 )
...
Adding this page from v0.1 docs:
https://python.langchain.com/v0.1/docs/modules/model_io/chat/response_metadata/
2024-05-09 16:17:04 -04:00
Erick Friis
13b01104c9
langchain: drop sqlalchemy max, release 0.2.0rc2 ( #21504 )
2024-05-09 13:12:38 -07:00
ccurme
375f447e58
community: fix builds with min dependencies ( #21495 )
2024-05-09 13:01:44 -07:00
Erick Friis
2be4b1b2c9
Revert "docs: redirect base slug" ( #21499 )
...
Reverts langchain-ai/langchain#21457
2024-05-09 12:20:16 -07:00
Erick Friis
d1fc841b1a
docs: redirect base slug ( #21457 )
2024-05-09 10:52:36 -07:00
Trayan Azarov
ba7d53689c
community: Chroma Adding create_collection_if_not_exists flag to Chroma constructor ( #21420 )
...
- **Description:** Adds the ability to either `get_or_create` or simply
`get_collection`. This is useful when dealing with read-only Chroma
instances where users are constraint to using `get_collection`. Targeted
at Http/CloudClients mostly.
- **Issue:** chroma-core/chroma#2163
- **Dependencies:** N/A
- **Twitter handle:** `@t_azarov`
| Collection Exists | create_collection_if_not_exists | Outcome | test |
|-------------------|---------------------------------|----------------------------------------------------------------|----------------------------------------------------------|
| True | False | No errors, collection state unchanged |
`test_create_collection_if_not_exist_false_existing` |
| True | True | No errors, collection state unchanged |
`test_create_collection_if_not_exist_true_existing` |
| False | False | Error, `get_collection()` fails |
`test_create_collection_if_not_exist_false_non_existing` |
| False | True | No errors, `get_or_create_collection()` creates the
collection | `test_create_collection_if_not_exist_true_non_existing` |
2024-05-09 11:45:10 -04:00
ccurme
3bb9bec314
bedrock: add unit test for retriever ( #21485 )
...
This was implemented in
https://github.com/langchain-ai/langchain/pull/21349 but dropped before
merge.
2024-05-09 11:37:03 -04:00