Similarity search Table View (Javascript)

Hi, seeking an advise from expert on how to do similarity search. I want a function where user can search anything, if it has the same meaning it will show same answer.

Example.

Set 1: What are some popular tourist attractions in Paris, France?

Set 2: Which famous landmarks should I visit when traveling to Paris, France?

Answer: Paris, the City of Light, is home to numerous iconic landmarks and attractions. Some of the most popular tourist attractions include the Eiffel Tower, the Louvre Museum, Notre-Dame Cathedral, Arc de Triomphe, and the Champs-Élysées. Visitors can also explore the Montmartre neighborhood, take a Seine River cruise, or visit the Palace of Versailles.

Similarity search table view (javascript).knwf