Skip to content

Enhanced FAQ lookup tool in examples/customer_service app #1063

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

HasnainCodeHub
Copy link

faq_lookup_tool to improve keyword detection and support case-insensitive input.

1. Expanded Keyword Coverage:

Baggage: Added "luggage", "carry-on", "hand luggage", "hand carry" etc

Seats: Added "seating" and similar words

Wifi: Added "internet", "wireless", "connectivity", "network", "online" etc

2. Case Insensitivity:

User input is now matched input.lowercase() regardless of capitalization or not.

Reduces missed matches and "I don’t know" responses.

Handles user input more flexibly across different typing styles and words.

This makes the tool more accurate and user-friendly introduce I don't know responses.

Added additional keywords and implemented case insensitivity to improve the tool's ability to handle a wider range of user questions.
@seratch seratch changed the title Enhanced FAQ lookup tool in main.py Enhanced FAQ lookup tool in examples/customer_service app Jul 11, 2025
@seratch seratch added the documentation Improvements or additions to documentation label Jul 11, 2025
Co-authored-by: Kazuhiro Sera <seratch@openai.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants