An AI-powered documentation assistant built with PromptQL.
DocsQL is a smart documentation bot that helps developers find answers in technical documentation quickly and accurately. Built as a demonstration of PromptQL's capabilities, it showcases how to create reliable AI agents that can understand complex technical queries and provide precise, contextual responses.
Documentation is often vast and scattered. DocsQL solves this by:
- Semantic Search: Understanding intent, not just keywords
- Contextual Responses: Providing relevant code examples and explanations
- Source Attribution: Always linking back to original documentation
- Real-time Updates: Staying current with documentation changes
- Built-in Validation: Ensuring accuracy through automated verification
This project demonstrates a complete AI-powered documentation system:
- PromptQL Backend (
pql/
) - AI agent with validation protocols and system instructions - Vector-enabled Database (
db/
) - PostgreSQL with pgvector for semantic search - API Server (
server/
) - Streaming chat interface built with Elysia/Bun
Smart Query Understanding: DocsQL doesn't just match keywords; it understands what you're trying to accomplish and finds the most relevant documentation sections.
Validation-First Responses: Every technical answer is validated against the actual documentation before being provided, ensuring accuracy.
Streaming Responses: Real-time response streaming provides immediate feedback while the AI processes complex queries.
Source Transparency: All responses include direct links to the source documentation, maintaining trust and enabling deeper exploration.
This repository represents our approach to building AI agents that developers can trust. You can follow our development process, see how we handle edge cases, and understand the engineering decisions behind reliable AI-powered assistance.
While DocsQL is primarily a demonstration project, the patterns and approaches used here are applicable to any documentation- or unstructured-data-heavy project. The codebase shows:
- How to structure PromptQL agents for accuracy
- Effective embedding strategies for technical content
- Streaming API patterns for real-time AI responses
- Testing approaches for AI-powered applications
- PromptQL Documentation - The platform powering DocsQL
- Architecture Deep Dive - How the AI agent is configured
- Database Design - Vector search implementation details
DocsQL is built by the team at PromptQL as a showcase of PromptQL's capabilities for building trustworthy AI agents.