hello everyone!
i'm working on adding a custom extractor to my vector query engine pipeline and looking at
this notebook as reference
class CustomExtractor(BaseExtractor):
def extract(self, nodes):
metadata_list = [
{
"custom": (
node.metadata["document_title"]
+ "\n"
+ node.metadata["excerpt_keywords"]
)
}
for node in nodes
]
return metadata_list
however, i'm getting a
TypeError: Can't instantiate abstract class CustomExtractor with abstract method aextract
when pasting the documentation code as is
(running llama-index v 0.9.25.post1)
does anyone have pointers on writing custom extractors?