embedding-rag
workflowv1.0.0Simple RAG pipeline - index documents and search them with the native embedding executor
Install
kdeps registry install embedding-rag
Then run locally:
kdeps exec embedding-rag
Configure LLM provider in ~/.kdeps/config.yaml (created automatically on first run).
README
embedding-rag
Simple RAG (Retrieval-Augmented Generation) pipeline using the built-in native embedding executor -- keyword-indexed SQLite store, pure Go, zero external dependencies.
Usage
kdeps run examples/embedding-rag/workflow.yaml --dev
Index a document:
curl -X POST http://localhost:16403/index \
-H "Content-Type: application/json" \
-d '{"text": "Go is a statically typed, compiled programming language designed at Google.", "collection": "docs"}'
Search indexed documents:
curl -X POST http://localhost:16403/search \
-H "Content-Type: application/json" \
-d '{"query": "compiled language", "collection": "docs"}'
How it works
- index --
run.embeddingwithoperation: upsertstores the text in a SQLite keyword index - search --
run.embeddingwithoperation: searchretrieves the top-5 matching documents - response -- returns the results and match count
Operations
operation | Description |
|---|---|
index | Add document to index |
upsert | Add or update document |
search | Keyword search, returns ranked results |
delete | Remove document by text |
Structure
embedding-rag/
├── workflow.yaml
└── resources/
├── index.yaml # run.embedding operation: upsert
├── search.yaml # run.embedding operation: search
└── response.yaml # API response
Versions
| Version | Published | Status |
|---|---|---|
| 1.0.0 | 4/11/2026 | active |
Details
- Author
- kdeps
- License
- Apache-2.0
- Latest Version
- 1.0.0
- Published
- 4/11/2026
Tags
ragembeddingsearch