GithubHelp home page GithubHelp logo

mendableai / qa_clustering Goto Github PK

View Code? Open in Web Editor NEW
53.0 3.0 5.0 3.93 MB

Analyzing chat interactions w/ LLMs to improve 🦜🔗 Langchain docs

Home Page: https://blog.langchain.dev/llms-to-improve-documentation/

License: MIT License

Jupyter Notebook 100.00%

qa_clustering's Introduction

Summarizing User Questions with LLMs

Question-Answering (QA) systems like Mendable have revolutionized the way users interact with technical documentation. They also could provide valuable insights to companies about what users are confused by and what are the common question themes.

However, discerning key themes from extensive sets of questions can be challenging. LLMs offer an innovative way to assist in question theme determination across large volumes of user queries.

We test clustering (group similar questions together followedf by LLM-assisted summary of themes per cluster) and map-reduce (breaking the questions down into smaller chunks, summarizing each, and then combining the results) to summarize question gathered from 1 month on the LangChain documentation.

Here is a summary of the approaches:

summary

See the two Jupyter notebooks in notebooks.

For LLMs used, you will need OpenAI and / or Anthropic API keys:

export OPENAI_KEY="your-api-key-here"
export ANTHROPIC_API_KEY="your-api-key-here"

Install packages and run:

cd notebooks
pip install -r requirements.txt
jupyter notebook

See related blog post here.

qa_clustering's People

Contributors

rlancemartin avatar calebpeffer avatar

Stargazers

Innary avatar Bell Eapen avatar Reuben Cummings avatar  avatar Honsun Zhu avatar Ming | Gary Ang avatar Joash Lee avatar  avatar KAUSTUBH BHAVSAR avatar Chirag Daryani avatar  avatar Hamza Kyamanywa avatar Vladislav Sorokin avatar JimmyLv_吕立青 avatar  avatar wisetwo avatar Bryce Schultz avatar ecan_personal avatar Patryk Karny avatar Huda Swati avatar Meng Li avatar Kasun Wijesekara avatar  avatar souvik dutta avatar zeyu-woven avatar  avatar Siddhartha Basu avatar Zubair avatar Ralf Niemeyer avatar Brian J King avatar  avatar Dylan Peters avatar KittoZheng avatar Gurumurthi V Ramanan avatar Arjun Aravindan avatar Vincent avatar Sandalots avatar Sourabh Bajaj avatar João Pedro de Bragança avatar  avatar  avatar Neil Blake avatar Sunil Sattiraju avatar Patrick avatar Ben avatar Seth Peters avatar  avatar Adrian Wedd avatar Raoni Meira Gabriel avatar Fabio Dias Rollo avatar  avatar  avatar Eric Ciarla avatar

Watchers

Harrison Chase avatar Nicolas avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.