<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def ingest(topic, text, **kwargs):
 """ Ingest the given text for the topic """

    if not text:
        raise ValueError('No text given to ingest for topic: ' + topic)
    data = {'topic': topic, 'text': text.strip()}
    data.update(kwargs)
    db.markovify.insert(data)