WattBotRAG / src /app.py
sevvaliclal's picture
Update src/app.py
694380e verified
Raw
History Blame Contribute Delete
449 Bytes
import streamlit as st
import faiss
import numpy as np
from sentence_transformers import SentenceTransformer
st.title("WattBot RAG Assistant")
embed_model = SentenceTransformer("all-MiniLM-L6-v2")
question = st.text_input("Ask a sustainability question")
if question:
st.write("Processing...")
embedding = embed_model.encode([question])
st.write("Embedding generated.")
st.write("⚠️ Full RAG logic should be connected here.")