Three AI capabilities (hybrid search, an AI task writer, and a chatbot agent) added to a PostgreSQL + Next.js platform not built for AI.
2,200+
Task descriptions written by the AI
10,000
Comments
10mo
Live in production
0.25
Tuned semantic-to-keyword ratio
AI added to a product never designed for it.
Three AI capabilities, built into an app that wasn't designed for them, all sharing one retrieval foundation.
01
Advanced Hybrid Search
Dense and sparse vectors in project namespaces, tuned and filtered so retrieval finds what people mean as well as what they type
02
AI Task Writer
A short prompt becomes a full ticket description that follows the board's own conventions
03
AI Chatbot Agent
A LangGraph agent that answers questions about a board and acts on it from plain-language requests.
The Challenge.
The first semantic search worked on small boards. On real ones it stopped returning the right context, and every AI feature depended on that context.
What wasn't working:
The original RAG setup failed to return relevant vectors for user queries.
The original RAG setup failed to return relevant vectors for user queries.
The original RAG setup failed to return relevant vectors for user queries.
The original RAG setup failed to return relevant vectors for user queries.
Teams needed AI that could:
Find conceptually related work, even without matching keywords
Write tickets that stay consistent with how the project is documented
Understand a board's full structure and history
Take actions on tasks from a plain- language request
AI Integration Architecture
Project data leaves PostgreSQL, becomes vectors in Pinecone, and comes back as context for every AI feature.
Data Structure PostgreSQL
Project
Columns
Tasks
Comments
Descriptions
Activity Logs
Vectorization
Extract content ( PostgreSQL )
Generate embeddings ( dense + BM25 )
Store vectors ( Pinecone )
An indexing script populated the index from the whole application.
Pinecone Structure
DotProduct index
Project namespaces
Hybrid vectors ( α 0.25 )
Rich metadata ( creator, timestamp )
AI Features
AI Task Writer
[ 01 ] User starts creating a task
[ 02 ] LangChain queries Pinecone with project context
[ 03 ] Retriever fetches the most relevant vectors
[ 04 ] Claude or OpenAI writes the prefilled task
AI Summary
[ 01 ] User asks for a task summary
[ 02 ] System fetches the description and comments
[ 03 ] ContextualCompressionRetriever trims the context
[ 04 ] The LLM writes a concise summary
New tasks go back into PostgreSQL and become context for the next one.
Feature 01
Advanced Hybrid Search System
We rebuilt retrieval around Pinecone, gave each project its own namespace, and blended semantic and keyword matching in one query.
Data Architecture
Namespace Strategy:
Pinecone was selected after extensive research and evaluation
Vectorization Approach:
Comments were vectorized with metadata, while tasks, descriptions, and activity logs were embedded within their project context.
Vector Database Selection
Platform Choice:
Pinecone was selected after extensive research and evaluation of available platforms.
Key Decision Factors
The selection was based on adoption by industry leaders like Notion, strong community support, and performance characteristics that closely matched the project's requirements.
Advanced Search Optimization
Migrated from cosine index to DotProduct index for improved performance
Index Transition
Migrated from cosine index to DotProduct index for improved performance
Hybrid Search Implementation:
Combined dense and sparse vectors to capture different dimensions of contentsimilarity
Fine-tuned semantic-to-keyword balance metric to precisely 0.25 (where 0 is purely keyword-based and 1 is purely semantic
Results
Significantly improved retrieval relevance for semantically related terms
Enhanced ability to find conceptually related content even when exact keywords weren't present
Optimized balance between semantic understanding and keyword precision with the 0.25 ratio
Created foundation for all other AI features by providing reliable context retrieval.
Feature 02
AI Task Writer
Teams kept re-explaining context that already existed somewhere in the project: a similar task, an old comment, a decision in a description. The task writer pulls that context in through the hybrid search system, so minimal prompts produce detailed descriptions that stay consistent with the project.
Framework
LangChain served as the primary interface for orchestrating the AI Task Writer
API Backend
FastAPI provided endpoints for the task writer functionality
Models Utilized
Implementation leveraged both Claude and OpenAI models based onspecific use cases. BM25 used for sparse encoding with default corpus
Context Enhancement
Used semantic and keyword-based search with sparse vectors, leveraging user history and task patterns to deliver more relevant suggestions.
Key Functionalities
Content formatting
Applied appropriate formatting and structure based on project conventions
Related Task Identification
Surfaces tasks that may be related or dependent.
Consistency Enforcement
Maintained terminology and style consistency with existing project documentation.
Custom instructions
Each board can add files and instructions to set its own ticket style.
Results
Streamlined task creation process
Improved documentation consistency across projects
Enhanced context awareness in task descriptions
Reduced time spent on administrative aspects of task management
Live in production for 10 months, powering AI task writing and summaries, with over 2,200 task descriptions generated.
Feature 03
AI Chatbot Agent
Hypertask.ai aimed to develop an intelligent agent to assist users in managing their boards, requiring sophisticated AI integration that could understand complex project contexts and perform useful actions.
Architecture
Framework
LangGraph for building and managing the agentic workflow
Storage
Redis implemented for chat history storage, strategically isolating the AI service from the PostgreSQL database, and using redis for storing and accessing chat history
Workflow
Distinct prompt engineering for each part of the decision tree to optimize responses
Observability
LangSmith for comprehensive tracing of responses, latency, and other metrics
Agent Capabilities
Content formatting
Processes and comprehends the full project structure and history.
Query Resolution
Addressed user questions about project status, task details, and historical context
Action Performance
Executed actions like task creation, updates, and status changes based on natural language requests
Insight Generation
Provided observations about project patterns, bottlenecks, and potential optimizations
Results
Streamlined task creation process
Improved documentation consistency across projects
Enhanced context awareness in task descriptions
Reduced time spent on administrative aspects of task management
Live in production for 10 months, powering AI task writing and summaries, with over 2,200 task descriptions generated.
Technical Workflow
Every request follows the same five steps, from intent to a refined response.
[STEP 01]
User query processing and intent classification
[STEP 02]
Context retrieval using the hybrid search system
[STEP 03]
Decision tree navigation to pick a response strategy
[STEP 04]
Direct response generation or action execution
[STEP 05]
Response refinement and presentation
Status & Future Direction.
The RAG was tailored for the task writer, so the next step widens it to chatbot capabilities and better accuracy.
Alpha testing in local deployments
More complex project management functions
Personalization based on individual user patterns
Proactive suggestions and insights
Better-suited embedding models
Global + local search so the AI knows a project’s global context
Longer-running tasks, deep research, and results grading
Three features, one foundation.
API layer
FastAPI gives all AI services one interface.
Vector database
Pinecone stores and retrieves embedded project data.
Storage separation
Redis isolates chat history from core application data.
Orchestration
LangChain and LangGraph build the AI workflows.
Models
Claude and OpenAI, matched to each feature.
Start managing Hypertask with AI
Connect your AI assistant to Hypertask in under a minute. No code required