Spaces:
Sleeping
Sleeping
Commit History
-
Add logging configuration and integrate logging into API endpoints
- Introduced a new logging configuration module to set up logging for the application, including file and console handlers. - Integrated logging into the FastAPI application, capturing detailed information about request processing, including upload and query operations. - Enhanced the RAG pipeline with logging for vector search execution, context retrieval, and response generation, improving traceability and debugging capabilities. - Added logging for error handling in the pipeline to capture exceptions and processing times, facilitating better monitoring and performance analysis.57e7c3d -
Implement cookie-less session management and user ID handling for Hugging Face Spaces compatibility
- Introduced cookie-less session management by storing user IDs in localStorage and transmitting them via HTTP headers and URL parameters. - Updated FastAPI endpoints to retrieve user IDs from headers and query parameters, ensuring backward compatibility with cookie-based implementations. - Enhanced the RAG pipeline to accept user IDs for tracking in Hugging Face deployments. - Modified frontend to include user ID in all API requests using an axios interceptor, improving session management across the application. - Updated documentation to reflect changes in session management and user ID handling.8190e40
-
Refactor vector database integration to use Qdrant and update related configurations
- Replaced VectorDatabase with QdrantVectorDatabase across the application for improved vector similarity search. - Updated docker-compose.yml to include Qdrant service with necessary configurations. - Enhanced README.md to document Qdrant integration and its configuration options. - Added new method in EmbeddingModel to retrieve embedding dimensions. - Adjusted API and service files to accommodate Qdrant settings and ensure compatibility.ed6feab
-
Refactor user session management and prompt handling in FastAPI and frontend
- Improved user session management by optimizing cookie handling for user IDs and prompt templates. - Refined FastAPI endpoints for better performance in retrieving, updating, and resetting user-specific prompts. - Enhanced frontend logic to streamline user identification and prompt editing features. - Updated Chat and DocumentSummary components to ensure efficient API requests with user ID integration. - Further improved user experience by simplifying prompt management processes.73641c0