Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,12 +1,68 @@
|
|
| 1 |
---
|
| 2 |
title: ChronoQuery
|
| 3 |
emoji: 🏆
|
| 4 |
-
colorFrom:
|
| 5 |
colorTo: blue
|
| 6 |
sdk: streamlit
|
| 7 |
-
sdk_version: 1.
|
| 8 |
pinned: false
|
| 9 |
short_description: Unlock the past — ask about any historical event and get ins
|
| 10 |
---
|
| 11 |
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
title: ChronoQuery
|
| 3 |
emoji: 🏆
|
| 4 |
+
colorFrom: red
|
| 5 |
colorTo: blue
|
| 6 |
sdk: streamlit
|
| 7 |
+
sdk_version: 1.50.0
|
| 8 |
pinned: false
|
| 9 |
short_description: Unlock the past — ask about any historical event and get ins
|
| 10 |
---
|
| 11 |
|
| 12 |
+
**ChronoQuery** is an intelligent, AI-powered historical event explainer that allows users to explore the past interactively.
|
| 13 |
+
Just type in a historical event, figure, or question — and get **instant, research-backed insights** compiled from reliable sources like **Wikipedia** and **DuckDuckGo Search**, all refined through **Google’s Gemini AI**.
|
| 14 |
+
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
## 🧠 What It Is
|
| 18 |
+
|
| 19 |
+
ChronoQuery is an **AI history assistant** built with **Streamlit** and **LangChain**, powered by **Google’s Gemini 2.5 Flash model**.
|
| 20 |
+
It’s designed to help users learn about historical topics effortlessly — whether you’re a student, researcher, or just curious about world events.
|
| 21 |
+
|
| 22 |
+
---
|
| 23 |
+
|
| 24 |
+
## ⚙️ What It Does
|
| 25 |
+
|
| 26 |
+
✅ Takes any historical question or event as input
|
| 27 |
+
✅ Automatically identifies the **core topic or event** using an AI-based topic extractor
|
| 28 |
+
✅ Fetches relevant content from **Wikipedia** and **DuckDuckGo**
|
| 29 |
+
✅ Combines and refines the data using **Gemini AI** for an accurate, contextualized answer
|
| 30 |
+
✅ Displays results in an elegant, user-friendly Streamlit interface
|
| 31 |
+
|
| 32 |
+
---
|
| 33 |
+
|
| 34 |
+
## 🔍 How It Works
|
| 35 |
+
|
| 36 |
+
ChronoQuery uses a modular AI workflow powered by **LangChain Runnables**:
|
| 37 |
+
|
| 38 |
+
1. **User Query → Topic Extraction**
|
| 39 |
+
- The app identifies the main topic or event using Gemini’s language understanding.
|
| 40 |
+
|
| 41 |
+
2. **Knowledge Retrieval**
|
| 42 |
+
- Fetches relevant summaries from **Wikipedia** (via `WikipediaRetriever`).
|
| 43 |
+
- Collects additional web context using **DuckDuckGo Search**.
|
| 44 |
+
|
| 45 |
+
3. **Data Combination**
|
| 46 |
+
- Both Wikipedia and web data are merged into a unified context string.
|
| 47 |
+
|
| 48 |
+
4. **AI Reasoning & Summarization**
|
| 49 |
+
- The combined data is sent to **Gemini 2.5 Flash**, which formulates a detailed, coherent response.
|
| 50 |
+
|
| 51 |
+
5. **Output Rendering**
|
| 52 |
+
- Streamlit displays the results beautifully, allowing users to query multiple times interactively.
|
| 53 |
+
|
| 54 |
+
---
|
| 55 |
+
|
| 56 |
+
## 🧩 Technologies Used
|
| 57 |
+
|
| 58 |
+
| Component | Technology / Library | Purpose |
|
| 59 |
+
|------------|----------------------|----------|
|
| 60 |
+
| 🧱 Framework | **Streamlit** | Builds the interactive web interface |
|
| 61 |
+
| 🧠 AI Model | **Google Gemini 2.5 Flash (via `google.generativeai`)** | Generates contextual answers |
|
| 62 |
+
| 🔗 Orchestration | **LangChain (core, community)** | Manages chains, prompts, and data flow |
|
| 63 |
+
| 📚 Knowledge Base | **WikipediaRetriever** | Retrieves factual content |
|
| 64 |
+
| 🌐 Web Search | **DuckDuckGoSearchRun** | Adds recent or broader information |
|
| 65 |
+
| 🧩 Utilities | **RunnableLambda, RunnableParallel, StrOutputParser** | Custom data pipelines and parsing |
|
| 66 |
+
| 💾 Language | **Python 3.10+** | Main development language |
|
| 67 |
+
|
| 68 |
+
---
|