Short and quick answers to user queries based on input text document using RAG (Retrieval Augmented Generation).
This project uses the uv package manager for dependency management. Follow the steps below to set up the project:
-
Clone the repository:
git clone https://github.com/your-repo/rag_app.git cd rag_app/project3 -
Install the dependencies using
uv:uv install
-
Verify the installation:
uv check
-
Run the application with a query string:
uv run main.py --query "Your question here" -
If no query is provided, the default query will be used:
uv run main.py
-
The system will generate answers to the provided query.
-
Start the FastAPI server:
uvicorn main2:app
-
Access the
/queryendpoint to send a query:curl -X POST "http://127.0.0.1:8000/query" -d "input_query=Your question here"
-
The server will return the response in JSON format.
pyproject.toml: Contains project metadata and dependencies.uv.lock: Lock file for dependency versions.main.py: Entry point for the command-line interface.main2.py: Entry point for the FastAPI server.- Other files and directories: Supporting modules and resources for the project.
None