-
Clone the repository
git clone https://github.com/Maoelan/simple-rag.git
-
Open the project in IDE, then open a terminal
-
Set up the virtual environment
python -m venv venv venv\Scripts\activate pip install -r requirements.txt
-
Rename
.env.exampleto.env, then fill in the following valuesQDRANT_URL=http://localhost:6333 COLLECTION_NAME=demo_collection VECTOR_SIZE=128 DISTANCE=COSINE
-
(Optional) Start Qdrant via Docker
docker-compose up -d # or docker build -t my-qdrant . docker run -d -p 6333:6333 --name qdrant-container my-qdrant
Note: This step is optional. If Docker is not running, the app will automatically fall back to in-memory storage and still run normally.
-
Run the application
uvicorn main:app --reload --port 8000
-
Open the API docs in your browser: http://localhost:8000/docs
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|