From ce4f99e39fb05ed472a3bcfa7a2c8251a46b9b26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugues=20de=20Saxc=C3=A9?= Date: Thu, 1 May 2025 14:36:05 +0200 Subject: [PATCH] fix: instructions --- resume-chat/readme.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/resume-chat/readme.md b/resume-chat/readme.md index 33e6db6f1..ff0de1a81 100644 --- a/resume-chat/readme.md +++ b/resume-chat/readme.md @@ -23,13 +23,14 @@ The application initializes a chatbot using the `ChatOpenAI` model, which is cap To start using this application, follow these steps: -1. Ensure you have `chainlit` and `langchain` libraries installed. +1. Ensure you have `chainlit`, `openai`, `langchain` and `langchain-community` libraries installed. 2. Place the provided code in a file named `app.py` within the `chainlit-cookbook/resume-chat` directory. -3. Run the application. It will listen for chat start, resume, and message events. -4. Interact with the chatbot through the supported interface, and it will maintain the conversation context across sessions. +3. Copy environment variables with `cp .env.example .env` and generate a secret with `chainlit create-secret` that you should add to your `.env`. Also add an OpenAI API key and optionally a Literal AI API key to enable logging). +4. Run the application. It will listen for chat start, resume, and message events. +5. Interact with the chatbot through the supported interface (login with admin/admin), and it will maintain the conversation context across sessions. ## Code Definitions - `Runnable`: A composable unit of execution in the `langchain` library. - `ConversationBufferMemory`: A `langchain` class that stores the conversation history. -- `ThreadDict`: A `chainlit` type representing the thread of conversation steps. \ No newline at end of file +- `ThreadDict`: A `chainlit` type representing the thread of conversation steps.