Welcome to the GenAI Tutorial repository! In this repository, you'll find tutorials on how to use OpenAI's Generative Artificial Intelligence Language Model (GenAI LLM) to generate text.
This repository contains the following self-contained tutorials:
- OpenAI Chat: Explore how to create a chatbot using GenAI LLM for various conversational tasks.
- Resume Chat: Dive into building a chatbot that holds chat memory to be able to resume chats based on user input.
- Chroma QA Chat: Learn how to build a question-answering chatbot using GenAI LLM and documents stored in a Chroma vector DB.
- RAG Chat: Understand how to use Retrieval-Augmented Generation (RAG) with GenAI LLM for enhanced text generation.
Before you begin, make sure you have the following installed:
- Python 3
- OpenAI Python Library (
openai
) - Literal API key (
literalai
)
To use the GenAI LLM, you'll need an OpenAI API key. If you don't have one, you can sign up for the API access here.
To use the GenAI LLM, you'll need an LiteralAI API key. If you don't have one, you can sign up for the API access here.
Clone this repository to your local machine:
git clone https://github.com/your-username/genai-tutorial.git
cd genai-tutorial
- User can easily interact with OpenAI.
- User can enter questions.
- Question is passed to OpenAI.
- User initiates a chat with the chatbot.
- User can enter questions or statements.
- The chatbot processes the input and stores it in the chat memory.
- The chatbot generates a response based on the user's input and the chat memory.
- If the user resumes the chat after a break, the chatbot retrieves the chat memory and continues the conversation based on the previous context.
- User initiates a chat with the Chroma QA chatbot.
- User can ask questions related to a specific topic or domain.
- The chatbot processes the question and retrieves relevant information from its knowledge base.
- The chatbot uses the GenAI LLM to generate a coherent and accurate answer based on the retrieved information.
- The chatbot presents the answer to the user.
- The user can continue to ask more questions, and the chatbot will continue to provide answers based on the GenAI LLM and its knowledge base.
- User initiates a chat with the RAG chatbot.
- User can ask questions or make statements.
- The chatbot processes the input and uses the Retrieval-Augmented Generation (RAG) technique to retrieve relevant information from its knowledge base.
- The chatbot uses the GenAI LLM to generate a coherent and accurate response based on the retrieved information and the RAG technique.
- The chatbot presents the response to the user.
- The user can continue to interact with the chatbot, and the chatbot will continue to provide responses using the RAG technique and the GenAI LLM.
For more information and advanced usage of GenAI LLM, refer to the following resources:
If you encounter any issues or have suggestions for improvement, feel free to open an issue or submit a pull request in this repository.
Happy generating! 🎉
Feel free to use this updated version in your repository! Let me know if there's anything else you need.