Skip to content

Latest commit

 

History

23 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to Run

  1. Clone the repository

    git clone https://github.com/Maoelan/simple-rag.git
  2. Open the project in IDE, then open a terminal

  3. Set up the virtual environment

    python -m venv venv
    venv\Scripts\activate
    pip install -r requirements.txt
  4. Rename .env.example to .env, then fill in the following values

    QDRANT_URL=http://localhost:6333
    COLLECTION_NAME=demo_collection
    VECTOR_SIZE=128
    DISTANCE=COSINE
  5. (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.

  6. Run the application

    uvicorn main:app --reload --port 8000
  7. Open the API docs in your browser: http://localhost:8000/docs

About

No description, website, or topics provided.

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages