Skip to content

Instantly share code, notes, and snippets.

@taf2
Created November 19, 2023 23:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save taf2/f4cea2771ab7310b9a82448ebedde6bb to your computer and use it in GitHub Desktop.
Save taf2/f4cea2771ab7310b9a82448ebedde6bb to your computer and use it in GitHub Desktop.
sub_topics = [ ... ] # say you give it like 800 topics.
prompt =
Here is a set of JSON encoded topics: #{sub_topics.to_json}.
Please generalize these into a smaller set of no more then 10 topics.
Your new generalized topics may be expressed as multiple words.
Output as a JSON object of the new topics and the sub topics that belong to each topic.
e.g. given ['sub topic 1', 'sub topic 2', 'sub topic 3', ...] group them into parent topics like {'topic1': ['sub topic 1', 'sub topic
outputing as JSON
system = You are an expert at generalizing topics. You review lists of topics and group them into similar topics.
Output as a JSON object of the new topics and the sub topics that belong to each topic.\n e.g. given ['sub topic 1', 'sub topic 2', 'sub topic 3', ...] group them into parent topics like {'topic1': ['sub topic 1', 'sub topic 2'], 'topic2': ['sub topic 3', ...]}\n outputing as JSON
@taf2
Copy link
Author

taf2 commented Nov 20, 2023

resort style community
Pricing and Promos
title company contact
Home Purchase
accessibility customization
contact information
Move-in Dates
Customization Options
sales consultant contact
marketing department contact
preapproval
New Build House
built homes
Vendor application
Real estate tax rate
community location
New Construction Homes
community inquiry
Video Recording
Address inquiry
home purchase
Playground Restrictions
Townhouse pricing
GPS directions
Email Information
Windsor Island Resort
pre-registering
Townhome Features
Closing Cost Assistance
new homes
Grace Mill Square
Inventory availability
lot prices
sales department contact
Home Pricing
phone number request
virtual appointment scheduling
video tour
community amenities
VIP List
Home Features
waterfront availability
property refund
HOA contact
Property Utilities
FHA Acceptance
HOA fees
Preregistering
flex money
price range
HOA dues
resale versus new construction
customer service interaction
Price Range
Home Stone Heroes program
Rent Restrictions
Sales consultant contact
New Community Inquiry
home tour
Sales office hours
Community Visit
time zone confusion
quick move in homes
Flood Zone
Quick move ins
home type inquiry
single family homes
direction inquiry
Builder Locations
townhomes
pricing inquiry
website inquiry
sales conversation
inventory inquiry
After hours support
Pricing Inquiry
scheduling a tour
Overnight Stay
virtual tour
Company financing
company contact
Home Price Range
pricing estimates
other community inquiry
property services
showroom visit
community fees
Consultation Scheduling
Language preference
Rent Inquiry
School Ratings
waiting in line
construction materials
cross street
Construction materials
compensation rates
Appointment scheduling
vendor application
base prices
property address confirmation
Single Family Homes
customer frustration
bungalows
Lease Duration
relocation
financing incentives
Real estate agent
Community Location
New Properties
Pricing Incentives
Title Company Contact
Sales appointment scheduling
sales appointment scheduling
Model options
Home Sale
Contact Information
Real Estate Agent
Sales Appointment Scheduling
Cash Buyer
scheduled appointment
Moving from Miami
inventory homes
customer service
property address
home pricing
legal operations
HOA and CDD fees
Customer Inquiry
Closing costs incentives
Direct Contact Information
Tour Scheduling
community options
real estate
Closing Process
customer care
build time
Lot and upgrades
home construction timeline
pricing range
homebuying program
Quick move-ins
Inventory Homes
schedule a tour
neighborhood availability
Inventory Availability
Preconstruction Timeline
veterans' benefits
Property Visit
community locations
home pricing estimates
property location
Promotions and Incentives
address inquiry
website issue
international investor
Phone connection issue
Community Location Inquiry
community opening
Tax ID financing
New Construction Communities
appointment confirmation
meeting details
Address Inquiry
communication issue
Home Features Inquiry
Home customization
property inventory
Scheduling Appointment
lot 118
home model inquiry
Rental Inquiry
Email communication
Standard Features
direct contact information
Interest Rate
home upgrades
community availability
financing program
HOA emergency
customer contact info
Realtor Representation
credit score inquiry
Financing Timeframe
Lot Prices
model inquiry
single story
Lot 112 Pricing
purchasing process
phone call delay
New Home Purchase
Sales Agent Contact
home availability
Virtual Appointment Scheduling
appointment reschedule
community updates
home preferences
model home
floor plans
flexible timing
front office
interest rates
Direct contact information
water line issue
incentives
pricing availability
wrong call
quick move in
event RSVP
Single family home
Sales Consultation Scheduling
design appointment
sales consultant
Calendar Access
Winter Garden
community details
cooking instructions
Customer care manager
Investment Property
community development
spec homes
Realtor Commission
Email Communication
Townhomes
Location preference
Community Amenities
road location
Model Home Inquiry
model home availability
Property pricing
smart home devices
contact information confirmation
New Construction
Location Inquiry
property views
community hours
email request
quick move-in homes
availability
email inquiry
Community Homes
scheduling follow-up
Community Locations
Sales Commission
international investors
Contract Process
Agent Contact
confirmation email
property availability
amenities
Model Homes
Internet Service Provider
short term rental
property pricing
customizing upgrade
website navigation
Spanish-speaking support
Amenities Overview
HOA Details
Follow-up Appointment
Del Webb and Viera
buyer's preferences
First-time homebuyer
Short Term Rental
Property Inquiry
digital brochure request
Quick Move-Ins
Virtual Appointment
home visit
Community location
55 plus community
lot premiums
Lot premiums
Realtor Involvement
sales rep contact
Home Model Inquiry
Buyer's budget
after hours support
financing
Tour duration
Quick Move Ins
Home Financing
Feature Sheet
real estate agent
Temporary Closure
property upgrade
GPS Directions
Credit Score Inquiry
phone connection issue
sales compensation
townhome community
budget constraints
real estate appraiser
real estate commission
Client Contact Information
Warranty Information
voicemail message
retirement facilities
Email Request
Real Estate Taxes
HOA restrictions
realtor commission
Touch up paint
sales team contact
email confirmation
Customer Appreciation
financing options
community size
flexible home construction
Office Hours
voicemail
virtual appointment reschedule
Home Construction Timeline
Community Website
Virtual Tour
model homes
property details
sales office contact
Community Details Inquiry
Quick move-in
finishing touches
International representatives
55 Plus Communities
home site availability
real estate broker
Community paths
local in Orlando
Home Preferences
Client Information
same day contract
public access
sales office hours
International Tour Manager
home construction
client interest
paint code inquiry
new development inquiry
lot sales
walk-ins
property visit
New Homes
deposit amount
appliance warranty
warranty department
appraisal inspection
Sales office contact
construction timeline
association fee
property model
client investment
community access
Phone Connection Issue
in-house representatives
pricing incentives
client communication
family residence
Blueprints request
Customer service contact
County Inquiry
Showing scheduling
Website Navigation
property rental
Monthly Comps
Home Site Availability
salesperson contact
Paint colors
Real Estate Appraiser
age requirement
Home Options
Waterfront Lots
Homeownership
Master plan
cash purchase
Phone number request
vacation home
Community Availability
Qualification Concerns
Closing Costs
property purchase
warranty inquiry
warranty
spelling clarification
consultant meeting
Preapproval
Community Promotion
Employment status
community information
Home Types
contractor's affidavit
maintenance services
Closet organization
lot availability
appliance certification
preregistering
Rental Restrictions
email link
salesperson inquiry
premium
client details
real estate criteria
4 bedroom availability
sales agent inquiry
follow-up appointment scheduling
scheduling appointments
short term renting
realtor commissions
blueprints request
Internet and cable
2-story homes
Return Call
Fenced Backyard
Community Phases
Amenities inquiry
Follow-up
Incentives and promotions
buyer's criteria
Company Name
technical issue
Court
upgraded appliances
Availability Inquiry
real estate agent inquiry
Parkview Reserve
community features
community pricing
locality inquiry
consultation
appointment delay
upgrades pricing
VA loan
Appointment Scheduling
new community
special financing
CDD fees
follow-up
Age Requirement
Spanish-speaking representatives
quick move ins
Email Link
Appointment delay
Buyer Preferences
Community Inquiry
55+ community
lot price
community address
community activities
Home Measurements
home size
virtual appointment
Meeting Scheduling
appointment scheduling
home options
vendor contact information
Consultant Meeting
Monthly Payment Estimate
Sales Consultant Contact
client preferences
sales consultants
company employment
business hours
customer details
Gated Communities
rental restrictions
community visit
Geographic Location
contact escalation
health advice
Home Models
virtual consultation
scheduling appointment
new construction
customer appreciation
county location
home under construction
wait time
closing costs
property size
property tour
sales inquiry
Community visit
Financing
Community Opening
monthly payment
multigenerational homes
floor plan
single story home
home modifications
accompanying guests
hotel accommodations
Townhome inquiry
Completion Timeframe
Construction Timeline
home models
Home Size
Contact information
HOA Contact
online presentation
Expanding Services
Preapproval Process
Home criteria
Email Confirmation
Follow-up Appointment Scheduling
apology
buyer's incentive
IES
pet restrictions
Virtual Consult
Buy Down Interest Rate
neighbor dispute
pool options
Lot Premiums Inquiry
base price
Office hours
school districts
Scheduled Appointment
Home Inquiry
Realtor Assistance
Closing Deadline
community name
VA loans
follow-up appointment
Villa Dimensions
under construction
career opportunities
property construction
Commission Rates
home features
down payment assistance
HOA Fees
Incentives
Email Inquiry
Sales Consultants
virtual meeting
Customer Frustration
arrival notification
community location inquiry
community homes
Budget Constraints
55 Plus Community
sales consultant inquiry
Monthly expenses
Text communication
custom home builder
Townhome Pricing
property type
presale deposit
presales process
Community Interest List
Website Inquiry
paperwork
Interest rates
Model Homes Availability
specific property inquiry
pricing and incentives
home types
Google Maps
customer's profile
Closing Delay
Customer care
distance inquiry
community details inquiry
floor plan options
temporary housing
virtual appointment confirmation
health care
commission rates
scheduling tour
Confirmation Email
Financing Inquiry
Lot Premiums
Vendor services
Townhome Inquiry
language preference
model home visit

@taf2
Copy link
Author

taf2 commented Nov 20, 2023

generates a broken response and seems to be looping the output like : ```",\n "finishing touches",\n "finishing touches",\n "finishing touches",\n "finishing touches",\n "finishing touches",\n "finishing touches",\n "finishing touches",\n "finishing touches",\n "finishing touches",\n "finishing touches",\n "finishing touches",\n "finishing touches",\n "finishing touches",\n "finishing touches",\n "finishing touches",\n "finishing touches",\n "finishing touches",\n "finishing touches",\n "finishing touches",\n "finishing touches",\n "finishing touches",\n "finishing touches",\n "finishing touches",\n "finishing touches",\n "
},
"finish_reason": "length"
}
],
"usage": {
"prompt_tokens": 4756,
"completion_tokens": 4096,
"total_tokens": 8852
},
"system_fingerprint": "fp_a24b4d720c"
}````

vs gpt-4 was not having repeated sub topics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment