after_rabbithole_stored_documents
Intervene after the Rabbit Hole ended the ingestion pipeline.
Allows editing and enhancing the list of Document
after is inserted in the vector memory.
đ Arguments
Name | Type | Description |
---|---|---|
source |
str |
Name of ingested file/url. |
docs |
List[PointStruct] |
List of Qdrant PointStruct just inserted into the vector database. |
cat |
StrayCat | Cheshire Cat instance, allows you to use the framework components. |
âŠī¸ Return
Returns? Oh no, dear developer, this function is a one-way trip into the rabbit hole.
â Example
from cat.mad_hatter.decorators import hook
@hook # default priority = 1
def after_rabbithole_stored_documents(source, stored_points, cat):
# do whatever here
Note