simple-rag
Simple RAG on your knowledge bases. Only support Markdown Files.
Install the gem directly:
gem install simple-rag-zcSetup
- Setup Config JSON
- Run
run-setup config.jsonthen edit the paths to absolute path.
- Run
- Run
run-index config.json*Required- To generate embeddings for all files. It takes a while on the first time.
- Run
run-server config.json- Open
http://localhost:4567/q.htmlto search/ask from your knowledge bases- Use Search for standard retrieval
- Use Search+ for agentic query expansion and fast text match
- Use Synthesize to combine retrieved notes
- Open
http://localhost:4567/duplicate.htmlto review duplicate clusters - Open
http://localhost:4567/random.htmlto explore notes randomly - Open
http://localhost:4567/graph.htmlto explore search results as a graph
- Open
Publishing
To release a new version to RubyGems, run:
gem build simple-rag.gemspec
gem push simple-rag-zc-$(ruby -Ilib -e 'require "simple_rag/version"; puts SimpleRag::VERSION').gem