Commit Graph

714 Commits (main)
 

Author SHA1 Message Date
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
Harrison Chase 347fc49d4d
Harrison/combine documents chain (#212)
combine documents chain powering vector db qa with sources chain
1 year ago
Harrison Chase ab9abf53b7
Harrison/version 0025 (#227) 1 year ago
Harrison Chase 3bda0019ae
Harrison/list of examples (#218) 1 year ago
Harrison Chase ca2394028f
move search to not be a chain (#226) 1 year ago
Harrison Chase b19a73be26
pal chain touch ups (#225)
expose PAL in main entrypoint
1 year 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
1 year ago
Akash Samant d368c43648
Bug Fix (#221)
Quick bug fix for semantic similarity vector injection
1 year ago
Harrison Chase 1db7b18341
bump version to 0.0.24 (#220) 1 year ago
Harrison Chase 1b9b8efbc9
pal chain (#207)
from https://arxiv.org/pdf/2211.10435.pdf
1 year ago
Shyamal H Anadkat de4b255c1f
Switch default openai model to text-davinci-003 (#215) 1 year ago
Harrison Chase 0568998166
Harrison/fix react stateful (#219)
fix issue with react being stateful
1 year ago
Harrison Chase 03c7140228
fix self ask template (#216) 1 year ago
Harrison Chase cf3569fb1b
remove check (#217)
doesnt do much
1 year ago
Hansen Qian a39c998342
Add chain name to verbose logging (#214)
Adds some context over what chain is running, thereby making it more
obvious how different chains are entered and existed

<img width="867" alt="Screen Shot 2022-11-28 at 11 55 34 AM"
src="https://user-images.githubusercontent.com/2548973/204336849-25d87b44-6f5d-487b-b583-5455f306a470.png">

(note that the `...` is because the output is too long and VSCode
truncated it)
1 year ago
Harrison Chase 261029cef3
bump version to 0.0.23 (#211) 1 year ago
Harrison Chase b94244eb12
nits (#210)
use json.dump

move test to integration tests (since it requires huggingface_hub)
1 year ago
Akash Samant ae72cf84b8
Save Prompts (#194) 1 year 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
1 year ago
Dillon Chen d0415952f7
Update README.md memory now added as a feature (#208) 1 year ago
Harrison Chase 287f1857ee
fix self ask w search (#206) 1 year ago
Mark Kretschmann eae358810b
Fix Unicode error on Windows (Issue #200) (#203)
Fix Unicode error on Windows during setup, while trying to read contents
of README.md.

(Issue #200)
2 years ago
Harrison Chase 3eddbd11e4
bump version to 22 (#202) 2 years ago
Harrison Chase d4e6b7a692
Harrison/update docs mem (#201) 2 years ago
Harrison Chase 05c5d0b8ee
add custom prompt notebooks (#198) 2 years ago
Harrison Chase fcb9b2ffe5
Harrison/agent memory (#197)
add doc for agent with memory
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
Harrison Chase f18a08f58d
add memory to llm chain notebook (#193) 2 years ago
Harrison Chase 199794086d
bump verion to 0.0.21 (#190) 2 years ago
Harrison Chase c3ad99a34f
Harrison/more memory docs (#192) 2 years ago
Harrison Chase b0feb3608b
documentation (#191) 2 years ago
Harrison Chase b913df3774
make attrs public (#187)
since they are used outside of the class, should be public
2 years ago
Harrison Chase ae9c6257fe
Harrison/arbitrary params (#186) 2 years ago
Samantha Whitmore a408ed3ea3
Samantha/add conversation chain (#166)
Add MemoryChain and ConversationChain as chains that take a docstore in
addition to the prompt, and use the docstore to stuff context into the
prompt. This can be used to have an ongoing conversation with a chatbot.

Probably needs a bit of refactoring for code quality

Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
2 years ago
Harrison Chase 4334ffa6f9
Harrison/clean up language (#179)
dynamic prompts are no longer a thing
2 years ago
Harrison Chase 736b6ee65c
fix search return type (#177) 2 years ago