mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-12 07:16:54 +08:00
optimize workflow and output format
This commit is contained in:
4
tests/finco/knowledge/execute/storage.yml
Normal file
4
tests/finco/knowledge/execute/storage.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
- content: '[Success]: XXXX, the results looks reasonable # Keywords: supervised
|
||||
learning, data'
|
||||
- content: '[Fail]: XXXX, it raise memory error due to YYYYY # Keywords: supervised
|
||||
learning, data'
|
||||
1
tests/finco/knowledge/finance/storage.yml
Normal file
1
tests/finco/knowledge/finance/storage.yml
Normal file
@@ -0,0 +1 @@
|
||||
[]
|
||||
12316
tests/finco/knowledge/infrastructure/storage.yml
Normal file
12316
tests/finco/knowledge/infrastructure/storage.yml
Normal file
File diff suppressed because it is too large
Load Diff
@@ -9,6 +9,7 @@ from qlib.finco.task import SummarizeTask
|
||||
from qlib.finco.workflow import WorkflowContextManager
|
||||
from qlib.finco.llm import APIBackend
|
||||
from qlib.finco.workflow import WorkflowManager
|
||||
from qlib.finco.knowledge import PracticeKnowledge, YamlStorage
|
||||
|
||||
load_dotenv(verbose=True, override=True)
|
||||
|
||||
@@ -61,6 +62,9 @@ class TestSummarize(unittest.TestCase):
|
||||
resp = task.get_info_from_file("")
|
||||
print(resp)
|
||||
|
||||
def test_practice_knowledge(self):
|
||||
pk = PracticeKnowledge(YamlStorage(path.joinpath(Path.cwd().joinpath("knowledge")/f"{self.KT_PRACTICE}/{YamlStorage.DEFAULT_NAME}")))
|
||||
pk.add(["test1", "test2"])
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
||||
Reference in New Issue
Block a user