Need direction on LLM CS Chatbot

Lookin to start developing a AI LLM for CS but also trained on internal documentation for our technicians to consult when they are troubleshooting problems in the field. Is it worth trying to build something ourselves from an open source model or does anyone have any experience with off the shelf solutions that have worked well?

Industry is construction technology so the end users aren’t generally tech savvy and we don’t have the manpower to field calls with human technical experts for both our customer support questions and our field techs that might need support.

Ideally would have a phone number the user can call and have a conversation with the bot as the users have traditionally been pretty resistant to text or email based support.

The solution/concept you are looking for is Retrieval-Augmented Generation (RAG) for LLMs. If you want to learn the concept, I like the llamaindex documentation
https://docs.llamaindex.ai/en/stable/understanding/rag/

Conceptually, RAG is similar to going to a search engine and grabbing all the relevant paragraphs for a llm to summarize.

If you want a sample to play around with, I recommend playing around with this code snippet

This guide uses the transformers library, but I use Ollama with the OpenAI api.

If you opt for the build, the biggest challenge is taking your internal wikis and documents and getting them ready for a database and a database solution. If you want a all in one solution, I’d check out Trieve. They have some cool super fast demos.

They also have a version you can self host

Disclaimer I got to chat with the trieve devs they know their stuff and have some super fast demos built on their tech

I also found them through the FUTO channel

After you get the chatbot part complete, you’ll need to hook it into a speech to text and text to speech solution. I’m not as familiar with this space but look for open source TTS and STT models
https://www.reddit.com/r/LocalLLaMA/comments/1f0awd6/best_local_open_source_texttospeech_and/

If your company is on Microsoft and Azure you might want to consider AI search and AI speech or the AWS and GCP equivalents. It will cost you, but if your leaders are more comfortable working big tech, then it might be worth looking into
https://azure.microsoft.com/en-us/products/ai-services/ai-search
https://azure.microsoft.com/en-us/products/ai-services/ai-speech/

Google has probably the most generous free testing for developers

1 Like

No bosses, basically trying to build this myself and sell it back to my company to solve the issues we have with a lack of knowledgeable people to answer the phones.

1 Like

if that’s the case, I’d checkout the hugging face and llama index link

https://docs.llamaindex.ai/en/stable/understanding/rag/

1 Like