[AUR-421] base output post-processor that works using regex. (#20)

This commit is contained in:
ian_Cin
2023-09-19 19:54:44 +07:00
committed by GitHub
parent 2a3a23ecd7
commit b794051653
12 changed files with 212 additions and 7 deletions

View File

@@ -15,7 +15,7 @@ class Document(BaseDocument):
)
return document
def to_haystack_format(self) -> HaystackDocument:
def to_haystack_format(self) -> "HaystackDocument":
"""Convert struct to Haystack document format."""
metadata = self.metadata or {}
text = self.text