Commit Graph

8 Commits

Author SHA1 Message Date
Harrison Chase 49b3d6c78c Harrison/wiki update (#622)
Co-authored-by: Rubens Mau <rubensmau@gmail.com>
2023-01-15 16:45:16 -08:00
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>
2022-11-23 16:35:38 -08:00
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>
2022-11-20 16:23:58 -08:00
Harrison Chase d2f9288be6 add metadata to documents (#153)
add concept of metadata to document
2022-11-16 21:58:05 -08:00
Eugene Yurtsev 2910f50a3c Fix a few typos and wrapped f-strings (#128)
Fix a few typos and wrapped f-strings
2022-11-13 13:16:19 -08:00
Harrison Chase 76aff023d7 FAISS and embedding support (#48)
also adds embeddings and an in memory docstore
2022-11-01 21:29:39 -07:00
Harrison Chase e982cf4b2e Harrison/update docstore (#47)
change docstore interface
2022-10-31 21:18:52 -07:00
Harrison Chase ce7b14b843 Harrison/add react chain (#24)
from https://arxiv.org/abs/2210.03629

still need to think if docstore abstraction makes sense
2022-10-26 21:02:23 -07:00