We believe that innovation is not just a tool, but an essential pillar for building the future of digital technology. With this vision, we created AppX Labs, a space dedicated to researching and developing emerging technologies. And to mark the beginning of this journey, we present a study conducted by João Lopes on building generic knowledge-based chatbots using open-source LLMs and Node.js.
The evolution of AI chatbots
Chatbots are constantly evolving with advancements in Artificial Intelligence and Machine Learning. With the growth of Large Language Models (LLMs), these tools now offer more precise and contextual interactions.
At AppX Labs, we explored this technology to create a knowledge-based chatbot capable of answering questions about specific information and storing conversation history, ensuring more contextual and efficient interactions.
Implementation and challenges
João Lopes’ research involved testing different models, including Meta’s Llama 3.1 and Google’s Gemma 2. Approaches were implemented to:
- Load and process text and PDF documents;
- Create efficient embeddings for indexing and information retrieval;
- Set up a Node.js server to manage interactions with the chatbot;
- Implement a conversation history that stores user interactions;
- Test different embedding configurations to optimize response time and accuracy.
The results were promising, with superior performance from Gemma 2, especially when we used the nomic-embed-text embedding model, which showed the best success rate in responses.
What’s next?
This study is just the beginning of AppX Labs. Our team will continue to explore ways to optimize user experience and investigate new applications for intelligent chatbots, including:
- Implementing cache for frequently asked questions, speeding up responses;
- Testing to optimize infrastructure and hardware;
- Comparative analysis between different LLMs and embedding models;
- Enhancing usability and integrating advanced AI functions.
Read the full article here.
We’re just getting started! If you’re interested in cutting-edge technology, generative AI, and innovative solutions, follow AppX Labs. Soon, we’ll bring new insights and research on the future of digital development.