samtecspg / articulate

A platform for building conversational interfaces with intelligent agents (chatbots)
http://spg.ai/projects/articulate/
Apache License 2.0
599 stars 159 forks source link

Training chatbot with JSON file #1048

Closed ngcgolf11 closed 4 years ago

ngcgolf11 commented 4 years ago

Hi Articulate Team,

Can we train Articulate from any JSON file which we get after convert the PDF to JSON. we only want to build a system where chatbot can give answer from book and also anyone can search from that book chatbot can give its answer

please help me how we can do that the number of books is 50. Thanks in advance.

Regards: Manoj Kumar

ngcgolf11 commented 4 years ago

I have a history book in which there are many chapters I want chatbot will give students answer if they ask any question from chatbot that answer in that book. Please provide me a solution I am working on this project for free for those students which will get benefit from this chatbot after that we can use all their textbook as source to same chatbot and it can give answer to their queries

wrathagom commented 4 years ago

If you have a JSON file of questions and answers you could use the API to load them into Articulate as sayings, actions, and responses.

I would need a sample of the JSON to say much more.

ngcgolf11 commented 4 years ago

how we can train with pdf if we convert the pdf into json we can do that or not

dcalvom commented 4 years ago

Hi there!

What is your goal? To let the agent answer questions from the pdf content?

wrathagom commented 4 years ago

Somewhat a duplicate of #1032 You can't train Articulate from JSON, PDF, or MySQL. To train it you need to use the UI or API to provide labeled sayings. Each saying can be tagged with one or more actions. Actions, then can call a webhook to fetch data.

If you have a JSON of question/answers. Or can pull questions/answers from a PDF, then you could write a custom script that uses the API to add all of those into Articulate, but you would need to have the questions and answers in a JSON/CSV/etc file first.

wrathagom commented 4 years ago

Maybe this will help https://blog.spg.ai/build-a-faq-chatbot-with-articulate-fd9ff8dc1235