Giter VIP home page Giter VIP logo

Comments (4)

ahyatt avatar ahyatt commented on September 5, 2024 1

We don't have the kind of search you are thinking of, although it'd be a good idea to add. What we do have is, llm-embedding, where you can do a semantic search after you hook up your notes to a provider of embeddings (Open AI, etc).

from ekg.

walseb avatar walseb commented on September 5, 2024

I get the same error when running
emacs -Q -l /home/admin/nixos/deps/emacs/sql-test.el
where the contents of that file is:

(let ((con (sqlite-open "/home/admin/nixos/deps/emacs/triples.db")))
    (sqlite-execute con "REPLACE INTO triples VALUES (?, ?, ?, ?)" '("text/mode" "base/unique" "t" "()"))
    (sqlite-execute con "REPLACE INTO triples VALUES (?, ?, ?, ?)" '("text/mode" "base/unique" "t" "()"))
    (sqlite-execute con "REPLACE INTO triples VALUES (?, ?, ?, ?)" '("text/mode" "base/unique" "t" "()"))
    (sqlite-execute con "REPLACE INTO triples VALUES (?, ?, ?, ?)" '("text/mode" "base/unique" "t" "()"))
    (sqlite-execute con "REPLACE INTO triples VALUES (?, ?, ?, ?)" '("text/mode" "base/unique" "t" "()"))
    (sqlite-execute con "REPLACE INTO triples VALUES (?, ?, ?, ?)" '("text/mode" "base/unique" "t" "()"))
    (sqlite-execute con "REPLACE INTO triples VALUES (?, ?, ?, ?)" '("text/mode" "base/unique" "t" "()"))
    (sqlite-execute con "REPLACE INTO triples VALUES (?, ?, ?, ?)" '("text/mode" "base/unique" "t" "()"))
    (sqlite-execute con "REPLACE INTO triples VALUES (?, ?, ?, ?)" '("text/mode" "base/unique" "t" "()"))))

Probably it's a bug relating to emac's implementation of sqlite.

from ekg.

ahyatt avatar ahyatt commented on September 5, 2024

Thanks for the investigation! You should probably open an emacs bug (M-x report-emacs-bug) with a small test-case that you can verify in a plain emacs (emacs -Q).

For using ekg if sqlite-execute doesn't work, you can try using emacsql. Install the emacs package separately, and then (setq triples-sqlite-interface 'emacsql). This should work for you, let me know if you have issues.

from ekg.

walseb avatar walseb commented on September 5, 2024

Yes although my issue probably doesn't happen on anyone else's machine because it affects all complex or rapid calls to sqlite. I think this is related to my system configuration. I will try to test this issue on my other machines to see which parts of my configuration might be causing the issue.

Thanks so much for the tip! When using emacsql it works fine, although I'm getting an error after saving changes to an imported org-roam note. I will look into it more later.

I'm wondering, is there a simple way to interactively search across all note contents with a live preview of results? Like grep with consult? I didn't find any functions for that, and it was useful in org-roam when quickly searching for some note I remembered a part of that wasn't the tag.

Thanks so much for this package and the help!

from ekg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.