File size: 449 Bytes
8f07d0e
694380e
20b7049
694380e
1b24fa6
694380e
20b7049
694380e
20b7049
694380e
afe9383
694380e
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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.")