AI Knowledge Assistant
Summary
I built an authenticated AI assistant that streams answers, remembers each user's conversations, and can search the web for sources.
I started this project on October 5, 2026, and built it into a full-stack AI chat experience rather than a simple prompt sent to a model. A user can sign in, start a conversation, see the answer arrive as it is generated, and come back to continue a previous chat.
What I built
- A complete chat flow: users can create conversations, browse their history, reopen a chat, and keep going. Responses stream live, with support for cancellation and clear handling when a request fails.
- Account-scoped history: Clerk handles sign-in, and the FastAPI backend verifies each session. Conversations are saved in PostgreSQL and kept separate by user, so returning to an earlier chat restores its messages and context.
- Optional web research: when SearXNG is configured, the assistant can search the web as part of answering. The interface shows search progress and links to the sources, making it easier to see where an answer came from.
- Readable responses: messages support Markdown, tables, and mathematical notation, so answers are useful for more than plain-text chat.
Behind the interface, a React and TypeScript frontend connects to a Python API built with FastAPI. LangGraph manages the conversation workflow, LangChain connects it to the local Ollama model, and PostgreSQL stores both conversation records and the model's conversation checkpoints. Clerk provides authentication; SearXNG adds web search when available.
The current app focuses on authenticated chat and optional web search. It does not yet upload, index, or search private documents.