-
Notifications
You must be signed in to change notification settings - Fork 6
feat: Add document saver class and support save/load/delete user journeys. #14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First quick pass, overall looks great 👏
Added |
@jackwotherspoon @totoleon Added unit tests and confirmed text spilter is no-op. Code is ready for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall LGTM with the comments resolved.
|
||
self._table = self.engine._load_document_table(self.table_name) | ||
|
||
def add_documents(self, docs: List[Document]) -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Do we want to do handle a single item as input as well as list? For example starts with
def add_documents(self, docs: Union[Document, List[Document]]):
if isinstance(docs, Document):
docs = [docs]
Same for delete
Removed |
Add document saver class and support save/load/delete user journeys.
In detail: