Update README.md
Browse files
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 |
+

|
| 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 |
+

|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
### Interactive session via Streamlit app
|
| 39 |
+
|
| 40 |
+
```bash
|
| 41 |
+
streamlit run main.py
|
| 42 |
+
```
|
| 43 |
+
|
| 44 |
+

|
| 45 |
+
|
| 46 |
+
---
|