Files
t6_mem0/embedchain/loaders/local_text.py
cachho f5f5e7edd1 feat: add local text (#44)
This commits extends the "add_local" function. It
adds support to take text and index/embed it.
2023-06-25 23:13:41 +05:30

11 lines
215 B
Python

class LocalTextLoader:
def load_data(self, content):
meta_data = {
"url": "local",
}
return [{
"content": content,
"meta_data": meta_data,
}]