Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/charlywargnier/langchainrag-trubrics-langsmith


https://github.com/charlywargnier/langchainrag-trubrics-langsmith

Last synced: about 8 hours ago
JSON representation

Awesome Lists containing this project

README

        

# Chat with the Streamlit docs, collect feedback with Trubrics & LangSmith.









✨ Chat with the [Streamlit docs](https://docs.streamlit.io/) using [LangChain](https://www.langchain.com/) and collect feedback with [Trubrics](https://github.com/trubrics/streamlit-feedback) and [LangSmith](https://www.langchain.com/langsmith).

📖 To find out how to build this app and chat with your own docs, check our [blog post](https://blog.streamlit.io/how-in-app-feedback-can-increase-your-chatbots-performance/).

## Overview of the App



This demo app made with [Streamlit](https://streamlit.io/) allows users to chat with the [Streamlit docs](https://docs.streamlit.io/) using [LangChain](https://www.langchain.com/)'s Retrieval-Augmented Generation (RAG) capabilities. By integrating the [Trubrics' Feedback component](https://github.com/trubrics/streamlit-feedback), the app provides a dynamic way to capture user feedback, which is then monitored in [LangSmith](https://www.langchain.com/langsmith) for further analyses and improvements.

## Demo App

You can try out the demo on Streamlit Community Cloud

[![Streamlit App](https://static.streamlit.io/badges/streamlit_badge_black_white.svg)](https://rag-chatbot-with-user-feedback.streamlit.app/)

## Prerequisites

Ensure you have the necessary API keys:

### Get a LangSmith API key

Sign up for LangSmith at [smith.langchain.com](https://smith.langchain.com/) and generate an API Key.
To do this, click on the `API Key` icon and then click on `Create API Key` (make sure to copy it).



### Get an OpenAI API key

You can get your own OpenAI API key by following these instructions:
1. Go to https://platform.openai.com/account/api-keys.
2. Click on the `+ Create new secret key` button.
3. Next, enter an identifier name (optional) and click on the `Create secret key` button.

## Need Support?

If you require assistance or have any questions, feel free to reach out to me on X (formerly Twitter) at [@datachaz](https://twitter.com/datachaz) or on the [Streamlit forums](https://discuss.streamlit.io/)!