Docs/CI: fix broken image paths and ruff lint\n\n- Move screenshot to docs/videos and update references\n- Remove obsolete rag-query-results image\n- Rename variable to satisfy ruff

This commit is contained in:
aakash
2025-10-15 04:15:44 -07:00
parent 151b24a456
commit 0a7a283dda
3 changed files with 5 additions and 5 deletions

View File

@@ -296,7 +296,7 @@ python -m apps.slack_rag \
Here's what you'll see when running a RAG query on your Slack workspace: Here's what you'll see when running a RAG query on your Slack workspace:
![RAG Query Results](rag-query-results.png)
**What this screenshot shows:** **What this screenshot shows:**
- ✅ **Successful MCP connection** to Slack workspace - ✅ **Successful MCP connection** to Slack workspace
@@ -312,7 +312,7 @@ This example shows a real query against the Sky Lab Computing workspaces “r
### Screenshot ### Screenshot
![Sky Random RAG](videos/rag-sky-random.png) ![Sky Random RAG](docs/videos/rag-sky-random.png)
### Prerequisites ### Prerequisites

View File

Before

Width:  |  Height:  |  Size: 452 KiB

After

Width:  |  Height:  |  Size: 452 KiB

View File

@@ -120,9 +120,9 @@ async def fetch(
print("=" * 60) print("=" * 60)
q_terms = [t.strip().lower() for t in query.split() if t.strip()] q_terms = [t.strip().lower() for t in query.split() if t.strip()]
lines = [ lines = [
l line
for l in (text_blob.splitlines() if text_blob else []) for line in (text_blob.splitlines() if text_blob else [])
if l and not l.startswith("MsgID,") if line and not line.startswith("MsgID,")
] ]
# Score lines by count of query terms present # Score lines by count of query terms present
scored = [] scored = []