refactor: local indicator in file and class name, renamed
This commit is contained in:
12
embedchain/loaders/local_qna_pair.py
Normal file
12
embedchain/loaders/local_qna_pair.py
Normal 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,
|
||||
}]
|
||||
Reference in New Issue
Block a user