Commit Graph

390 Commits (27cef0870d41744f8b72e3be44b273fc741382fc)
 

Author SHA1 Message Date
mrbean 136f759492
Mrbean/support timeout (#398)
Add support for passing in a request timeout to the API
1 year ago
Harrison Chase 6b60c509ac
(WIP) add HyDE (#393)
Co-authored-by: cameronccohen <cameron.c.cohen@gmail.com>
Co-authored-by: Cameron Cohen <cameron.cohen@quantco.com>
1 year ago
Keiji Kanazawa 543db9c2df
Add Azure OpenAI LLM (#395)
Hi!  This PR adds support for the Azure OpenAI service to LangChain.

I've tried to follow the contributing guidelines.

Co-authored-by: Keiji Kanazawa <{ID}+{username}@users.noreply.github.com>
1 year ago
Harrison Chase bb76440bfa
bump version to 0.0.43 (#394) 1 year ago
Harrison Chase c104d507bf
Harrison/improve data augmented generation docs (#390)
Co-authored-by: cameronccohen <cameron.c.cohen@gmail.com>
Co-authored-by: Cameron Cohen <cameron.cohen@quantco.com>
1 year ago
Harrison Chase ad4414b59f
update docs (#389) 1 year ago
Harrison Chase c8b4b54479
bump version to 0.0.42 (#388) 1 year ago
Harrison Chase 47ba34c83a
split up and improve agent docs (#387) 1 year ago
Abi Raja 467aa0cee0
Fix typo in docs (#386) 1 year ago
Harrison Chase 6be5747466
RFC: add cache override to LLM class (#379) 1 year ago
Harrison Chase 46c428234f
MMR example selector (#377)
implement max marginal relevance example selector
1 year ago
Harrison Chase ffed5e0056
Harrison/jinja formatter (#385)
Co-authored-by: Benjamin <BenderV@users.noreply.github.com>
1 year ago
mrbean fc66a32c6f
fix docstring (#383)
![Screenshot 2022-12-19 at 11 06 48
AM](https://user-images.githubusercontent.com/43734688/208468970-5cb9bafb-f535-486e-b41f-312a2f9ffffb.png)
1 year ago
Harrison Chase a01d3e6955
fix agent memory docs (#382) 1 year ago
Harrison Chase 766b84a9d9
upgrade version to 0041 (#378) 1 year ago
Harrison Chase cf98f219f9
Harrison/tools exp (#372) 1 year ago
Harrison Chase e7b625fe03
fix text splitter (#375) 1 year ago
Harrison Chase 3474f39e21
Harrison/improve cache (#368)
make it so everything goes through generate, which removes the need for
two types of caches
1 year ago
Ankush Gola 8d0869c6d3
change run to use args and kwargs (#367)
Before, `run` was not able to be called with multiple arguments. This
expands the functionality.
1 year ago
Harrison Chase a7084ad6e4
Harrison/version 0040 (#366) 1 year ago
mrbean 50257fce59
Support Streaming Tokens from OpenAI (#364)
https://github.com/hwchase17/langchain/issues/363

@hwchase17 how much does this make you want to cry?
1 year ago
mrbean fe6695b9e7
Add HuggingFacePipeline LLM (#353)
https://github.com/hwchase17/langchain/issues/354

Add support for running your own HF pipeline locally. This would allow
you to get a lot more dynamic with what HF features and models you
support since you wouldn't be beholden to what is hosted in HF hub. You
could also do stuff with HF Optimum to quantize your models and stuff to
get pretty fast inference even running on a laptop.
1 year ago
Harrison Chase 2eef76ed3f
fix documentation (#365) 1 year ago
Benjamin 85c1bd2cd0
add sqlalchemy generic cache (#361)
Created a generic SQLAlchemyCache class to plug any database supported
by SQAlchemy. (I am using Postgres).
I also based the class SQLiteCache class on this class SQLAlchemyCache.

As a side note, I'm questioning the need for two distinct class
LLMCache, FullLLMCache. Shouldn't we merge both ?
1 year ago
Harrison Chase 809a9f485f
Harrison/new version (#362) 2 years ago
Harrison Chase 750edfb440
add optional collapse prompt (#358) 2 years ago
Harrison Chase 2dd895d98c
add openai tokenizer (#355) 2 years ago
Harrison Chase c1b50b7b13
Harrison/map reduce merge (#344)
Co-authored-by: John Nay <JohnNay@users.noreply.github.com>
2 years ago
Harrison Chase ed143b598f
improve openai embeddings (#351)
add more formal support for explicitly specifying each model, but in a
backwards compatible way
2 years ago
Harrison Chase 428508bd75
bump version to 0.0.38 (#349) 2 years ago
Harrison Chase 78b31e5966
Harrison/cache (#343) 2 years ago
Harrison Chase 8cf62ce06e
Harrison/single input (#347)
allow passing of single input into chain

Co-authored-by: thepok <richterthepok@yahoo.de>
2 years ago
Harrison Chase 5161ae7e08
add new example (#345) 2 years ago
Harrison Chase 8c167627ed
bump version (#340) 2 years ago
Harrison Chase e26b6f9c89
fix batching (#339) 2 years ago
Harrison Chase 3c6796b72e
bump version to 0036 (#333) 2 years ago
Harrison Chase 996b5a3dfb
Harrison/llm final stuff (#332) 2 years ago
Harrison Chase 9bb7195085
Harrison/llm saving (#331)
Co-authored-by: Akash Samant <70665700+asamant21@users.noreply.github.com>
2 years ago
Harrison Chase 595cc1ae1a
RFC: more complete return (#313)
Co-authored-by: Andrew Williamson <awilliamson10@indstate.edu>
Co-authored-by: awilliamson10 <aw.williamson10@gmail.com>
2 years ago
Hunter Gerlach 482611f426
unit test / code coverage improvements (#322)
This PR has two contributions:

1. Add test for when stop token is found in middle of text

2. Add code coverage tooling and instructions
- Add pytest-cov via poetry
- Add necessary config files
- Add new make instruction for `coverage`
- Update README with coverage guidance
- Update minor README formatting/spelling

Co-authored-by: Hunter Gerlach <hunter@huntergerlach.com>
2 years ago
Harrison Chase 8861770bd0
expose get_num_tokens method (#327) 2 years ago
Ankush Gola 8fdcdf4c2f
add .idea files to gitignore, add zsh note to installation docs (#329) 2 years ago
thepok 137356dbec
-1 max token description for openai (#330) 2 years ago
Christian Clauss 2fbb152386
Add Python 3.11 to the testing (#324) 2 years ago
Christian Clauss d946be2f3d
Add Python 3.11 to the testing (#323) 2 years ago
Harrison Chase 292f1cfa96
Harrison/add contributing docs (#315) 2 years ago
Harrison Chase 948e999eff
bump version to 0035 (#312) 2 years ago
Harrison Chase a7c8e37e77
Harrison/token counts (#311)
Co-authored-by: thepok <richterthepok@yahoo.de>
2 years ago
Shobith Alva 19a9fa16a9
Add `clear()` method for `Memory` (#305)
a simple helper to clear the buffer in `Conversation*Memory` classes
2 years ago
Harrison Chase e02d6b2288
beta: logger (#307) 2 years ago