mandanya commited on
Commit
6c21719
·
verified ·
1 Parent(s): 8ac8a64

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +19 -0
README.md CHANGED
@@ -15,6 +15,25 @@ Logseq use clojure script over datalog to interact with notes.
15
  LCQ - Logseq Clojure Query.
16
  ### Description of the approach
17
  About 100 copies were collected manually and about 800 more were created on their basis using the Qwen2.5-Coder-7B-Instruct model. The test part of the dataset (about 100 synthetic copies) are run through the model with a system prompt describing the specifics of the queries and validated by the codestral-mamba model.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  ### Results
19
  | model | overal | zero_shot | 1_shot | 3_shot | 5_shot |
20
  |:-------------------------------|---------:|------------:|---------:|---------:|---------:|
 
15
  LCQ - Logseq Clojure Query.
16
  ### Description of the approach
17
  About 100 copies were collected manually and about 800 more were created on their basis using the Qwen2.5-Coder-7B-Instruct model. The test part of the dataset (about 100 synthetic copies) are run through the model with a system prompt describing the specifics of the queries and validated by the codestral-mamba model.
18
+ ```python
19
+ SYSTEM_PROMPT = """
20
+ You should create advanced query for logseq.
21
+ Advanced query should be written in clojure script over datalog and should starts and ends with `#+BEGIN_QUERY` and `#+END_QUERY` respectively.
22
+ You should respond only with query, without any additional information.
23
+
24
+ query may consists of:
25
+ - :title - title of the query (required)
26
+ - :query - query itself, usually contains :find, :where, ... (required)
27
+ - :result-transform - transform function for the result (optional)
28
+ - :group-by-page? (true or false, optional)
29
+ - :collapsed? (true or false, usually false, optional)
30
+
31
+ example of respond:
32
+ #+BEGIN_QUERY
33
+ ...
34
+ #+END_QUERY
35
+ """
36
+ ```
37
  ### Results
38
  | model | overal | zero_shot | 1_shot | 3_shot | 5_shot |
39
  |:-------------------------------|---------:|------------:|---------:|---------:|---------:|