Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Brainstorming: chat with the whole trilium database using some kind of vectors #9

Open
thfrei opened this issue Sep 20, 2023 · 4 comments

Comments

@thfrei
Copy link

thfrei commented Sep 20, 2023

I like your approach. Having at least an openai interface within trilium and save stuff is useful.

Did you think about maybe do some knowledge retrieval with a vector database in the background? maybe we could create one vector for every note and save it as an attribute. so we could then actually chat with trilium.

There are some tools already like:

@soulsands
Copy link
Owner

Thank you for your attention and suggestions. I have looked into it before, but found it to be quite complicated, so I haven't delved into it further for now.
I may try to implement it in the future, but I'm not sure when.
Thanks again!

@Alumniminium
Copy link

Alumniminium commented May 27, 2024

This is actually quite trivial to do, you don't need a vectordb for that stuff, you can just write all of that(text & embeddings) into a single json file and it will still scale to 100.000's of notes easily.

I'll give it a shot if the contribution part of the readme works.

Edit:

Doesn't work, I'm out.

trilium-chat git:(main) yarn dev     
yarn run v1.22.22
$ cross-env ENV=dev webpack serve --open --config webpack.dev.js
node:events:495
      throw er; // Unhandled 'error' event
      ^

Error: spawn webpack ENOENT
    at ChildProcess._handle.onexit (node:internal/child_process:284:19)
    at onErrorNT (node:internal/child_process:477:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Emitted 'error' event on ChildProcess instance at:
    at ChildProcess._handle.onexit (node:internal/child_process:290:12)
    at onErrorNT (node:internal/child_process:477:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn webpack',
  path: 'webpack',
  spawnargs: [ 'serve', '--open', '--config', 'webpack.dev.js' ]
}

Node.js v18.18.2
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

@perfectra1n
Copy link
Collaborator

That -2 makes it seem like your webpack.dev.js file couldn't be found.

@j13055
Copy link

j13055 commented Sep 25, 2024

I am not sure if this fits here, but i thought before opening a new discussion, i'll ask here.
Would it be a lot of work to add more than {{activeNote}} for the prompts. Something like {{childNotes}}?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants