Spaces:
Build error
Build error
Updated README with instructions
Browse files- README.md +13 -1
- code/config.yml +1 -1
- code/vectorstores/db_FAISS_sentence-transformers/all-MiniLM-L6-v2/index.pkl +0 -0
- docs/README.md +2 -0
- requirements.txt +2 -1
README.md
CHANGED
@@ -1 +1,13 @@
|
|
1 |
-
# dl4ds_tutor
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# dl4ds_tutor
|
2 |
+
|
3 |
+
## Setup
|
4 |
+
1. conda create -n dl4ds_tutor python=3.9
|
5 |
+
2. conda activate dl4ds_tutor
|
6 |
+
3. pip install -r requirements.txt
|
7 |
+
4. Create a .env file and add your openai api key as 'OPENAI_API_KEY=XXX'
|
8 |
+
|
9 |
+
## Instructions
|
10 |
+
1. Add files to `data/`
|
11 |
+
2. cd code
|
12 |
+
3. chainlit run main.py
|
13 |
+
|
code/config.yml
CHANGED
@@ -6,7 +6,7 @@ embedding_options:
|
|
6 |
db_path : 'vectorstores' # str
|
7 |
model : 'sentence-transformers/all-MiniLM-L6-v2' # str [sentence-transformers/all-MiniLM-L6-v2, text-embedding-ada-002']
|
8 |
llm_params:
|
9 |
-
use_history:
|
10 |
llm_loader: 'openai' # str [ctransformers, openai]
|
11 |
openai_params:
|
12 |
model: 'gpt-4' # str [gpt-3.5-turbo-1106, gpt-4]
|
|
|
6 |
db_path : 'vectorstores' # str
|
7 |
model : 'sentence-transformers/all-MiniLM-L6-v2' # str [sentence-transformers/all-MiniLM-L6-v2, text-embedding-ada-002']
|
8 |
llm_params:
|
9 |
+
use_history: True # bool
|
10 |
llm_loader: 'openai' # str [ctransformers, openai]
|
11 |
openai_params:
|
12 |
model: 'gpt-4' # str [gpt-3.5-turbo-1106, gpt-4]
|
code/vectorstores/db_FAISS_sentence-transformers/all-MiniLM-L6-v2/index.pkl
CHANGED
Binary files a/code/vectorstores/db_FAISS_sentence-transformers/all-MiniLM-L6-v2/index.pkl and b/code/vectorstores/db_FAISS_sentence-transformers/all-MiniLM-L6-v2/index.pkl differ
|
|
docs/README.md
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
# Documentation
|
2 |
+
|
requirements.txt
CHANGED
@@ -10,4 +10,5 @@ faiss-cpu==1.7.4
|
|
10 |
ctransformers==0.2.27
|
11 |
python-dotenv==1.0.0
|
12 |
openai==1.6.1
|
13 |
-
pymupdf==1.23.8
|
|
|
|
10 |
ctransformers==0.2.27
|
11 |
python-dotenv==1.0.0
|
12 |
openai==1.6.1
|
13 |
+
pymupdf==1.23.8
|
14 |
+
chainlit==0.7.700
|