mirror of
https://github.com/karust/openserp.git
synced 2026-08-26 01:32:07 +08:00
12 lines
315 B
Markdown
12 lines
315 B
Markdown
|
|
# RAG context builder (JavaScript)
|
||
|
|
|
||
|
|
Searches for a question and formats the top results into a ready-to-use prompt
|
||
|
|
with numbered, citable sources — the retrieval step of a RAG pipeline.
|
||
|
|
|
||
|
|
```bash
|
||
|
|
npm install
|
||
|
|
node index.js
|
||
|
|
```
|
||
|
|
|
||
|
|
Edit the `question` in [index.js](index.js), then pass the printed prompt to your LLM.
|