Files
openserp/examples/ai/js-rag-context-builder
2026-06-09 04:14:35 +03:00
..
2026-06-09 04:14:35 +03:00
2026-06-09 04:14:35 +03:00
2026-06-09 04:14:35 +03:00

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.

npm install
node index.js

Edit the question in index.js, then pass the printed prompt to your LLM.