Back to skills
SKILL.md
Streaming Responses
ASecuritySub-skill of rag-system-builder: Streaming Responses.
- 17 stars
- 0 votes
- 0 copies
- 1 view
- Added September 9, 2026
Security analysis
100/100npx -y skills add vamseeachanta/workspace-hub --skill streaming-responses --agent claude-codeAre you the author of Streaming Responses?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/vamseeachanta-streaming-responses)---
name: rag-system-builder-streaming-responses
description: 'Sub-skill of rag-system-builder: Streaming Responses.'
version: 1.2.0
category: data
type: reference
scripts_exempt: true
---
# Streaming Responses
## Streaming Responses
For better UX with long answers:
```python
def query_streaming(self, question, top_k=5):
"""Stream RAG response for real-time display."""
context = self.get_context(question, top_k)
prompt = self.build_prompt(context, question)
# Anthropic streaming
with anthropic.Anthropic().messages.stream(
model="claude-sonnet-4-6",
max_tokens=1024,
messages=[{"role": "user", "content": prompt}]
) as stream:
for text in stream.text_stream:
yield text
```
Attribution
Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.