Hi @florence023!
I am building a chatbot that I want to connect to AI using a knowledge base
What do you mean by knowledge base here? are you referring to AWS Bedrock knowledge base? This allows you to connect your data in s3 to Atlas vector search via AWS Bedrock, and you get an API endpoint that can be used to query directly
If you are trying to build a custom chatbot in JS , have you tried the LangChain JS? Here’s the [tutorial for building a chatbot in JS|https://www.mongodb.com/docs/atlas/atlas-vector-search/ai-integrations/langchain-js/]