multimodal-persian-QA / end_to_end_class.py

Commit History

Remove unused Top-p slider from app.py and adjust top_k parameter in EndToEndRAG class from 5 to 1 for improved performance and simplicity.
1690356

shndap commited on

Refactor query and prompt generation in EndToEndRAG class to support multiple-choice questions and improve context formatting. Simplify user input handling in app.py by passing raw user text to the retrieval function.
ab1ae1b

shndap commited on

Refactor EndToEndRAG class to support multimodal input handling, integrating CLIP for image processing and enhancing query capabilities. Update prompt generation for improved user interaction in Persian. Enhance initialization to load indices and metadata from Hugging Face Hub.
32a6857

shndap commited on

Add chat completion method to EndToEndRAG class for improved text generation. Enhance error handling to provide clearer feedback on model compatibility and response issues.
ce5a27b

shndap commited on

Enhance text generation in EndToEndRAG class with multiple fallback strategies: non-streaming, streaming accumulation, and chat completion. Improve output normalization and error handling for empty responses.
bf422dc

shndap commited on

Refactor text generation handling in EndToEndRAG class to normalize output from different response types. Enhance error handling for StopIteration exceptions to improve robustness.
2d05396

shndap commited on

Improve compatibility for HfHubHTTPError import across different huggingface_hub versions. Enhance error handling in EndToEndRAG class to ensure robust response detail extraction.
8b910c2

shndap commited on

Enhance EndToEndRAG class initialization to support model name from environment variable. Add error handling for HfHubHTTPError with detailed response information. Update class documentation for clarity.
d806299

shndap commited on

Refactor EndToEndRAG class to focus on a text-only pipeline using Hugging Face Inference API. Remove unused imports and methods related to image processing and multimodal retrieval. Update class documentation accordingly.
4e6d190

shndap commited on

Refactor EndToEndRAG class to use InferenceClient for text generation and simplify initialization. Update requirements.txt to remove unused dependencies.
66a53d0

shndap commited on

Add EndToEndRAG class for multimodal retrieval-augmented generation
c3ecf02

shndap commited on