-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AI Test Search and Suggest Update #434
Conversation
✅ Deploy Preview for cheerful-treacle-913a24 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@pengyin-shan based on the latest demo, I have some thoughts about the map integration. To me, the ideal solution to the location/bbox search is not to have ChatGPT generate the Solr params for this (as you currently have it), but instead to have the ChatGPT results trigger a selection in the geocoding widget, assuming that is possible. That would take care of selecting the place in the map, zooming to it, and adding the bbox filter, instead of short-circuiting straight to the solr query, like the current setup. Do you think that is something you could explore before we merge this? Just wanted to put the idea out there. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, this is really cool, and looking really good. I'm sure we'll have some design changes to make, and more to do on the map integration, but it's in plenty good enough shape to merge into our development branch now.
This PR is for #434 and #439. It updates the suggestion scoring system to include more results and introduces the trial version of the LLM-based search experience. Additionally, it incorporates layout adjustments following the latest design changes and fixes several minor bugs.
How to Test
Test the suggestion dropdown behavior: Start typing in the keyword search field. The suggestion dropdown should now correctly overlap the Geo search box on the map, fixing a previous issue:![Screenshot 2025-02-07 at 10 09 56 AM](https://private-user-images.githubusercontent.com/92752107/410964828-f1424d5e-ebeb-4662-aff9-8e7b8e162afe.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMTQ1NzksIm5iZiI6MTczOTMxNDI3OSwicGF0aCI6Ii85Mjc1MjEwNy80MTA5NjQ4MjgtZjE0MjRkNWUtZWJlYi00NjYyLWFmZjktOGU3YjhlMTYyYWZlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDIyNTExOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWNjZmQzYTkyNDBiYzU3YmVlYTViMDY5MzZiZGZmZGVhNmI5NzU5NjAyMmJiN2U5MDBhM2JhODk3MjI2MWRiZDMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.lbOW4HduIL3AB6b77EIchtlbwcDFUFgIY7R7pTzXGxU)
Verify keyword search functionality: Perform various searches to confirm that keyword search still works as expected:![Screenshot 2025-02-07 at 12 23 28 PM](https://private-user-images.githubusercontent.com/92752107/411014837-3e1a2213-1ade-4189-b950-f86463a21f6c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMTQ1NzksIm5iZiI6MTczOTMxNDI3OSwicGF0aCI6Ii85Mjc1MjEwNy80MTEwMTQ4MzctM2UxYTIyMTMtMWFkZS00MTg5LWI5NTAtZjg2NDYzYTIxZjZjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDIyNTExOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQwZjIzMzFkNGE3ZDUzOWU5ZjkzMjY4YmU5M2M3ZWYyNDY5ZjAyM2YxZGVhYWJhNmJhY2JhMjY2NGQ5OGIxY2YmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.1p6Ny8wej1Jvd-y5RkLS1OxO2YZT4K65DwHX6G3Icu0)
Switch to AI-based search mode: Click the "Chat" button to switch to AI search:![Screenshot 2025-02-07 at 12 23 43 PM](https://private-user-images.githubusercontent.com/92752107/411014938-4b9c16cf-9131-4f57-aee5-e4a09d6ceba9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMTQ1NzksIm5iZiI6MTczOTMxNDI3OSwicGF0aCI6Ii85Mjc1MjEwNy80MTEwMTQ5MzgtNGI5YzE2Y2YtOTEzMS00ZjU3LWFlZTUtZTRhMDlkNmNlYmE5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDIyNTExOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWVkMTMxY2E5OGUyZmJlZWJjOGMyNGE4MTNmNTQ0MjkyODUxYzdjMzJhMzc1ZDE2MjNiMWNkZDM0ZjhhNDU1OWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.d9ShOn7j2dxlgd8_FczTJtKHsg-mYBXx-BhWJQUv4q0)
Test AI-based search: Type a question (e.g., "What is the greenspace condition in Champaign, IL?") and search.![Screenshot 2025-02-07 at 12 28 46 PM](https://private-user-images.githubusercontent.com/92752107/411017140-bc2502af-ce71-4014-ba7d-ec945a6d0d8c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMTQ1NzksIm5iZiI6MTczOTMxNDI3OSwicGF0aCI6Ii85Mjc1MjEwNy80MTEwMTcxNDAtYmMyNTAyYWYtY2U3MS00MDE0LWJhN2QtZWM5NDVhNmQwZDhjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDIyNTExOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTgxNWM4ZmVjYTYyYTY4NjkzNzE1MzNkOWY1MTg2ODVkZTk2ZDkxNDljOTgxYTZkMGQwNDYxNWFiMDlmYzRlNDImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.rAvreU2n8qHWnAEaT1S14D41jQOBzd9Nksj6CH6TLrU)
While searching, the mode switch, search, and clear buttons should be temporarily disabled to prevent conflicts caused by multiple triggered searches:
Review AI search results: You should now see the AI-generated results:![Screenshot 2025-02-07 at 12 27 24 PM](https://private-user-images.githubusercontent.com/92752107/411016540-b5cec47e-bf07-4b4c-a461-c7662e9c985c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMTQ1NzksIm5iZiI6MTczOTMxNDI3OSwicGF0aCI6Ii85Mjc1MjEwNy80MTEwMTY1NDAtYjVjZWM0N2UtYmYwNy00YjRjLWE0NjEtYzc2NjJlOWM5ODVjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDIyNTExOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWU5ZDcwNzBkMDEyZmNlZTgzYjQ1ZmY5YjhhNjE0MzRmMjhlNjc1MmNhZjVmZGRmMzk3YWUxYTg0ZjM0ZDZjMjQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.uGP_WkSm6LAcCm9C4V7xupidduW_pzvSfUtVDuT6p0I)
Switch back to keyword search: You can return to keyword search mode and test functionality as needed.