Delete README.md
Browse files
README.md
DELETED
|
@@ -1,47 +0,0 @@
|
|
| 1 |
-
# Langchain RAG Tutorial
|
| 2 |
-
|
| 3 |
-
## Install dependencies
|
| 4 |
-
|
| 5 |
-
1. Do the following before installing the dependencies found in `requirements.txt` file because of current challenges installing `onnxruntime` through `pip install onnxruntime`.
|
| 6 |
-
|
| 7 |
-
- For MacOS users, a workaround is to first install `onnxruntime` dependency for `chromadb` using:
|
| 8 |
-
|
| 9 |
-
```python
|
| 10 |
-
conda install onnxruntime -c conda-forge
|
| 11 |
-
```
|
| 12 |
-
See this [thread](https://github.com/microsoft/onnxruntime/issues/11037) for additonal help if needed.
|
| 13 |
-
|
| 14 |
-
- For Windows users, follow the guide [here](https://github.com/bycloudai/InstallVSBuildToolsWindows?tab=readme-ov-file) to install the Microsoft C++ Build Tools. Be sure to follow through to the last step to set the enviroment variable path.
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
2. Now run this command to install dependenies in the `requirements.txt` file.
|
| 18 |
-
|
| 19 |
-
```python
|
| 20 |
-
pip install -r requirements.txt
|
| 21 |
-
```
|
| 22 |
-
|
| 23 |
-
3. Install markdown depenendies with:
|
| 24 |
-
|
| 25 |
-
```python
|
| 26 |
-
pip install "unstructured[md]"
|
| 27 |
-
```
|
| 28 |
-
|
| 29 |
-
## Create database
|
| 30 |
-
|
| 31 |
-
Create the Chroma DB.
|
| 32 |
-
|
| 33 |
-
```python
|
| 34 |
-
python create_database.py
|
| 35 |
-
```
|
| 36 |
-
|
| 37 |
-
## Query the database
|
| 38 |
-
|
| 39 |
-
Query the Chroma DB.
|
| 40 |
-
|
| 41 |
-
```python
|
| 42 |
-
python query_data.py "How does Alice meet the Mad Hatter?"
|
| 43 |
-
```
|
| 44 |
-
|
| 45 |
-
> You'll also need to set up an OpenAI account (and set the OpenAI key in your environment variable) for this to work.
|
| 46 |
-
|
| 47 |
-
Here is a step-by-step tutorial video: [RAG+Langchain Python Project: Easy AI/Chat For Your Docs](https://www.youtube.com/watch?v=tcqEUSNCn8I&ab_channel=pixegami).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|