Spaces:
Running
Running
Update README.md
Browse files
README.md
CHANGED
|
@@ -8,4 +8,31 @@ app_file: app.py
|
|
| 8 |
pinned: false
|
| 9 |
---
|
| 10 |
|
| 11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
pinned: false
|
| 9 |
---
|
| 10 |
|
| 11 |
+
# LLM Search Engine
|
| 12 |
+
|
| 13 |
+
This is a Flask-based web application that uses a large language model (LLM) to generate search engine-like results, styled to resemble Google’s classic search results page. Instead of querying an external search API, it prompts an LLM to create titles, snippets, and URLs for a given query, delivering a paginated, familiar interface.
|
| 14 |
+
|
| 15 |
+
## Why We Built It
|
| 16 |
+
|
| 17 |
+
We created this app to explore how LLMs can mimic traditional search engines by generating results directly from their training data. It offers:
|
| 18 |
+
- A nostalgic, Google-like pagination design with clickable links.
|
| 19 |
+
- A proof-of-concept for LLM-driven search without real-time web access.
|
| 20 |
+
- A simple, self-contained alternative for queries within the model’s knowledge base.
|
| 21 |
+
|
| 22 |
+
## Features
|
| 23 |
+
- **Google-Styled Interface**: Search bar, result list, and pagination styled with Google’s colors and layout.
|
| 24 |
+
- **Generated Results**: Titles, snippets, and URLs are fully produced by the LLM.
|
| 25 |
+
- **Pagination**: Displays 10 results per page, up to 30 total results across 3 pages.
|
| 26 |
+
|
| 27 |
+
## Limitations
|
| 28 |
+
- **Static Knowledge**: Results are limited to the LLM’s training cutoff (e.g., pre-2025).
|
| 29 |
+
- **Generated Content**: URLs and snippets may not correspond to real web pages—use as a starting point.
|
| 30 |
+
- **No Real-Time Data**: Best for historical or established topics, not breaking news.
|
| 31 |
+
|
| 32 |
+
## Using It on Hugging Face Spaces
|
| 33 |
+
|
| 34 |
+
### Try the Demo
|
| 35 |
+
Deployed on Hugging Face Spaces, you can test it at [https://codelion-llmsearchengine.hf.space](https://codelion-llmsearchengine.hf.space):
|
| 36 |
+
1. Open the URL in your browser.
|
| 37 |
+
2. Type a query (e.g., "best Python libraries") in the search bar and press Enter or click "LLM Search".
|
| 38 |
+
3. Browse the paginated results, styled like Google, using "Previous" and "Next" links.
|