rendezvous / app.py
disLodge's picture
Initial commit of the agentic RAG app
3f0f670
raw
history blame contribute delete
416 Bytes
import gradio as gr
from indexer import index_text, answer_query
def rag_system(input_text, query):
vectorstore = index_text(input_text)
answer = answer_query(query, vectorstore)
return answer
iface = gr.Interface(
fn=rag_system,
inputs=["text","text"],
outputs="text",
title="RAG QA System",
description="Enter a text and ask questions based on the input text."
)
iface.launch()