Commit Graph

9153 Commits

Author SHA1 Message Date
Eugene Yurtsev
fa2cb98a16 x 2024-05-02 15:16:23 -04:00
Eugene Yurtsev
a260e7a2d4 move ernie functions 2024-05-02 15:13:44 -04:00
Eugene Yurtsev
db83c70c4e x 2024-05-02 15:12:40 -04:00
Eugene Yurtsev
eaa215ea59 x 2024-05-02 15:09:42 -04:00
Eugene Yurtsev
01ede6c448 x 2024-05-02 15:00:56 -04:00
Eugene Yurtsev
fff94c45e8 update optional imports in callbacks 2024-05-02 14:59:35 -04:00
Eugene Yurtsev
b1d0581b21 run migration script through to move more things to community 2024-05-02 14:54:45 -04:00
Eugene Yurtsev
258426a656 update import location for cross encoder re-rank 2024-05-02 14:49:07 -04:00
Eugene Yurtsev
48efd58370 x 2024-05-02 14:46:44 -04:00
Eugene Yurtsev
efd2402d45 Move llm requests from langchain to langchain_community 2024-05-02 14:44:42 -04:00
Eugene Yurtsev
aed0936922 move openapi chain to community 2024-05-02 14:36:56 -04:00
Eugene Yurtsev
1fae57a3d9 run linter 2024-05-02 14:29:03 -04:00
Eugene Yurtsev
6394ebcfb8 Updating community BaseCrossEncoder to reference langhcain 2024-05-02 14:25:30 -04:00
Eugene Yurtsev
ce7aa2ff74 Adding BaseCrossEncoder to langchain, using optional deps in embeddings_filter 2024-05-02 14:24:53 -04:00
Eugene Yurtsev
bc329de38a update some unit tests 2024-05-02 14:12:10 -04:00
Eugene Yurtsev
9e68f2baaf update all possible dependencies 2024-05-02 14:07:33 -04:00
Eugene Yurtsev
07ac5d2a6a update community tests files for query constructor 2024-05-02 14:01:38 -04:00
Eugene Yurtsev
0dcc0201ee x 2024-05-02 14:00:54 -04:00
Eugene Yurtsev
0755013acc x 2024-05-02 13:56:12 -04:00
Eugene Yurtsev
31edcf4c8f x 2024-05-02 13:53:02 -04:00
Eugene Yurtsev
f2335d9c22 fix two imports that need to be optional 2024-05-02 13:50:58 -04:00
Eugene Yurtsev
2f2f5ffdad Merge branch 'master' into eugene/0.2rc 2024-05-02 13:47:35 -04:00
ccurme
2d77e5e3a1 (standard tests): add test for basic conversation sequence (#21213) 2024-05-02 13:47:10 -04:00
Eugene Yurtsev
acfd1b1ff9 Remove langchain-community from list of required dependencies 2024-05-02 13:44:33 -04:00
Eugene Yurtsev
a094d8bb70 lint long lines in self query and graph_qa 2024-05-02 13:43:20 -04:00
Maxime Perrin
1ebb5a70ad partners(mistralai): Removing unused variable in completion request (using tool_calls or content) (#21201)
This PR fixes #21196.

The error was occurring when calling chat completion API with a chat
history. Indeed, the Mistral API does not accept both `content` and
`tool_calls` in the same body.

This PR removes one of theses variables depending on the necessity.

---------

Co-authored-by: Maxime Perrin <mperrin@doing.fr>
Co-authored-by: Chester Curme <chester.curme@gmail.com>
2024-05-02 13:20:14 -04:00
Christophe Bornet
683fb45c6b community[patch]: Refactor CassandraDatabase wrapper (#21075)
* Introduce individual `fetch_` methods for easier typing.
* Rework some docstrings to google style
* Move some logic to the tool
* Merge the 2 cassandra utility files
2024-05-02 13:13:08 -04:00
Bagatur
b00fd1dbde infra: Undo gh cache removal (#21210)
Co-authored-by: Nuno Campos <nuno@langchain.dev>
2024-05-02 17:12:32 +00:00
Aditya
ee2c55ca09 docs: Added documentation on Anthropic models on vertex (#21070)
Description:Added documentation on Anthropic models on Vertex
@lkuligin for review

---------

Co-authored-by: adityarane@google.com <adityarane@google.com>
2024-05-02 13:12:01 -04:00
Eugene Yurtsev
fb8e1ad366 x 2024-05-02 13:08:14 -04:00
Raghav Dixit
7d451d0041 community[patch]: Update lancedb.py (#21192)
very minor update in LanceDB integration, 'metric' argument was missing.
2024-05-02 17:06:39 +00:00
Bagatur
d297d90ad9 core[patch]: Release 0.1.49 (#21211) 2024-05-02 17:06:27 +00:00
Eugene Yurtsev
263d42f0bf x 2024-05-02 13:04:54 -04:00
Eugene Yurtsev
21a7fe0096 move self query retrievers 2024-05-02 12:57:38 -04:00
Nuno Campos
663747b730 core[patch]: Fixes for convert_messages (#21207)
- support two-tuples of any sequence type (eg. json.loads never produces
tuples)
- support type alias for role key
- if id is passed in in dict form use it
- if tool_calls passed in in dict form use them

---------

Co-authored-by: Bagatur <baskaryan@gmail.com>
2024-05-02 16:55:42 +00:00
Eugene Yurtsev
53df06b3b0 hide community dependency in self_query/base.py 2024-05-02 12:51:45 -04:00
Eugene Yurtsev
081e3994ba Add retrievers to __init__ 2024-05-02 12:40:02 -04:00
Eugene Yurtsev
e2f1dc0dd4 x 2024-05-02 12:37:45 -04:00
Eugene Yurtsev
18cd6d5828 Merge branch 'master' into eugene/0.2rc 2024-05-02 12:26:27 -04:00
Eugene Yurtsev
692e07aa38 x 2024-05-02 12:25:15 -04:00
Eugene Yurtsev
df49404794 langchain[patch]: Make more memory code handle community dependency as optional (#21199) 2024-05-02 11:05:26 -04:00
ccurme
bd5d2c2674 langchain: import InMemoryChatMessageHistory from core (#21198) 2024-05-02 14:53:07 +00:00
Eugene Yurtsev
3cd7fced5f langchain[patch],community[minor]: Migrate memory implementations to community (#20845)
Migrates memory implementations to community
2024-05-02 10:46:50 -04:00
Eugene Yurtsev
b5c3a04e4b langchain[patch]: chat histories to handle optional community dependence (#21194) 2024-05-02 10:36:08 -04:00
Eugene Yurtsev
c9119b0e75 langchain[patch],community[minor]: Move some unit tests from langchain to community, use core for fake models (#21190) 2024-05-02 09:57:52 -04:00
Eugene Yurtsev
1cb3dc67ba update lock files 2024-05-02 09:55:07 -04:00
Eugene Yurtsev
a86799e6cc x 2024-05-02 09:49:37 -04:00
Eugene Yurtsev
9ad75beb65 x 2024-05-02 09:49:28 -04:00
Eugene Yurtsev
c306364b06 langchain[patch]: Update more code to use langchain community as an optional dependency (#21170)
More code to use langchain community as an optional dependency
2024-05-02 09:05:48 -04:00
Erick Friis
cd4c54282a infra: cleanup docs build (#21134)
Refactors the docs build in order to:
- run the same `make build` command in both vercel and local build
- incrementally build artifacts in 2 distinct steps, instead of building
all docs in-place (in vercel) or in a _dist dir (locally)

Highlights:
- introduces `make build` in order to build the docs
- collects and generates all files for the build in
`docs/build/intermediate`
- renders those jupyter notebook + markdown files into
`docs/build/outputs`

And now the outputs to host are in `docs/build/outputs`, which will need
a vercel settings change.

Todo:
- [ ] figure out how to point the right directory (right now deleting
and moving docs dir in vercel_build.sh isn't great)
2024-05-01 17:34:05 -07:00