Practical overview
When it fits
Use it for a lightweight, command-line research workflow when you want an LLM answer informed by fetched web pages and saved as a Markdown file.
Who it is for
- Developers seeking a small Python example of search-grounded LLM answers.
- Users who want streamed research responses saved as Markdown for later review.
Documented uses
- Enter a question and let the LLM decide whether to search and reformulate it for Google.
- Retrieve webpage text and include it with the question in an LLM prompt.
- Save a generated response in playground.md for review or Markdown preview.
Requirements & limits
The documented setup requires an OpenAI API key and Python; the repository is public and MIT-licensed.
- The workflow uses a CLI and Markdown output rather than a dedicated graphical interface.
- The answer may not use or cite every search result.
- The documented LLM integration uses the OpenAI API.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Install and start the question prompt
Set up the documented Python dependencies and launch the CLI to enter a research question.
Before you start
- Python
- An OpenAI API key
Steps
Install the listed packages with pip: googlesearch-python, requests, beautifulsoup4, lxml, backoff and openai.
Set the OPENAI_API_KEY environment variable to your OpenAI API key.
Run nanoPerplexityAI.py with Python and enter a question when prompted.
Expected outcome
The script generates an answer in playground.md; the README also documents s to save and q to quit.
Guide limitations
- The README warns that not all Google search results are used or cited in the answer.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 19 November 2026
- Original website title
- Yusuke710/nanoPerplexityAI · Official homepage title · retained in its source language

