Chirag Bhatia
f174aa7712
Fix broken Cerebrium link in documentation ( #3554 )
...
The current hyperlink has a typo. This PR contains the corrected
hyperlink to Cerebrium docs
2023-04-26 08:11:58 -07:00
Zander Chase
d6d697a41b
Sentence Transformers Aliasing ( #3541 )
...
The sentence transformers was a dup of the HF one.
This is a breaking change (model_name vs. model) for anyone using
`SentenceTransformerEmbeddings(model="some/nondefault/model")`, but
since it was landed only this week it seems better to do this now rather
than doing a wrapper.
2023-04-25 23:29:20 -07:00
Harrison Chase
52d95ec47d
anthropic docs: deprecated LLM, add chat model ( #3549 )
2023-04-25 16:11:14 -07:00
Harrison Chase
707741de58
Harrison/prediction guard ( #3490 )
...
Co-authored-by: Daniel Whitenack <whitenack.daniel@gmail.com>
2023-04-24 22:27:22 -07:00
Zander Chase
416f3bdf11
Vwp/alpaca streaming ( #3468 )
...
Co-authored-by: Luke Stanley <306671+lukestanley@users.noreply.github.com>
2023-04-24 16:27:51 -07:00
Zander Chase
20f530e9c5
Add Sentence Transformers Embeddings ( #3409 )
...
Add embeddings based on the sentence transformers library.
Add a notebook and integration tests.
Co-authored-by: khimaros <me@khimaros.com>
2023-04-23 18:25:20 -07:00
Zander Chase
61d40ba042
Fix Sagemaker Batch Endpoints ( #3249 )
...
Add different typing for @evandiewald 's heplful PR
---------
Co-authored-by: Evan Diewald <evandiewald@gmail.com>
2023-04-22 08:49:51 -07:00
Zander Chase
c757c3cde4
Add HuggingFace Examples ( #3187 )
...
Add a Pipeline example and add other models in th ehub notebook
To close issue
[#3077 ](https://github.com/hwchase17/langchain/issues/3099 )
2023-04-19 17:08:10 -07:00
Jakub Kukul
599e17cea8
Working example for Anthropic ( #3151 )
...
would be great if the provided example worked out of the box 😄
2023-04-19 08:52:33 -07:00
leo-gan
c33883a40e
fixed the Cohere example title ( #3053 )
...
- fixed the Cohere example title (bug in #3041 , sorry for it)
- fixed the runhouse.ipynb file name inconsistency
2023-04-17 21:02:52 -07:00
leo-gan
5420a0e404
updated langchain/docs/modules/models/llms/integrations/ notebooks ( #3041 )
...
- Updated `langchain/docs/modules/models/llms/integrations/` notebooks:
added links to the original sites, the install information, etc.
- Added the `nlpcloud` notebook.
- Removed "Example" from Titles of some notebooks, so all notebook
titles are consistent.
2023-04-17 20:25:32 -07:00
Harrison Chase
cf2789d86d
delete antropic chat notebook ( #2945 )
2023-04-15 08:48:51 -07:00
Hai Nguyen Mau
0aa828b1dc
typo fix ( #2937 )
...
missing w in link
2023-04-15 08:31:43 -07:00
Ankush Gola
ec59e9d886
Fix ChatAnthropic stop_sequences error ( #2919 ) ( #2920 )
...
Note to self: Always run integration tests, even on "that last minute
change you thought would be safe" :)
---------
Co-authored-by: Mike Lambert <mike.lambert@anthropic.com>
2023-04-14 17:22:01 -07:00
Ikko Eltociear Ashimine
203c0eb2ae
docs: update getting_started.ipynb ( #2883 )
...
HuggingFace -> Hugging Face
2023-04-14 07:40:26 -07:00
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
Girish Sharma
9aed565f13
Fix missing import in AzureOpenAI embeddings example ( #2625 )
...
## Why this PR?
Fixes #2624
There's a missing import statement in AzureOpenAI embeddings example.
## What's new in this PR?
- Import `OpenAIEmbeddings` before creating it's object.
## How it's tested?
- By running notebook and creating embedding object.
Signed-off-by: letmerecall <girishsharma001@gmail.com>
2023-04-09 12:25:31 -07:00
Matt Royer
ad87584c35
Fix 'embeddings is not defined' ( #2468 )
...
Nothing major. The docs just give an error when you try to use
`embeddings` instead of `llama`.
2023-04-06 12:45:45 -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
f5da9a5161
cr
2023-04-04 07:26:47 -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
Harrison Chase
1c03205cc2
embedding docs ( #2200 )
2023-03-30 08:34:14 -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
eff5eed719
Harrison/jina ( #2043 )
...
Co-authored-by: numb3r3 <wangfelix87@gmail.com>
Co-authored-by: felix-wang <35718120+numb3r3@users.noreply.github.com>
2023-03-28 08:16:17 -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