Spaces:
Sleeping
Sleeping
Commit History
-
Refactor Qdrant integration and update dependencies
- Simplified Qdrant vector database implementation by removing unnecessary ID mappings and using text hashing for unique IDs. - Updated docker-compose.yml to utilize environment variable for Qdrant configuration. - Added langchain-qdrant dependency in pyproject.toml and uv.lock to support new features. - Refactored API main.py to create vector database instances using the updated VectorDatabase class.6d817f0 -
Refactor LangSmith run logging to use updated API methods
- Updated the LangSmithTracer class to replace deprecated run_create method with create_run for logging document retrieval and RAG generation runs. - Enhanced logging messages to remove run ID details, focusing on successful logging actions instead. - Improved code clarity and maintainability by aligning with the latest API specifications.ac39032 -
Enhance Dockerfile and application configuration for improved functionality
- Added environment variables for LangChain and LangSmith integration in docker-compose.yml to support enhanced tracing and project management. - Updated Dockerfile to streamline the frontend build process and optimize dependency installation, ensuring a more efficient multi-stage build. - Refactored API main.py to utilize LangChain's prompt templates and integrated LangSmith utilities for better logging and tracing capabilities. - Removed outdated requirements.txt file to simplify dependency management, consolidating all necessary packages within pyproject.toml. - Adjusted frontend component to correctly handle streamed text responses, improving user experience during chat interactions.d3dec26
-
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 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