Harrison Chase
46c428234f
MMR example selector ( #377 )
...
implement max marginal relevance example selector
2 years ago
Harrison Chase
ffed5e0056
Harrison/jinja formatter ( #385 )
...
Co-authored-by: Benjamin <BenderV@users.noreply.github.com>
2 years 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 )
2 years ago
Harrison Chase
a01d3e6955
fix agent memory docs ( #382 )
2 years ago
Harrison Chase
766b84a9d9
upgrade version to 0041 ( #378 )
2 years ago
Harrison Chase
cf98f219f9
Harrison/tools exp ( #372 )
2 years ago
Harrison Chase
e7b625fe03
fix text splitter ( #375 )
2 years ago
Harrison Chase
3474f39e21
Harrison/improve cache ( #368 )
...
make it so everything goes through generate, which removes the need for
two types of caches
2 years 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.
2 years ago
Harrison Chase
a7084ad6e4
Harrison/version 0040 ( #366 )
2 years 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?
2 years 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.
2 years ago
Harrison Chase
2eef76ed3f
fix documentation ( #365 )
2 years 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 ?
2 years 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
Harrison Chase
36b4c58acf
expose more stuff ( #306 )
2 years ago
Harrison Chase
7827f0a844
fix typing (int -> float) ( #308 )
2 years ago
Hunter Gerlach
9ee6115deb
Minor grammar fixes for memory docs to improve readability ( #303 )
...
Nothing of substance was changed. I simply corrected a few minor errors
that could slow down the reader.
Co-authored-by: Hunter Gerlach <hunter@huntergerlach.com>
2 years ago
Harrison Chase
9d08384d5f
Harrison/bump version ( #300 )
2 years ago
Harrison Chase
853894dd47
add moderation chain ( #299 )
2 years ago
andersenchen
5267ebce2d
Add LLMCheckerChain ( #281 )
...
Implementation of https://github.com/jagilley/fact-checker . Works pretty
well.
<img width="993" alt="Screenshot 2022-12-07 at 4 41 47 PM"
src="https://user-images.githubusercontent.com/101075607/206302751-356a19ff-d000-4798-9aee-9c38b7f532b9.png ">
Verifying this manually:
1. "Only two kinds of egg-laying mammals are left on the planet
today—the duck-billed platypus and the echidna, or spiny anteater."
https://www.scientificamerican.com/article/extreme-monotremes/
2. "An [Echidna] egg weighs 1.5 to 2 grams (0.05 to 0.07
oz)[[19]](https://en.wikipedia.org/wiki/Echidna#cite_note-19 ) and is
about 1.4 centimetres (0.55 in) long."
https://en.wikipedia.org/wiki/Echidna#:~:text=sleep%20is%20suppressed.-,Reproduction,a%20reptile%2Dlike%20egg%20tooth .
3. "A [platypus] lays one to three (usually two) small, leathery eggs
(similar to those of reptiles), about 11 mm (7⁄16 in) in diameter and
slightly rounder than bird eggs."
https://en.wikipedia.org/wiki/Platypus#:~:text=It%20lays%20one%20to%20three,slightly%20rounder%20than%20bird%20eggs .
4. Therefore, an Echidna is the mammal that lays the biggest eggs.
cc @hwchase17
2 years ago
Harrison Chase
43c9bd869f
add memprompt docs ( #294 )
2 years ago
Ben
0f399350f1
Fix typo in Getting Started / LLM Chains docs ( #291 )
...
I noticed this typo when reading the getting started guide, hope this
fix makes sense.
2 years ago
Harrison Chase
85c66dc6a4
bump version to 0033 ( #290 )
2 years ago
Samantha Whitmore
b10be842f6
ChatGPT Clone: adding ConversationBufferWindowMemory to replicate vir… ( #288 )
...
…tual env example
2 years ago