DEV Community

Daniel Griffin
Daniel Griffin

Posted on

Keeping up with Mintlify's AI Chat

I am pretty new to the Trieve codebase (GitHub, Docs) and so am sometimes hesitant to ask about things that initially seem to me to be missing, confusing, or not working. This is common for many—even when, like in my case, those around you strongly encourage any and all questions. For my dissertation research at UC Berkeley, I studied how data engineers search the web for their work and wrote about how they try to keep learning:

A key observation of data engineering work is that they are operating at the edge, working with the new, or new to them, tools, systems, or other ways of handling data. Navigating around these edges, or learning around the edge, necessitates constantly working to “keep up” (Kotamraju, 2002) and engage in “intensive self-learning” (Avnoon, 2021) in a fluid, and loosely defined, field. They use web search to keep up.

In my research, I also looked at what people did when they were struggling despite searching the web. Often, they—eventually—ask others. And no matter how encouraging your teammates, you may still wonder if your question is going to waste their time or make you appear a fool. Many people fear, or have experienced, being ragged on for asking a question that was perhaps searchable. Maybe they were harshly told to read the manual or sent a LMGTFY link (a practice long-ago banned on Stack Overflow). Some of my research participants told me how they sometimes said or sent such things to their colleagues to reduce the demand on their own time. Others confessed how they found themselves silenced when a boss or colleague said something similar to them. So, folks often took the time to carefully package questions, looking for ways to demonstrate due diligence.

Thanks to Trieve's integration with Mintlify, my due diligence process looked roughly like this, advancing to the next step as necessary:

1) Identify a doubt or question.
2) Search the docs (sometimes through the integrated search bar and sometimes just on the page with Ctrl/+F).
3) Write (and even iteratively reformulate) a question in Mintlify's AI Chat interface.
4) Share a screenshot of the question & answer with the rest of the Trieve team.

screenshot of the Mintlify search bar


You can jump to the Mintlify search bar at the top of the page with Ctrl/+K

Some questions I only had to recognize to be able to resolve (on my own with the code and computer). Many just required a quick search. For others I could refine my understanding through the act of simply writing out fully formulated questions (like in rubber duck debugging or how even "starting to ask" a colleague a question helps clarify a path forward). Sometimes the value was in reading the docs as repackaged by the LLM chat.

screenshot of Mintlify's search interface


The Mintlify interface lets you jump straight to the RAG response or the retrieved search results.

screenshot of Mintlify's RAG source links


Links to the sources used by the LLM to generate the response are displayed at the bottom.

Then there was that last type of question—often dealing with API parameters or some special term in the docs—where the RAG response helped me really recognize my misunderstandings or reframe my confusion. The question-and-answer was displayed in a way that let me quickly relay to the team my doubt or surprise packaged alongside the RAG response.

screenshot of Mintlify's RAG response to 'What is the difference between group_ids and group_tracking_ids?'


Screenshot of the Mintlify AI Chat interface showing both the question and the RAG response.

Sharing these screenshots helped make clear how the confusion or uncertainty was connected with the existing documentation, or not. These questions then helped the team identify where I really needed help keeping up and where the documentation might be improved to support a better developer experience in the docs, in the search, and with the RAG.


Learn something from this post? If you'd like to support our project, we'd be grateful if you'd explore and star our GitHub repository!

Top comments (1)

Collapse
 
skeptrune profile image
Nick K

AI chat can be really valuable when trying to ship a new API integration or feature with a code-base you're not familiar with. Super cool that Mintlify comes with it out of the box!