mbhoge commited on
Commit
25d41fc
·
1 Parent(s): b2d921d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +46 -0
README.md CHANGED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # kagglex-final-project
2
+
3
+ A prototype written in Python to illustrate/demonstrate querying the Learning Path Index Dataset (see [Kaggle Dataset](https://www.kaggle.com/datasets/neomatrix369/learning-path-index-dataset) and [GitHub repo](https://github.com/neomatrix369/learning-path-index)), with the help of the OpenAI GPT technology (InstructHPT model and embeddings model), [Langchain](https://python.langchain.com/) and using [Facebook's FAISS library](https://faiss.ai/).
4
+
5
+
6
+ ![image](https://github.com/mbhoge/kagglex-final-project/assets/988040/5396aee3-cf0f-43b6-9b44-aaf779ed803a)
7
+
8
+
9
+ The end-to-end process can be learnt by going through the code base as well as by observing the console logs when using both the Streamlit and the CLI versions.
10
+
11
+ ## Pre-requisites
12
+
13
+ - Python 3.8.x or above
14
+ - OpenAI API Key (see [How to get an OpenAI API Key](https://www.howtogeek.com/885918/how-to-get-an-openai-api-key/) -- note it's may not be FREE anymore)
15
+ - Install dependencies from `requirements.txt`
16
+ - Basic Command-line experience
17
+ - Basic git and GitHub experience
18
+
19
+ ## Install and run
20
+
21
+ Copy the `.env_template` to `.env` in the current folder and then add your OpenAI API Key to `.env`.
22
+ **Please don't modify the `.env_template` file.**
23
+
24
+
25
+ ```bash
26
+ pip install -r requirements.txt
27
+ ```
28
+
29
+ ### Interactive session via CLI app
30
+
31
+ ```bash
32
+ python main.py
33
+ ```
34
+
35
+ ![image](https://github.com/mbhoge/kagglex-final-project/assets/1570917/9bb04765-623d-452a-bcd0-82abf74ce6a9)
36
+
37
+
38
+ ### Interactive session via Streamlit app
39
+
40
+ ```bash
41
+ streamlit run main.py
42
+ ```
43
+
44
+ ![image](https://github.com/mbhoge/kagglex-final-project/assets/1570917/714eabc6-90bf-4e48-bf45-f2c8a307bf5a)
45
+
46
+ ---