I keep a lot of notes in markdown files, and I’d like an LLM to assist.

I regularly use Open WebUI with with inference routed through huggingface. Open WebUI kind of has this functionality like you can upload a markdown file and prompt it to improve it in whatever way, but of course that’s a fairly clunky workflow.

I really want something built into the editor, that can use RAG to consider other files in context.

I also don’t want to be locked in to a specific LLM or provider, I’d like to be able to link it to OpenRouter or similar.

  • maria [she/her]@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    2
    ·
    15 hours ago

    what volume of markdown files are we talking?

    also, just so i understand this right:
    you are looking fir a markdown editor which has a chat window on the side which can look at other files to assist in writing.
    is that correct?

    which editor do you use right now for editing the files? does it need to support vim-movements? (if u dont know what that is, it doesnt matter)

    what exactly would the LM be assisting in? should it be to just read files and respond, or edit them itself aswell, or suggest edits?

    suggestion for under 200 files

    depending on the amount of files, a simple index and read-tool functionality might be enough. Here is how you would create such an index:

    1. LM looks at each md file
    2. Then generates a one-liner about the content, like:

    Static functions and variables in Godot, using autoload scripts and scenes (e.g. loading screens, overlays, save systems, anything permanently loaded)

    1. store that into a file alongside each files path, perhaps like this:
    ~/Documents/
      file.md (one-liner here)
      another_file.md (one-liner here)
      topic/
        file_about_topic.md (one-liner here)
    [...]
    

    These three steps can be done using any coding agent you got lying around using this prompt

    Goal: FILE_INDEX.txt which contains all files in <folder with the documents> in tree form (reduce redundant dir paths) with a concise and keyword-heavy one-liner about the files content.
    
    FILE_INDEX.md format:
    
    ~/SomeDir/SomeDirBelowIt/
      a_file_in_that_dir.md (description)
      another_file.md (description)
      dir_inside_it/
        file_in_that_dir.md (description)
    
    How: First use `tree` to see the directories contents, then use subagents to delegate the generation of the descriptions. They should out them into files themselves. An agent can summarize 5 files at mist in one go. Tell each agent exactly what name the output file should have. Finally, after having received all descriptions with their file names, combine the files all into one final FILE_INDEX.txt
    

    This index can then be did into any agent to let it find files quicker, without having to hope for good chunking settings in a RAG pipeline.


    all this was written by a human, even if it might not seem as such.

    • fizzle@quokk.auOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      13 hours ago

      you are looking fir a markdown editor which has a chat window on the side which can look at other files to assist in writing.

      Yes, although I’m interested in what other solutions might be around.

      I use a variety of editors. Whichever suits my mood in a given moment. Sometimes helix which is a TUI, sometimes gnome’s text editor, sometimes zettlr which is a more “zettelkasten” type knowledge base manager. I’m flexible. If there was a text editor that had this type of functionality built in then that’s what I’d use for tasks where I wanted this type of assistance. I don’t care about vim short cuts.

      I appreciate your proposing a solution. It still feels like there’s a yawning chasm in my knowledge. As in, what platform or software can I use to implement tools like you propose? I haven’t been able to figure out how to get open webui to provide that sort of functionality, although I suspect that it can.

      I think I’m asking, what is the software that connects my selection of markdown files to the LLM. I know you can upload a bunch of text files to open webui but you can’t edit in place. it would be like upload edit download upload edit download upload ad nauseum.