DocuRAG / Api /app /modules /clearVariables /routes /clearVariables_route.py
abadesalex's picture
Update to Qdrant db
47b5f0c
raw
history blame
354 Bytes
from app.db_local_storage.in_memory_db import query_response_storage
from fastapi import APIRouter
from fastapi.responses import JSONResponse
router = APIRouter()
@router.delete("/clear_variables/")
async def clear_variables():
query_response_storage.clear()
return JSONResponse(status_code=200, content={"message": "All variables cleared"})