@devilsdev/rag-pipeline-utils 2.1.1 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/release-template.md +20 -0
- package/.github/workflows/ci.yml +12 -23
- package/.github/workflows/docs-ci.yml +44 -0
- package/.github/workflows/docs-deploy.yml +26 -16
- package/.github/workflows/publish-release-blog.yml +37 -17
- package/CHANGELOG.md +7 -0
- package/codecov +0 -0
- package/codecov.SHA256SUM +1 -0
- package/codecov.SHA256SUM.sig +16 -0
- package/docs-site/blog/2025-04-18-architecture-overview.md +8 -26
- package/docs-site/blog/{2025-04-17-release-v2.0.2.md → 2025-04-18-release-v2.1.1.md} +4 -4
- package/docs-site/blog/2025-04-19-prompt-engineering-best-practices.md +8 -23
- package/docs-site/blog/2025-04-20-image-showcase.md +6 -15
- package/docs-site/blog/2025-04-20-release-2.1.1.md +21 -0
- package/docs-site/blog/tags.yml +29 -0
- package/docs-site/docs/intro.mdx +6 -0
- package/docs-site/docusaurus.config.js +35 -18
- package/docs-site/package-lock.json +234 -719
- package/docs-site/package.json +4 -8
- package/docs-site/src/components/HomepageFeatures/index.js +34 -37
- package/docs-site/src/components/HomepageFeatures/index.module.css +57 -0
- package/docs-site/src/components/HomepageHeader/index.js +46 -0
- package/docs-site/src/components/HomepageHeader/index.module.css +77 -0
- package/docs-site/src/css/custom.css +101 -78
- package/docs-site/src/pages/index.js +11 -28
- package/docs-site/static/img/logo.png +0 -0
- package/docs-site/static/img/logo.svg +5 -1538
- package/jest.config.js +4 -1
- package/package.json +12 -6
- package/scripts/fix-mdx-blog-imports.js +50 -0
- package/scripts/fix-mdx-image-imports.js +27 -0
- package/scripts/generate-release-note.js +40 -0
- package/.github/workflows/storybook-deploy.yml +0 -33
- package/.storybook/main.js +0 -20
- package/.storybook/preview.js +0 -13
- package/docs-site/.plaiceholder-cache/img_hero.jpg.json +0 -1
- package/docs-site/.plaiceholder-cache/img_logo.png.json +0 -1
- package/docs-site/.storybook/preview.js +0 -8
- package/docs-site/blog/2021-08-26-welcome/docusaurus-plushie-banner.jpeg +0 -0
- package/docs-site/blog/2021-08-26-welcome/index.md +0 -28
- package/docs-site/blog/2025-04-17-release-2.0.md +0 -67
- package/docs-site/blog/2025-04-18-release-2.0.0.md +0 -21
- package/docs-site/blog/2025-04-18-release-v2.1.0.md +0 -13
- package/docs-site/docs/components/BlogCardExample.mdx +0 -7
- package/docs-site/scripts/generate-placeholders.js +0 -17
- package/docs-site/scripts/watch-images.js +0 -40
- package/docs-site/sidebar-snippet.txt +0 -5
- package/docs-site/src/components/BlogCard.jsx +0 -31
- package/docs-site/src/components/BlogCard.stories.jsx +0 -34
- package/docs-site/src/components/BlogImage.jsx +0 -58
- package/docs-site/src/components/BlogImage.stories.jsx +0 -20
- package/docs-site/src/components/HomepageFeatures/styles.module.css +0 -58
- package/docs-site/static/img/favicon.ico +0 -0
- package/docs-site/utils/image.js +0 -19
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<!-- .github/release-template.md -->
|
|
2
|
+
|
|
3
|
+
# 🔖 Release v{{VERSION}}
|
|
4
|
+
|
|
5
|
+
**Published:** `{{DATE}}`
|
|
6
|
+
**Compare changes:** [View diff](https://github.com/DevilsDev/rag-pipeline-utils/compare/{{PREVIOUS_TAG}}...v{{VERSION}})
|
|
7
|
+
**Contributors:** `{{CONTRIBUTORS}}`
|
|
8
|
+
**Commits:** `{{COMMITS}}`
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## 📦 What's New
|
|
13
|
+
|
|
14
|
+
- Placeholder for changelog details or highlights.
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## 📘 Changelog
|
|
19
|
+
|
|
20
|
+
See full details in [CHANGELOG.md](../../CHANGELOG.md)
|
package/.github/workflows/ci.yml
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
# .github/workflows/ci.yml
|
|
2
|
-
# Version:
|
|
3
|
-
# Description:
|
|
2
|
+
# Version: 1.0.0
|
|
3
|
+
# Description: Clean CI pipeline with lint, test, fixtures, coverage, and release
|
|
4
4
|
# Author: Ali Kahwaji
|
|
5
5
|
|
|
6
6
|
name: CI & Release
|
|
7
7
|
|
|
8
8
|
on:
|
|
9
9
|
push:
|
|
10
|
-
branches:
|
|
11
|
-
- main
|
|
10
|
+
branches: [main]
|
|
12
11
|
pull_request:
|
|
13
|
-
branches:
|
|
14
|
-
- main
|
|
12
|
+
branches: [main]
|
|
15
13
|
|
|
16
14
|
jobs:
|
|
17
15
|
build-test-release:
|
|
@@ -38,27 +36,18 @@ jobs:
|
|
|
38
36
|
- name: ✅ Run tests with coverage
|
|
39
37
|
run: npm test
|
|
40
38
|
|
|
41
|
-
- name:
|
|
42
|
-
env:
|
|
43
|
-
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
44
|
-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
45
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} # 👈 critical for npm publi
|
|
46
|
-
run: npx semantic-release
|
|
47
|
-
|
|
48
|
-
- name: 🧪 Run Tests with Coverage
|
|
49
|
-
run: npm test
|
|
50
|
-
|
|
51
|
-
- name: Validate Fixtures
|
|
39
|
+
- name: 🧪 Validate Fixtures
|
|
52
40
|
run: npm run validate-fixtures
|
|
53
|
-
|
|
54
|
-
- name: Lint code
|
|
55
|
-
run: npm run lint
|
|
56
|
-
|
|
57
|
-
|
|
41
|
+
|
|
58
42
|
- name: 📊 Upload coverage to Codecov
|
|
59
43
|
uses: codecov/codecov-action@v5
|
|
60
44
|
with:
|
|
61
45
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
62
46
|
slug: DevilsDev/rag-pipeline-utils
|
|
63
47
|
|
|
64
|
-
|
|
48
|
+
- name: 🚀 Semantic Release
|
|
49
|
+
env:
|
|
50
|
+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
51
|
+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
52
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
53
|
+
run: npx semantic-release
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
name: Docs CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
build:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
defaults:
|
|
13
|
+
run:
|
|
14
|
+
working-directory: docs-site
|
|
15
|
+
|
|
16
|
+
steps:
|
|
17
|
+
- name: Checkout repository
|
|
18
|
+
uses: actions/checkout@v4
|
|
19
|
+
|
|
20
|
+
- name: Use Node.js 18
|
|
21
|
+
uses: actions/setup-node@v4
|
|
22
|
+
with:
|
|
23
|
+
node-version: '18'
|
|
24
|
+
cache: 'npm'
|
|
25
|
+
cache-dependency-path: '**/package-lock.json'
|
|
26
|
+
|
|
27
|
+
- name: Install dependencies
|
|
28
|
+
run: npm ci
|
|
29
|
+
|
|
30
|
+
- name: Lint codebase
|
|
31
|
+
run: npm run lint
|
|
32
|
+
|
|
33
|
+
- name: Validate docs build
|
|
34
|
+
run: npm run docs:build
|
|
35
|
+
|
|
36
|
+
- name: Run tests (optional)
|
|
37
|
+
run: npm test
|
|
38
|
+
if: ${{ always() }}
|
|
39
|
+
|
|
40
|
+
- name: Upload build artifacts (optional)
|
|
41
|
+
uses: actions/upload-artifact@v4
|
|
42
|
+
with:
|
|
43
|
+
name: docusaurus-build
|
|
44
|
+
path: docs-site/build
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
# .
|
|
2
|
-
#
|
|
3
|
-
# Description: Deploys Docusaurus to GitHub Pages on changes to documentation files
|
|
1
|
+
# Version: 2.1.0
|
|
2
|
+
# Description: Validates lint, test, and code coverage before deploy
|
|
4
3
|
# Author: Ali Kahwaji
|
|
5
4
|
|
|
6
|
-
name:
|
|
5
|
+
name: 🧪 Docs CI
|
|
7
6
|
|
|
8
7
|
on:
|
|
8
|
+
pull_request:
|
|
9
|
+
branches: [main]
|
|
9
10
|
push:
|
|
10
11
|
branches: [main]
|
|
11
12
|
paths:
|
|
@@ -17,15 +18,19 @@ on:
|
|
|
17
18
|
- 'package.json'
|
|
18
19
|
|
|
19
20
|
jobs:
|
|
20
|
-
|
|
21
|
-
name:
|
|
21
|
+
validate:
|
|
22
|
+
name: Validate Build & Test
|
|
22
23
|
runs-on: ubuntu-latest
|
|
23
24
|
|
|
25
|
+
defaults:
|
|
26
|
+
run:
|
|
27
|
+
working-directory: docs-site
|
|
28
|
+
|
|
24
29
|
steps:
|
|
25
|
-
- name: 📥 Checkout
|
|
30
|
+
- name: 📥 Checkout code
|
|
26
31
|
uses: actions/checkout@v4
|
|
27
32
|
|
|
28
|
-
- name:
|
|
33
|
+
- name: 🧰 Setup Node.js
|
|
29
34
|
uses: actions/setup-node@v4
|
|
30
35
|
with:
|
|
31
36
|
node-version: 20
|
|
@@ -33,14 +38,19 @@ jobs:
|
|
|
33
38
|
- name: 📦 Install dependencies
|
|
34
39
|
run: npm ci
|
|
35
40
|
|
|
36
|
-
- name:
|
|
41
|
+
- name: 🧹 Lint
|
|
42
|
+
run: npm run lint
|
|
43
|
+
|
|
44
|
+
- name: 🛠️ Build
|
|
37
45
|
run: npm run docs:build
|
|
38
46
|
|
|
39
|
-
- name:
|
|
40
|
-
|
|
47
|
+
- name: ✅ Test
|
|
48
|
+
run: npm test
|
|
49
|
+
|
|
50
|
+
- name: 📊 Upload coverage
|
|
51
|
+
uses: codecov/codecov-action@v4
|
|
41
52
|
with:
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
user_email: 41898282+github-actions[bot]@users.noreply.github.com
|
|
53
|
+
token: ${{ secrets.CODECOV_TOKEN }}
|
|
54
|
+
directory: ./coverage
|
|
55
|
+
flags: docusaurus
|
|
56
|
+
fail_ci_if_error: true
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# .github/workflows/publish-release-blog.yml
|
|
2
|
-
# Version: 1.
|
|
3
|
-
# Description: Auto-publish blog post from
|
|
2
|
+
# Version: 1.4.0
|
|
3
|
+
# Description: Auto-publish blog post from GitHub Release event with metadata, compare link, and authorship info
|
|
4
4
|
# Author: Ali Kahwaji
|
|
5
5
|
|
|
6
6
|
name: ✨ Publish Release Blog Post
|
|
@@ -18,33 +18,53 @@ jobs:
|
|
|
18
18
|
- name: ⬇️ Checkout main branch
|
|
19
19
|
uses: actions/checkout@v4
|
|
20
20
|
with:
|
|
21
|
-
ref: main
|
|
21
|
+
ref: main
|
|
22
22
|
fetch-depth: 0
|
|
23
23
|
|
|
24
|
-
- name:
|
|
24
|
+
- name: 🛠 Setup GitHub CLI
|
|
25
|
+
uses: cli/cli-action@v2
|
|
26
|
+
|
|
27
|
+
- name: 🔧 Setup Node.js
|
|
25
28
|
uses: actions/setup-node@v4
|
|
26
29
|
with:
|
|
27
30
|
node-version: 20
|
|
28
31
|
|
|
29
32
|
- name: ✏️ Generate blog post
|
|
33
|
+
env:
|
|
34
|
+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
30
35
|
run: |
|
|
31
36
|
VERSION=${GITHUB_REF#refs/tags/}
|
|
37
|
+
PREV_TAG=$(git tag --sort=creatordate | grep -B1 "$VERSION" | head -n1)
|
|
32
38
|
DATE=$(date +'%Y-%m-%d')
|
|
33
39
|
FILE="docs-site/blog/${DATE}-release-${VERSION}.md"
|
|
34
40
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
echo "
|
|
40
|
-
echo "
|
|
41
|
-
echo >> $FILE
|
|
42
|
-
echo "
|
|
43
|
-
echo >> $FILE
|
|
44
|
-
echo "
|
|
45
|
-
echo
|
|
46
|
-
echo "
|
|
47
|
-
echo
|
|
41
|
+
COMPARE_URL="https://github.com/${{ github.repository }}/compare/${PREV_TAG}...${VERSION}"
|
|
42
|
+
COMMITS=$(gh api repos/${{ github.repository }}/compare/${PREV_TAG}...${VERSION} --jq '.total_commits')
|
|
43
|
+
CONTRIBUTORS=$(gh api repos/${{ github.repository }}/compare/${PREV_TAG}...${VERSION} --jq '[.commits[].author.login] | unique | join(", ")')
|
|
44
|
+
|
|
45
|
+
echo "---" > "$FILE"
|
|
46
|
+
echo "slug: release-${VERSION}" >> "$FILE"
|
|
47
|
+
echo "title: \"✨ Version ${VERSION} Released\"" >> "$FILE"
|
|
48
|
+
echo "authors: [ali]" >> "$FILE"
|
|
49
|
+
echo "tags: [release, changelog]" >> "$FILE"
|
|
50
|
+
echo "---" >> "$FILE"
|
|
51
|
+
echo >> "$FILE"
|
|
52
|
+
echo "🎉 **RAG Pipeline Utils \`${VERSION}\` is now available!**" >> "$FILE"
|
|
53
|
+
echo >> "$FILE"
|
|
54
|
+
echo "## 🔍 Metadata" >> "$FILE"
|
|
55
|
+
echo "| Key | Value |" >> "$FILE"
|
|
56
|
+
echo "|----------------|------------------|" >> "$FILE"
|
|
57
|
+
echo "| Version | \`${VERSION}\` |" >> "$FILE"
|
|
58
|
+
echo "| Previous Tag | \`${PREV_TAG}\` |" >> "$FILE"
|
|
59
|
+
echo "| Commit Count | ${COMMITS:-N/A} |" >> "$FILE"
|
|
60
|
+
echo "| Contributors | ${CONTRIBUTORS:-N/A} |" >> "$FILE"
|
|
61
|
+
echo "| GitHub Diff | [${PREV_TAG}...${VERSION}](${COMPARE_URL}) |" >> "$FILE"
|
|
62
|
+
echo >> "$FILE"
|
|
63
|
+
echo "## 🚀 Highlights" >> "$FILE"
|
|
64
|
+
echo "- Auto-published blog post from GitHub Release" >> "$FILE"
|
|
65
|
+
echo "- GitHub diff for full history: [${COMPARE_URL}](${COMPARE_URL})" >> "$FILE"
|
|
66
|
+
echo "- Semantic versioning with changelog tracking" >> "$FILE"
|
|
67
|
+
echo "- See full [CHANGELOG.md](../../CHANGELOG.md)" >> "$FILE"
|
|
48
68
|
|
|
49
69
|
- name: 📋 Commit blog post
|
|
50
70
|
uses: stefanzweifel/git-auto-commit-action@v5
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.1.2](https://github.com/DevilsDev/rag-pipeline-utils/compare/v2.1.1...v2.1.2) (2025-04-21)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* resolve build/test errors, update jest configuration, and ensure compatibility with ECMAScript modules ([e6259f9](https://github.com/DevilsDev/rag-pipeline-utils/commit/e6259f924f38da66f9fc9cb7c01a8d6665bf5cbd))
|
|
9
|
+
|
|
3
10
|
## [2.1.1](https://github.com/DevilsDev/rag-pipeline-utils/compare/v2.1.0...v2.1.1) (2025-04-18)
|
|
4
11
|
|
|
5
12
|
|
package/codecov
ADDED
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0f7aadde579ebde1443ad2f977beada703f562997fdda603f213faf2a8559868 codecov
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
-----BEGIN PGP SIGNATURE-----
|
|
2
|
+
|
|
3
|
+
iQIzBAABCgAdFiEEJwNOf9uFDgu8LGL/gGuyiu13mGkFAmf1418ACgkQgGuyiu13
|
|
4
|
+
mGke3w/8DpgS1CDxKdV50CKy81LmiA995bEw2ePBRc90JzNrGX7m2JcFQr/GUITs
|
|
5
|
+
JofhfQ6sxnvLLxTLAyiMI8Tcbr2yN/BIjBERIhN8b20zL3KGY6kVS85czQdPs0a7
|
|
6
|
+
BlY3xp7VgCv24E/SWc0m367GvBjVnanhMg+hIoaK4HQpWOx+93GzaGZWCnISl6yh
|
|
7
|
+
Zn13zn/b/oXwvd3iekh3qb918kPwq3F3Ufd8gHLf71gH0usDoRIUwVIMYMjuoMeI
|
|
8
|
+
ceIjZYe1BLG+hNAUkqboi1GK8IJQH66hwyB82KQxUZG0zEOTwhbvFrIijR30BSk6
|
|
9
|
+
KROFxxe8s1kuEZGI/zhKPXkYkjiIdXQQvMP7emsQeLQljRb2k3prUhHw7LyFTPla
|
|
10
|
+
KRK9MX1BoLr1Iol0Py/y8luSBCNvAmeCmbh6uGWS/1SJ/mj6CiZibWIO40qH9NJI
|
|
11
|
+
wDY/JHrTHA2W2EsvREegny7znurxk1ORwT2scEJobu/NiLQEvpz6fvHaKiBcX45z
|
|
12
|
+
53pv1v0xlTFCEF6Vfg2geywIk4Dfi4l7dxyG9hyHtb1lQ0zwcz9KaAPhMjiJCUPa
|
|
13
|
+
zGh0nN/xgkD9u7TNhOW3vG01R/wNW5BF+E8+04AO+RroV230m+a/e958I6pCd9M+
|
|
14
|
+
N6FtNND7ZyIVoHiVA/v/tWc+ODZ5b9K8Q1Y6a0jkCbFZ3ZeCrPI=
|
|
15
|
+
=onSD
|
|
16
|
+
-----END PGP SIGNATURE-----
|
|
@@ -1,34 +1,16 @@
|
|
|
1
1
|
---
|
|
2
2
|
slug: architecture-overview
|
|
3
|
-
title: RAG
|
|
3
|
+
title: RAG Architecture Overview
|
|
4
4
|
authors: [ali]
|
|
5
|
-
tags: [architecture,
|
|
6
|
-
description: A deep dive into the architecture powering RAG Pipeline Utils — from plugin interfaces to flexible pipeline composition.
|
|
5
|
+
tags: [architecture, modular]
|
|
7
6
|
---
|
|
8
7
|
|
|
9
|
-
|
|
8
|
+
Explore the modular RAG pipeline architecture. Components like loaders, embedders, retrievers, and generators are pluggable and testable.
|
|
10
9
|
|
|
11
|
-
|
|
10
|
+
<!-- truncate -->
|
|
12
11
|
|
|
13
|
-
|
|
12
|
+
## Key Concepts
|
|
14
13
|
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
-
|
|
18
|
-
- Full CI/CD and automated NPM releases
|
|
19
|
-
|
|
20
|
-
## Architecture Highlights
|
|
21
|
-
|
|
22
|
-
- `PluginRegistry`: Registers and resolves all components.
|
|
23
|
-
- `validateSchema`: Enforces `.ragrc.json` format across all pipelines.
|
|
24
|
-
- `mocks/`: Local test doubles for every plugin interface.
|
|
25
|
-
- `__tests__/`: Dual-layer coverage — unit + integration.
|
|
26
|
-
|
|
27
|
-
## Try It Now
|
|
28
|
-
|
|
29
|
-
```bash
|
|
30
|
-
npm install @devilsdev/rag-pipeline-utils
|
|
31
|
-
npx rag-utils run --config .ragrc.json
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
Stay tuned for future posts including CI validation, RAG evaluation tooling, and how to build your own dashboard for prompt scoring.
|
|
14
|
+
- Plugin registry for clean composition
|
|
15
|
+
- Evaluation layer for metrics like BLEU and recall
|
|
16
|
+
- CLI integration for dev-first workflows
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
---
|
|
2
|
-
slug: release-v2.
|
|
3
|
-
title: ✨ Version v2.
|
|
2
|
+
slug: release-v2.1.1
|
|
3
|
+
title: ✨ Version v2.1.1 Released
|
|
4
4
|
authors: [ali]
|
|
5
5
|
tags: [release, changelog]
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
RAG Pipeline Utils vv2.
|
|
8
|
+
RAG Pipeline Utils vv2.1.1 is now available on NPM!
|
|
9
9
|
|
|
10
10
|
#### Highlights
|
|
11
11
|
- 🚀 Auto-published blog from GitHub release
|
|
12
|
-
- 📦 Version bump: v2.
|
|
12
|
+
- 📦 Version bump: v2.1.1
|
|
13
13
|
- 📘 See CHANGELOG.md for full details
|
|
@@ -1,31 +1,16 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: "Prompt Engineering Best Practices for RAG"
|
|
3
2
|
slug: prompt-engineering-best-practices
|
|
3
|
+
title: Prompt Engineering Best Practices
|
|
4
4
|
authors: [ali]
|
|
5
|
-
tags: [prompt-engineering,
|
|
6
|
-
image: /img/social/prompt-engineering-card.png
|
|
7
|
-
description: "A deep dive into prompt optimization strategies for RAG pipelines using modular design."
|
|
5
|
+
tags: [prompt-engineering, tutorials]
|
|
8
6
|
---
|
|
9
|
-
Prompt engineering is a critical lever in maximizing the effectiveness of Retrieval-Augmented Generation (RAG) systems. In this article, we explore:
|
|
10
7
|
|
|
11
|
-
|
|
8
|
+
Design better prompts for your LLM-driven RAG workflows using templating, in-context examples, and task-specific embeddings.
|
|
12
9
|
|
|
13
|
-
|
|
10
|
+
<!-- truncate -->
|
|
14
11
|
|
|
15
|
-
|
|
16
|
-
- Leverage JSON or YAML-based structured prompts where applicable
|
|
17
|
-
- Evaluate with real examples using the CLI + evaluation framework
|
|
12
|
+
## Tips
|
|
18
13
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
-
|
|
22
|
-
- **Task framing**: instruction-oriented for LLM consistency
|
|
23
|
-
- **Scoring heuristics**: if doing ranking, consider scoring guidelines
|
|
24
|
-
|
|
25
|
-
## Prompt as Plugin (Future Feature)
|
|
26
|
-
|
|
27
|
-
Eventually, we plan to support `promptTemplate` as a plugin type – enabling reusable prompt logic alongside `loader`, `retriever`, etc.
|
|
28
|
-
|
|
29
|
-
---
|
|
30
|
-
|
|
31
|
-
Stay tuned for our upcoming prompt debugger dashboard, and follow [releases](/blog/tags/release) for versioned updates.
|
|
14
|
+
- Use instructions + context
|
|
15
|
+
- Dynamically inject retrieved passages
|
|
16
|
+
- Validate through CLI or dashboard
|
|
@@ -1,23 +1,14 @@
|
|
|
1
1
|
---
|
|
2
2
|
slug: image-showcase
|
|
3
|
-
title:
|
|
3
|
+
title: Image Showcase with LQIP
|
|
4
4
|
authors: [ali]
|
|
5
|
-
tags: [
|
|
6
|
-
description: Demonstrating LQIP-powered blog images using the BlogImage component.
|
|
5
|
+
tags: [image, tutorials]
|
|
7
6
|
---
|
|
8
7
|
|
|
9
|
-
|
|
8
|
+
Demonstration of how low-quality image placeholders (LQIP) improve blog UX and optimize web performance.
|
|
10
9
|
|
|
11
|
-
|
|
10
|
+
<!-- truncate -->
|
|
12
11
|
|
|
13
|
-
##
|
|
12
|
+
## Details
|
|
14
13
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
---
|
|
18
|
-
|
|
19
|
-
## Benefits Recap
|
|
20
|
-
|
|
21
|
-
- Blurred placeholder loading for faster perception
|
|
22
|
-
- Fallback to default cache when missing
|
|
23
|
-
- Ready for automation via `watch-images.js`
|
|
14
|
+
This post showcases `BlogImage` and `BlogCard` with LQIP integration via Plaiceholder and SSR-safe fallbacks.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<!-- .github/release-template.md -->
|
|
2
|
+
|
|
3
|
+
# 🔖 Release v2.1.1
|
|
4
|
+
|
|
5
|
+
**Published:** `2025-04-20`
|
|
6
|
+
**Compare changes:** [View diff](https://github.com/DevilsDev/rag-pipeline-utils/compare/v2.0.0...v2.1.1)
|
|
7
|
+
**Contributors:** `3`
|
|
8
|
+
**Commits:** `17`
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## 📦 What's New
|
|
13
|
+
|
|
14
|
+
- Placeholder for changelog details or highlights.
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## 📘 Changelog
|
|
19
|
+
|
|
20
|
+
See full details in [CHANGELOG.md](/CHANGELOG.md)
|
|
21
|
+
|
package/docs-site/blog/tags.yml
CHANGED
|
@@ -29,3 +29,32 @@ design:
|
|
|
29
29
|
label: Design
|
|
30
30
|
permalink: /blog/tags/design
|
|
31
31
|
|
|
32
|
+
rag:
|
|
33
|
+
label: RAG
|
|
34
|
+
permalink: /blog/tags/rag
|
|
35
|
+
|
|
36
|
+
developer-tools:
|
|
37
|
+
label: Developer Tools
|
|
38
|
+
permalink: /blog/tags/developer-tools
|
|
39
|
+
|
|
40
|
+
modular:
|
|
41
|
+
label: Modular
|
|
42
|
+
permalink: /blog/tags/modular
|
|
43
|
+
|
|
44
|
+
image:
|
|
45
|
+
label: Image
|
|
46
|
+
permalink: /blog/tags/image
|
|
47
|
+
|
|
48
|
+
facebook:
|
|
49
|
+
label: Facebook
|
|
50
|
+
permalink: /blog/tags/facebook
|
|
51
|
+
|
|
52
|
+
hello:
|
|
53
|
+
label: Hello
|
|
54
|
+
permalink: /blog/tags/hello
|
|
55
|
+
|
|
56
|
+
docusaurus:
|
|
57
|
+
label: Docusaurus
|
|
58
|
+
permalink: /blog/tags/docusaurus
|
|
59
|
+
|
|
60
|
+
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Version: 0.
|
|
2
|
+
* Version: 0.4.0
|
|
3
3
|
* Path: /docs-site/docusaurus.config.js
|
|
4
|
-
* Description:
|
|
4
|
+
* Description: Tailwind integration, sticky navbar, and dark/light toggle support
|
|
5
5
|
* Author: Ali Kahwaji
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -9,36 +9,50 @@
|
|
|
9
9
|
|
|
10
10
|
export default {
|
|
11
11
|
title: 'RAG Pipeline Utils',
|
|
12
|
-
tagline: 'Composable
|
|
12
|
+
tagline: 'Composable pipelines for LLMs',
|
|
13
13
|
url: 'https://devilsdev.github.io',
|
|
14
14
|
baseUrl: '/rag-pipeline-utils/',
|
|
15
15
|
deploymentBranch: 'gh-pages',
|
|
16
|
-
onBrokenLinks: '
|
|
16
|
+
onBrokenLinks: 'warn',
|
|
17
17
|
onBrokenMarkdownLinks: 'warn',
|
|
18
18
|
|
|
19
|
-
// ✅ Final favicon and social card for branding
|
|
20
19
|
favicon: 'img/favicon.ico',
|
|
20
|
+
|
|
21
21
|
themeConfig: {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
//
|
|
28
|
-
// },
|
|
22
|
+
metadata: [
|
|
23
|
+
{ name: 'keywords', content: 'rag, llm, langchain, pipeline, openai, nodejs' },
|
|
24
|
+
{ name: 'author', content: 'Ali Kahwaji' },
|
|
25
|
+
{ name: 'theme-color', content: '#3EF4B6' }
|
|
26
|
+
],
|
|
27
|
+
// ✅ OpenGraph / Twitter image
|
|
29
28
|
image: 'img/social-card.jpg',
|
|
29
|
+
|
|
30
|
+
// ✅ Color mode toggle support
|
|
31
|
+
colorMode: {
|
|
32
|
+
defaultMode: 'light',
|
|
33
|
+
disableSwitch: false,
|
|
34
|
+
respectPrefersColorScheme: true
|
|
35
|
+
},
|
|
36
|
+
|
|
37
|
+
// ✅ Sticky header
|
|
30
38
|
navbar: {
|
|
31
39
|
title: 'RAG Utils',
|
|
40
|
+
hideOnScroll: false,
|
|
32
41
|
logo: {
|
|
33
|
-
alt: '',
|
|
42
|
+
alt: '',
|
|
34
43
|
src: '/img/logo.svg'
|
|
35
44
|
},
|
|
36
45
|
items: [
|
|
37
46
|
{ to: '/docs/Introduction', label: 'Docs', position: 'left' },
|
|
38
47
|
{ to: '/blog', label: 'Blog', position: 'left' },
|
|
39
|
-
{
|
|
48
|
+
{
|
|
49
|
+
href: 'https://github.com/DevilsDev/rag-pipeline-utils',
|
|
50
|
+
label: 'GitHub',
|
|
51
|
+
position: 'right'
|
|
52
|
+
}
|
|
40
53
|
]
|
|
41
54
|
},
|
|
55
|
+
|
|
42
56
|
footer: {
|
|
43
57
|
style: 'dark',
|
|
44
58
|
copyright: `© ${new Date().getFullYear()} Ali Kahwaji`
|
|
@@ -54,14 +68,17 @@ export default {
|
|
|
54
68
|
{
|
|
55
69
|
docs: {
|
|
56
70
|
sidebarPath: require.resolve('./sidebars.js'),
|
|
57
|
-
editUrl:
|
|
71
|
+
editUrl:
|
|
72
|
+
'https://github.com/DevilsDev/rag-pipeline-utils/edit/main/docs-site/'
|
|
58
73
|
},
|
|
59
|
-
|
|
60
74
|
blog: {
|
|
61
75
|
showReadingTime: true,
|
|
62
|
-
|
|
76
|
+
blogSidebarTitle: 'All Posts',
|
|
77
|
+
blogSidebarCount: 'ALL',
|
|
78
|
+
onUntruncatedBlogPosts: 'ignore',
|
|
79
|
+
editUrl:
|
|
80
|
+
'https://github.com/DevilsDev/rag-pipeline-utils/edit/main/docs-site/blog/'
|
|
63
81
|
},
|
|
64
|
-
|
|
65
82
|
theme: {
|
|
66
83
|
customCss: require.resolve('./src/css/custom.css')
|
|
67
84
|
}
|