Commit Graph

9400 Commits (master)
 

Author SHA1 Message Date
Harrison Chase 8861770bd0
expose get_num_tokens method (#327) 1 year ago
Ankush Gola 8fdcdf4c2f
add .idea files to gitignore, add zsh note to installation docs (#329) 1 year ago
thepok 137356dbec
-1 max token description for openai (#330) 1 year ago
Christian Clauss 2fbb152386
Add Python 3.11 to the testing (#324) 1 year ago
Christian Clauss d946be2f3d
Add Python 3.11 to the testing (#323) 1 year ago
Harrison Chase 292f1cfa96
Harrison/add contributing docs (#315) 1 year ago
Harrison Chase 948e999eff
bump version to 0035 (#312) 1 year ago
Harrison Chase a7c8e37e77
Harrison/token counts (#311)
Co-authored-by: thepok <richterthepok@yahoo.de>
1 year ago
Shobith Alva 19a9fa16a9
Add `clear()` method for `Memory` (#305)
a simple helper to clear the buffer in `Conversation*Memory` classes
1 year ago
Harrison Chase e02d6b2288
beta: logger (#307) 1 year ago
Harrison Chase 36b4c58acf
expose more stuff (#306) 1 year ago
Harrison Chase 7827f0a844
fix typing (int -> float) (#308) 1 year 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>
1 year ago
Harrison Chase 9d08384d5f
Harrison/bump version (#300) 1 year ago
Harrison Chase 853894dd47
add moderation chain (#299) 1 year 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
1 year ago
Harrison Chase 43c9bd869f
add memprompt docs (#294) 1 year 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.
1 year ago
Harrison Chase 85c66dc6a4
bump version to 0033 (#290) 1 year ago
Samantha Whitmore b10be842f6
ChatGPT Clone: adding ConversationBufferWindowMemory to replicate vir… (#288)
…tual env example
1 year ago
Harrison Chase e2e501aa06
Harrison/version 0032 (#283) 1 year ago
Harrison Chase e9b1c8cdfa
Harrison/base combine doc chain (#264) 1 year ago
Harrison Chase c27a6fa8a4
update docs (#278) 1 year ago
Harrison Chase 1690292b09
bump version to 0031 (#276) 1 year ago
Harrison Chase 834b391792
update notebooks (#275) 1 year ago
Harrison Chase 3c1c7ba672
update branch name in gha (#274) 1 year ago
Akash Samant 48b093823e
Add a Transformation Chain (#257)
Arbitrary transformation chains that can be used to add dictionary
extractions from llms/other chains
1 year 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>
1 year ago
Harrison Chase 28be37f470
LLMRequestsChain (#267) 1 year 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
1 year ago
Harrison Chase 2180a91196
bump 0.0.30 (#269) 1 year ago
Harrison Chase 2163d064f3
add return of ids (#254)
not actually sure the desired return in add_example to example selector
is actually general/good - whats the use case?
1 year ago
Harrison Chase 8cba5b791a
hotfix for api logging (#262) 1 year ago
Harrison Chase 5cd6956d58
Harrison/version 0028 (#259) 1 year ago
Harrison Chase f5c665a544
combine python files (#256) 1 year ago
Steven Hoelscher 98fb19b535
chore: use poetry as dependency manager (#242)
* Adopts [Poetry](https://python-poetry.org/) as a dependency manager
* Introduces dependency version requirements
* Deprecates Python 3.7 support

**TODO**
- [x] Update developer guide
- [x] Add back `playwright`, `manifest-ml`, and `jupyter` to dependency
group

**Not Doing => Fast Follow**
- Investigate single source for version, perhaps relying on GitHub tags
and [tackling this
issue](https://github.com/hwchase17/langchain/issues/26)
1 year ago
Harrison Chase 988cb51a7c
fix out of date docs (#255) 1 year ago
Harrison Chase 9481a23314
stop using chained input except in agent (#249) 1 year ago
Harrison Chase b5d8434a50
Harrison/improve chain docs (#251) 1 year ago
Harrison Chase ac2c2f6f28
Harrison/delete bad code (#253) 1 year ago
Harrison Chase db58032973
introduce output parser (#250) 1 year ago
Scott Leibrand b4762dfff0
Refine Olivia Wilde's boyfriend example prompt to work better (#248)
With the original prompt, the chain keeps trying to jump straight to
doing math directly, without first looking up ages. With this two-part
question, it behaves more as intended:


> Entering new ZeroShotAgent chain...
How old is Olivia Wilde's boyfriend? What is that number raised to the
0.23 power?
Thought: I need to find out how old Olivia Wilde's boyfriend is, and
then use a calculator to calculate the power.
Action: Search
Action Input: Olivia Wilde's boyfriend age
Observation: While Wilde, 37, and Styles, 27, have both kept a low
profile when it comes to talking about their relationship, Wilde did
address their ...
Thought: Olivia Wilde's boyfriend is 27 years old.
Action: Calculator
Action Input: 27^0.23

> Entering new LLMMathChain chain...
27^0.23

```python
import math
print(math.pow(27, 0.23))
```

Answer: 2.1340945944237553

> Finished LLMMathChain chain.

Observation: Answer: 2.1340945944237553

Thought: I now know the final answer.
Final Answer: 2.1340945944237553
> Finished ZeroShotAgent chain.
1 year ago
Harrison Chase a9ce04201f
Harrison/improve usability of api chain (#247)
improve usability of api chain
1 year ago
Harrison Chase c897bd6cbd
api chain (#246)
Co-authored-by: Subhash Ramesh <33400216+thecooltechguy@users.noreply.github.com>
1 year ago
Harrison Chase 024c3e1dbe
add react text world doc (#245) 1 year ago
Harrison Chase 8145c79fd8
bump version to 0.0.27 (#244) 1 year ago
Harrison Chase 78a29f1060
text world agent (#240) 1 year ago
Xupeng (Tony) Tong bb4bf9d6d0
chore: minor clean up / formatting (#233)
to get familiarize with the project
1 year ago
Harrison Chase 473943643e
bump version 0026 (#235) 1 year ago
Harrison Chase 3ca2c8d6c5
allow passing of stop params into openai (#232) 1 year ago