Skip to content

Commit 3f3e1aa

Browse files
committed
feat(docs): Enhance documentation and configuration for improved usability
- Updated `mkdocs.yml` to refine site navigation and add an edit URI for easier access to documentation editing. - Enhanced theme features in `mkdocs.yml` to include sticky tabs, tooltips, and improved navigation elements. - Revised `README.md` to include performance metrics and benchmarking instructions, providing users with clearer guidance on system capabilities. - Improved `playwright.config.ts` to utilize environment variables for base URLs, enhancing flexibility in testing configurations. - Updated Grafana dashboard configurations to improve observability metrics and ensure accurate data representation. - Removed outdated `deploy.md` file to streamline documentation and focus on current deployment practices. These changes significantly enhance the clarity, accessibility, and usability of the TriBridRAG documentation, making it easier for users to navigate and understand the system's features.
1 parent 15d6298 commit 3f3e1aa

93 files changed

Lines changed: 6702 additions & 11695 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/deploy-docs.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,18 @@ jobs:
4141

4242
- name: Install dependencies
4343
run: |
44-
pip install mkdocs mkdocs-material mkdocs-glightbox mike
45-
pip install openai # For docs regeneration
44+
python -m pip install --upgrade pip
45+
pip install mkdocs==1.6.1 mkdocs-material==9.7.1 pymdown-extensions==10.7.1
46+
pip install mike==2.1.0 mkdocs-git-revision-date-localized-plugin==1.2.6 mkdocs-minify-plugin==0.8.0
47+
pip install mkdocs-glightbox openai requests pyyaml # For docs regeneration
4648
4749
- name: Regenerate docs with AI (optional)
4850
if: ${{ github.event.inputs.regenerate_docs == 'true' }}
4951
env:
5052
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
5153
run: |
5254
echo "Regenerating documentation using AI..."
53-
python scripts/docs_ai/bootstrap_docs.py --all --model gpt-4o
55+
python scripts/docs_ai/docs_autopilot_enhanced.py --regenerate-all
5456
5557
# Commit regenerated docs
5658
git config user.name "github-actions[bot]"

.github/workflows/docs-automation.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,11 @@ jobs:
3333

3434
- name: Install dependencies
3535
run: |
36-
pip install mkdocs mkdocs-material pymdown-extensions
37-
pip install requests pyyaml
38-
pip install mkdocs-git-revision-date-localized-plugin mkdocs-minify-plugin
36+
python -m pip install --upgrade pip
37+
pip install mkdocs==1.6.1 mkdocs-material==9.7.1 pymdown-extensions==10.7.1
38+
pip install mike==2.1.0 mkdocs-git-revision-date-localized-plugin==1.2.6 mkdocs-minify-plugin==0.8.0
39+
pip install mkdocs-glightbox
40+
pip install requests pyyaml openai
3941
4042
- name: Generate documentation with AI
4143
if: ${{ github.event.inputs.regenerate_all == 'true' }}
@@ -45,7 +47,7 @@ jobs:
4547
python scripts/docs_ai/docs_autopilot_enhanced.py --regenerate-all
4648
4749
- name: Build documentation
48-
run: mkdocs build
50+
run: mkdocs build --strict
4951

5052
- name: Create PR with documentation updates
5153
if: github.event_name == 'workflow_dispatch' && github.event.inputs.regenerate_all == 'true'
@@ -85,11 +87,13 @@ jobs:
8587

8688
- name: Install dependencies
8789
run: |
88-
pip install mkdocs mkdocs-material pymdown-extensions
89-
pip install mkdocs-git-revision-date-localized-plugin mkdocs-minify-plugin
90+
python -m pip install --upgrade pip
91+
pip install mkdocs==1.6.1 mkdocs-material==9.7.1 pymdown-extensions==10.7.1
92+
pip install mike==2.1.0 mkdocs-git-revision-date-localized-plugin==1.2.6 mkdocs-minify-plugin==0.8.0
93+
pip install mkdocs-glightbox
9094
9195
- name: Build documentation
92-
run: mkdocs build
96+
run: mkdocs build --strict
9397

9498
- name: Setup Pages
9599
uses: actions/configure-pages@v4

README.md

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,49 @@ Each search method compensates for the others' weaknesses. The result: **dramati
8686

8787
---
8888

89+
## Performance
90+
91+
TriBridRAG measures real pipeline latency and throughput via **Prometheus + Grafana** (see dashboards `tribrid-overview` and `tribrid-rag-metrics`). For reproducible local benchmarking (index + search), use the built-in benchmark runner.
92+
93+
### Reproducible benchmark (index + search)
94+
95+
Prereqs:
96+
97+
```bash
98+
docker compose up -d postgres neo4j
99+
# If using the docker-compose defaults:
100+
export NEO4J_PASSWORD=password
101+
```
102+
103+
Run:
104+
105+
```bash
106+
uv run scripts/benchmark_perf.py --corpus-id tribrid-rag --corpus-path . --force-reindex --iterations 5 --warmup 1
107+
```
108+
109+
This prints **Markdown + JSON** summary you can paste into docs/PRs.
110+
111+
### Latest benchmark (local dev run)
112+
113+
Generated on `2026-02-01` with the command above (vector+sparse+graph enabled, `final_k=10`).
114+
115+
| Operation | Performance | Notes |
116+
|---|---:|---|
117+
| Indexing | 419.0s | 497 files, 8,753 chunks, 702,647 tokens |
118+
| Search (tri-brid) | p50 459ms, p95 487ms | 25 calls (5 queries × 5 iters), ~1.62 QPS |
119+
120+
Per-query (ms):
121+
122+
| Query | p50 | p95 | mean |
123+
|---|---:|---:|---:|
124+
| authentication flow | 373.5 | 758.5 | 449.6 |
125+
| prometheus metrics endpoint /metrics | 462.5 | 484.9 | 466.5 |
126+
| neo4j graph retrieval mode | 461.6 | 487.1 | 467.5 |
127+
| where is /api/search implemented | 449.4 | 458.7 | 450.0 |
128+
| fusion rrf_k parameter | 471.0 | 483.0 | 465.9 |
129+
130+
---
131+
89132
## Quick Start
90133

91134
### Prerequisites
@@ -528,7 +571,7 @@ cd web && npx playwright test
528571
| Service | URL | Credentials |
529572
|---------|-----|-------------|
530573
| API Docs | http://localhost:8012/docs | - |
531-
| Grafana | http://localhost:3000 | admin/admin |
574+
| Grafana | http://localhost:3001 | admin/admin |
532575
| Prometheus | http://localhost:9090 | - |
533576
| Neo4j Browser | http://localhost:7474 | neo4j/password |
534577

0 commit comments

Comments
 (0)