0.0
The project is in a healthy, maintained state
Simple retrieval-augmented generation on markdown files
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

~> 6.5
~> 2.2
~> 4.1
 Project Readme

simple-rag

Simple RAG on your knowledge bases. Only support Markdown Files.

Install the gem directly:

gem install simple-rag-zc

Setup

  • Setup Config JSON
    • Run run-setup config.json then edit the paths to absolute path.
  • 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.html to 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.html to review duplicate clusters
    • Open http://localhost:4567/random.html to explore notes randomly
    • Open http://localhost:4567/graph.html to explore search results as a graph

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