Commit Graph

8886 Commits

Author SHA1 Message Date
jacoblee93
103b275d47 Fix 2024-04-20 22:07:03 -07:00
jacoblee93
1927977fd7 More updates 2024-04-20 21:32:01 -07:00
jacoblee93
f2fc84c4c5 Consolidate multiple chains how-to guide 2024-04-20 20:49:49 -07:00
jacoblee93
8c4b283fe8 Consolidate decorator how to guide 2024-04-20 19:03:21 -07:00
jacoblee93
1385cfa55f Merge branch 'harrison/new-docs' of https://github.com/langchain-ai/langchain into harrison/new-docs 2024-04-20 18:25:17 -07:00
jacoblee93
94c339e3d1 More how tos 2024-04-20 18:25:12 -07:00
Harrison Chase
5bfa57a7e4 cr 2024-04-20 16:49:45 -07:00
Harrison Chase
ddea36514f cr 2024-04-20 16:47:03 -07:00
Harrison Chase
51f1f4b045 cr 2024-04-20 16:18:15 -07:00
Harrison Chase
c6d0993c93 cr 2024-04-20 14:22:29 -07:00
Harrison Chase
1ca2138720 cr 2024-04-20 09:30:16 -07:00
Harrison Chase
ed207b365b cr 2024-04-20 09:20:51 -07:00
jacoblee93
d962d97952 More runnable how-to guides 2024-04-19 18:11:17 -07:00
jacoblee93
c6e4459c33 Add passthrough guide 2024-04-19 17:43:41 -07:00
jacoblee93
f53b395c19 More runnable how tos 2024-04-19 17:31:02 -07:00
jacoblee93
9bd75f371b Update some LCEL how-tos 2024-04-19 16:41:06 -07:00
jacoblee93
e021f4727b Add streaming, structured output, and tool calling how tos 2024-04-19 15:10:30 -07:00
jacoblee93
53a85cd5cd Update RAG tutorial 2024-04-19 12:03:22 -07:00
jacoblee93
a2de1f5134 Update RAG guide 2024-04-19 11:32:35 -07:00
jacoblee93
88ba5e1366 Add prereq component, update guide 2024-04-19 11:09:04 -07:00
jacoblee93
367dbeff8a Remove old sidebars 2024-04-18 23:00:39 -07:00
jacoblee93
be2f0802fd Ignore broken links for now 2024-04-18 22:20:21 -07:00
jacoblee93
3cf267770f Fix sidebars 2024-04-18 22:14:47 -07:00
jacoblee93
b44767867a Revert sidebar for now 2024-04-18 20:45:00 -07:00
jacoblee93
1ee05512cb Merge branch 'harrison/new-docs' of https://github.com/langchain-ai/langchain into harrison/new-docs 2024-04-18 20:42:01 -07:00
jacoblee93
803b2b37e2 Merge, update structured output guide 2024-04-18 20:41:49 -07:00
jacoblee93
72482a95d1 Merge branch 'master' of https://github.com/langchain-ai/langchain into harrison/new-docs 2024-04-18 20:00:14 -07:00
ccurme
6d530481c1 openai: fix allowed block types (#20636) 2024-04-18 22:12:57 -04:00
Harrison Chase
c9a7225aa1 cr 2024-04-18 19:11:56 -07:00
Erick Friis
764871f97d infra: add test-doc-imports to ci failure (#20637) 2024-04-19 02:06:57 +00:00
Erick Friis
5c216ad08f upstage[patch]: un-xfail tool calling test, release 0.1.0 (#20635) 2024-04-19 02:02:21 +00:00
Nuno Campos
48307e46a3 core[patch]: Fix runnable map ser/de (#20631) 2024-04-18 18:52:33 -07:00
Harrison Chase
4b937ec67c cr 2024-04-18 18:48:16 -07:00
Charlie Holtz
1cbab0ebda community: update Replicate to work with official models (#20633)
Description: you don't need to pass a version for Replicate official
models. That was broken on LangChain until now!

You can now run: 

```
llm = Replicate(
    model="meta/meta-llama-3-8b-instruct",
    model_kwargs={"temperature": 0.75, "max_length": 500, "top_p": 1},
)
prompt = """
User: Answer the following yes/no question by reasoning step by step. Can a dog drive a car?
Assistant:
"""
llm(prompt)
```

I've updated the replicate.ipynb to reflect that.

twitter: @charliebholtz

---------

Co-authored-by: Erick Friis <erick@langchain.dev>
2024-04-19 01:43:40 +00:00
Harrison Chase
2a99bc6971 cr 2024-04-18 18:39:19 -07:00
Congyu
dd5139e304 community[patch]: truncate zhipuai temperature and top_p parameters to [0.01, 0.99] (#20261)
ZhipuAI API only accepts `temperature` parameter between `(0, 1)` open
interval, and if `0` is passed, it responds with status code `400`.

However, 0 and 1 is often accepted by other APIs, for example, OpenAI
allows `[0, 2]` for temperature closed range.

This PR truncates temperature parameter passed to `[0.01, 0.99]` to
improve the compatibility between langchain's ecosystem's and ZhipuAI
(e.g., ragas `evaluate` often generates temperature 0, which results in
a lot of 400 invalid responses). The PR also truncates `top_p` parameter
since it has the same restriction.

Reference: [glm-4 doc](https://open.bigmodel.cn/dev/api#glm-4) (which
unfortunately is in Chinese though).

---------

Co-authored-by: Bagatur <22008038+baskaryan@users.noreply.github.com>
2024-04-19 01:31:30 +00:00
Harrison Chase
3bfb519fe6 cr 2024-04-18 18:26:14 -07:00
Harrison Chase
92eb0cdd25 cr 2024-04-18 18:23:28 -07:00
Harrison Chase
4111112386 cr 2024-04-18 18:20:31 -07:00
Harrison Chase
4ec3126d46 cr 2024-04-18 18:18:17 -07:00
Harrison Chase
d3f1ad966b cr 2024-04-18 18:12:50 -07:00
Harrison Chase
aa65827ee5 cr 2024-04-18 18:05:39 -07:00
Lance Martin
d5c22b80a5 community[patch]: Fix Ollama for LLaMA3 (#20624)
We see verbose generations w/ LLaMA3 and Ollama - 

https://smith.langchain.com/public/88c4cd21-3d57-4229-96fe-53443398ca99/r

--- 

Fix here implies that when stop was being set to an empty list, the
stream had no conditions under which to stop, which could lead to
excessive or unintended output.

Test LLaMA2 - 

https://smith.langchain.com/public/57dfc64a-591b-46fa-a1cd-8783acaefea2/r

Test LLaMA3 - 

https://smith.langchain.com/public/76ff5f47-ac89-4772-a7d2-5caa907d3fd6/r

https://smith.langchain.com/public/a31d2fad-9094-4c93-949a-964b27630ccb/r

Test Mistral -

https://smith.langchain.com/public/a4fe7114-c308-4317-b9fd-6c86d31f1c5b/r

---------

Co-authored-by: Erick Friis <erick@langchain.dev>
2024-04-19 00:20:32 +00:00
Erick Friis
726234eee5 infra: fix doc imports ci (#20629) 2024-04-18 23:42:03 +00:00
jacoblee93
dc212edcf3 Fix scripts 2024-04-18 16:01:50 -07:00
Erick Friis
3425988de7 core: deprecation default to qualname (#20578) 2024-04-18 15:35:17 -07:00
hulitaitai
7d0a008744 community[minor]: Add audio-parser "faster-whisper" in audio.py (#20012)
faster-whisper is a reimplementation of OpenAI's Whisper model using
CTranslate2, which is up to 4 times faster than enai/whisper for the
same accuracy while using less memory. The efficiency can be further
improved with 8-bit quantization on both CPU and GPU.

It can automatically detect the following 14 languages and transcribe
the text into their respective languages: en, zh, fr, de, ja, ko, ru,
es, th, it, pt, vi, ar, tr.

The gitbub repository for faster-whisper is :
    https://github.com/SYSTRAN/faster-whisper

---------

Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com>
2024-04-18 20:50:59 +00:00
Guangdong Liu
e3c2431c5b comminuty[patch]:Fix Error in apache doris insert (#19989)
- **Issue:** #19886
2024-04-18 16:34:32 -04:00
naaive
6f0d4f3f09 docs: Update body_func to hybrid_query in ElasticsearchRetriever (#20498) 2024-04-18 20:19:02 +00:00
Tomaz Bratanic
27370b679e community[patch]: Ignore null and invalid embedding values for neo4j metadata filtering (#20558) 2024-04-18 16:15:45 -04:00