all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jean Louis <bugs@gnu.support>
To: Christopher Howard <christopher@librehacker.com>
Cc: Help Gnu Emacs Mailing List <help-gnu-emacs@gnu.org>
Subject: Re: Org tag generator?
Date: Tue, 24 Dec 2024 23:47:24 +0300	[thread overview]
Message-ID: <Z2sd3HFIRGeYtr3f@lco2> (raw)
In-Reply-To: <87r05xf3bb.fsf@librehacker.com>

* Christopher Howard <christopher@librehacker.com> [2024-12-24 19:35]:
> Jean Louis <bugs@gnu.support> writes:
> 
> > and then relate it to "toddler" and then if any of such word is
> > mentioned let us say "more than once" in section, it could get a tag.
> >
> > So I could make a function to verify if any of defined words is
> > mentioned more than once.
> 
> Now you are recommending a system whereby I myself have to manual recognize and record all specific words that lead me to assign a specific tag. This works, in a sense, but does nothing to reduce my work load. There might be, for example, thousands of plant-related words that lead me to apply the tag :botany:. I don't want to have to figure out what those words are specifically and make a record of them. I just want to intuitively apply the tag :botany: and then the software figures out, after observing many nodes, that the words "rainforest" or "flower" or should generate the tag :botany:.

Sounds like you wish to use the features of text recognition as it is
today provided in Large Language Model (LLM) software.

Try it out here:
https://huggingface.co/spaces/Qwen/Qwen2.5

Give it the instruction. Here is example:


Give me name of 3 different flowers

Sure! Here are three different flowers:

    Rose - Known for its beauty and fragrance, the rose is a popular flower available in many colors such as red, pink, white, and yellow.

    Daisy - Characterized by its simple, charming appearance with white petals and a yellow center, the daisy symbolizes innocence and purity.

    Tulip - A spring favorite, tulips come in a variety of colors and are known for their cup-shaped blooms. They are often associated with the Netherlands.

Give me 3 different car models

Certainly! Here are three different car models:

    Toyota Camry - A popular mid-size sedan known for its reliability and fuel efficiency.
    Ford Mustang - An iconic American muscle car known for its powerful engines and sporty design.
    Tesla Model S - A high-performance electric sedan known for its advanced technology, long range, and sleek design.

I will now give you lines, and you will recognize if some of these tags apply: '("BOTANY", "TRANSPORT", "TRAVEL", "GARDEN"), return tags joined with colon : suitable for Org mode.

Sure, I can help with that! Please provide the lines, and I'll tag them accordingly.

Toyota Camry - A popular mid-size sedan known for its reliability and fuel efficiency.

TRANSPORT
(the above answer TRANSPORT was given by software)

Daisy - Characterized by its simple, charming appearance with white petals and a yellow center, the daisy symbolizes innocence and purity.

BOTANY:GARDEN

--------------(づ。◕‿‿◕。)づ --------------------------

Once you gain understanding, then you can integrate it in Emacs to
become very very effortless.

I would gather list of those tags and then just add tags by using LLM,
it is on-the-fly.

Here is small demo how integration within Emacs works, though I don't
think this model is suitable for that task of tagging:
https://yewtu.be/watch?v=XrK-X7LZ6aE

I would make it so:

1. Make function to tag your Org documents.
2. Copy original-file.org to tagged-file.org for safety.
3. Work on tagged-file.org
4. Extract list of all Org files automatically.
5. Parse each section and use that list to invoke LLM, to return the tags. 
6. Insert returned tags by Emacs function into the section header.
7. Continue parsing.
8. Continue with all files.

-- 
Jean Louis



      reply	other threads:[~2024-12-24 20:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-18 16:39 Org tag generator? Christopher Howard
2024-12-20 12:14 ` Jean Louis
2024-12-23 17:23   ` Christopher Howard
2024-12-23 20:21     ` Jean Louis
2024-12-24 16:34       ` Christopher Howard
2024-12-24 20:47         ` Jean Louis [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Z2sd3HFIRGeYtr3f@lco2 \
    --to=bugs@gnu.support \
    --cc=christopher@librehacker.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.