Overview
ClayDiary is a pottery journal and knowledge assistant that combines structured studio records with an evaluated LLM pipeline for searching, analysing, and discussing pottery data.
Users can:
- add structured information and unstructured notes about their pottery pieces;
- chat about their pottery pieces using the information and notes they have added.
How the AI assistant works
Behind the chat interface is a reliable, multi-path LLM application. Each question moves through a sequence of specialised components:
-
Classify the question. A classification gate determines whether the question is related to pottery. Out-of-scope questions are declined before invoking the rest of the pipeline.
-
Select an answer path. A router decides whether the question is better answered through text-to-SQL or RAG.
-
Query structured records. Questions about the user’s pieces, materials, firings, and history are handled by a text-to-SQL agent operating through a user-scoped, read-only database connection.
-
Retrieve relevant pottery information. The RAG path searches the user’s pottery information using vector and BM25 retrieval, fuses their ranked results, and reranks the strongest candidates before assembling the generation context.
-
Generate and stream the answer. A generation agent turns the selected evidence into a streamed response. On the RAG path, citations are validated against the sources actually retrieved by the system.
What this project demonstrates
ClayDiary brings together AI engineering and conventional software engineering in a production-oriented application.
AI engineering topics
- LLM orchestration and structured outputs with PydanticAI
- Prompt lifecycle management
- Retrieval-augmented generation
- AI evaluation
- RAG evaluation
- LLM observability
Software engineering topics
- Full-stack application and API architecture
- Relational data modelling and database migrations
- Authentication, authorization, and user-data isolation
- Automated testing and static analysis
- Containerization, CI/CD, and production deployment
- Application monitoring and operational reliability