This commits extends the "add_local" function. It adds support to take text and index/embed it.
11 lines
215 B
Python
11 lines
215 B
Python
class LocalTextLoader:
|
|
|
|
def load_data(self, content):
|
|
meta_data = {
|
|
"url": "local",
|
|
}
|
|
return [{
|
|
"content": content,
|
|
"meta_data": meta_data,
|
|
}]
|