Tim Asp
70ffe470aa
Add easy print method to openai callback ( #2848 )
...
Found myself constantly copying the snippet outputting all the callback
tracking details. so adding a simple way to output the full context
2023-04-13 11:28:42 -07:00
Azam Iftikhar
2a89dc8c1c
Fixing factually incorrect example ( #2810 )
...
### https://github.com/hwchase17/langchain/issues/2802
It appears that Google's Flan model may not perform as well as other
models, I used a simple example to get factually correct answer.
2023-04-13 08:42:39 -07:00
Harrison Chase
e49f1e628c
Harrison/gpt cache ( #2744 )
...
Co-authored-by: SimFG <bang.fu@zilliz.com>
2023-04-12 14:16:58 -07:00
Nikita Zavgorodnii
1c979e320d
docs: update tokenizer notice in llms/getting_started ( #2641 )
...
A tiny update in docs which is spotted here:
https://github.com/hwchase17/langchain/issues/2439
2023-04-10 20:55:45 -07:00
William FH
10ff1fda8e
Add Streaming for GPT4All ( #2642 )
...
- Adds support for callback handlers in GPT4All models
- Updates notebook and docs
2023-04-09 17:54:26 -07:00
Jimmy Comfort
1dfb6a2a44
Update gpt4all example with model param ( #2499 )
...
I am pretty sure that the documentation here should point to `model`
instead of `model_path` based on the documentation here:
https://github.com/hwchase17/langchain/blob/master/langchain/llms/gpt4all.py#L26
2023-04-06 12:38:26 -07:00
Harrison Chase
1f88b11c99
replicate cleanup ( #2394 )
2023-04-04 12:15:03 -07:00
Harrison Chase
de7afc52a9
cr
2023-04-04 07:23:53 -07:00
Harrison Chase
c7b083ab56
bump version to 131 ( #2391 )
2023-04-04 07:21:50 -07:00
Harrison Chase
0a9f04bad9
Harrison/gpt4all ( #2366 )
...
Co-authored-by: William FH <13333726+hinthornw@users.noreply.github.com>
Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com>
2023-04-04 06:49:17 -07:00
Shrined
10dab053b4
Add Enum for agent types ( #2321 )
...
This pull request adds an enum class for the various types of agents
used in the project, located in the `agent_types.py` file. Currently,
the project is using hardcoded strings for the initialization of these
agents, which can lead to errors and make the code harder to maintain.
With the introduction of the new enums, the code will be more readable
and less error-prone.
The new enum members include:
- ZERO_SHOT_REACT_DESCRIPTION
- REACT_DOCSTORE
- SELF_ASK_WITH_SEARCH
- CONVERSATIONAL_REACT_DESCRIPTION
- CHAT_ZERO_SHOT_REACT_DESCRIPTION
- CHAT_CONVERSATIONAL_REACT_DESCRIPTION
In this PR, I have also replaced the hardcoded strings with the
appropriate enum members throughout the codebase, ensuring a smooth
transition to the new approach.
2023-04-03 21:56:20 -07:00
Harrison Chase
d85f57ef9c
Harrison/llama ( #2314 )
...
Co-authored-by: RJ Adriaansen <adriaansen@eshcc.eur.nl>
2023-04-02 14:57:45 -07:00
akmhmgc
715bd06f04
Minor text correction ( #2298 )
...
# Description
Just fixed sentence :)
2023-04-02 13:54:42 -07:00
Tim Asp
7a8f1d2854
Add total_cost estimates based on token count for openai ( #2243 )
...
We have completion and prompt tokens, model names, so if we can, let's
keep a running total of the cost.
2023-03-31 17:46:37 -07:00
LaloLalo1999
632c2b49da
Fixed the link to promptlayer dashboard ( #2246 )
...
Fixed a simple error where in the PromptLayer LLM documentation, the
"PromptLayer dashboard" hyperlink linked to "https://ww.promptlayer.com "
instead of "https://www.promptlayer.com ". Solved issue #2245
2023-03-31 16:16:23 -07:00
Jonathan Page
8441cbfc03
Add successful request count to OpenAI callback ( #2128 )
...
I've found it useful to track the number of successful requests to
OpenAI. This gives me a better sense of the efficiency of my prompts and
helps compare map_reduce/refine on a cheaper model vs. stuffing on a
more expensive model with higher capacity.
2023-03-28 22:56:17 -07:00
Ankush Gola
ccee1aedd2
add async support for anthropic ( #2114 )
...
should not be merged in before
https://github.com/anthropics/anthropic-sdk-python/pull/11 gets released
2023-03-28 22:49:14 -04:00
Charlie Holtz
f16c1fb6df
Add replicate take 2 ( #2077 )
...
This PR adds a replicate integration to langchain.
It's an updated version of
https://github.com/hwchase17/langchain/pull/1993 , but with updates to
match latest replicate-python code.
https://github.com/replicate/replicate-python .
---------
Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
Co-authored-by: Zeke Sikelianos <zeke@sikelianos.com>
2023-03-28 11:56:57 -07:00
Harrison Chase
4cd5cf2e95
notebook for tokens ( #2086 )
2023-03-28 07:59:40 -07:00
Michael Gokhman
b5020c7d9c
docs: fix promptlayer link typo ( #2005 )
...
tiny typo, just stumbled upon it when reading the docs
Co-authored-by: Michael Gokhman <michaelg@ai21.com>
2023-03-27 23:35:54 -07:00
Ankush Gola
b7ebb8fe30
enable streaming in anthropic llm wrapper ( #2065 )
2023-03-27 20:25:00 -04:00
Harrison Chase
705431aecc
big docs refactor ( #1978 )
...
Co-authored-by: Ankush Gola <ankush.gola@gmail.com>
2023-03-26 19:49:46 -07:00