Crates.io | mindmap |
lib.rs | mindmap |
version | 0.1.2 |
source | src |
created_at | 2024-02-10 10:58:28.585795 |
updated_at | 2024-02-10 11:41:56.98444 |
description | Search your notes at the speed of thought |
homepage | |
repository | https://github.com/danimelchor/mindmap |
max_upload_size | |
id | 1134861 |
size | 113,789 |
A fast and efficient semantic search engine built in Rust to generate and search embeddings for your notes
curl -G --data-urlencode "q=poison" http://127.0.0.1:5001/
curl -G --data-urlencode "q=poison" --data-urlencode "format=json" http://127.0.0.1:5001/
cargo install mindmap
$ mindmap --help
Search your notes at the speed of thought
Usage: mindmap <COMMAND>
Commands:
setup Initial config setup
watch Watches your MindMap directory for changes
recompute-all Recomputes your entire MindMap
recompute-file Recomputes a specific file
query Queries the MindMap for items
server Starts the MindMap server
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
-V, --version Print version
MindMap will choose a sane default for the configuration file, but you can also
create it manually. We've created a utility command to help you with that. Just
run mindmap setup
and it will create the configuration file for you.
$ mindmap setup
Feel free to hit enter
to select the default values for the config options
that you aren't sure about.
There are a few models to choose from. The models are:
Despite supporting individual queries with midnmap query
, MindMap also supports a server mode. The server mode is useful for integrating MindMap with other tools, and it's
also much faster than the CLI mode since it will load the model only once and keep it in memory. To use the server, simply run mindmap server
and it will start listening on
the address specified in the configuration file:
$ mindmap server
Starting server at: 127.0.0.1:5001
Then, to communicate with the server just make a GET request to the root path with a query parameter q
:
$ curl -G --data-urlencode "q=are boats cool?" http://127.0.0.1:5001/
~/mindmap/test.md:5:5
~/mindmap/test.md:3:3
~/mindmap/test.md:1:1
~/mindmap/other_data.md:16:17
~/mindmap/other_data.md:48:48
~/mindmap/other_data.md:59:64
~/mindmap/other_data.md:43:43
~/mindmap/other_data.md:31:32
~/mindmap/other_data.md:41:41
~/mindmap/other_data.md:57:57
The list of files returned will be in the format file_path:line_number:column_number
.
mindmap.nvim is a Neovim plugin that allows you to quickly search and edit your MindMap notes.