Commit Graph

714 Commits (main)
 

Author SHA1 Message Date
Samantha Whitmore 09f301cd38
Add add_example method to all ExampleSelector classes, with tests (#178)
Also updated docs, and noticed an issue with the add_texts method on
VectorStores that I had missed before -- the metadatas arg should be
required to match the classmethod which initializes the VectorStores
(the add_example methods break otherwise in the ExampleSelectors)
2 years ago
Harrison Chase 780ef84cf0
use action verb in documentation (#175) 2 years ago
Harrison Chase 1b81f3b125
bump version 0.0.20 (#174) 2 years ago
Harrison Chase 5d887970f6
change to agent (#173) 2 years ago
Harrison Chase d70b5a2cbe
Harrison/version 0019 (#172) 2 years ago
Harrison Chase d3a7429f61
(WIP) agents (#171) 2 years ago
Harrison Chase 22bd12a097
make prompt a variable in vector db qa (#170) 2 years ago
Harrison Chase 4a4dfbfbed
Harrison/sequential chains (#168)
add support for basic sequential chains
2 years ago
Harrison Chase 15c19fcc60
bump version to 0.0.18 (#167) 2 years ago
Samantha Whitmore 315b0c09c6
wip: add method for both docstore and embeddings (#119)
this will break atm but wanted to get thoughts on implementation.

1. should add() be on docstore interface?
2. should InMemoryDocstore change to take a list of documents as init?
(makes this slightly easier to implement in FAISS -- if we think it is
less clean then could expose a method to get the number of documents
currently in the dict, and perform the logic of creating the necessary
dictionary in the FAISS.add_texts method.

Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
2 years ago
Jim Salmons e9baf9c134
Update llm.md (#164)
Without the print on the `llm` call, the new user sees no visible effect
when just getting started. The assumption here is the new user is
running this in a new sandbox script file or repl via copy-paste.
2 years ago
Harrison Chase e49fc51492
Harrison/update docs (#162)
minor update to docs re imports
2 years ago
Harrison Chase 243211a5ae
bump version to 0017 (#161) 2 years ago
Harrison Chase a19ad935b3
Harrison/verbose prompt (#159)
Add printing of prompt to LLMChain
2 years ago
Harrison Chase c02eb199b6
add few shot example (#148) 2 years ago
Harrison Chase 8869b0ab0e
bump version to 0.0.16 (#157) 2 years ago
Harrison Chase b15c84e19d
Harrison/chain lab (#156) 2 years ago
Harrison Chase 0ac08bbca6
bump version to 0.0.15 (#154) 2 years ago
Nicholas Larus-Stone 0c3ae78ec1
chore: update ascii colors to work with dark mode (#152) 2 years ago
Nicholas Larus-Stone ca4b10bb74
feat: add option to ignore or restrict to SQL tables (#151)
`SQLDatabase` now accepts two `init` arguments:
1. `ignore_tables` to pass in a list of tables to not search over
2. `include_tables` to restrict to a list of tables to consider
2 years ago
Harrison Chase d2f9288be6
add metadata to documents (#153)
add concept of metadata to document
2 years ago
Harrison Chase d775ddd749
add apply functionality (#150) 2 years ago
thesved 47e35d7d0e
Fix notebook links (#149)
Example notebook links were broken.
2 years ago
Harrison Chase 4f1bf159f4
bump version to 0.0.14 (#145) 2 years ago
Harrison Chase b504cd739f
Harrison/cleanup env check (#144) 2 years ago
Harrison Chase a4b502d92f
fix env var loader (#143) 2 years ago
Harrison Chase 1835e8a681
prompt nit (#141)
doing some cleanup, and i think this just simplifies things...
2 years ago
Harrison Chase bbb405a492
update colors (#140) 2 years ago
Predrag Gruevski 1a95252f00
Use `pull_request` not `pull_request_target` in GitHub Actions. (#139)
`pull_request` runs on the merge commit between the opened PR and the
target branch where the PR is to be merged — `master` in this case. This
is desirable because that way the new changes get linted and tested.

The existing `pull_request_target` specifier causes lint and test to run
_on the target branch itself_ (i.e. `master` in this case). That way the
new code in the PR doesn't get linted and tested at all. This can also
lead to security vulnerabilities, as described in the GitHub docs:

![image](https://user-images.githubusercontent.com/2348618/201735153-c5dd0c03-2490-45e9-b7f9-f0d47eb0109f.png)

Screenshot from here:
https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target
Link from the screenshot:
https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
2 years ago
Harrison Chase 9f223e6ccc
Harrison/fix lint (#138) 2 years ago
Delip Rao 76cecf8165
A fix for Jupyter environment variable issue (#135)
- fixes the Jupyter environment variable issues mentioned in issue #134 
- fixes format/lint issues in some unrelated files (from make
format/lint)


![image](https://user-images.githubusercontent.com/347398/201599322-090af858-362d-4d69-bf59-208aea65419a.png)
2 years ago
Harrison Chase ced29b816b
remove extra run from merge conflict (#133) 2 years ago
Harrison Chase 11d37d556e
bump version 0.0.13 (#132) 2 years ago
Harrison Chase b1b6b27c5f
Harrison/redo docs (#130)
Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com>
2 years ago
Harrison Chase f23b3ceb49
consolidate run functions (#126)
consolidating logic for when a chain is able to run with single input
text, single output text

open to feedback on naming, logic, usefulness
2 years ago
Harrison Chase 1fe3a4f724
extra requires (#129)
add extra requires
2 years ago
Eugene Yurtsev 2910f50a3c
Fix a few typos and wrapped f-strings (#128)
Fix a few typos and wrapped f-strings
2 years ago
Edmar Ferreira 8a5ec894e7
Prompt from file proof of concept using plain text (#127)
This is a simple proof of concept of using external files as templates. 
I'm still feeling my way around the codebase.
As a user, I want to use files as prompts, so it will be easier to
manage and test prompts.
The future direction is to use a template engine, most likely Mako.
2 years ago
Harrison Chase d87e73ddb1
huggingface tokenizer (#75) 2 years ago
Eugene Yurtsev b542941234
Bumping python version for read the docs (#122)
Haven't checked whether things work with new python version, hoping
error will
be caught with CI
2 years ago
Eugene Yurtsev 6df08eec52
Readme: Fix link to embeddings example and use python markup for code examples (#123)
* Fix URL to embeddings notebook
* Specify python is used for the code block
2 years ago
Eugene Yurtsev f5a588a165
Add py.typed marker to package (#121)
- Update
- update
2 years ago
Harrison Chase 47af2bcee4
vector db qa (#71) 2 years ago
Harrison Chase 4c0b684f79
new manifest notebook (#118) 2 years ago
Harrison Chase 7467243a42
bump version 0.0.12 (#116) 2 years ago
Harrison Chase e43534d41c
add integration with manifest (#62) 2 years ago
Harrison Chase 5e76c12455
Harrison/fix docs (#115) 2 years ago
Harrison Chase 9f878e43d8
Harrison/lintai21 (#114) 2 years ago
tomeras91 d8734ce5ad
Add AI21 LLMs (#99)
Integrate AI21 /complete API into langchain, to allow access to Jurassic
models.
2 years ago
Harrison Chase 2179ea3103
remove unnecc variables (#113)
i dont think either of these variables are used?
2 years ago