Skip to content

CharlyWargnier/LangchainRAG-Trubrics-Langsmith

Repository files navigation

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





✨ Chat with the Streamlit docs using LangChain and collect feedback with Trubrics and LangSmith.

📖 To find out how to build this app and chat with your own docs, check our blog post.

Overview of the App

This demo app made with Streamlit allows users to chat with the Streamlit docs using LangChain's Retrieval-Augmented Generation (RAG) capabilities. By integrating the Trubrics' Feedback component, the app provides a dynamic way to capture user feedback, which is then monitored in LangSmith for further analyses and improvements.

Demo App

You can try out the demo on Streamlit Community Cloud

Streamlit App

Prerequisites

Ensure you have the necessary API keys:

Get a LangSmith API key

Sign up for LangSmith at 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 or on the Streamlit forums!