Curiosity is an experimental open-source project aimed at exploring how to build a conversational search experience similar to Perplexity. The project was initiated by developer jank, mainly to experiment with the LangGraph and FastHTML technology stacks.
Purpose: The main goal of the project is to provide a runnable example demonstrating how to combine a ReAct agent with search tools to generate search-augmented text responses, thereby simulating a Perplexity-style question-and-answer interaction.
Main capabilities: At its core is a simple ReAct agent that uses Tavily search to enhance text generation. The project supports three different LLM backends: OpenAI's gpt-4o-mini, Groq's llama3-groq-8b-8192-tool-use-preview, and locally running Ollama llama3.1. The author notes that gpt-4o-mini performs most robustly in tool calling and generating meaningful responses; Groq generates quickly, but the 8b model's answer quality clearly lags behind gpt-4o; local llama3.1 can run on a Mac mini M1, but will reach the machine's performance limits. The project uses FastHTML to build the web frontend and attempts to implement token streaming via WebSocket (but this is not fully implemented due to limitations with LangGraph's SQLite persistence).
Usage: You need to clone the repository, ensure a relatively new Python 3 interpreter is installed (required by FastHTML), set up a virtual environment and install the dependencies in requirements.txt, create a .env file and set the corresponding variables, then run python curiosity.py to start.
Applicable scenarios: Suitable for developers interested in LangGraph, FastHTML, or ReAct chatbots for learning and experimentation, and can also serve as a starting point for building applications similar to Perplexity.
Limitations: The project is a toy project and may be unstable; WebSocket streaming output is not fully implemented; the performance of different LLM backends varies greatly; detailed configuration documentation and deployment guides are not provided.