Update README.org

This commit is contained in:
Phil Bajsicki 2025-04-28 20:09:44 +02:00
parent d8f64b9d89
commit 3d39685afa

View file

@ -470,17 +470,13 @@ My journal is a single file, with a hierarchy like so:
,*** [YYYY-MM-DD Day HH:MM])
#+end_src
I wanted to make sure that if I asked about a time period, the LLM would be able to pull at least roughly around the right time from my journal, without blowing out its context window.
This tool /kinda sorta/ works. It has two main failure modes:
1. the LLM chooses to apply this tool to buffers other than my journal.
2. the LLM ignores the existence of this tool and instead uses regexp with terms... and explodes the context window.
This /kinda sorta/ works. The only time I have seen this fail is when the LLM chooses to apply it to buffers that don't follow that convention.
The reason for this tool existing (it's the same as select-heading), is that it may help guide the LLM toward higher accuracy. Unclear if that's the case.
I doubt it'll be useful for anyone else, but it's here and fairly easy to adapt to other needs.
Notice it pulls to the end of the subtree. So for months, that's at least 28 entries, and during busy months, possibly hundreds.
But, any customizations to tweak this is left to the user, as everyone has their own conventions.
Testing new version:
#+begin_src elisp
(defun gptel-org-tools--org-ql-select-by-date (buf date)
"Returns all timestamped headings matching the specified date or date range.