define bas environment
This commit is contained in:
@@ -6,7 +6,7 @@ enable_timestamp = "true"
|
||||
owner_prompt = "I am your master {name} , now is {now}"
|
||||
contact_prompt = "I am your master's friend {name}"
|
||||
|
||||
[[do_prompt]]
|
||||
[work.do]
|
||||
role = "system"
|
||||
content = """
|
||||
My name is JarvisPlus, I am the master's super personal assistant. I think hard and try my best to complete TODOs.
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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,3 +1,3 @@
|
||||
pipelines = [
|
||||
"Mail/Issue"
|
||||
"Mail/Sync"
|
||||
]
|
||||
Reference in New Issue
Block a user