Skip to content

Commit b22a5a9

Browse files
authored
Merge pull request #27 from anevsky/main
docs(showcase): CityPulse - AI-powered Geospatial Search with Sonar API
2 parents 7399b75 + 5d82f9c commit b22a5a9

File tree

3 files changed

+65
-2
lines changed

3 files changed

+65
-2
lines changed

docs/showcase/citypulse-ai-search.mdx

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
---
2+
title: CityPulse - AI-Powered Geospatial Discovery Search
3+
description: Real-time local discovery search using Perplexity AI for personalized location insights and recommendations
4+
sidebar_position: 2
5+
keywords: [perplexity, geospatial, location, real-time, maps, local-discovery, sonar]
6+
---
7+
8+
# CityPulse - AI-Powered Geospatial Discovery
9+
10+
![CityPulse Main Interface](https://raw.githubusercontent.com/anevsky/CityPulse/main/assets/CityPulse-GeoSearch-App-1.jpg)
11+
12+
CityPulse is an intelligent location-based discovery search that helps users explore what's happening around them right now. It demonstrates how to create personalized, real-time local insights using Perplexity's Sonar models.
13+
14+
[![Demo Video](https://cdn.loom.com/sessions/thumbnails/6507fa27571442e680edf787b0f0690d-2fa2c36169822631-full-play.gif)](https://youtu.be/Y0UIhh3diJg)
15+
16+
## What CityPulse Does
17+
18+
- **Real-time local discovery** - Find current events, restaurants, and local alerts near any location
19+
- **AI-powered search suggestions** - Get intelligent search recommendations as you type
20+
- **Personalized insights** - Receive AI-generated advice on what to try, best times to visit, and pro tips
21+
- **Interactive mapping** - Explore results on an interactive map with custom markers and detailed popups
22+
23+
![Search Interface](https://raw.githubusercontent.com/anevsky/CityPulse/main/assets/CityPulse-GeoSearch-App-2.jpg)
24+
25+
## How It Uses Perplexity Sonar
26+
27+
CityPulse leverages two key Perplexity models:
28+
29+
**Sonar for Real-Time Data**
30+
```python
31+
# Get current local information with geographic context
32+
response = client.chat.completions.create(
33+
model="sonar",
34+
messages=[{
35+
"role": "user",
36+
"content": f"Find current events, restaurants, and alerts near {lat}, {lng}"
37+
}],
38+
response_format={"type": "json_schema", "json_schema": {"schema": LOCAL_INFO_SCHEMA}}
39+
)
40+
```
41+
42+
**Sonar Reasoning for Personalized Insights**
43+
```python
44+
# Generate AI-powered location recommendations
45+
response = client.chat.completions.create(
46+
model="sonar-reasoning",
47+
messages=[{
48+
"role": "user",
49+
"content": f"Provide personalized insights for {location_name}: what to try, best times to visit, pro tips"
50+
}]
51+
)
52+
```
53+
54+
The app uses structured JSON schemas to ensure consistent data formatting and includes citation tracking for source verification.
55+
56+
![AI Insights](https://raw.githubusercontent.com/anevsky/CityPulse/main/assets/CityPulse-GeoSearch-App-3.jpg)
57+
58+
## Links
59+
60+
- [GitHub Repository](https://github.com/anevsky/CityPulse)
61+
- [Live Demo](https://citypulse-ppx.uc.r.appspot.com/)
62+
- [Video Demo](https://youtu.be/Y0UIhh3diJg)
63+
- **[Built with ❤️ by Alex Nevsky](https://alexnevsky.com)**

docs/showcase/fact-dynamics.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Fact Dynamics | Real-time Fact-Checking Flutter App
33
description: Cross-platform app for real-time fact-checking of debates, speeches, and images using Perplexity's Sonar API
4-
sidebar_position: 2
4+
sidebar_position: 3
55
keywords: [Fact Dynamics, fact-checking, Flutter, Dart, real-time, speech-to-text, debate, image verification]
66
---
77

docs/showcase/perplexity-flutter.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Perplexity Dart & Flutter SDKs
33
description: Lightweight, type-safe SDKs for seamless Perplexity API integration in Dart and Flutter applications
4-
sidebar_position: 3
4+
sidebar_position: 4
55
keywords: [Perplexity, Flutter, Dart, SDK, API, streaming, chat-completions, sonar, type-safe, widgets]
66
---
77

0 commit comments

Comments
 (0)