RAG-based Question Answering system using Transformers and Gradio. Final Project RA3 - Predictive Information Analysis (MOPT DAW2)
Python
0
2 commits
updated Mar 18, 2026
Sistema de preguntas y respuestas basado en Retrieval-Augmented Generation (RAG) sobre una base de conocimiento de un hospital. Utiliza MongoDB/mdbr-leaf-ir para embeddings y PleIAs/Pleias-RAG-350M como modelo de lenguaje. La interfaz está construida con Gradio.
git clone https://huggingface.co/spaces/TU_USUARIO/TU_SPACE
cd TU_SPACE
pip install -r requirements.txt
python app.py
La interfaz estará disponible en http://localhost:7860
from gradio_client import Client
client = Client("TU_USUARIO/TU_SPACE")
result = client.predict(
query="What are the working hours of the hospital?",
top_k=5,
umbral=0.55,
api_name="/ask"
)
respuesta, documentos = result
print("Respuesta:", respuesta)
print("Documentos recuperados:", documentos)
RAG-based Question Answering system using Transformers and Gradio. Final Project RA3 - Predictive Information Analysis (MOPT DAW2)
Python
0
2 commits
updated Mar 18, 2026
Sistema de preguntas y respuestas basado en Retrieval-Augmented Generation (RAG) sobre una base de conocimiento de un hospital. Utiliza MongoDB/mdbr-leaf-ir para embeddings y PleIAs/Pleias-RAG-350M como modelo de lenguaje. La interfaz está construida con Gradio.
git clone https://huggingface.co/spaces/TU_USUARIO/TU_SPACE
cd TU_SPACE
pip install -r requirements.txt
python app.py
La interfaz estará disponible en http://localhost:7860
from gradio_client import Client
client = Client("TU_USUARIO/TU_SPACE")
result = client.predict(
query="What are the working hours of the hospital?",
top_k=5,
umbral=0.55,
api_name="/ask"
)
respuesta, documentos = result
print("Respuesta:", respuesta)
print("Documentos recuperados:", documentos)