Skip to content

Commit

Permalink
Merge pull request #980 from Avaiga/demo_rag
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreSajus authored Jun 4, 2024
2 parents b6d67c3 + 063e5f2 commit 1524990
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions docs/gallery/llm/8_rag_chatbot/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
title: RAG Chatbot
category: llm
data-keywords: vizelement ai
short-description: A chatbot to ask questions about pdf files using RAG
img: 8_rag_chatbot/images/rag_screen.png
---
This demo showcases Taipy's ability to enable end-users to run inference using LLMs.
Here, we use Langchain to query Mistral's LLM model hosted on HuggingFace to ask questions
about PDF files using RAG.

[Get it on GitHub](https://github.com/Avaiga/demo-gpt-4o/tree/rag){: .tp-btn .tp-btn--accent target='blank' }

# Understanding the Application

This application uses RAG (Retrieval-Augmented Generation) to answer questions about PDF files.
The user can upload his PDF files in a specific folder and ask questions about them on
the Taipy interface. This project uses Langchain to query Mistral's LLM model hosted on HuggingFace, but this can be easily adapted to other models or APIs.

![RAG Screenshot](images/rag_screen.png){width=100% : .tp-image-border }

A tutorial on how to write similar
LLM inference applications is available
[here](../../../tutorials/fundamentals/4_chatbot/index.md).
1 change: 1 addition & 0 deletions mkdocs.yml_template
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ nav:
- "Creating an LLM Chatbot" : gallery/llm/5_chatbot/index.md
- "TalkToTaipy" : gallery/llm/6_talk_to_taipy/index.md
- "Vision ChatBot": gallery/llm/7_vision_chatbot/index.md
- "RAG ChatBot": gallery/llm/8_rag_chatbot/index.md
- "Sentiment Analysis": gallery/llm/sentiment_analysis/index.md
- "Tweet Generation": gallery/llm/tweet_generation/index.md
- "Visualization":
Expand Down

0 comments on commit 1524990

Please sign in to comment.