{
  "slug": "Design-daily-FAQ-maker-with-AI--25db05f8881e",
  "title": "Design daily FAQ maker with AI.",
  "subtitle": "In this tutorial, the daily FAQ with ranking will be explained.",
  "excerpt": "In this tutorial, the daily FAQ with ranking will be explained.",
  "date": "2024-05-21",
  "tags": [
    "Design Rag System",
    "Machine Learning"
  ],
  "readingTime": "1 min",
  "url": "https://medium.com/@mobinshaterian/design-daily-faq-maker-with-ai-25db05f8881e",
  "hero": "https://cdn-images-1.medium.com/max/800/1*bx59XtmcYtWkWI-ad8rViQ.jpeg",
  "content": [
    {
      "type": "heading",
      "level": 2,
      "text": "Design daily FAQ maker with AI."
    },
    {
      "type": "paragraph",
      "html": "In this tutorial, the daily FAQ with ranking will be explained."
    },
    {
      "type": "heading",
      "level": 2,
      "text": "Step 1 : Gathering all data"
    },
    {
      "type": "paragraph",
      "html": "In this step, it is mandatory to store all answers and questions in the database. We need to store all answers to each question to gather all data. It is much better to use docker and PostgreSQL to execute this process daily. Also, this process could be a Cron job to do every day."
    },
    {
      "type": "image",
      "src": "https://cdn-images-1.medium.com/max/800/1*bx59XtmcYtWkWI-ad8rViQ.jpeg",
      "alt": "Design daily FAQ maker with AI.",
      "caption": "",
      "width": 640,
      "height": 832
    },
    {
      "type": "heading",
      "level": 2,
      "text": "Step 2: Clean up data"
    },
    {
      "type": "paragraph",
      "html": "In step 2, it is necessary to remove outlier data, for instance, advertisement data and changing department and postpone the problems to future."
    },
    {
      "type": "heading",
      "level": 2,
      "text": "Step 3: category “guidance” , “ask for more details”"
    },
    {
      "type": "paragraph",
      "html": "In this step, answers are classified into two groups: the first seeks more detailed questions from the client, and the second gives the client guidance. For this action, it is possible to find the answers using special words or prompt engineering to find the category."
    },
    {
      "type": "heading",
      "level": 2,
      "text": "Stats"
    },
    {
      "type": "paragraph",
      "html": "After these three steps, it is possible to make stats for the situation."
    },
    {
      "type": "heading",
      "level": 2,
      "text": "Step4: cluster questions"
    },
    {
      "type": "paragraph",
      "html": "In this step first, the question is summarized by the prompt engineer and will cluster by K-means and will find common topics."
    },
    {
      "type": "heading",
      "level": 2,
      "text": "Step 5 : cluster answers"
    },
    {
      "type": "paragraph",
      "html": "In this step first, the answers will cluster by K-means and will find common topics."
    },
    {
      "type": "heading",
      "level": 2,
      "text": "step 6 : clean questions and answer"
    },
    {
      "type": "paragraph",
      "html": "Sometimes, personal data or unnecessary data exists in questions and answers, and it is mandatory to remove them. We can use a prompt engineer or manually clean up the data."
    },
    {
      "type": "heading",
      "level": 2,
      "text": "Step 7 : final review FAQs"
    },
    {
      "type": "paragraph",
      "html": "In this step manually check the FAQs to figure out everything will be ok."
    },
    {
      "type": "heading",
      "level": 2,
      "text": "Step 8 : make dataset for FAQs"
    },
    {
      "type": "paragraph",
      "html": "This is a last part and export csv for the result."
    },
    {
      "type": "paragraph",
      "html": "Visit us at <a href=\"https://www.datadriveninvestor.com/\" target=\"_blank\" rel=\"noreferrer noopener\"><em>DataDrivenInvestor.com</em></a>"
    },
    {
      "type": "paragraph",
      "html": "Subscribe to DDIntel <a href=\"https://www.ddintel.com/\" target=\"_blank\" rel=\"noreferrer noopener\"><em>here</em></a>."
    },
    {
      "type": "paragraph",
      "html": "Featured Article:"
    },
    {
      "type": "paragraph",
      "html": "Join our creator ecosystem <a href=\"https://join.datadriveninvestor.com/\" target=\"_blank\" rel=\"noreferrer noopener\"><em>here</em></a>."
    },
    {
      "type": "paragraph",
      "html": "DDI Official Telegram Channel: <a href=\"https://t.me/+tafUp6ecEys4YjQ1\" target=\"_blank\" rel=\"noreferrer noopener\">https://t.me/+tafUp6ecEys4YjQ1</a>"
    },
    {
      "type": "paragraph",
      "html": "Follow us on <a href=\"https://www.linkedin.com/company/data-driven-investor\" target=\"_blank\" rel=\"noreferrer noopener\"><em>LinkedIn</em></a>, <a href=\"https://twitter.com/@DDInvestorHQ\" target=\"_blank\" rel=\"noreferrer noopener\"><em>Twitter</em></a>, <a href=\"https://www.youtube.com/c/datadriveninvestor\" target=\"_blank\" rel=\"noreferrer noopener\"><em>YouTube</em></a>, and <a href=\"https://www.facebook.com/datadriveninvestor\" target=\"_blank\" rel=\"noreferrer noopener\"><em>Facebook</em></a>."
    }
  ]
}