Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6568883
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:33:27+00:00 2026-05-25T14:33:27+00:00

I was looking on the internet for chatbots . It was only fun. But

  • 0

I was looking on the internet for chatbots. It was only fun. But now, I love this subject so much that I want to develop my own chatbot.
But the first thing is to look for a good way to manage the “brain” of my chatbot. I think that it’s the best solution to save everything in a XML file, isn’t it?
So the file type is clear. Comes to the relationship between different nouns etc. When I have a noun, e.g. a tree. How do I save best that a tree has leaves, branches and roots. And that a tree needs water and sunlight to survive?
Should I save it like that or otherwise?

This would be my XML for this tree-example:

<nouns>
    <noun id="noun_0">
        <name>tree</name>
        <relationship>
            <has>noun_1</has>
            <has>noun_2</has>
            <has>noun_3</has>
            <need>noun_4</need>
            <need>noun_5</need>
        </relationship>
    </noun>
    <noun id="noun_1">
        <name>root</name>
    </noun>
    <noun id="noun_2">
        <name>branch</name>
        <relationship>
            <has>noun_3</has>
        </relationship>
    </noun>
    <noun id="noun_3">
        <name>leaf</name>
    </noun>
    <noun id="noun_4">
        <name>water</name>
    </noun>
    <noun id="noun_5">
        <name>light</name>
    </noun>

    . . .

</nouns>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T14:33:28+00:00Added an answer on May 25, 2026 at 2:33 pm

    Data Storage Choices: It Depends

    Simple, non-learning bots: XML is fine

    It looks like you already have a basic XML structure worked out. For just starting out, I’d say that’s fine, especially for AI support-chat kind of bots (if userMsg.contains('lega') then print('TOS & Copyright...').

    Of course, switching to any new format will take time and overhead.

    Learning, Complicated bots: database!

    If you’re looking to do something much larger, especially if you have CleverBot in mind, I think you’re going to need a database. This is because when your file .. is a file and is gigantic and trying to keep it all available in memory is resource intensive. For this kind of project, I’d recommend a database.

    Why? English is Complicated

    A while back I wrote a nieve bayes spam sorter. It took about 10,000 pieces of spam to “train” it at a 7% accuracy rate, which took about 6 hours and 1.5GB of RAM to hold the data in memory. That’s a lot of data. English is very hard and can’t really be broken into if 'pony' then 'saddle', so for a bot to “learn” the best responses, your database is going to become massive and very quickly.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been looking over the internet for a while about this, but it
I have an internet shortcut on my desktop, with the contents looking like this:
I know there is built-in Internet explorer, but what I'm looking for is to
Been scouring the internet looking for documentation that gives a list of acceptable strings
I have scoured the internet looking for a solution to this and I am
Looking on the internet for C++ brainteasers, I found this example: #include <iostream> using
I have a sqlite database that I want to open using sqlite3.exe. Now I
I came across this website while looking for help on the internet regarding adj.
I've been trawling the internet looking for an answer for several hours, but I
I was looking around the internet and couldn't find a perfect algorithm for this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.