dodeeric / langchain-ai-assistant-with-hybrid-rag

This is a LLM chatbot coded with LangChain. The web interface is coded with Streamlit. It implements a hybrid RAG (keyword and semantic search) and chat memory.
https://bmae-ragai-webapp.azurewebsites.net
GNU General Public License v3.0
8 stars 1 forks source link

upload file(s) to the app? (ex.: the vertexai sa key) #6

Closed dodeeric closed 1 month ago

dodeeric commented 1 month ago

upload pdf + embed pdf


st.title("File Upload Example")

uploaded_file = st.file_uploader("Choose a file") if uploaded_file is not None:

To read file as bytes:

bytes_data = uploaded_file.getvalue()
st.write("File Content:")
st.write(bytes_data)
dodeeric commented 1 month ago

in root dir, not for pdf file in pdf_files dir.