Small implementation of an RAG (retrieval-augmented generation) with bun, hono, sqlite-vec, and langchain (ollama)
Make sure you have ollama with embeddinggemma & gemma3 model, and bun installed on your machine.
Install dependencies:
bun installRun:
bun run devIngesting documents:
POST /ingest with this body:
{
"documents": "some documents"
}Querying:
POST /query with this body:
{
"query": "some query"
}