Harrison Chase
330a5b42d4
fix map reduce chain ( #550 )
2 years ago
Harrison Chase
4974f49bb7
add return_direct flag to tool ( #537 )
...
adds a return_direct flag to tools, which just returns the tool output
as the final output
2 years ago
Harrison Chase
1631981f84
Harrison/fix and test caching ( #538 )
2 years ago
Harrison Chase
9e04c34e20
Add BaseCallbackHandler and CallbackManager ( #478 )
...
Co-authored-by: Ankush Gola <9536492+agola11@users.noreply.github.com>
2 years ago
Harrison Chase
0db05b6725
Harrison/add human prefix ( #520 )
...
Co-authored-by: Andrew Huang <jhuang16888@gmail.com>
2 years ago
Harrison Chase
985496f4be
Docs refactor ( #480 )
...
Big docs refactor! Motivation is to make it easier for people to find
resources they are looking for. To accomplish this, there are now three
main sections:
- Getting Started: steps for getting started, walking through most core
functionality
- Modules: these are different modules of functionality that langchain
provides. Each part here has a "getting started", "how to", "key
concepts" and "reference" section (except in a few select cases where it
didnt easily fit).
- Use Cases: this is to separate use cases (like summarization, question
answering, evaluation, etc) from the modules, and provide a different
entry point to the code base.
There is also a full reference section, as well as extra resources
(glossary, gallery, etc)
Co-authored-by: Shreya Rajpal <ShreyaR@users.noreply.github.com>
2 years ago
Harrison Chase
0072686aab
Harrison/new search engine ( #477 )
...
Co-authored-by: Nicolas <nicolascamara29@gmail.com>
2 years ago
Harrison Chase
d0f194de73
add logic for agent stopping ( #420 )
2 years ago
Harrison Chase
95157d0aad
Add schema property to sql database utility class ( #448 ) ( #462 )
...
Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
Signed-off-by: Diwank Singh Tomer <diwank.singh@gmail.com>
Co-authored-by: Nuno Campos <nuno@boringbits.io>
Co-authored-by: Diwank Singh Tomer <diwank.singh@gmail.com>
2 years ago
Harrison Chase
0c5d3fd894
version 0.0.49 ( #436 )
2 years ago
Harrison Chase
f8b605293f
Harrison/improve memory ( #432 )
...
add AI prefix
add new type of memory
Co-authored-by: Jason <chisanch@usc.edu>
2 years ago
Harrison Chase
ee3b8e89b3
better parsing of agent output ( #418 )
2 years ago
Harrison Chase
20959d8c36
check memory variables ( #411 )
...
can have multiple input keys, if some come from memory
2 years 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>
2 years 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>
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
c1b50b7b13
Harrison/map reduce merge ( #344 )
...
Co-authored-by: John Nay <JohnNay@users.noreply.github.com>
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
9bb7195085
Harrison/llm saving ( #331 )
...
Co-authored-by: Akash Samant <70665700+asamant21@users.noreply.github.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
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
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
3c1c7ba672
update branch name in gha ( #274 )
2 years ago
Akash Samant
48b093823e
Add a Transformation Chain ( #257 )
...
Arbitrary transformation chains that can be used to add dictionary
extractions from llms/other chains
2 years ago
coyotespike
b7bef36ee1
BashChain ( #260 )
...
Love the project, a ton of fun!
I think the PR is pretty self-explanatory, happy to make any changes! I
am working on using it in an `LLMBashChain` and may update as that
progresses.
Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
2 years ago
Harrison Chase
28be37f470
LLMRequestsChain ( #267 )
2 years ago
John McDonnell
68666d6a22
Gracefully degrade when model asks for nonexistent tool ( #268 )
...
Not yet tested, but very simple change, assumption is that we're cool
with just producing a generic output when tool is not found
2 years ago
Harrison Chase
f5c665a544
combine python files ( #256 )
2 years ago
Harrison Chase
db58032973
introduce output parser ( #250 )
2 years ago
Harrison Chase
a9ce04201f
Harrison/improve usability of api chain ( #247 )
...
improve usability of api chain
2 years ago
Harrison Chase
c897bd6cbd
api chain ( #246 )
...
Co-authored-by: Subhash Ramesh <33400216+thecooltechguy@users.noreply.github.com>
2 years ago
Xupeng (Tony) Tong
bb4bf9d6d0
chore: minor clean up / formatting ( #233 )
...
to get familiarize with the project
2 years ago
Harrison Chase
3ca2c8d6c5
allow passing of stop params into openai ( #232 )
2 years ago
Harrison Chase
ca2394028f
move search to not be a chain ( #226 )
2 years ago
Andrew Gleave
ea67c049f0
Support SQL statements that return no results ( #222 )
...
Adds support for statements such as insert, update etc which do not
return any rows.
`engine.execute` is deprecated and so execution has been updated to use
`connection.exec_driver_sql` as-per:
https://docs.sqlalchemy.org/en/14/core/connections.html#sqlalchemy.engine.Engine.execute
2 years ago
Akash Samant
d368c43648
Bug Fix ( #221 )
...
Quick bug fix for semantic similarity vector injection
2 years ago
Harrison Chase
1b9b8efbc9
pal chain ( #207 )
...
from https://arxiv.org/pdf/2211.10435.pdf
2 years ago
Harrison Chase
b94244eb12
nits ( #210 )
...
use json.dump
move test to integration tests (since it requires huggingface_hub)
2 years ago
Akash Samant
ae72cf84b8
Save Prompts ( #194 )
2 years ago
Bagatur
b90e25f786
Add HuggingFace Hub Embeddings ( #125 )
...
Add support for calling HuggingFace embedding models
using the HuggingFaceHub Inference API. New class mirrors
the existing HuggingFaceHub LLM implementation. Currently
only supports 'sentence-transformers' models.
Closes #86
2 years ago
Harrison Chase
6eab5254e5
add docs for custom agents ( #196 )
2 years ago
Harrison Chase
08deed9002
Harrison/memory docs ( #195 )
...
update memory docs and change variables
2 years ago