REST API Knowledge Base?
# 🤝help
c
Hi all, forgive me if this has been asked before, I've searched the discord and the docs and I can't find the answer I'm looking for. My client has a lot of company knowledge in a KB that requires a login. It does have a REST API, and that also requires authorization. Is there any way to connect my BotPress bot to something like that? Where instead of uploading a bunch of documents we connect it to this API somehow? And if we have multiple data sources, will BotPress be smart enough to know which one has the answer to the question at hand? Like we also want to give it info from our database, is it possible that the user can ask it a question and it knows that this one is for the tables we uploaded, this one is from the REST API, etc? Sorry if these are dumb questions!
f
These are some really good questions! There is not an API for this right now, but there might be something in the future, which you might find helpful😉 The bot doesn't know where to search unless you have selected specific KB's to search on a capture information card. The way the bot can generate an answer from the KB is called RAG, there are some great videos on it on YouTube if you want to learn more about it.
c
Hey Decay, thank you for the response! I did not know about RAG, I will research that. Thank you very much!
f
You are very welcome
c
I've tried and tried but I can't find any of those great videos. Do you remember any of the titles? I'm search for things like "botpress rag" and the videos I get don't seem to have anything to do with that. And searching the botpress knowledge base doesn't return anything.
f
Doesn't have to be Botpress specific
You can just search for "What is rag", and there will be a lot of great videos.
m
Hello. Does anyone have an example script to connect and communicate with the botpress.coud API with PHP/curl? I can't get it to work for some unknown reason. While the open.ai version of chatGPT works like a charm on my website, I can't get the botpress to work. I have created an MSN messenger simulation, and I really want to have the botpress bot in my messenger. The botpress is very valuable for my messenger because it can imitate characters. (Example of my goal: https://sandersoft.nl) Ik hope someone has an example script.😎
73 Views