ranfysvalle02 / Interactive-RAG

Using MongoDB Atlas + ActionWeaver, we can build a user proxy agent that efficiently retrieves and ingests relevant information. This agent presents the data to the user in an interactive and customizable manner, enhancing the overall user experience.
Apache License 2.0
30 stars 12 forks source link

Add the ability to upload/supply materials for learning. #2

Open wbleonard opened 10 months ago

wbleonard commented 10 months ago

In addition to Google search results, add the ability to upload materials (that may not be public) for learning.

ranfysvalle02 commented 9 months ago

Maybe the streamlit FileUploader component...

import streamlit as st

def main():
    # Create a file uploader component
    uploaded_file = st.file_uploader("Choose a file")

    # Check if a file was uploaded
    if uploaded_file is not None:
        # Read the contents of the file
        file_contents = uploaded_file.read()

        # Display the file contents
        st.write("File contents:")
        st.write(file_contents)

if __name__ == "__main__":
    main()
ranfysvalle02 commented 7 months ago

Was able to add it -- but really messes with the layout....

Streamlit doesn't currently support complex layouts natively