feat: add local text (#44)

This commits extends the "add_local" function. It
adds support to take text and index/embed it.
This commit is contained in:
cachho
2023-06-25 19:43:41 +02:00
committed by GitHub
parent b9277c84c8
commit f5f5e7edd1
4 changed files with 40 additions and 1 deletions

View File

@@ -0,0 +1,10 @@
class LocalTextLoader:
def load_data(self, content):
meta_data = {
"url": "local",
}
return [{
"content": content,
"meta_data": meta_data,
}]