From 61344bb237bf1fffea17c04b77921f19c3401bea Mon Sep 17 00:00:00 2001 From: Martin Bernstorff Date: Sun, 27 Oct 2024 14:52:25 +0100 Subject: [PATCH] update document.py and prompt_qa.py --- memium/source/document.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/memium/source/document.py b/memium/source/document.py index fb51a80c..c80d7570 100644 --- a/memium/source/document.py +++ b/memium/source/document.py @@ -17,3 +17,6 @@ def tags(self) -> Sequence[str]: @property def title(self) -> str: return self.source_path.stem + + def __repr__(self) -> str: + return f"{self.title}: {self.content[0:10]}..."