danny-avila / rag_api

ID-based RAG FastAPI: Integration with Langchain and PostgreSQL/pgvector
https://librechat.ai/
143 stars 60 forks source link

🌡️ fix: Delete Endpoint Validation, List Index Errors, use PyJWT #42

Closed danny-avila closed 1 month ago

danny-avila commented 1 month ago

Summary

I implemented improvements to the delete_documents endpoint and added a MongoDB health check to ensure better validation and connectivity.

Testing

I tested the changes locally by making DELETE requests to the delete_documents endpoint with valid and invalid request bodies to verify the Pydantic model validation. I also monitored the MongoDB health check functionality to ensure it accurately reflects the database status.

Checklist