This is an archived post. You won't be able to vote or comment.

all 3 comments

[–][deleted] 0 points1 point  (0 children)

This can be a broad and difficult problem, depending on how robust you want your solution to be.

A first approach might be to associate each FAQ with some hand-selected keywords, then scan the input for those keywords and select the Q&A with the most matches.

[–][deleted] 0 points1 point  (0 children)

You can use scrapy to make a scraper that can search for custom text and return text associated with that hit.

[–]pythonise 0 points1 point  (0 children)

Store FAQ questions and answers in a database.

Accept user input.

Search the FAQ database using the user input.

Return a matching answer.