From a96b270805eba2b6d8c40d1fa2ee0d35c73cba0e Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sat, 13 Apr 2024 13:21:44 +0200 Subject: Add upload script --- README.md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index c478830..3fd5569 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Retrieval Augmented Generation -RAG with ollama (and optionally cohere) and qdrant. This is basically a glorified -ctrl+f. +RAG with ollama (and optionally cohere) and qdrant. This is basically a glorified +(bloated) `ctrl+f`. ## Usage @@ -65,7 +65,9 @@ Get an API from their website. #### 6.1 Prerequisites -##### 6.2 Python Environment +Both databases needs to be running as well as ollama. + +##### 6.1.1 Python Environment Activate the poetry shell: @@ -91,7 +93,11 @@ streamlit run rag/ui.py #### 6.5 Upload Multiple Documents -tbc +To upload an entire directory (and subdirectories) of pdfs, simply run: + +```sh +python rag/upload.py -d +``` ### Notes -- cgit v1.2.3-70-g09d2