define bas environment

This commit is contained in:
tsukasa
2023-12-01 14:29:10 +08:00
parent 66e407add5
commit b7b968d5f7
18 changed files with 1700 additions and 1023 deletions
@@ -1,4 +0,0 @@
name = "Mail.Issue"
input.module = "input.py"
input.params.path = "${myai_dir}/data"
@@ -0,0 +1,14 @@
name = "Mail.Sync"
input.module = "input.py"
[input.params]
path = "${myai_dir}/mail"
imap_server = "imap.qq.com"
imap_port = 993
address = "115620204@qq.com"
password = "zbbjpbukeonqbjja"
[input.params.fields]
from = "from"
to = "to"
subject = "subject"
+1 -1
View File
@@ -96,7 +96,7 @@ class EmbeddingParser:
async def parse(self, object: ObjectID) -> str:
obj = self.env.get_knowledge_store().load_object(object)
await self.__do_embedding(obj)
return "insert into vector store"
return str(object)
def init(env: KnowledgePipelineEnvironment, params: dict) -> EmbeddingParser:
return EmbeddingParser(env, params)
+1 -1
View File
@@ -1,3 +1,3 @@
pipelines = [
"Mail/Issue"
"Mail/Sync"
]