Add embedder-tool CLI for document indexing and semantic search#408
Conversation
|
This is really cool! The I hit this -- it was doing an eval of the graph: I found that if I set the It also seems to use a lot of memory -- I wonder if doing something like |
|
Yep, exactly. I also added a repl command which is more fun to play haha. Looking into the memory right now that's why converted to draft after I hit it |
|
Back to this PR; let's get it done! |
|
It looks like this just needs swift-format and then we can gt it merged. Thanks! |
|
Done! |
davidkoski
left a comment
There was a problem hiding this comment.
Thank you, this is a big help!
…xplore#408) * Add EmbedderTool command line utility
This PR introduces a new command-line tool,
embedder-tool, that helps to work with embedding models from theMLXEmbedderslibrary. The tool can index documents, semantic search, and for model management.Features
index
search
list
demo
Bug Fixes
For NomicBert Model Architecture. Let me know if this should be a separate PR.
bias: falsematching model weightspooler: falsefor nomic-embed-text-v1.5Usage Examples
Index documents
Search the index
embedder-tool search --index index.json --query "How do embeddings work?" --top 5List available models
Run demo
Closes #407