refactor: local indicator in file and class name, renamed

This commit is contained in:
cachho
2023-06-23 15:59:45 +02:00
committed by Taranjeet Singh
parent e60f1680a0
commit 2d35ade7aa
3 changed files with 3 additions and 3 deletions

View File

@@ -0,0 +1,12 @@
class LocalQnaPairLoader:
def load_data(self, content):
question, answer = content
content = f"Q: {question}\nA: {answer}"
meta_data = {
"url": "local",
}
return [{
"content": content,
"meta_data": meta_data,
}]