JulsdL commited on
Commit
881300d
·
1 Parent(s): 14c0e58

Udpated Readme and added .env_template

Browse files
Files changed (2) hide show
  1. .env_template +1 -0
  2. README.md +36 -1
.env_template ADDED
@@ -0,0 +1 @@
 
 
1
+ OPENAI_API_KEY=your-key-here
README.md CHANGED
@@ -1 +1,36 @@
1
- # AIMS-Tutor
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # AIMS-Tutor
2
+
3
+ # RAG Application for QA in Jupyter Notebook
4
+
5
+ AIMS-Tutor is designed to provide question-answering capabilities in a Jupyter Notebook using the Retrieval Augmented Generation (RAG) model. It's built on top of the LangChain and Chainlit platforms, and it uses the OpenAI API for the chat model.
6
+
7
+ ## Features
8
+
9
+ - Document processing: Load a Jupyter notebook and split it into chunks for processing.
10
+ - Query answering: Use the RAG model to answer queries based on the processed document.
11
+ - User interaction: Interact with the application through a chat interface.
12
+
13
+ ## Setup
14
+
15
+ 1. Clone the repository.
16
+ 2. Install the required dependencies using pip:
17
+
18
+ ```bash
19
+ pip install -r requirements.txt
20
+ ```
21
+
22
+ 3. Create a .env file and add you environment variables. You'll need to provide your OpenAI API key in the format:
23
+
24
+ ```bash
25
+ OPENAI_API_KEY=your-key-here
26
+ ```
27
+
28
+ 4. Run the application using the following command:
29
+
30
+ ```bash
31
+ chainlit run app.py
32
+ ```
33
+
34
+ ## Usage
35
+
36
+ Start a chat session and upload a Jupyter notebook file. The application will process the document and you can then ask questions related to the content of the notebook. It might take some time to answer some question, so please be patient.