Is there anyone that has implemented chat with your own database datas by using open ai on node js?

Im interested to know if there is anyone that has implemented chat with your own database datas because I have a case where I need to have this thing. Please let me know, thanks!

Thanks for the chat. So let me just formulate the question for others who might read this and don’t understand what’s it about and what we found out - maybe someone else has a solution on that.

  1. you are using langchainjs and it comes up with an error from the calculateMaxTokens function in util “Failed to calculate number of tokens, falling back to approximate count”

Since I havn’t seen the library before my suggestion was to go to that code and output what you are sending inside said function (you said you are sending a very tiny set of data) - maybe there is some kind of escape problem or the prompt with the data is too long…

2 Likes

Using Python, I have created chatbot with my own data.

1 Like

@freelancedev112 are you using langchain for it ?

and which is the name of model of open ai that you’re using?

Yeap,
I am using that with Python.